diff --git a/.github/README.md b/.github/README.md index 593021cb..87a0c23a 100644 --- a/.github/README.md +++ b/.github/README.md @@ -54,7 +54,7 @@ To download from master (*not recommended*): ``` $ git clone https://github.com/Ride-The-Lightning/RTL.git $ cd RTL -$ npm install --only=prod +$ npm install --omit=dev --legacy-peer-deps ``` #### Or: Update existing dependencies ``` @@ -62,7 +62,7 @@ $ cd RTL $ git reset --hard HEAD $ git clean -f -d $ git pull -$ npm install --only=prod +$ npm install --omit=dev --legacy-peer-deps ``` ### Prep for Execution RTL requires its own config file `RTL-Config.json`, to start the server and provide user authentication on the app. diff --git a/.github/docs/Core_lightning_setup.md b/.github/docs/Core_lightning_setup.md index 9c17281f..4b8aef36 100644 --- a/.github/docs/Core_lightning_setup.md +++ b/.github/docs/Core_lightning_setup.md @@ -32,7 +32,7 @@ To download from master (*not recommended*): ``` $ git clone https://github.com/Ride-The-Lightning/RTL.git $ cd RTL -$ npm install --only=prod +$ npm install --omit=dev --legacy-peer-deps ``` #### Or: Update existing build @@ -41,7 +41,7 @@ $ cd RTL $ git reset --hard HEAD $ git clean -f -d $ git pull -$ npm install --only=prod +$ npm install --omit=dev --legacy-peer-deps ``` ### Prep for Execution RTL requires its own config file `RTL-Config.json`, to start the server and provide user authentication on the app. diff --git a/.github/docs/Eclair_setup.md b/.github/docs/Eclair_setup.md index d72e722a..73feef63 100644 --- a/.github/docs/Eclair_setup.md +++ b/.github/docs/Eclair_setup.md @@ -28,7 +28,7 @@ To download from master (*not recommended*) follow the below instructions: ``` $ git clone https://github.com/Ride-The-Lightning/RTL.git $ cd RTL -$ npm install --only=prod +$ npm install --omit=dev --legacy-peer-deps ``` #### Or: Update existing build ``` @@ -36,7 +36,7 @@ $ cd RTL $ git reset --hard HEAD $ git clean -f -d $ git pull -$ npm install --only=prod +$ npm install --omit=dev --legacy-peer-deps ``` ### Prep for Execution RTL requires its own config file `RTL-Config.json`, to start the server and provide user authentication on the app. diff --git a/.gitignore b/.gitignore index 7d3771ea..47d9f83e 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,4 @@ dockerfiles/.env RTL-Config-Regtest.json RTL-Config-Signet.json RTL-Config-Testnet.json +RTL-Config-All.json diff --git a/backend/controllers/eclair/channels.js b/backend/controllers/eclair/channels.js index a1de5898..88e5d988 100644 --- a/backend/controllers/eclair/channels.js +++ b/backend/controllers/eclair/channels.js @@ -67,7 +67,7 @@ export const getChannels = (req, res, next) => { } else { logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Channels', msg: 'Empty Channels List Received' }); - res.status(200).json({ activeChannels: [], pendingChannels: [], inactiveChannels: [], lightningBalances: { localBalance: 0, remoteBalance: 0 }, channelStatus: { active: { channels: 0, capacity: 0 }, inactive: { channels: 0, capacity: 0 }, pending: { channels: 0, capacity: 0 } } }); + res.status(200).json([]); } }). catch((errRes) => { diff --git a/frontend/636.16dbf9186b428247.js b/frontend/636.16dbf9186b428247.js new file mode 100644 index 00000000..1e96165a --- /dev/null +++ b/frontend/636.16dbf9186b428247.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[636],{1636:(bg,qe,h)=>{h.r(qe),h.d(qe,{LNDModule:()=>Tg});var p=h(9808),y=h(1402),tt=h(8878),e=h(5e3),_=h(7093),P=h(5899);function nt(n,i){1&n&&e._UZ(0,"mat-progress-bar",3)}let Se=(()=>{class n{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(a=>{switch(!0){case a instanceof y.OD:this.loading=!0;break;case a instanceof y.m2:case a instanceof y.gk:case a instanceof y.Q3:this.loading=!1}})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lnd-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,nt,1,0,"mat-progress-bar",1),e._UZ(2,"router-outlet",null,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.loading))},directives:[_.xw,_.yH,_.Wh,p.O5,y.lC,P.pW],styles:[""],data:{animation:[tt.g]}}),n})();var m=h(7579),d=h(2722),E=h(9300),Le=h(534),Z=h(801),l=h(7731),C=h(6529),F=h(5043),w=h(5620),G=h(6642),O=h(62),M=h(9444),ce=h(3954),T=h(9224),he=h(2181),q=h(3322),L=h(7423),K=h(5245);const ke=function(n){return{backgroundColor:n}};function at(n,i){if(1&n&&e._UZ(0,"span",6),2&n){const t=e.oxw();e.Q6J("ngStyle",e.VKq(1,ke,null==t.information?null:t.information.color))}}function it(n,i){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h4",1),e._uU(2,"Color"),e.qZA(),e.TgZ(3,"div",2),e._UZ(4,"span",7),e._uU(5),e.ALo(6,"uppercase"),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(4),e.Q6J("ngStyle",e.VKq(4,ke,null==t.information?null:t.information.color)),e.xp6(1),e.hij(" ",e.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function ot(n,i){if(1&n&&(e.TgZ(0,"span",2),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}let Fe=(()=>{class n{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 n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[e.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,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div"),e.TgZ(2,"h4",1),e._uU(3,"Alias"),e.qZA(),e.TgZ(4,"div",2),e._uU(5),e.YNc(6,at,1,3,"span",3),e.qZA(),e.qZA(),e.YNc(7,it,7,6,"div",4),e.TgZ(8,"div"),e.TgZ(9,"h4",1),e._uU(10,"Implementation"),e.qZA(),e.TgZ(11,"div",2),e._uU(12),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",1),e._uU(15,"Chain"),e.qZA(),e.YNc(16,ot,2,1,"span",5),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.hij(" ",null==a.information?null:a.information.alias," "),e.xp6(1),e.Q6J("ngIf",!a.showColorFieldSeparately),e.xp6(1),e.Q6J("ngIf",a.showColorFieldSeparately),e.xp6(5),e.Oqu(null!=a.information&&a.information.lnImplementation||null!=a.information&&a.information.version?(null==a.information?null:a.information.lnImplementation)+" "+(null==a.information?null:a.information.version):""),e.xp6(4),e.Q6J("ngForOf",a.chains))},directives:[_.xw,_.yH,_.Wh,p.O5,p.sg,p.PC,q.Zl],pipes:[p.gd],styles:[""]}),n})();function st(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div"),e.TgZ(2,"h4",3),e._uU(3,"Lightning"),e.qZA(),e.TgZ(4,"div",4),e._uU(5),e.ALo(6,"number"),e.qZA(),e._UZ(7,"mat-progress-bar",5),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"h4",3),e._uU(10,"On-chain"),e.qZA(),e.TgZ(11,"div",4),e._uU(12),e.ALo(13,"number"),e.qZA(),e._UZ(14,"mat-progress-bar",5),e.qZA(),e.TgZ(15,"div"),e.TgZ(16,"h4",3),e._uU(17,"Total"),e.qZA(),e.TgZ(18,"div",4),e._uU(19),e.ALo(20,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.hij("",e.lcZ(6,5,null==t.balances?null:t.balances.lightning)," Sats"),e.xp6(2),e.s9C("value",(null==t.balances?null:t.balances.lightning)/(null==t.balances?null:t.balances.total)*100),e.xp6(5),e.hij("",e.lcZ(13,7,null==t.balances?null:t.balances.onchain)," Sats"),e.xp6(2),e.s9C("value",(null==t.balances?null:t.balances.onchain)/(null==t.balances?null:t.balances.total)*100),e.xp6(5),e.hij("",e.lcZ(20,9,null==t.balances?null:t.balances.total)," Sats")}}function lt(n,i){if(1&n&&(e.TgZ(0,"div",6),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let rt=(()=>{class n{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,a){if(1&t&&(e.YNc(0,st,21,11,"div",0),e.YNc(1,lt,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf"," "===a.errorMessage)("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh,P.pW],pipes:[p.JJ],styles:[""]}),n})();var f=h(7322),X=h(7238),z=h(4834),Q=h(644);const ct=function(){return["../connections/channels/open"]},ut=function(n){return{filter:n}};function pt(n,i){if(1&n&&(e.TgZ(0,"div",19),e.TgZ(1,"a",20),e._uU(2),e.ALo(3,"slice"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"mat-hint",21),e.TgZ(6,"strong",8),e._uU(7,"Local:"),e.qZA(),e._uU(8),e.ALo(9,"number"),e.qZA(),e.TgZ(10,"mat-hint",22),e._UZ(11,"fa-icon",23),e._uU(12),e.ALo(13,"number"),e.qZA(),e.TgZ(14,"mat-hint",24),e.TgZ(15,"strong",8),e._uU(16,"Remote:"),e.qZA(),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e._UZ(19,"mat-progress-bar",25),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.xp6(1),e.s9C("matTooltip",t.remote_alias||t.remote_pubkey),e.s9C("matTooltipDisabled",(t.remote_alias||t.remote_pubkey).length<26),e.Q6J("routerLink",e.DdM(21,ct))("state",e.VKq(22,ut,t.chan_id)),e.xp6(1),e.AsE(" ",e.Dn7(3,11,t.remote_alias||t.remote_pubkey,0,24),"",(t.remote_alias||t.remote_pubkey).length>25?"...":""," "),e.xp6(6),e.hij("",e.lcZ(9,15,t.local_balance||0)," Sats"),e.xp6(3),e.Q6J("icon",a.faBalanceScale),e.xp6(1),e.hij(" (",e.lcZ(13,17,t.balancedness||0),") "),e.xp6(5),e.hij("",e.lcZ(18,19,t.remote_balance||0)," Sats"),e.xp6(2),e.s9C("value",t.local_balance&&t.local_balance>0?+t.local_balance/(+t.local_balance+ +t.remote_balance)*100:0)}}function mt(n,i){if(1&n&&(e.TgZ(0,"div",17),e.YNc(1,pt,20,24,"div",18),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.allChannels)}}function _t(n,i){if(1&n&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._uU(3,"Total Capacity"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"mat-hint",7),e.TgZ(6,"strong",8),e._uU(7,"Local:"),e.qZA(),e._uU(8),e.ALo(9,"number"),e.qZA(),e.TgZ(10,"mat-hint",9),e._UZ(11,"fa-icon",10),e._uU(12),e.ALo(13,"number"),e.qZA(),e.TgZ(14,"mat-hint",11),e.TgZ(15,"strong",8),e._uU(16,"Remote:"),e.qZA(),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e._UZ(19,"mat-progress-bar",12),e.qZA(),e.TgZ(20,"div",13),e._UZ(21,"mat-divider",14),e.qZA(),e.TgZ(22,"div",15),e.YNc(23,mt,2,1,"div",16),e.qZA(),e.qZA()),2&n){const t=e.oxw(),a=e.MAs(2);e.xp6(8),e.hij("",e.lcZ(9,7,(null==t.channelBalances?null:t.channelBalances.localBalance)||0)," Sats"),e.xp6(3),e.Q6J("icon",t.faBalanceScale),e.xp6(1),e.hij(" (",e.lcZ(13,9,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),e.xp6(5),e.hij("",e.lcZ(18,11,(null==t.channelBalances?null:t.channelBalances.remoteBalance)||0)," Sats"),e.xp6(2),e.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),e.xp6(4),e.Q6J("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",a)}}function dt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",26),e._uU(1," No channels available. "),e.TgZ(2,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw().goToChannels()}),e._uU(3,"Open Channel"),e.qZA(),e.qZA()}}function ht(n,i){if(1&n&&(e.TgZ(0,"div",28),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let gt=(()=>{class n{constructor(t){this.router=t,this.faBalanceScale=Z.DL8,this.faDumbbell=Z.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,a){if(1&t&&(e.YNc(0,_t,24,13,"div",0),e.YNc(1,dt,4,0,"ng-template",null,1,e.W1O),e.YNc(3,ht,3,1,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(4);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,_.yH,f.bx,M.BN,X.gM,P.pW,z.d,Q.$V,p.sg,y.yS,L.lW],pipes:[p.JJ,p.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),n})();function ft(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e.TgZ(2,"div"),e.TgZ(3,"h4",4),e._uU(4,"Daily"),e.qZA(),e.TgZ(5,"div",5),e._uU(6),e.ALo(7,"number"),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"h4",4),e._uU(10,"Weekly"),e.qZA(),e.TgZ(11,"div",5),e._uU(12),e.ALo(13,"number"),e.qZA(),e.qZA(),e.TgZ(14,"div"),e.TgZ(15,"h4",4),e._uU(16,"Monthly"),e.qZA(),e.TgZ(17,"div",5),e._uU(18),e.ALo(19,"number"),e.qZA(),e.qZA(),e.TgZ(20,"div",6),e._UZ(21,"h4",7),e._UZ(22,"span",5),e.qZA(),e.qZA(),e.TgZ(23,"div",3),e.TgZ(24,"div"),e.TgZ(25,"h4",4),e._uU(26,"Transactions"),e.qZA(),e.TgZ(27,"div",5),e._uU(28),e.ALo(29,"number"),e.qZA(),e.qZA(),e.TgZ(30,"div"),e.TgZ(31,"h4",4),e._uU(32,"Transactions"),e.qZA(),e.TgZ(33,"div",5),e._uU(34),e.ALo(35,"number"),e.qZA(),e.qZA(),e.TgZ(36,"div"),e.TgZ(37,"h4",4),e._uU(38,"Transactions"),e.qZA(),e.TgZ(39,"div",5),e._uU(40),e.ALo(41,"number"),e.qZA(),e.qZA(),e.TgZ(42,"div",6),e._UZ(43,"h4",7),e._UZ(44,"span",5),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.hij("",e.lcZ(7,6,null==t.fees?null:t.fees.day_fee_sum)," Sats"),e.xp6(6),e.hij("",e.lcZ(13,8,null==t.fees?null:t.fees.week_fee_sum)," Sats"),e.xp6(6),e.hij("",e.lcZ(19,10,null==t.fees?null:t.fees.month_fee_sum)," Sats"),e.xp6(10),e.Oqu(e.lcZ(29,12,null==t.fees?null:t.fees.daily_tx_count)),e.xp6(6),e.Oqu(e.lcZ(35,14,null==t.fees?null:t.fees.weekly_tx_count)),e.xp6(6),e.Oqu(e.lcZ(41,16,null==t.fees?null:t.fees.monthly_tx_count))}}function Ct(n,i){if(1&n&&(e.TgZ(0,"div",8),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Ue=(()=>{class n{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum},{name:"Daily ",value:this.fees.day_fee_sum}];const t=Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10),a=Math.pow(10,t-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/a)*a/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[e.TTD],decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,a){if(1&t&&(e.YNc(0,ft,45,18,"div",0),e.YNc(1,Ct,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh],pipes:[p.JJ],styles:[""]}),n})();function xt(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e.TgZ(2,"div"),e.TgZ(3,"h4",4),e._uU(4,"Active"),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"span",6),e._uU(7),e.ALo(8,"number"),e.qZA(),e.qZA(),e.TgZ(9,"div"),e.TgZ(10,"h4",4),e._uU(11,"Pending"),e.qZA(),e.TgZ(12,"div",5),e._UZ(13,"span",7),e._uU(14),e.ALo(15,"number"),e.qZA(),e.qZA(),e.TgZ(16,"div"),e.TgZ(17,"h4",4),e._uU(18,"Inactive"),e.qZA(),e.TgZ(19,"div",5),e._UZ(20,"span",8),e._uU(21),e.ALo(22,"number"),e.qZA(),e.qZA(),e.TgZ(23,"div"),e.TgZ(24,"h4",4),e._uU(25,"Closing"),e.qZA(),e.TgZ(26,"div",5),e._UZ(27,"span",9),e._uU(28),e.ALo(29,"number"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",3),e.TgZ(31,"div"),e.TgZ(32,"h4",4),e._uU(33,"Capacity"),e.qZA(),e.TgZ(34,"div",5),e._uU(35),e.ALo(36,"number"),e.qZA(),e.qZA(),e.TgZ(37,"div"),e.TgZ(38,"h4",4),e._uU(39,"Capacity"),e.qZA(),e.TgZ(40,"div",5),e._uU(41),e.ALo(42,"number"),e.qZA(),e.qZA(),e.TgZ(43,"div"),e.TgZ(44,"h4",4),e._uU(45,"Capacity"),e.qZA(),e.TgZ(46,"div",5),e._uU(47),e.ALo(48,"number"),e.qZA(),e.qZA(),e.TgZ(49,"div"),e.TgZ(50,"h4",4),e._uU(51,"Capacity"),e.qZA(),e.TgZ(52,"div",5),e._uU(53),e.ALo(54,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(7),e.Oqu(e.lcZ(8,8,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(15,10,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(22,12,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(29,14,(null==t.channelsStatus||null==t.channelsStatus.closing?null:t.channelsStatus.closing.num_channels)||0)),e.xp6(7),e.hij("",e.lcZ(36,16,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(42,18,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(48,20,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(54,22,(null==t.channelsStatus||null==t.channelsStatus.closing?null:t.channelsStatus.closing.capacity)||0)," Sats")}}function Zt(n,i){if(1&n&&(e.TgZ(0,"div",10),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Ne=(()=>{class n{constructor(){this.channelsStatus={}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,a){if(1&t&&(e.YNc(0,xt,55,24,"div",0),e.YNc(1,Zt,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf"," "===a.errorMessage)("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh],pipes:[p.JJ],styles:[""]}),n})();var Oe=h(8213),v=h(7861),Re=h(9107);function yt(n,i){if(1&n&&(e.TgZ(0,"mat-hint",19),e.TgZ(1,"strong",20),e._uU(2,"Capacity: "),e.qZA(),e._uU(3),e.ALo(4,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.hij("",e.lcZ(4,1,t.remote_balance||0)," Sats")}}function Tt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2).$implicit;return e.oxw(3).onLoopOut(o)}),e._uU(1,"Loop Out"),e.qZA()}}function bt(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"mat-hint",22),e.TgZ(2,"strong",20),e._uU(3,"Capacity: "),e.qZA(),e._uU(4),e.ALo(5,"number"),e.qZA(),e.YNc(6,Tt,2,0,"button",23),e.qZA()),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.xp6(4),e.hij("",e.lcZ(5,2,t.local_balance||0)," Sats"),e.xp6(2),e.Q6J("ngIf",a.showLoop)}}function At(n,i){if(1&n&&e._UZ(0,"mat-progress-bar",25),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.s9C("value",a.totalLiquidity>0?(+t.remote_balance||0)/a.totalLiquidity*100:0)}}function vt(n,i){if(1&n&&e._UZ(0,"mat-progress-bar",25),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.s9C("value",a.totalLiquidity>0?(+t.local_balance||0)/a.totalLiquidity*100:0)}}const wt=function(){return["../connections/channels/open"]},qt=function(n){return{filter:n}};function St(n,i){if(1&n&&(e.TgZ(0,"div",13),e.TgZ(1,"a",14),e._uU(2),e.ALo(3,"slice"),e.qZA(),e.TgZ(4,"div",15),e.YNc(5,yt,5,3,"mat-hint",16),e.YNc(6,bt,7,4,"div",17),e.qZA(),e.YNc(7,At,1,1,"mat-progress-bar",18),e.YNc(8,vt,1,1,"mat-progress-bar",18),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.xp6(1),e.s9C("matTooltip",t.remote_alias||t.remote_pubkey),e.s9C("matTooltipDisabled",(t.remote_alias||t.remote_pubkey).length<26),e.Q6J("routerLink",e.DdM(14,wt))("state",e.VKq(15,qt,t.chan_id)),e.xp6(1),e.AsE(" ",e.Dn7(3,10,t.remote_alias||t.remote_pubkey,0,24),"",(t.remote_alias||t.remote_pubkey).length>25?"...":""," "),e.xp6(3),e.Q6J("ngIf","In"===a.direction),e.xp6(1),e.Q6J("ngIf","Out"===a.direction),e.xp6(1),e.Q6J("ngIf","In"===a.direction),e.xp6(1),e.Q6J("ngIf","Out"===a.direction)}}function Lt(n,i){if(1&n&&(e.TgZ(0,"div",11),e.YNc(1,St,9,17,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.allChannels)}}const kt=function(n,i,t){return{"mb-4":n,"mb-2":i,"mb-1":t}};function Ft(n,i){if(1&n&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._uU(3,"Total Capacity"),e.qZA(),e.TgZ(4,"mat-hint",6),e._uU(5),e.ALo(6,"number"),e.qZA(),e._UZ(7,"mat-progress-bar",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"mat-divider",9),e.qZA(),e.YNc(10,Lt,2,1,"div",10),e.qZA()),2&n){const t=e.oxw(),a=e.MAs(2);e.Q6J("ngClass",e.kEZ(6,kt,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)),e.xp6(5),e.hij("",e.lcZ(6,4,t.totalLiquidity)," Sats"),e.xp6(5),e.Q6J("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",a)}}function Ut(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).goToChannels()}),e._uU(1,"Open Channel"),e.qZA()}}function Nt(n,i){if(1&n&&(e.TgZ(0,"div",26),e._uU(1," No channels available. "),e.YNc(2,Ut,2,0,"button",27),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf","Out"===t.direction)}}function Ot(n,i){if(1&n&&(e.TgZ(0,"div",29),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Rt=(()=>{class n{constructor(t,a,o,s){this.router=t,this.loopService=a,this.commonService=o,this.store=s,this.targetConf=6,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.showLoop=!(!t.swapServerUrl||""===t.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(t){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[1])).subscribe(a=>{this.store.dispatch((0,v.qR)({payload:{minHeight:"56rem",data:{channel:t,minQuote:a[0],maxQuote:a[1],direction:l.$I.LOOP_OUT,component:Oe.a}}}))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0),e.Y36(Re.W),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","85","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","15","fxLayoutAlign","end start","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","15","fxLayoutAlign","end start","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,a){if(1&t&&(e.YNc(0,Ft,11,10,"div",0),e.YNc(1,Nt,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Ot,3,1,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(4);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,_.yH,p.mk,q.oO,f.bx,P.pW,z.d,Q.$V,p.sg,y.yS,X.gM,L.lW],pipes:[p.JJ,p.OU],styles:[""]}),n})();var D=h(3251),S=h(6087),A=h(4847),r=h(2075),J=h(8966),b=h(6523),c=h(3075),I=h(7531),W=h(3390),$=h(6534),R=h(4107),ue=h(2368),Y=h(508);function It(n,i){if(1&n&&(e.TgZ(0,"mat-option",25),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(e.lcZ(2,2,t))}}function Mt(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.invoiceError)}}function Dt(n,i){if(1&n&&(e.TgZ(0,"div",26),e._UZ(1,"fa-icon",27),e.YNc(2,Mt,2,1,"span",28),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.invoiceError)}}let Pt=(()=>{class n{constructor(t,a,o,s,u,g){this.dialogRef=t,this.data=a,this.store=o,this.decimalPipe=s,this.commonService=u,this.actions=g,this.faExclamationTriangle=Z.eHv,this.selNode={},this.memo="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.timeUnitEnum=l.Qk,this.timeUnits=l.LO,this.selTimeUnit=l.Qk.SECS,this.invoiceError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===t.payload.action&&(this.invoiceError=t.payload.message,t.payload.status===l.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="";let a=this.expiry?this.expiry:3600;this.selTimeUnit!==l.Qk.SECS&&(a=this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS)),this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:a,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,l.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 n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(p.JJ),e.Y36(O.v),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-create-invoices"]],decls:38,vars:16,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","50","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","24","fxLayoutAlign","start end"],["matInput","","placeholder","Expiry","type","number","tabindex","3","name","expiry",3,"ngModel","step","min","ngModelChange"],["tabindex","4","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","name","private",3,"ngModel","ngModelChange"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","5","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","6",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,a){if(1&t){const o=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Create Invoice"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(u){return a.memo=u}),e.qZA(),e.qZA(),e.TgZ(13,"mat-form-field",11),e.TgZ(14,"input",12),e.NdJ("ngModelChange",function(u){return a.invoiceValue=u})("keyup",function(){return a.onInvoiceValueChange()}),e.qZA(),e.TgZ(15,"span",13),e._uU(16," Sats "),e.qZA(),e.TgZ(17,"mat-hint"),e._uU(18),e.qZA(),e.qZA(),e.TgZ(19,"mat-form-field",14),e.TgZ(20,"input",15),e.NdJ("ngModelChange",function(u){return a.expiry=u}),e.qZA(),e.TgZ(21,"span",13),e._uU(22),e.ALo(23,"titlecase"),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",14),e.TgZ(25,"mat-select",16),e.NdJ("selectionChange",function(u){return a.onTimeUnitChange(u)}),e.YNc(26,It,3,4,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(27,"div",18),e.TgZ(28,"mat-slide-toggle",19),e.NdJ("ngModelChange",function(u){return a.private=u}),e._uU(29,"Private Routing Hints"),e.qZA(),e.TgZ(30,"mat-icon",20),e._uU(31,"info_outline"),e.qZA(),e.qZA(),e.YNc(32,Dt,3,2,"div",21),e.TgZ(33,"div",22),e.TgZ(34,"button",23),e.NdJ("click",function(){return a.resetData()}),e._uU(35,"Clear Field"),e.qZA(),e.TgZ(36,"button",24),e.NdJ("click",function(){e.CHM(o);const u=e.MAs(10);return a.onAddInvoice(u)}),e._uU(37,"Create Invoice"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.memo),e.xp6(2),e.Q6J("ngModel",a.invoiceValue)("step",100)("min",1),e.xp6(4),e.Oqu(a.invoiceValueHint),e.xp6(2),e.Q6J("ngModel",a.expiry)("step",a.selTimeUnit===a.timeUnitEnum.SECS?300:a.selTimeUnit===a.timeUnitEnum.MINS?10:a.selTimeUnit===a.timeUnitEnum.HOURS?2:1)("min",1),e.xp6(2),e.hij(" ",e.lcZ(23,14,a.selTimeUnit)," "),e.xp6(3),e.Q6J("value",a.selTimeUnit),e.xp6(1),e.Q6J("ngForOf",a.timeUnits),e.xp6(2),e.Q6J("ngModel",a.private),e.xp6(4),e.Q6J("ngIf",""!==a.invoiceError))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,f.bx,R.gD,p.sg,ue.Rr,K.Hw,X.gM,p.O5,Y.ey,M.BN],pipes:[p.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var Jt=h(8627);function Et(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",4,5),e.TgZ(2,"mat-form-field",6),e.TgZ(3,"input",7),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().memo=o}),e.qZA(),e.qZA(),e.TgZ(4,"mat-form-field",8),e.TgZ(5,"input",9),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().invoiceValue=o})("keyup",function(){return e.CHM(t),e.oxw().onInvoiceValueChange()}),e.qZA(),e.TgZ(6,"span",10),e._uU(7," Sats "),e.qZA(),e.TgZ(8,"mat-hint"),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"div",11),e.TgZ(11,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(12,"Clear Field"),e.qZA(),e.TgZ(13,"button",13),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(1);return e.oxw().onAddInvoice(o)}),e._uU(14,"Create Invoice"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.memo),e.xp6(2),e.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),e.xp6(4),e.Oqu(t.invoiceValueHint)}}function Qt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"button",15),e.NdJ("click",function(){return e.CHM(t),e.oxw().openCreateInvoiceModal()}),e._uU(2,"Create Invoice"),e.qZA(),e.qZA()}}function Yt(n,i){1&n&&e._UZ(0,"mat-progress-bar",46)}function Ht(n,i){1&n&&(e.TgZ(0,"th",47),e._uU(1," Date Created "),e.qZA())}const pe=function(n){return{"mr-0":n}};function Bt(n,i){if(1&n&&e._UZ(0,"span",53),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Vt(n,i){if(1&n&&e._UZ(0,"span",54),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Gt(n,i){if(1&n&&e._UZ(0,"span",55),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function zt(n,i){if(1&n&&e._UZ(0,"span",56),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Wt(n,i){if(1&n&&(e.TgZ(0,"td",48),e.YNc(1,Bt,1,3,"span",49),e.YNc(2,Vt,1,3,"span",50),e.YNc(3,Gt,1,3,"span",51),e.YNc(4,zt,1,3,"span",52),e._uU(5),e.ALo(6,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","OPEN"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","SETTLED"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","ACCEPTED"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","CANCELED"===(null==t?null:t.state)),e.xp6(1),e.hij(" ",e.xi3(6,5,1e3*(null==t?null:t.creation_date),"dd/MMM/y HH:mm"),"")}}function Xt(n,i){1&n&&(e.TgZ(0,"th",57),e._uU(1," Date Settled "),e.qZA())}function $t(n,i){if(1&n&&(e.TgZ(0,"td",58),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(0!=+(null==t?null:t.settle_date)?e.xi3(2,1,1e3*+(null==t?null:t.settle_date),"dd/MMM/y HH:mm"):"-")}}function jt(n,i){1&n&&(e.TgZ(0,"th",47),e._uU(1," Memo "),e.qZA())}const Kt=function(n){return{"max-width":n}};function en(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"div",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Kt,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),e.xp6(2),e.Oqu(null==t?null:t.memo)}}function tn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1," Amount (Sats) "),e.qZA())}function nn(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.value)," ")}}function an(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1," Amount Settled (Sats) "),e.qZA())}function on(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.amt_paid_sat)," ")}}function sn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",63),e.TgZ(1,"div",64),e.TgZ(2,"mat-select",65),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}const ln=function(n){return{"pl-3":n}};function rn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",67),e.TgZ(1,"div",68),e.TgZ(2,"mat-select",69),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onInvoiceClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",66),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onRefreshInvoice(s)}),e._uU(7,"Refresh"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,ln,t.screenSize!==t.screenSizeEnum.XS))}}function cn(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No invoice available."),e.qZA())}function un(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting invoices..."),e.qZA())}function pn(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function mn(n,i){if(1&n&&(e.TgZ(0,"td",70),e.YNc(1,cn,2,0,"p",71),e.YNc(2,un,2,0,"p",71),e.YNc(3,pn,2,1,"p",71),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const _n=function(n){return{"display-none":n}};function dn(n,i){if(1&n&&e._UZ(0,"tr",72),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,_n,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function hn(n,i){1&n&&e._UZ(0,"tr",73)}function gn(n,i){1&n&&e._UZ(0,"tr",74)}const fn=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Cn=function(){return["no_invoice"]};function xn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.TgZ(2,"div",18),e._UZ(3,"fa-icon",19),e.TgZ(4,"span",20),e._uU(5,"Invoices History"),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",21),e.TgZ(7,"input",22),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().selFilter=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",23),e.YNc(9,Yt,1,0,"mat-progress-bar",24),e.TgZ(10,"table",25,26),e.ynx(12,27),e.YNc(13,Ht,2,0,"th",28),e.YNc(14,Wt,7,8,"td",29),e.BQk(),e.ynx(15,30),e.YNc(16,Xt,2,0,"th",31),e.YNc(17,$t,3,4,"td",32),e.BQk(),e.ynx(18,33),e.YNc(19,jt,2,0,"th",28),e.YNc(20,en,4,4,"td",29),e.BQk(),e.ynx(21,34),e.YNc(22,tn,2,0,"th",35),e.YNc(23,nn,4,3,"td",29),e.BQk(),e.ynx(24,36),e.YNc(25,an,2,0,"th",35),e.YNc(26,on,4,3,"td",29),e.BQk(),e.ynx(27,37),e.YNc(28,sn,6,0,"th",38),e.YNc(29,rn,8,3,"td",39),e.BQk(),e.ynx(30,40),e.YNc(31,mn,4,3,"td",41),e.BQk(),e.YNc(32,dn,1,3,"tr",42),e.YNc(33,hn,1,0,"tr",43),e.YNc(34,gn,1,0,"tr",44),e.qZA(),e.TgZ(35,"mat-paginator",45),e.NdJ("page",function(o){return e.CHM(t),e.oxw().onPageChange(o)}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("icon",t.faHistory),e.xp6(4),e.Q6J("ngModel",t.selFilter),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.invoices)("ngClass",e.VKq(13,fn,""!==t.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(15,Cn)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("length",t.totalInvoices)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Ie=(()=>{class n{constructor(t,a,o,s,u,g){this.logger=t,this.store=a,this.decimalPipe=o,this.commonService=s,this.datePipe=u,this.actions=g,this.calledFrom="transactions",this.faHistory=Z.qO$,this.selNode={},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.information={},this.flgSticky=!1,this.selFilter="",this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.firstOffset=-1,this.lastOffset=-1,this.totalInvoices=0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","value","amt_paid_sat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","memo","value","actions"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","settle_date","memo","value","amt_paid_sat","actions"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.Ef).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.totalInvoices=t.listInvoices.total_invoices,this.firstOffset=+t.listInvoices.first_index_offset,this.lastOffset=+t.listInvoices.last_index_offset,this.invoicesData=t.listInvoices.invoices||[],this.invoicesData.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoicesData),this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[3]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.SET_LOOKUP_LND&&this.invoicesData.length>0&&this.sort&&this.paginator&&t.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(t.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(t){const a=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:a,pageSize:this.pageSize,openModal:!0}})),this.resetData()}onInvoiceClick(t){this.store.dispatch((0,v.qR)({payload:{data:{invoice:t,newlyAdded:!1,component:Jt.v}}}))}onRefreshInvoice(t){this.store.dispatch((0,b.n7)({payload:{openSnackBar:!0,paymentHash:Buffer.from(t.r_hash.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}}))}updateInvoicesData(t){this.invoicesData=this.invoicesData.map(a=>a.r_hash===t.r_hash?t:a)}loadInvoicesTable(t){this.invoices=new r.by(t?[...t]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.invoices.filterPredicate=(a,o)=>((a.creation_date?this.datePipe.transform(new Date(1e3*a.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(a.settle_date?this.datePipe.transform(new Date(1e3*a.settle_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.applyFilter(),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onPageChange(t){let a=!0,o=this.lastOffset;this.pageSize=t.pageSize,0===t.pageIndex?(a=!0,o=0):t.pageIndext.previousPageIndex&&t.length>(t.pageIndex+1)*t.pageSize?(a=!0,o=this.firstOffset):t.length<=(t.pageIndex+1)*t.pageSize&&(a=!1,o=0),this.store.dispatch((0,b.WM)({payload:{num_max_invoices:t.pageSize,index_offset:o,reversed:a}}))}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,l.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch((0,v.qR)({payload:{data:{pageSize:this.pageSize,component:Pt}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(p.JJ),e.Y36(O.v),e.Y36(p.uU),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-invoices"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","tabindex","6","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","settle_date"],["mat-header-cell","","mat-sort-header","","class","pl-4",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","memo"],["matColumnDef","value"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot grey","matTooltip","Open","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Open","matTooltipPosition","right",1,"dot","grey",3,"ngClass"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Et,15,5,"form",1),e.YNc(2,Qt,3,0,"div",2),e.YNc(3,xn,36,16,"div",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf","home"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom))},directives:[_.xw,_.yH,_.Wh,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,f.bx,L.lW,M.BN,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.uU,p.JJ],styles:[".mat-column-memo[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-memo[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var V=h(5698),j=h(8104),H=h(1125),ne=h(1079);const Zn=["paymentReq"];function yn(n,i){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function Tn(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment request is required."),e.qZA())}function bn(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function An(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment amount is required."),e.qZA())}function vn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",1),e.TgZ(1,"input",29,30),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().paymentAmount=o})("change",function(o){return e.CHM(t),e.oxw().onAmountChange(o)}),e.qZA(),e.TgZ(3,"mat-hint"),e._uU(4,"It is a zero amount invoice, enter amount to be paid."),e.qZA(),e.YNc(5,An,2,0,"mat-error",11),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.paymentAmount),e.xp6(4),e.Q6J("ngIf",!t.paymentAmount)}}function wn(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",null==t?null:t.name," ")}}function qn(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.selFeeLimitType?null:t.selFeeLimitType.placeholder," is required.")}}function Sn(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu((null==t?null:t.remote_alias)||(null==t?null:t.chan_id))}}function Ln(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Channel not found in the list."),e.qZA())}function kn(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentError)}}function Fn(n,i){if(1&n&&(e.TgZ(0,"div",32),e._UZ(1,"fa-icon",33),e.YNc(2,kn,2,1,"span",11),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.paymentError)}}let Un=(()=>{class n{constructor(t,a,o,s,u,g,N){this.dialogRef=t,this.store=a,this.logger=o,this.commonService=s,this.decimalPipe=u,this.actions=g,this.dataService=N,this.faExclamationTriangle=Z.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new c.NI,this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.feeLimitTypes=l.Vc,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{this.selNode=o}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(o=>{this.activeChannels=o.channels.filter(s=>s.active),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(o)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(o=>o.type===l.uR.UPDATE_API_CALL_STATUS_LND||o.type===l.uR.SEND_PAYMENT_STATUS_LND)).subscribe(o=>{o.type===l.uR.SEND_PAYMENT_STATUS_LND&&this.dialogRef.close(),o.type===l.uR.UPDATE_API_CALL_STATUS_LND&&o.payload.status===l.Bn.ERROR&&"SendPayment"===o.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=o.payload.message)});let t="",a="";this.activeChannels=this.activeChannels.sort((o,s)=>(t=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"",a=s.remote_alias?s.remote_alias.toLowerCase():s.chan_id?s.chan_id.toLowerCase():"",ta?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,d.R)(this.unSubs[3])).subscribe(o=>{"string"==typeof o&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){return this.activeChannels.filter(t=>0===(t.remote_alias?t.remote_alias.toLowerCase():t.chan_id?t.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&t.local_balance>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0))}displayFn(t){return t&&t.remote_alias?t.remote_alias:t&&t.chan_id?t.chan_id:""}onSelectedChannelChanged(){if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const t=this.activeChannels.filter(a=>{const o=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"";return o.length===this.selectedChannelCtrl.value.length&&0===o.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")});t&&t.length>0?(this.selectedChannelCtrl.setValue(t[0]),this.selectedChannelCtrl.setErrors(null)):this.selectedChannelCtrl.setErrors({notfound:!0})}}onSendPayment(){if(this.selectedChannelCtrl.value&&"string"==typeof this.selectedChannelCtrl.value&&this.onSelectedChannelChanged(),!this.paymentRequest||this.zeroAmtInvoice&&(!this.paymentAmount||this.paymentAmount<=0)||"string"==typeof this.selectedChannelCtrl.value)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.onPaymentRequestEntry(this.paymentRequest)}sendPayment(){if(this.selFeeLimitType!==this.feeLimitTypes[0]&&!this.feeLimit)return!0;this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.zeroAmtInvoice=!1,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}}))):(this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:this.paymentAmount,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}})))}onAmountChange(t){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,V.q)(1)).subscribe({next:a=>{this.paymentDecoded=a,this.selectedChannelCtrl.setValue(null),this.onAdvancedPanelToggle(!0,!0),this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.filteredMinAmtActvChannels=this.filterChannels(),this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.zeroAmtInvoice=!1,this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats ("+o.symbol+" "+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHint="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"))},error:a=>{this.logger.error(a),this.paymentDecodedHint="ERROR: "+a.message,this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(t,a){if(t&&!a){const o=this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.remote_alias?this.selectedChannelCtrl.value.remote_alias:this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.chan_id?this.selectedChannelCtrl.value.chan_id:"";this.advancedTitle="Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(""!==o?" | First Outgoing Channel: "+o:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selectedChannelCtrl.setValue(null),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(w.yh),e.Y36(F.mQ),e.Y36(O.v),e.Y36(p.JJ),e.Y36(G.eX),e.Y36(j.D))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(t,a){if(1&t&&e.Gf(Zn,5),2&t){let o;e.iGM(o=e.CRH())&&(a.paymentReq=o.first)}},decls:43,vars:21,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","5","Placeholder","Fee Limits",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","26"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModel","placeholder","step","min","disabled","ngModelChange"],["fLmt","ngModel"],["fxFlex","40","fxLayoutAlign","start end"],["type","text","placeholder","First Outgoing Channel","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","id","sendBtn","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Send Payment"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.TgZ(11,"mat-form-field",1),e.TgZ(12,"textarea",9,10),e.NdJ("ngModelChange",function(s){return a.onPaymentRequestEntry(s)})("matTextareaAutosize",function(){return!0}),e.qZA(),e.YNc(14,yn,2,1,"mat-hint",11),e.YNc(15,Tn,2,0,"mat-error",11),e.YNc(16,bn,2,1,"mat-error",11),e.qZA(),e.YNc(17,vn,6,2,"mat-form-field",12),e.TgZ(18,"mat-expansion-panel",13),e.NdJ("closed",function(){return a.onAdvancedPanelToggle(!0,!1)})("opened",function(){return a.onAdvancedPanelToggle(!1,!1)}),e.TgZ(19,"mat-expansion-panel-header"),e.TgZ(20,"mat-panel-title"),e.TgZ(21,"span"),e._uU(22),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",14),e.TgZ(24,"mat-form-field",15),e.TgZ(25,"mat-select",16),e.NdJ("valueChange",function(s){return a.selFeeLimitType=s}),e.YNc(26,wn,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(27,"mat-form-field",18),e.TgZ(28,"input",19,20),e.NdJ("ngModelChange",function(s){return a.feeLimit=s}),e.qZA(),e.YNc(30,qn,2,1,"mat-error",11),e.qZA(),e.TgZ(31,"mat-form-field",21),e._UZ(32,"input",22),e.TgZ(33,"mat-autocomplete",23,24),e.NdJ("optionSelected",function(){return a.onSelectedChannelChanged()}),e.YNc(35,Sn,2,2,"mat-option",17),e.qZA(),e.YNc(36,Ln,2,0,"mat-error",11),e.qZA(),e.qZA(),e.qZA(),e.YNc(37,Fn,3,2,"div",25),e.TgZ(38,"div",26),e.TgZ(39,"button",27),e.NdJ("click",function(){return a.resetData()}),e._uU(40,"Clear Fields"),e.qZA(),e.TgZ(41,"button",28),e.NdJ("click",function(){return a.onSendPayment()}),e._uU(42,"Send Payment"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(13),s=e.MAs(34);e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.paymentRequest),e.xp6(2),e.Q6J("ngIf",a.paymentRequest&&""!==a.paymentDecodedHint),e.xp6(1),e.Q6J("ngIf",!a.paymentRequest),e.xp6(1),e.Q6J("ngIf",null==o.errors?null:o.errors.decodeError),e.xp6(1),e.Q6J("ngIf",a.zeroAmtInvoice),e.xp6(5),e.Oqu(a.advancedTitle),e.xp6(3),e.Q6J("value",a.selFeeLimitType),e.xp6(1),e.Q6J("ngForOf",a.feeLimitTypes),e.xp6(2),e.Q6J("ngModel",a.feeLimit)("placeholder",null==a.selFeeLimitType?null:a.selFeeLimitType.placeholder)("step",1)("min",0)("disabled",a.selFeeLimitType===a.feeLimitTypes[0]),e.xp6(2),e.Q6J("ngIf",a.selFeeLimitType!==a.feeLimitTypes[0]&&!a.feeLimit),e.xp6(2),e.Q6J("formControl",a.selectedChannelCtrl)("matAutocomplete",s),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",a.filteredMinAmtActvChannels),e.xp6(1),e.Q6J("ngIf",null==a.selectedChannelCtrl.errors?null:a.selectedChannelCtrl.errors.notfound),e.xp6(1),e.Q6J("ngIf",""!==a.paymentError)}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,H.ib,H.yz,H.yK,R.gD,p.sg,c.wV,c.qQ,$.q,ne.ZL,c.oH,ne.XC,f.bx,f.TO,Y.ey,M.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var oe=h(3093),ee=h(711);const Nn=["sendPaymentForm"];function On(n,i){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function Rn(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment request is required."),e.qZA())}function In(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",4,5),e.TgZ(2,"mat-form-field",6),e.TgZ(3,"textarea",7,8),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().onPaymentRequestEntry(o)})("matTextareaAutosize",function(){return!0}),e.qZA(),e.YNc(5,On,2,1,"mat-hint",9),e.YNc(6,Rn,2,0,"mat-error",9),e.qZA(),e.TgZ(7,"div",10),e.TgZ(8,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(9,"Clear Field"),e.qZA(),e.TgZ(10,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSendPayment()}),e._uU(11,"Send Payment"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.paymentRequest),e.xp6(2),e.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),e.xp6(1),e.Q6J("ngIf",!t.paymentRequest)}}function Mn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",13),e.TgZ(1,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().openSendPaymentModal()}),e._uU(2,"Send Payment"),e.qZA(),e.qZA()}}function Dn(n,i){1&n&&e._UZ(0,"mat-progress-bar",52)}function Pn(n,i){1&n&&(e.TgZ(0,"th",53),e._uU(1,"Creation Date"),e.qZA())}const ae=function(n){return{"mr-0":n}};function Jn(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function En(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function Qn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.YNc(1,Jn,1,3,"span",55),e.YNc(2,En,1,3,"span",56),e._uU(3),e.ALo(4,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","SUCCEEDED"===(null==t?null:t.status)),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==(null==t?null:t.status)),e.xp6(1),e.hij(" ",e.xi3(4,3,1e3*(null==t?null:t.creation_date),"dd/MMM/y HH:mm")," ")}}function Yn(n,i){1&n&&(e.TgZ(0,"th",53),e._uU(1,"Payment Hash"),e.qZA())}const Me=function(n){return{"max-width":n}};function Hn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(2),e.Oqu(null==t?null:t.payment_hash)}}function Bn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"Fee (Sats)"),e.qZA())}function Vn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==t?null:t.fee))}}function Gn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"Value (Sats)"),e.qZA())}function zn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==t?null:t.value))}}function Wn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"#Hops"),e.qZA())}function Xn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu((null==t||null==t.htlcs[0]||null==t.htlcs[0].route||null==t.htlcs[0].route.hops?null:t.htlcs[0].route.hops.length)||0)}}function $n(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",63),e.TgZ(1,"div",64),e.TgZ(2,"mat-select",65),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function jn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",67),e.TgZ(1,"button",68),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onPaymentClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Kn(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No payment available."),e.qZA())}function ea(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting payments..."),e.qZA())}function ta(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function na(n,i){if(1&n&&(e.TgZ(0,"td",69),e.YNc(1,Kn,2,0,"p",9),e.YNc(2,ea,2,0,"p",9),e.YNc(3,ta,2,1,"p",9),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function aa(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function ia(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function oa(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(5);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function sa(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(5);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function la(n,i){if(1&n&&(e.TgZ(0,"span",72),e.YNc(1,oa,1,3,"span",55),e.YNc(2,sa,1,3,"span",56),e._uU(3),e.ALo(4,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","SUCCEEDED"===t.status),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==t.status),e.xp6(1),e.hij(" ",e.xi3(4,3,1e3*t.attempt_time,"dd/MMM/y HH:mm")," ")}}function ra(n,i){if(1&n&&(e.ynx(0),e.YNc(1,la,5,6,"span",71),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ca(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",70),e.YNc(2,aa,1,3,"span",55),e.YNc(3,ia,1,3,"span",56),e._uU(4),e.qZA(),e.YNc(5,ra,2,1,"ng-container",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Q6J("ngIf","SUCCEEDED"===(null==t?null:t.status)),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==(null==t?null:t.status)),e.xp6(1),e.hij(" Total Attempts: ",null==t||null==t.htlcs?null:t.htlcs.length," "),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function ua(n,i){if(1&n&&(e.TgZ(0,"span",70),e._uU(1),e.qZA()),2&n){const t=i.index;e.xp6(1),e.hij(" HTLC ",t+1," ")}}function pa(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ua,2,1,"span",73),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ma(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,pa,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(3,Me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(2),e.Oqu(null==t?null:t.payment_hash),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function _a(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t.route?null:t.route.total_fees,"1.0-0")," ")}}function da(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,_a,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ha(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2),e.ALo(3,"number"),e.qZA(),e.YNc(4,da,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.xi3(3,2,null==t?null:t.fee,"1.0-0")),e.xp6(2),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function ga(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t.route?null:t.route.total_amt,"1.0-0")," ")}}function fa(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ga,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function Ca(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2),e.ALo(3,"number"),e.qZA(),e.YNc(4,fa,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.xi3(3,2,null==t?null:t.value,"1.0-0")),e.xp6(2),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function xa(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,(null==t.route||null==t.route.hops?null:t.route.hops.length)||0,"1.0-0")," ")}}function Za(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,xa,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ya(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2,"-"),e.qZA(),e.YNc(3,Za,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(3),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function Ta(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",62),e.TgZ(1,"button",79),e.NdJ("click",function(){const s=e.CHM(t).$implicit,u=e.oxw(2).$implicit;return e.oxw(2).onHTLCClick(s,u)}),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=i.index;e.xp6(2),e.hij("View ",t+1,"")}}function ba(n,i){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Ta,3,1,"div",78),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function Aa(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",76),e.TgZ(1,"span",62),e.TgZ(2,"button",77),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return s.is_expanded=!(null!=s&&s.is_expanded)}),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,ba,2,1,"div",9),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(3),e.Oqu(null!=t&&t.is_expanded?"Hide":"Show"),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function va(n,i){1&n&&e._UZ(0,"tr",80)}const wa=function(n){return{"display-none":n}};function qa(n,i){if(1&n&&e._UZ(0,"tr",81),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,wa,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function Sa(n,i){1&n&&e._UZ(0,"tr",82)}function La(n,i){1&n&&e._UZ(0,"tr",80)}const ka=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Fa=function(){return["no_payment"]};function Ua(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"div",16),e.TgZ(2,"div",17),e._UZ(3,"fa-icon",18),e.TgZ(4,"span",19),e._uU(5,"Payments History"),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",20),e.TgZ(7,"input",21),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().selFilter=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",22),e.TgZ(9,"div",23),e.YNc(10,Dn,1,0,"mat-progress-bar",24),e.TgZ(11,"table",25,26),e.ynx(13,27),e.YNc(14,Pn,2,0,"th",28),e.YNc(15,Qn,5,6,"td",29),e.BQk(),e.ynx(16,30),e.YNc(17,Yn,2,0,"th",28),e.YNc(18,Hn,4,4,"td",29),e.BQk(),e.ynx(19,31),e.YNc(20,Bn,2,0,"th",32),e.YNc(21,Vn,4,3,"td",29),e.BQk(),e.ynx(22,33),e.YNc(23,Gn,2,0,"th",32),e.YNc(24,zn,4,3,"td",29),e.BQk(),e.ynx(25,34),e.YNc(26,Wn,2,0,"th",32),e.YNc(27,Xn,3,1,"td",29),e.BQk(),e.ynx(28,35),e.YNc(29,$n,6,0,"th",36),e.YNc(30,jn,3,0,"td",37),e.BQk(),e.ynx(31,38),e.YNc(32,na,4,3,"td",39),e.BQk(),e.ynx(33,40),e.YNc(34,ca,6,4,"td",29),e.BQk(),e.ynx(35,41),e.YNc(36,ma,5,5,"td",29),e.BQk(),e.ynx(37,42),e.YNc(38,ha,5,5,"td",29),e.BQk(),e.ynx(39,43),e.YNc(40,Ca,5,5,"td",29),e.BQk(),e.ynx(41,44),e.YNc(42,ya,4,1,"td",29),e.BQk(),e.ynx(43,45),e.YNc(44,Aa,5,2,"td",46),e.BQk(),e.YNc(45,va,1,0,"tr",47),e.YNc(46,qa,1,3,"tr",48),e.YNc(47,Sa,1,0,"tr",49),e.YNc(48,La,1,0,"tr",50),e.qZA(),e.TgZ(49,"mat-paginator",51),e.NdJ("page",function(o){return e.CHM(t),e.oxw().onPageChange(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("icon",t.faHistory),e.xp6(4),e.Q6J("ngModel",t.selFilter),e.xp6(3),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.payments)("ngClass",e.VKq(15,ka,""!==t.errorMessage)),e.xp6(34),e.Q6J("matRowDefColumns",t.htlcColumns)("matRowDefWhen",t.is_group),e.xp6(1),e.Q6J("matFooterRowDef",e.DdM(17,Fa)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("length",t.totalPayments)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let De=(()=>{class n{constructor(t,a,o,s,u,g,N,x){this.logger=t,this.commonService=a,this.dataService=o,this.store=s,this.rtlEffects=u,this.lndEffects=g,this.decimalPipe=N,this.datePipe=x,this.calledFrom="transactions",this.faHistory=Z.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.peers=[],this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.firstOffset=-1,this.lastOffset=-1,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","actions"],this.htlcColumns=["groupTotal","groupFee","groupAction"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupFee","groupValue","groupHops","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","payment_hash","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupHash","groupFee","groupValue","groupHops","groupAction"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(C.PP).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.paymentJSONArr=t.listPayments.payments||[],this.totalPayments=this.paymentJSONArr.length,this.firstOffset=+t.listPayments.first_index_offset,this.lastOffset=+t.listPayments.last_index_offset,this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize)),this.logger.info(t)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize))}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,V.q)(1)).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.timestamp?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:l.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(a=>{a&&(this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:l.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:l.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(o=>{o&&(this.paymentDecoded.num_satoshis=o[0].inputValue,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:o[0].inputValue,fromDialog:!1}})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch((0,v.qR)({payload:{data:{component:Un}}}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,V.q)(1)).subscribe(a=>{this.paymentDecoded=a,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[5])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}onPageChange(t){let a=!0,o=this.lastOffset;this.pageSize=t.pageSize,0===t.pageIndex?(a=!0,o=0):t.pageIndext.previousPageIndex&&t.length>(t.pageIndex+1)*t.pageSize?(a=!0,o=this.firstOffset):t.length<=(t.pageIndex+1)*t.pageSize&&(a=!1,o=0);const s=t.pageIndex*this.pageSize;this.loadPaymentsTable(this.paymentJSONArr.slice(s,s+this.pageSize))}is_group(t,a){return a.htlcs&&a.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(t){const a=this;return t.reduce((o,s)=>{const u=a.peers.find(g=>g.pub_key===s.pub_key);return u&&u.alias?o.push("
Channel: "+u.alias.padEnd(20)+"			Amount (Sats): "+a.decimalPipe.transform(s.amt_to_forward)+"
"):a.dataService.getAliasesFromPubkeys(s.pub_key,!1).pipe((0,d.R)(a.unSubs[6])).subscribe(g=>{o.push("
Channel: "+(g.node&&g.node.alias?g.node.alias.padEnd(20):s.pub_key.substring(0,17)+"...")+"			Amount (Sats): "+a.decimalPipe.transform(s.amt_to_forward)+"
")}),o},[])}onHTLCClick(t,a){a.payment_request&&""!==a.payment_request.trim()?this.dataService.decodePayment(a.payment_request,!1).pipe((0,V.q)(1)).subscribe({next:o=>{setTimeout(()=>{this.showHTLCView(t,a,o)},0)},error:o=>{this.showHTLCView(t,a,null)}}):this.showHTLCView(t,a,null)}showHTLCView(t,a,o){const s=[[{key:"payment_hash",value:a.payment_hash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"preimage",value:t.preimage,title:"Preimage",width:100,type:l.Gi.STRING}],[{key:"payment_request",value:a.payment_request,title:"Payment Request",width:100,type:l.Gi.STRING}],[{key:"status",value:t.status,title:"Status",width:33,type:l.Gi.STRING},{key:"attempt_time_ns",value:+t.attempt_time_ns/1e9,title:"Attempt Time",width:33,type:l.Gi.DATE_TIME},{key:"resolve_time_ns",value:+t.resolve_time_ns/1e9,title:"Resolve Time",width:34,type:l.Gi.DATE_TIME}],[{key:"total_amt",value:t.route.total_amt,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER},{key:"total_fees",value:t.route.total_fees,title:"Fee (Sats)",width:33,type:l.Gi.NUMBER},{key:"total_time_lock",value:t.route.total_time_lock,title:"Total Time Lock",width:34,type:l.Gi.NUMBER}],[{key:"hops",value:this.getHopDetails(t.route.hops),title:"Hops",width:100,type:l.Gi.ARRAY}]];o&&o.description&&""!==o.description&&s.splice(3,0,[{key:"description",value:o.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"HTLC Information",message:s,scrollable:t.route&&t.route.hops&&t.route.hops.length>1}}}))}onPaymentClick(t){if(t.htlcs&&t.htlcs[0]&&t.htlcs[0].route&&t.htlcs[0].route.hops&&t.htlcs[0].route.hops.length>0){const a=t.htlcs[0].route.hops.reduce((o,s)=>""===o?s.pub_key:o+","+s.pub_key,"");this.dataService.getAliasesFromPubkeys(a,!0).pipe((0,d.R)(this.unSubs[7])).subscribe(o=>{this.showPaymentView(t,o.reduce((s,u)=>""===s?u:s+"\n"+u,""))})}else this.showPaymentView(t,"")}showPaymentView(t,a){const o=[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"payment_request",value:t.payment_request,title:"Payment Request",width:100,type:l.Gi.STRING}],[{key:"status",value:t.status,title:"Status",width:50,type:l.Gi.STRING},{key:"creation_date",value:t.creation_date,title:"Creation Date",width:50,type:l.Gi.DATE_TIME}],[{key:"value_msat",value:t.value_msat,title:"Value (mSats)",width:50,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:50,type:l.Gi.NUMBER}],[{key:"path",value:a,title:"Path",width:100,type:l.Gi.STRING}]];t.payment_request&&""!==t.payment_request.trim()?this.dataService.decodePayment(t.payment_request,!1).pipe((0,V.q)(1)).subscribe(s=>{s&&s.description&&""!==s.description&&o.splice(3,0,[{key:"description",value:s.description,title:"Description",width:100,type:l.Gi.STRING}]),setTimeout(()=>{this.openPaymentAlert(o,t.htlcs&&t.htlcs[0]&&t.htlcs[0].route&&t.htlcs[0].route.hops&&t.htlcs[0].route.hops.length>1)},0)}):this.openPaymentAlert(o,!1)}openPaymentAlert(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Information",message:t,scrollable:a}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new r.by(t?[...t]:[]),this.payments.sortingDataAccessor=(a,o)=>"hops"===o?a.htlcs.length&&a.htlcs[0]&&a.htlcs[0].route&&a.htlcs[0].route.hops&&a.htlcs[0].route.hops.length?a.htlcs[0].route.hops.length:0:a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.payments.sort=this.sort,this.payments.filterPredicate=(a,o)=>((a.creation_date?this.datePipe.transform(new Date(1e3*a.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const t=JSON.parse(JSON.stringify(this.payments.data)),a=t.reduce((o,s)=>(s.payment_request&&""!==s.payment_request.trim()&&(o=""===o?s.payment_request:o+","+s.payment_request),o),"");this.dataService.decodePayments(a).pipe((0,d.R)(this.unSubs[8])).subscribe(o=>{let s=0;o.forEach((g,N)=>{if(g){for(;t[N+s].payment_hash!==g.payment_hash;)s+=1;t[N+s].description=g.description}});const u=t.reduce((g,N)=>g.concat(N),[]);this.commonService.downloadFile(u,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(j.D),e.Y36(w.yh),e.Y36(oe.V),e.Y36(ee.l),e.Y36(p.JJ),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-payments"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Nn,5),e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-2",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-2"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,In,12,3,"form",1),e.YNc(2,Mn,3,0,"div",2),e.YNc(3,Ua,50,18,"div",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf","home"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom))},directives:[_.xw,_.yH,_.Wh,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,c.Q7,Q.$V,c.JJ,c.On,L.lW,f.bx,f.TO,M.BN,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.nj,r.Ke,r.as,S.NW,P.pW,r.ge,A.nU,r.ev,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,p.sg,r.Gk,r.Q2,r.XQ],pipes:[p.uU,p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),n})();function Na(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA()),2&n){e.oxw();const t=e.MAs(11);e.Q6J("matMenuTriggerFor",t)}}function Oa(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw().$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ra(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).onsortChannelsBy()}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw(3);e.xp6(1),e.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function Ia(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Ma(n,i){if(1&n&&e._UZ(0,"rtl-node-info",29),2&n){const t=e.oxw(3);e.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Da(n,i){if(1&n&&e._UZ(0,"rtl-balances-info",30),2&n){const t=e.oxw(3);e.Q6J("balances",t.balances)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[2])}}function Pa(n,i){if(1&n&&e._UZ(0,"rtl-channel-capacity-info",31),2&n){const t=e.oxw(3);e.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("allChannels",t.allChannelsCapacity)("errorMessage",t.errorMessages[3])}}function Ja(n,i){if(1&n&&e._UZ(0,"rtl-fee-info",32),2&n){const t=e.oxw(3);e.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1])}}function Ea(n,i){if(1&n&&e._UZ(0,"rtl-channel-status-info",33),2&n){const t=e.oxw(3);e.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[4])}}function Qa(n,i){1&n&&(e.TgZ(0,"h3"),e._uU(1,"Error! Unable to find information!"),e.qZA())}const Pe=function(n){return{"dashboard-card-content":!0,"error-border":n}};function Ya(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",8),e.TgZ(1,"mat-card",9),e.TgZ(2,"mat-card-header"),e.TgZ(3,"mat-card-title",10),e.TgZ(4,"div"),e._UZ(5,"fa-icon",11),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.YNc(9,Na,3,1,"button",12),e.TgZ(10,"mat-menu",13,14),e.YNc(12,Oa,2,1,"button",15),e.YNc(13,Ra,2,1,"button",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-card-content",17),e.YNc(15,Ia,1,0,"mat-progress-bar",18),e.TgZ(16,"div",19),e.YNc(17,Ma,1,2,"rtl-node-info",20),e.YNc(18,Da,1,2,"rtl-balances-info",21),e.YNc(19,Pa,1,4,"rtl-channel-capacity-info",22),e.YNc(20,Ja,1,2,"rtl-fee-info",23),e.YNc(21,Ea,1,2,"rtl-channel-status-info",24),e.YNc(22,Qa,2,0,"h3",25),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(5),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngIf",t.links[0]),e.xp6(3),e.Q6J("ngForOf",t.goToOptions),e.xp6(1),e.Q6J("ngIf","capacity"===t.id),e.xp6(1),e.s9C("fxFlex","node"===t.id||"balance"===t.id?70:"fee"===t.id||"status"===t.id?78:90),e.Q6J("ngClass",e.VKq(16,Pe,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.ERROR)||"capacity"===t.id&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.ERROR||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.ERROR))),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.INITIATED||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.INITIATED)),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","balance"),e.xp6(1),e.Q6J("ngSwitchCase","capacity"),e.xp6(1),e.Q6J("ngSwitchCase","fee"),e.xp6(1),e.Q6J("ngSwitchCase","status")}}function Ha(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e._UZ(2,"fa-icon",4),e.TgZ(3,"span",5),e._uU(4),e.qZA(),e.qZA(),e.TgZ(5,"mat-grid-list",6),e.YNc(6,Ya,23,18,"mat-grid-tile",7),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("icon",t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.ERROR?t.faFrown:t.faSmile),e.xp6(2),e.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."),e.xp6(1),e.Q6J("rowHeight",t.operatorCardHeight),e.xp6(1),e.Q6J("ngForOf",t.operatorCards)}}function Ba(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA()),2&n){e.oxw();const t=e.MAs(9);e.Q6J("matMenuTriggerFor",t)}}function Va(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw(2).$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ga(n,i){if(1&n&&(e.TgZ(0,"mat-card-header"),e.TgZ(1,"mat-card-title",10),e.TgZ(2,"div"),e._UZ(3,"fa-icon",11),e.TgZ(4,"span"),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"div"),e.YNc(7,Ba,3,1,"button",12),e.TgZ(8,"mat-menu",13,43),e.YNc(10,Va,2,1,"button",15),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngIf",t.links[0]),e.xp6(3),e.Q6J("ngForOf",t.goToOptions)}}function za(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Wa(n,i){if(1&n&&e._UZ(0,"rtl-node-info",44),2&n){const t=e.oxw(3);e.Q6J("information",t.information)}}function Xa(n,i){if(1&n&&e._UZ(0,"rtl-balances-info",30),2&n){const t=e.oxw(3);e.Q6J("balances",t.balances)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[2])}}function $a(n,i){if(1&n&&e._UZ(0,"rtl-channel-liquidity-info",45),2&n){const t=e.oxw(3);e.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("allChannels",t.allInboundChannels)("errorMessage",t.errorMessages[3])}}function ja(n,i){if(1&n&&e._UZ(0,"rtl-channel-liquidity-info",45),2&n){const t=e.oxw(3);e.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("allChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[3])}}function Ka(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw(3).$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function ei(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA(),e.TgZ(3,"mat-menu",13,53),e.YNc(5,Ka,2,1,"button",15),e.qZA()),2&n){const t=e.MAs(4),a=e.oxw(2).$implicit;e.Q6J("matMenuTriggerFor",t),e.xp6(5),e.Q6J("ngForOf",a.goToOptions)}}function ti(n,i){1&n&&(e.TgZ(0,"span",46),e.TgZ(1,"mat-tab-group",47),e.TgZ(2,"mat-tab",48),e._UZ(3,"rtl-lightning-invoices",49),e.qZA(),e.TgZ(4,"mat-tab",50),e._UZ(5,"rtl-lightning-payments",49),e.qZA(),e.TgZ(6,"mat-tab",51),e.YNc(7,ei,6,2,"ng-template",52),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.xp6(3),e.Q6J("calledFrom","home"),e.xp6(2),e.Q6J("calledFrom","home"),e.xp6(1),e.Q6J("disabled",!0))}function ni(n,i){1&n&&(e.TgZ(0,"h3"),e._uU(1,"Error! Unable to find information!"),e.qZA())}const ai=function(n){return{"p-0":n}};function ii(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",8),e.TgZ(1,"mat-card",36),e.YNc(2,Ga,11,4,"mat-card-header",37),e.TgZ(3,"mat-card-content",38),e.YNc(4,za,1,0,"mat-progress-bar",18),e.TgZ(5,"div",39),e.YNc(6,Wa,1,1,"rtl-node-info",40),e.YNc(7,Xa,1,2,"rtl-balances-info",21),e.YNc(8,$a,1,4,"rtl-channel-liquidity-info",41),e.YNc(9,ja,1,4,"rtl-channel-liquidity-info",41),e.YNc(10,ti,8,3,"span",42),e.YNc(11,ni,2,0,"h3",25),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(1),e.Q6J("ngClass",e.VKq(13,ai,"transactions"===t.id)),e.xp6(1),e.Q6J("ngIf","transactions"!==t.id),e.xp6(1),e.s9C("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),e.Q6J("ngClass",e.VKq(15,Pe,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","balance"),e.xp6(1),e.Q6J("ngSwitchCase","inboundLiq"),e.xp6(1),e.Q6J("ngSwitchCase","outboundLiq"),e.xp6(1),e.Q6J("ngSwitchCase","transactions")}}function oi(n,i){if(1&n&&(e.TgZ(0,"div",34),e._UZ(1,"fa-icon",4),e.TgZ(2,"span",5),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"mat-grid-list",35),e.YNc(5,ii,12,17,"mat-grid-tile",7),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faSmile),e.xp6(2),e.hij("Welcome ",t.information.alias,"! Your node is up and running."),e.xp6(1),e.Q6J("rowHeight",t.merchantCardHeight),e.xp6(1),e.Q6J("ngForOf",t.merchantCards)}}let si=(()=>{class n{constructor(t,a,o,s,u){switch(this.logger=t,this.store=a,this.actions=o,this.commonService=s,this.router=u,this.faSmile=Le.I3,this.faFrown=Le.Kf,this.faAngleDoubleDown=Z.Sbq,this.faAngleDoubleUp=Z.Vfw,this.faChartPie=Z.OS1,this.faBolt=Z.BDt,this.faServer=Z.xf3,this.faNetworkWired=Z.kXW,this.flgChildInfoUpdated=!1,this.userPersonaEnum=l.ol,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=l.cu,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case l.cu.XS:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:6},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}];break;case l.cu.SM:case l.cu.MD:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}];break;default:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}]}}ngOnInit(){this.store.select(C.bx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apiCallStatus,this.apiCallStatusNodeInfo.status===l.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.store.select(C.JG).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===l.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(C.qU).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=t.apiCallStatus,this.apiCallStatusBlockchainBalance.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message),this.balances.onchain=+t.blockchainBalance.total_balance>=0?+t.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=t.apiCallStatus,this.apiCallStatusPendingChannels.status===l.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message),this.channelsStatus.pending={num_channels:t.pendingChannelsSummary.open.num_channels,capacity:t.pendingChannelsSummary.open.limbo_balance},this.channelsStatus.closing={num_channels:t.pendingChannelsSummary.closing.num_channels+t.pendingChannelsSummary.force_closing.num_channels+t.pendingChannelsSummary.waiting_close.num_channels,capacity:t.pendingChannelsSummary.total_limbo_balance}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[3]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message);const a=t.lightningBalance&&t.lightningBalance.local?+t.lightningBalance.local:0,o=t.lightningBalance&&t.lightningBalance.remote?+t.lightningBalance.remote:0;this.channelBalances={localBalance:a,remoteBalance:o,balancedness:+(1-Math.abs((a-o)/(a+o))).toFixed(3)},this.balances.lightning=t.lightningBalance.local,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=t.channelsSummary.active.num_channels,this.inactiveChannels=t.channelsSummary.inactive.num_channels,this.channelsStatus.active=t.channelsSummary.active,this.channelsStatus.inactive=t.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=t.channels.filter(u=>!0===u.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(u=>u.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(u=>u.local_balance>0),"local_balance"))),this.allChannels.forEach(u=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +u.remote_balance,this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +u.local_balance}),this.flgChildInfoUpdated=this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum>=0,this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[5]),(0,E.h)(t=>t.type===l.uR.FETCH_FEES_LND||t.type===l.uR.SET_FEES_LND)).subscribe(t=>{t.type===l.uR.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),t.type===l.uR.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(t){"inactive"===t?this.router.navigateByUrl("/lnd/connections",{state:{filter:t}}):this.router.navigateByUrl("/lnd/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((t,a)=>{const o=+t.local_balance+ +t.remote_balance,s=+a.local_balance+ +a.remote_balance;return o>s?-1:o{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(O.v),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-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","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",1,"w-100","dashboard-tabs-group"],["label","Receive"],[3,"calledFrom"],["label","Pay"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(t,a){if(1&t&&(e.YNc(0,Ha,7,4,"div",0),e.YNc(1,oi,6,4,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf",(null==a.selNode?null:a.selNode.userPersona)===a.userPersonaEnum.OPERATOR)("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,M.BN,ce.Il,p.sg,ce.DX,T.a8,_.yH,T.dk,T.n5,he.VK,T.dn,p.mk,q.oO,p.RF,p.n9,p.ED,L.lW,he.p6,K.Hw,he.OP,P.pW,Fe,rt,gt,Ue,Ne,Rt,Q.$V,D.SP,D.uX,Ie,De,D.uD],styles:[""]}),n})();var ge=h(1203),fe=h(7544);function li(n,i){if(1&n&&(e.TgZ(0,"span",10),e._uU(1,"Channels"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.activeChannels)}}function ri(n,i){if(1&n&&(e.TgZ(0,"span",10),e._uU(1,"Peers"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.activePeers)}}let ci=(()=>{class n{constructor(t,a,o){this.store=t,this.logger=a,this.router=o,this.selNode={},this.activePeers=0,this.activeChannels=0,this.faUsers=Z.FVb,this.faChartPie=Z.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 m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t instanceof y.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(a=>a.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.logger.info(t)}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.activeChannels=t.channelsSummary.active.num_channels,this.logger.info(t)}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.balances=[{title:"Total Balance",dataValue:t.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:t.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:t.blockchainBalance.unconfirmed_balance}],this.logger.info(t)})}onSelectedTabChange(t){this.router.navigateByUrl("/lnd/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(F.mQ),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"On-chain Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"Connections"),e.qZA(),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"mat-tab-group",7),e.NdJ("selectedIndexChange",function(s){return a.activeLink=s})("selectedTabChange",function(s){return a.onSelectedTabChange(s)}),e.TgZ(16,"mat-tab"),e.YNc(17,li,2,1,"ng-template",8),e.qZA(),e.TgZ(18,"mat-tab"),e.YNc(19,ri,2,1,"ng-template",8),e.qZA(),e.qZA(),e.TgZ(20,"div",9),e._UZ(21,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faUsers),e.xp6(6),e.Q6J("selectedIndex",a.activeLink))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.SP,D.uX,D.uD,_.yH,y.lC,fe.k],styles:[""]}),n})();var Ce=h(8675),Je=h(4004),Ee=h(9843);const ui=["form"];function pi(n,i){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t.alias?t.alias:t.pub_key?t.pub_key:"")}}function mi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Peer alias is required."),e.qZA())}function _i(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Peer not found in the list."),e.qZA())}function di(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",34),e._UZ(1,"input",35),e.TgZ(2,"mat-autocomplete",36,37),e.NdJ("optionSelected",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.YNc(4,pi,2,2,"mat-option",24),e.ALo(5,"async"),e.qZA(),e.YNc(6,mi,2,0,"mat-error",17),e.YNc(7,_i,2,0,"mat-error",17),e.qZA()}if(2&n){const t=e.MAs(3),a=e.oxw();e.xp6(1),e.Q6J("formControl",a.selectedPeer)("matAutocomplete",t),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(5,6,a.filteredPeers)),e.xp6(2),e.Q6J("ngIf",null==a.selectedPeer.errors?null:a.selectedPeer.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.selectedPeer.errors?null:a.selectedPeer.errors.notfound)}}function hi(n,i){1&n&&e.GkF(0)}function gi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function fi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function Ci(n,i){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function xi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("","1"===t.selTransType?"Target Confirmation Blocks":"Fee"," is required.")}}function Zi(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.channelConnectionError)}}function yi(n,i){if(1&n&&(e.TgZ(0,"div",39),e._UZ(1,"fa-icon",40),e.YNc(2,Zi,2,1,"span",17),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.channelConnectionError)}}function Ti(n,i){if(1&n&&(e.TgZ(0,"mat-expansion-panel",42),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e.TgZ(3,"span"),e._uU(4,"Peer: \xa0"),e.qZA(),e.TgZ(5,"strong",43),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",9),e.TgZ(8,"div",44),e.TgZ(9,"div",34),e.TgZ(10,"h4",45),e._uU(11,"Pubkey"),e.qZA(),e.TgZ(12,"span",46),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e._UZ(14,"mat-divider",47),e.TgZ(15,"div",44),e.TgZ(16,"div",48),e.TgZ(17,"h4",45),e._uU(18,"Address"),e.qZA(),e.TgZ(19,"span",49),e._uU(20),e.qZA(),e.qZA(),e.TgZ(21,"div",48),e.TgZ(22,"h4",45),e._uU(23,"Inbound"),e.qZA(),e.TgZ(24,"span",49),e._uU(25),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(6),e.Oqu((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.address)),e.xp6(7),e.Oqu(t.peer.pub_key),e.xp6(7),e.Oqu(null==t.peer?null:t.peer.address),e.xp6(5),e.Oqu(null!=t.peer&&t.peer.inbound?"True":"False")}}function bi(n,i){if(1&n&&e.YNc(0,Ti,26,4,"mat-expansion-panel",41),2&n){const t=e.oxw();e.Q6J("ngIf",t.peer)}}let Qe=(()=>{class n{constructor(t,a,o,s){this.dialogRef=t,this.data=a,this.store=o,this.actions=s,this.selectedPeer=new c.NI,this.amount=new c.NI,this.faExclamationTriangle=Z.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=l.Dr,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(o=>o.type===l.uR.UPDATE_API_CALL_STATUS_LND||o.type===l.uR.FETCH_CHANNELS_LND)).subscribe(o=>{o.type===l.uR.UPDATE_API_CALL_STATUS_LND&&o.payload.status===l.Bn.ERROR&&"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message),o.type===l.uR.FETCH_CHANNELS_LND&&this.dialogRef.close()});let t="",a="";this.sortedPeers=this.peers.sort((o,s)=>(t=o.alias?o.alias.toLowerCase():o.pub_key?o.pub_key.toLowerCase():"",a=s.alias?s.alias.toLowerCase():o.pub_key.toLowerCase(),ta?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,d.R)(this.unSubs[1]),(0,Ce.O)(""),(0,Je.U)(o=>"string"==typeof o?o:o.alias?o.alias:o.pub_key),(0,Je.U)(o=>o?this.filterPeers(o):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(a=>0===a.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.pub_key?t.pub_key:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:null,"string"==typeof this.selectedPeer.value){const t=this.peers.filter(a=>a.alias.length===this.selectedPeer.value.length&&0===a.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].pub_key&&(this.selectedPubkey=t[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue)return!0;this.store.dispatch((0,b.YX)({payload:{selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed}}))}onAdvancedPanelToggle(t){this.advancedTitle=t?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-open-channel"]],viewQuery:function(t,a){if(1&t&&e.Gf(ui,7),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first)}},decls:55,vars:25,consts:[["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amnt",3,"ngModel","step","min","max","ngModelChange"],["amt","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","49"],["tabindex","3",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","tabindex","4","name","transTpValue",3,"ngModel","required","disabled","placeholder","step","min","ngModelChange"],["transTypeVal","ngModel"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","name","spendUnconfirmed",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayout","row"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.NdJ("submit",function(){return a.onOpenChannel()})("reset",function(){return a.resetData()}),e.TgZ(11,"div",9),e.YNc(12,di,8,8,"mat-form-field",10),e.qZA(),e.YNc(13,hi,1,0,"ng-container",11),e.TgZ(14,"div",9),e.TgZ(15,"div",12),e.TgZ(16,"mat-form-field",13),e.TgZ(17,"input",14,15),e.NdJ("ngModelChange",function(s){return a.fundingAmount=s}),e.qZA(),e.TgZ(19,"mat-hint"),e._uU(20),e.ALo(21,"number"),e.qZA(),e.TgZ(22,"span",16),e._uU(23," Sats "),e.qZA(),e.YNc(24,gi,2,0,"mat-error",17),e.YNc(25,fi,2,1,"mat-error",17),e.qZA(),e.TgZ(26,"div",18),e.TgZ(27,"mat-slide-toggle",19),e.NdJ("ngModelChange",function(s){return a.isPrivate=s}),e._uU(28,"Private Channel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"mat-expansion-panel",20),e.NdJ("closed",function(){return a.onAdvancedPanelToggle(!0)})("opened",function(){return a.onAdvancedPanelToggle(!1)}),e.TgZ(30,"mat-expansion-panel-header"),e.TgZ(31,"mat-panel-title"),e.TgZ(32,"span"),e._uU(33),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",21),e.TgZ(35,"div",12),e.TgZ(36,"mat-form-field",22),e.TgZ(37,"mat-select",23),e.NdJ("valueChange",function(s){return a.selTransType=s}),e.YNc(38,Ci,2,2,"mat-option",24),e.qZA(),e.qZA(),e.TgZ(39,"mat-form-field",22),e.TgZ(40,"input",25,26),e.NdJ("ngModelChange",function(s){return a.transTypeValue=s}),e.qZA(),e.YNc(42,xi,2,1,"mat-error",17),e.qZA(),e.qZA(),e.TgZ(43,"div",12),e.TgZ(44,"div",27),e.TgZ(45,"mat-slide-toggle",28),e.NdJ("ngModelChange",function(s){return a.spendUnconfirmed=s}),e._uU(46,"Spend Unconfirmed Output"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(47,yi,3,2,"div",29),e.TgZ(48,"div",30),e.TgZ(49,"button",31),e._uU(50,"Clear Fields"),e.qZA(),e.TgZ(51,"button",32),e._uU(52,"Open Channel"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(53,bi,1,1,"ng-template",null,33,e.W1O)),2&t){const o=e.MAs(54);e.xp6(5),e.Oqu(a.alertTitle),e.xp6(7),e.Q6J("ngIf",!a.peer&&a.peers&&a.peers.length>0),e.xp6(1),e.Q6J("ngTemplateOutlet",o),e.xp6(4),e.Q6J("ngModel",a.fundingAmount)("step",1e3)("min",1)("max",a.totalBalance),e.xp6(3),e.hij("(Remaining Bal: ",e.lcZ(21,23,a.totalBalance-(a.fundingAmount?a.fundingAmount:0)),")"),e.xp6(4),e.Q6J("ngIf",null==a.amount.errors?null:a.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.amount.errors?null:a.amount.errors.max),e.xp6(2),e.Q6J("ngModel",a.isPrivate),e.xp6(6),e.Oqu(a.advancedTitle),e.xp6(4),e.Q6J("value",a.selTransType),e.xp6(1),e.Q6J("ngForOf",a.transTypes),e.xp6(2),e.Q6J("ngModel",a.transTypeValue)("required","0"!==a.selTransType)("disabled","0"===a.selTransType)("placeholder","0"===a.selTransType?"Default":"1"===a.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("min",0),e.xp6(2),e.Q6J("ngIf","0"!==a.selTransType&&!a.transTypeValue),e.xp6(3),e.Q6J("ngModel",a.spendUnconfirmed),e.xp6(2),e.Q6J("ngIf",""!==a.channelConnectionError)}},directives:[_.xw,_.Wh,_.yH,T.dk,L.lW,T.dn,c._Y,c.JL,c.F,p.O5,p.tP,f.KE,I.Nt,c.wV,c.qQ,c.Fd,c.Fj,$.q,Ee.F,c.Q7,c.JJ,c.On,f.bx,f.R9,ue.Rr,H.ib,H.yz,H.yK,R.gD,p.sg,W.h,ne.ZL,c.oH,ne.XC,Y.ey,f.TO,M.BN,z.d],pipes:[p.JJ,p.Ov],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),n})();var B=h(5615);const Ai=["peersForm"],vi=["stepper"];function wi(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw();e.Oqu(t.peerFormLabel)}}function qi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function Si(n,i){if(1&n&&(e.TgZ(0,"div",37),e._UZ(1,"fa-icon",38),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.peerConnectionError)}}function Li(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw();e.Oqu(t.channelFormLabel)}}function ki(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function Fi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount must be a positive number."),e.qZA())}function Ui(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function Ni(n,i){if(1&n&&(e.TgZ(0,"mat-option",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function Oi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("","0"===t.channelFormGroup.controls.selTransType.value?"Default":"1"===t.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"," is required.")}}function Ri(n,i){if(1&n&&(e.TgZ(0,"div",37),e._UZ(1,"fa-icon",38),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.channelConnectionError)}}let Ii=(()=>{class n{constructor(t,a,o,s,u,g,N){this.dialogRef=t,this.data=a,this.store=o,this.lndEffects=s,this.formBuilder=u,this.actions=g,this.logger=N,this.faExclamationTriangle=Z.eHv,this.peerAddress="",this.totalBalance=0,this.transTypes=l.Dr,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new m.x,new m.x]}ngOnInit(){this.totalBalance=this.data.message.balance,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[c.kI.required]],peerAddress:["",[c.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[c.kI.required,c.kI.min(1),c.kI.max(this.totalBalance)]],isPrivate:[!1],selTransType:[l.Dr[0].id],transTypeValue:[{value:"",disabled:!0}],spendUnconfirmed:[!1],hiddenAmount:["",[c.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t===l.Dr[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([c.kI.required]))}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,E.h)(t=>t.type===l.uR.NEWLY_ADDED_PEER_LND||t.type===l.uR.FETCH_PENDING_CHANNELS_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.NEWLY_ADDED_PEER_LND&&(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===l.uR.FETCH_PENDING_CHANNELS_LND&&this.dialogRef.close(),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.Bn.ERROR&&("SaveNewPeer"===t.payload.action||"FetchGraphNode"===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="";const t=this.peerFormGroup.controls.peerAddress.value.search("@");let a="",o="";t>-1?(a=this.peerFormGroup.controls.peerAddress.value.substring(0,t),o=this.peerFormGroup.controls.peerAddress.value.substring(t+1),this.connectPeerWithParams(a,o)):(this.store.dispatch((0,b.dV)({payload:{pubkey:this.peerFormGroup.controls.peerAddress.value}})),this.lndEffects.setGraphNode.pipe((0,V.q)(1)).subscribe(s=>{setTimeout(()=>{o=s.node.addresses&&s.node.addresses.length&&s.node.addresses.length>0&&s.node.addresses[0].addr?s.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,o)},0)}))}connectPeerWithParams(t,a){this.store.dispatch((0,b.El)({payload:{pubkey:t,host:a,perm:!1}}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value)return!0;this.channelConnectionError="",this.store.dispatch((0,b.YX)({payload:{selectedPeerPubkey:this.newlyAddedPeer.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(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:"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer.alias:"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 n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(ee.l),e.Y36(c.qu),e.Y36(G.eX),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-connect-peer"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Ai,5),e.Gf(vi,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:56,vars:24,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType","placeholder","Transaction Type"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","30"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"placeholder","step","required"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Connect to a new peer"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"div",7),e.TgZ(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(s){return a.stepSelectionChanged(s)}),e.TgZ(12,"mat-step",10),e.TgZ(13,"form",11),e.YNc(14,wi,1,1,"ng-template",12),e.TgZ(15,"mat-form-field",1),e._UZ(16,"input",13),e.YNc(17,qi,2,0,"mat-error",14),e.qZA(),e.YNc(18,Si,4,2,"div",15),e.TgZ(19,"div",16),e.TgZ(20,"button",17),e.NdJ("click",function(){return a.onConnectPeer()}),e._uU(21),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"mat-step",10),e.TgZ(23,"form",18),e.YNc(24,Li,1,1,"ng-template",19),e.TgZ(25,"div",20),e.TgZ(26,"div",21),e.TgZ(27,"mat-form-field",22),e._UZ(28,"input",23),e.TgZ(29,"mat-hint"),e._uU(30),e.qZA(),e.TgZ(31,"span",24),e._uU(32," Sats "),e.qZA(),e.YNc(33,ki,2,0,"mat-error",14),e.YNc(34,Fi,2,0,"mat-error",14),e.YNc(35,Ui,2,1,"mat-error",14),e.qZA(),e.TgZ(36,"div",25),e.TgZ(37,"mat-slide-toggle",26),e._uU(38,"Private Channel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",27),e.TgZ(40,"mat-form-field",28),e.TgZ(41,"mat-select",29),e.YNc(42,Ni,2,2,"mat-option",30),e.qZA(),e.qZA(),e.TgZ(43,"mat-form-field",31),e._UZ(44,"input",32),e.YNc(45,Oi,2,1,"mat-error",14),e.qZA(),e.TgZ(46,"div",25),e.TgZ(47,"mat-slide-toggle",33),e._uU(48,"Spend Unconfirmed Output"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(49,Ri,4,2,"div",15),e.TgZ(50,"div",16),e.TgZ(51,"button",34),e.NdJ("click",function(){return a.onOpenChannel()}),e._uU(52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",35),e.TgZ(54,"button",36),e._uU(55),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",a.peerFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.peerFormGroup),e.xp6(4),e.Q6J("ngIf",null==a.peerFormGroup.controls.peerAddress.errors?null:a.peerFormGroup.controls.peerAddress.errors.required),e.xp6(1),e.Q6J("ngIf",""!==a.peerConnectionError),e.xp6(3),e.Oqu(""!==a.peerConnectionError?"Retry":"Add Peer"),e.xp6(1),e.Q6J("stepControl",a.channelFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.channelFormGroup),e.xp6(5),e.Q6J("step",1e3),e.xp6(2),e.hij("Remaining Bal: ",a.totalBalance-(a.channelFormGroup.controls.fundingAmount.value?a.channelFormGroup.controls.fundingAmount.value:0),""),e.xp6(3),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.min),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.max),e.xp6(7),e.Q6J("ngForOf",a.transTypes),e.xp6(2),e.Q6J("placeholder","0"===a.channelFormGroup.controls.selTransType.value?"Default":"1"===a.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("required","0"!==a.channelFormGroup.controls.selTransType.value),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.required),e.xp6(4),e.Q6J("ngIf",""!==a.channelConnectionError),e.xp6(3),e.Oqu(""!==a.channelConnectionError?"Retry":"Open Channel"),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(null!=a.newlyAddedPeer&&a.newlyAddedPeer.pub_key?"Do It Later":"Close"))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,B.Vq,B.C0,c._Y,c.JL,c.sg,B.VY,f.KE,I.Nt,c.Fj,W.h,c.JJ,c.u,c.Q7,p.O5,c.wV,f.bx,f.R9,ue.Rr,R.gD,p.sg,J.ZT,f.TO,M.BN,Y.ey],styles:[""]}),n})();function Mi(n,i){1&n&&e._UZ(0,"mat-progress-bar",32)}function Di(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Alias "),e.qZA())}const Ye=function(n){return{"max-width":n}};function Pi(n,i){if(1&n&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ye,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.alias," ")}}function Ji(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Public Key "),e.qZA())}function Ei(n,i){if(1&n&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ye,a.screenSize===a.screenSizeEnum.XS?"5rem":"35rem")),e.xp6(1),e.hij(" ",null==t?null:t.pub_key," ")}}function Qi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Sats Sent "),e.qZA())}function Yi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.sat_sent)," ")}}function Hi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Sats Received "),e.qZA())}function Bi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.sat_recv)," ")}}function Vi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Ping "),e.qZA())}function Gi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.ping_time)," ")}}function zi(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",38),e.TgZ(1,"div",39),e.TgZ(2,"mat-select",40),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",41),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Wi(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",42),e.TgZ(1,"div",39),e.TgZ(2,"mat-select",40),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",41),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onPeerClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",41),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onOpenChannel(s)}),e._uU(7,"Open Channel"),e.qZA(),e.TgZ(8,"mat-option",41),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onPeerDetach(s)}),e._uU(9,"Disconnect"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Xi(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No connected peer."),e.qZA())}function $i(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting peers..."),e.qZA())}function ji(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Ki(n,i){if(1&n&&(e.TgZ(0,"td",43),e.YNc(1,Xi,2,0,"p",44),e.YNc(2,$i,2,0,"p",44),e.YNc(3,ji,2,1,"p",44),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const eo=function(n){return{"display-none":n}};function to(n,i){if(1&n&&e._UZ(0,"tr",45),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,eo,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function no(n,i){1&n&&e._UZ(0,"tr",46)}function ao(n,i){1&n&&e._UZ(0,"tr",47)}const io=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},oo=function(){return["no_peer"]};let so=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.rtlEffects=o,this.commonService=s,this.availableBalance=0,this.faUsers=Z.FVb,this.displayedColumns=[],this.peersData=[],this.information={},this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","ping_time","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","pub_key","sat_sent","sat_recv","ping_time","actions"])}ngOnInit(){this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.information=t}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.availableBalance=t.blockchainBalance.total_balance||0}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.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)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.pub_key,message:[[{key:"pub_key",value:t.pub_key,title:"Public Key",width:100}],[{key:"address",value:t.address,title:"Address",width:100}],[{key:"alias",value:t.alias,title:"Alias",width:40},{key:"inbound",value:t.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:t.ping_time,title:"Ping Time",width:30,type:l.Gi.NUMBER}],[{key:"sat_sent",value:t.sat_sent,title:"Satoshis Sent",width:50,type:l.Gi.NUMBER},{key:"sat_recv",value:t.sat_recv,title:"Satoshis Received",width:50,type:l.Gi.NUMBER}],[{key:"bytes_sent",value:t.bytes_sent,title:"Bytes Sent",width:50,type:l.Gi.NUMBER},{key:"bytes_recv",value:t.bytes_recv,title:"Bytes Received",width:50,type:l.Gi.NUMBER}]]}}}))}onConnectPeer(){this.store.dispatch((0,v.qR)({payload:{data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:Ii}}}))}onOpenChannel(t){this.store.dispatch((0,v.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},component:Qe}}}))}onPeerDetach(t){this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[3])).subscribe(o=>{o&&this.store.dispatch((0,b.z)({payload:{pubkey:t.pub_key}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new r.by(t?[...t]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.peers.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(oe.V),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Peers")}])],decls:40,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","sat_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.onConnectPeer()}),e._uU(3,"Add Peer"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e._UZ(7,"fa-icon",6),e.TgZ(8,"span",7),e._uU(9,"Connected Peers"),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",8),e.TgZ(11,"input",9),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",10),e.YNc(13,Mi,1,0,"mat-progress-bar",11),e.TgZ(14,"table",12,13),e.ynx(16,14),e.YNc(17,Di,2,0,"th",15),e.YNc(18,Pi,2,4,"td",16),e.BQk(),e.ynx(19,17),e.YNc(20,Ji,2,0,"th",15),e.YNc(21,Ei,2,4,"td",16),e.BQk(),e.ynx(22,18),e.YNc(23,Qi,2,0,"th",19),e.YNc(24,Yi,4,3,"td",20),e.BQk(),e.ynx(25,21),e.YNc(26,Hi,2,0,"th",19),e.YNc(27,Bi,4,3,"td",20),e.BQk(),e.ynx(28,22),e.YNc(29,Vi,2,0,"th",19),e.YNc(30,Gi,4,3,"td",20),e.BQk(),e.ynx(31,23),e.YNc(32,zi,6,0,"th",24),e.YNc(33,Wi,10,0,"td",25),e.BQk(),e.ynx(34,26),e.YNc(35,Ki,4,3,"td",27),e.BQk(),e.YNc(36,to,1,3,"tr",28),e.YNc(37,no,1,0,"tr",29),e.YNc(38,ao,1,0,"tr",30),e.qZA(),e.qZA(),e._UZ(39,"mat-paginator",31),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("icon",a.faUsers),e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.peers)("ngClass",e.VKq(12,io,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(14,oo)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,L.lW,M.BN,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-pub_key[_ngcontent-%COMP%]{flex:1 1 35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem;flex:1 1 10%}.mat-column-sat_sent[_ngcontent-%COMP%], .mat-column-sat_recv[_ngcontent-%COMP%], .mat-column-ping_time[_ngcontent-%COMP%]{flex:1 1 13%;width:13%}"]}),n})();function lo(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Open"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numOpenChannels)}}function ro(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Pending"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numPendingChannels)}}function co(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Closed"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numClosedChannels)}}function uo(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Active HTLCs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numActiveHTLCs)}}let po=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t instanceof y.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(a=>a.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.numOpenChannels=t.channels&&t.channels.length?t.channels.length:0,this.numActiveHTLCs=t.channels.reduce((a,o)=>a+(o.pending_htlcs&&o.pending_htlcs.length>0?o.pending_htlcs.length:0),0),this.logger.info(t)}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.numPendingChannels=t.pendingChannelsSummary.total_channels?t.pendingChannelsSummary.total_channels:0}),this.store.select(C.P2).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.numClosedChannels=t.closedChannels&&t.closedChannels.length?t.closedChannels.length:0}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[5])).subscribe(t=>{this.totalBalance=+t.blockchainBalance.total_balance}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[6])).subscribe(t=>{this.peers=t.peers,this.peers.forEach(a=>{(!a.alias||""===a.alias)&&(a.alias=a.pub_key.substring(0,15)+"...")}),this.logger.info(t)})}onOpenChannel(){this.store.dispatch((0,v.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Qe}}}))}onSelectedTabChange(t){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channels-tables"]],decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.onOpenChannel()}),e._uU(3,"Open Channel"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-tab-group",4),e.NdJ("selectedIndexChange",function(s){return a.activeLink=s})("selectedTabChange",function(s){return a.onSelectedTabChange(s)}),e.TgZ(6,"mat-tab"),e.YNc(7,lo,2,1,"ng-template",5),e.qZA(),e.TgZ(8,"mat-tab"),e.YNc(9,ro,2,1,"ng-template",5),e.qZA(),e.TgZ(10,"mat-tab"),e.YNc(11,co,2,1,"ng-template",5),e.qZA(),e.TgZ(12,"mat-tab"),e.YNc(13,uo,2,1,"ng-template",5),e.qZA(),e.qZA(),e.TgZ(14,"div",6),e._UZ(15,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("selectedIndex",a.activeLink))},directives:[_.xw,_.yH,_.Wh,L.lW,D.SP,D.uX,D.uD,y.lC,fe.k],styles:[""]}),n})();var te=h(7261),se=h(6895);function mo(n,i){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"div",9),e.TgZ(2,"div",14),e.TgZ(3,"h4",11),e._uU(4,"Commit Fee"),e.qZA(),e.TgZ(5,"span",15),e._uU(6),e.ALo(7,"number"),e.qZA(),e.qZA(),e.TgZ(8,"div",14),e.TgZ(9,"h4",11),e._uU(10,"Commit Weight"),e.qZA(),e.TgZ(11,"span",15),e._uU(12),e.ALo(13,"number"),e.qZA(),e.qZA(),e.TgZ(14,"div",14),e.TgZ(15,"h4",11),e._uU(16,"Fee/KW"),e.qZA(),e.TgZ(17,"span",15),e._uU(18),e.ALo(19,"number"),e.qZA(),e.qZA(),e.TgZ(20,"div",14),e.TgZ(21,"h4",11),e._uU(22,"Static Remote Key"),e.qZA(),e.TgZ(23,"span",15),e._uU(24),e.qZA(),e.qZA(),e.qZA(),e._UZ(25,"mat-divider",13),e.TgZ(26,"div",9),e.TgZ(27,"div",14),e.TgZ(28,"h4",11),e._uU(29),e.qZA(),e.TgZ(30,"span",15),e._uU(31),e.ALo(32,"number"),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"h4",11),e._uU(35),e.qZA(),e.TgZ(36,"span",15),e._uU(37),e.ALo(38,"number"),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"h4",11),e._uU(41,"Unsettled Balance"),e.qZA(),e.TgZ(42,"span",15),e._uU(43),e.ALo(44,"number"),e.qZA(),e.qZA(),e.TgZ(45,"div",14),e.TgZ(46,"h4",11),e._uU(47,"CSV Delay"),e.qZA(),e.TgZ(48,"span",15),e._uU(49),e.ALo(50,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(51,"mat-divider",13),e.TgZ(52,"div",9),e.TgZ(53,"div",14),e.TgZ(54,"h4",11),e._uU(55,"Local Reserve (Sats)"),e.qZA(),e.TgZ(56,"span",15),e._uU(57),e.ALo(58,"number"),e.qZA(),e.qZA(),e.TgZ(59,"div",14),e.TgZ(60,"h4",11),e._uU(61,"Remote Reserve (Sats)"),e.qZA(),e.TgZ(62,"span",15),e._uU(63),e.ALo(64,"number"),e.qZA(),e.qZA(),e.TgZ(65,"div",14),e.TgZ(66,"h4",11),e._uU(67,"Lifetime (Seconds)"),e.qZA(),e.TgZ(68,"span",15),e._uU(69),e.ALo(70,"number"),e.qZA(),e.qZA(),e.TgZ(71,"div",14),e.TgZ(72,"h4",11),e._uU(73,"Pending HTLCs"),e.qZA(),e.TgZ(74,"span",15),e._uU(75),e.ALo(76,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(77,"mat-divider",13),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.Oqu(e.lcZ(7,17,t.channel.commit_fee)),e.xp6(6),e.Oqu(e.lcZ(13,19,t.channel.commit_weight)),e.xp6(6),e.Oqu(e.lcZ(19,21,t.channel.fee_per_kw)),e.xp6(6),e.Oqu(t.channel.static_remote_key?"Yes":"No"),e.xp6(1),e.Q6J("inset",!0),e.xp6(4),e.Oqu(t.screenSize===t.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),e.xp6(2),e.Oqu(e.lcZ(32,23,t.channel.total_satoshis_sent)),e.xp6(4),e.Oqu(t.screenSize===t.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),e.xp6(2),e.Oqu(e.lcZ(38,25,t.channel.total_satoshis_received)),e.xp6(6),e.Oqu(e.lcZ(44,27,t.channel.unsettled_balance)),e.xp6(6),e.Oqu(e.lcZ(50,29,t.channel.csv_delay)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(58,31,t.channel.local_chan_reserve_sat)),e.xp6(6),e.Oqu(e.lcZ(64,33,t.channel.remote_chan_reserve_sat)),e.xp6(6),e.Oqu(e.lcZ(70,35,t.channel.lifetime)),e.xp6(6),e.Oqu(e.lcZ(76,37,null==t.channel||null==t.channel.pending_htlcs?null:t.channel.pending_htlcs.length)),e.xp6(2),e.Q6J("inset",!0)}}function _o(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Show Advanced"),e.qZA())}function ho(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Hide Advanced"),e.qZA())}function go(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",23),e.NdJ("copied",function(o){return e.CHM(t),e.oxw().onCopyChanID(o)}),e._uU(1,"Copy Channel ID"),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("payload",t.channel.chan_id)}}function fo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(1,"OK"),e.qZA()}}const Co=function(n){return{"xs-scroll-y":n}};let xe=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.logger=o,this.commonService=s,this.snackBar=u,this.faReceipt=Z.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=l.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("Channel ID "+t+" copied."),this.logger.info("Copied Text: "+t)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(O.v),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-information"]],decls:94,vars:36,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Channel Information"),e.qZA(),e.qZA(),e.TgZ(7,"button",6),e.NdJ("click",function(){return a.onClose()}),e._uU(8,"X"),e.qZA(),e.qZA(),e.TgZ(9,"mat-card-content",7),e.TgZ(10,"div",8),e.TgZ(11,"div",9),e.TgZ(12,"div",10),e.TgZ(13,"h4",11),e._uU(14,"Channel ID"),e.qZA(),e.TgZ(15,"span",12),e._uU(16),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.TgZ(18,"h4",11),e._uU(19,"Peer Alias"),e.qZA(),e.TgZ(20,"span",12),e._uU(21),e.qZA(),e.qZA(),e.qZA(),e._UZ(22,"mat-divider",13),e.TgZ(23,"div",9),e.TgZ(24,"div",1),e.TgZ(25,"h4",11),e._uU(26,"Channel Point"),e.qZA(),e.TgZ(27,"span",12),e._uU(28),e.qZA(),e.qZA(),e.qZA(),e._UZ(29,"mat-divider",13),e.TgZ(30,"div",9),e.TgZ(31,"div",1),e.TgZ(32,"h4",11),e._uU(33,"Peer Public Key"),e.qZA(),e.TgZ(34,"span",12),e._uU(35),e.qZA(),e.qZA(),e.qZA(),e._UZ(36,"mat-divider",13),e.TgZ(37,"div",9),e.TgZ(38,"div",14),e.TgZ(39,"h4",11),e._uU(40,"Local Balance"),e.qZA(),e.TgZ(41,"span",15),e._uU(42),e.ALo(43,"number"),e.qZA(),e.qZA(),e.TgZ(44,"div",14),e.TgZ(45,"h4",11),e._uU(46,"Remote Balance"),e.qZA(),e.TgZ(47,"span",15),e._uU(48),e.ALo(49,"number"),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"h4",11),e._uU(52,"Capacity"),e.qZA(),e.TgZ(53,"span",15),e._uU(54),e.ALo(55,"number"),e.qZA(),e.qZA(),e.TgZ(56,"div",14),e.TgZ(57,"h4",11),e._uU(58,"Uptime (Seconds)"),e.qZA(),e.TgZ(59,"span",15),e._uU(60),e.ALo(61,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(62,"mat-divider",13),e.TgZ(63,"div",9),e.TgZ(64,"div",14),e.TgZ(65,"h4",11),e._uU(66,"Active"),e.qZA(),e.TgZ(67,"span",15),e._uU(68),e.qZA(),e.qZA(),e.TgZ(69,"div",14),e.TgZ(70,"h4",11),e._uU(71,"Private"),e.qZA(),e.TgZ(72,"span",15),e._uU(73),e.qZA(),e.qZA(),e.TgZ(74,"div",14),e.TgZ(75,"h4",11),e._uU(76,"Initiator"),e.qZA(),e.TgZ(77,"span",15),e._uU(78),e.qZA(),e.qZA(),e.TgZ(79,"div",14),e.TgZ(80,"h4",11),e._uU(81,"Number of Updates"),e.qZA(),e.TgZ(82,"span",15),e._uU(83),e.ALo(84,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(85,"mat-divider",13),e.YNc(86,mo,78,39,"div",16),e.TgZ(87,"div",17),e.TgZ(88,"button",18),e.NdJ("click",function(){return a.onShowAdvanced()}),e.YNc(89,_o,2,0,"p",19),e.YNc(90,ho,2,0,"ng-template",null,20,e.W1O),e.qZA(),e.YNc(92,go,2,1,"button",21),e.YNc(93,fo,2,0,"button",22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(91);e.xp6(4),e.Q6J("icon",a.faReceipt),e.xp6(5),e.Q6J("ngClass",e.VKq(34,Co,a.screenSize===a.screenSizeEnum.XS)),e.xp6(7),e.Oqu(a.channel.chan_id),e.xp6(5),e.Oqu(a.channel.remote_alias),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.channel_point),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.remote_pubkey),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(43,24,a.channel.local_balance)),e.xp6(6),e.Oqu(e.lcZ(49,26,a.channel.remote_balance)),e.xp6(6),e.Oqu(e.lcZ(55,28,a.channel.capacity)),e.xp6(6),e.Oqu(e.lcZ(61,30,a.channel.uptime)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.active?"Yes":"No"),e.xp6(5),e.Oqu(a.channel.private?"Yes":"No"),e.xp6(5),e.Oqu(a.channel.initiator?"Yes":"No"),e.xp6(5),e.Oqu(e.lcZ(84,32,a.channel.num_updates)),e.xp6(2),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngIf",a.showAdvanced),e.xp6(3),e.Q6J("ngIf",!a.showAdvanced)("ngIfElse",o),e.xp6(3),e.Q6J("ngIf",a.showCopy),e.xp6(1),e.Q6J("ngIf",!a.showCopy)}},directives:[_.xw,_.Wh,_.yH,T.dk,M.BN,L.lW,T.dn,p.mk,q.oO,z.d,p.O5,W.h,se.y],pipes:[p.JJ],styles:[""]}),n})();var Ze=h(9646),ye=h(7772),xo=h(113);function Zo(n,i){1&n&&e.GkF(0)}const le=function(n,i){return{"small-svg":n,"large-svg":i}};function yo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8),e._UZ(3,"path",9),e._UZ(4,"path",10),e._UZ(5,"path",11),e._UZ(6,"path",12),e._UZ(7,"path",13),e._UZ(8,"path",14),e._UZ(9,"path",15),e._UZ(10,"path",16),e._UZ(11,"path",17),e._UZ(12,"path",18),e._UZ(13,"path",19),e._UZ(14,"path",20),e._UZ(15,"path",21),e._UZ(16,"path",22),e._UZ(17,"path",23),e._UZ(18,"path",24),e._UZ(19,"path",25),e._UZ(20,"path",26),e._UZ(21,"path",27),e._UZ(22,"path",28),e._UZ(23,"path",29),e._UZ(24,"path",30),e._UZ(25,"path",31),e._UZ(26,"path",32),e._UZ(27,"path",33),e._UZ(28,"path",34),e._UZ(29,"path",35),e._UZ(30,"path",36),e._UZ(31,"path",37),e._UZ(32,"path",38),e._UZ(33,"path",39),e._UZ(34,"path",40),e._UZ(35,"path",41),e._UZ(36,"path",42),e._UZ(37,"path",43),e._UZ(38,"path",44),e._UZ(39,"path",45),e._UZ(40,"path",46),e.qZA(),e.kcU(),e.TgZ(41,"div",47),e.TgZ(42,"mat-card-title"),e._uU(43,"Circular rebalancing explained."),e.qZA(),e.qZA(),e.TgZ(44,"div",48),e.TgZ(45,"mat-card-subtitle",49),e._uU(46," Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained payment channels. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function To(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51),e._UZ(3,"path",52),e._UZ(4,"path",53),e._UZ(5,"path",54),e._UZ(6,"path",55),e._UZ(7,"path",56),e._UZ(8,"path",57),e._UZ(9,"path",58),e._UZ(10,"path",59),e._UZ(11,"path",60),e._UZ(12,"path",61),e._UZ(13,"path",62),e._UZ(14,"path",63),e._UZ(15,"path",64),e._UZ(16,"path",65),e._UZ(17,"path",66),e._UZ(18,"path",67),e._UZ(19,"path",68),e._UZ(20,"path",69),e._UZ(21,"path",70),e._UZ(22,"path",71),e._UZ(23,"path",72),e._UZ(24,"path",73),e._UZ(25,"path",74),e._UZ(26,"path",75),e._UZ(27,"path",76),e._UZ(28,"path",77),e._UZ(29,"path",78),e._UZ(30,"path",79),e._UZ(31,"path",80),e._UZ(32,"path",81),e._UZ(33,"path",51),e._UZ(34,"path",52),e._UZ(35,"path",53),e._UZ(36,"path",54),e._UZ(37,"path",55),e._UZ(38,"path",56),e._UZ(39,"path",57),e._UZ(40,"path",58),e._UZ(41,"path",59),e._UZ(42,"path",82),e._UZ(43,"path",83),e._UZ(44,"path",62),e._UZ(45,"path",84),e._UZ(46,"path",85),e._UZ(47,"path",86),e._UZ(48,"path",66),e._UZ(49,"path",67),e._UZ(50,"path",68),e._UZ(51,"path",69),e._UZ(52,"path",70),e._UZ(53,"path",71),e._UZ(54,"path",72),e._UZ(55,"path",73),e._UZ(56,"path",74),e._UZ(57,"path",75),e._UZ(58,"path",76),e._UZ(59,"path",77),e._UZ(60,"path",78),e._UZ(61,"path",79),e._UZ(62,"path",87),e._UZ(63,"path",81),e._UZ(64,"path",88),e.TgZ(65,"defs"),e.TgZ(66,"linearGradient",89),e._UZ(67,"stop",90),e._UZ(68,"stop",91),e._UZ(69,"stop",92),e.qZA(),e.TgZ(70,"linearGradient",93),e._UZ(71,"stop",90),e._UZ(72,"stop",91),e._UZ(73,"stop",92),e.qZA(),e.TgZ(74,"linearGradient",94),e._UZ(75,"stop",90),e._UZ(76,"stop",91),e._UZ(77,"stop",92),e.qZA(),e.TgZ(78,"linearGradient",95),e._UZ(79,"stop",90),e._UZ(80,"stop",91),e._UZ(81,"stop",92),e.qZA(),e.TgZ(82,"linearGradient",96),e._UZ(83,"stop",90),e._UZ(84,"stop",91),e._UZ(85,"stop",92),e.qZA(),e.TgZ(86,"linearGradient",97),e._UZ(87,"stop",90),e._UZ(88,"stop",91),e._UZ(89,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(90,"div",47),e.TgZ(91,"mat-card-title"),e._uU(92,"Step 1: Unbalanced channel"),e.qZA(),e.qZA(),e.TgZ(93,"div",48),e.TgZ(94,"mat-card-subtitle",49),e._uU(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function bo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",98),e._UZ(2,"path",99),e._UZ(3,"path",100),e._UZ(4,"path",101),e._UZ(5,"path",102),e._UZ(6,"path",103),e._UZ(7,"path",104),e._UZ(8,"path",105),e._UZ(9,"path",106),e._UZ(10,"path",107),e._UZ(11,"path",108),e._UZ(12,"path",109),e._UZ(13,"path",110),e._UZ(14,"path",111),e._UZ(15,"path",112),e._UZ(16,"path",113),e._UZ(17,"path",51),e._UZ(18,"path",114),e._UZ(19,"path",115),e._UZ(20,"path",116),e._UZ(21,"path",117),e._UZ(22,"path",118),e._UZ(23,"path",119),e._UZ(24,"path",120),e._UZ(25,"path",121),e._UZ(26,"path",82),e._UZ(27,"path",83),e._UZ(28,"path",122),e._UZ(29,"path",123),e._UZ(30,"path",124),e._UZ(31,"path",125),e._UZ(32,"path",66),e._UZ(33,"path",126),e._UZ(34,"path",127),e._UZ(35,"path",128),e._UZ(36,"path",129),e._UZ(37,"path",130),e._UZ(38,"path",131),e._UZ(39,"path",73),e._UZ(40,"path",74),e._UZ(41,"path",132),e._UZ(42,"path",76),e._UZ(43,"path",77),e._UZ(44,"path",78),e._UZ(45,"path",79),e._UZ(46,"path",133),e._UZ(47,"path",134),e._UZ(48,"path",135),e.TgZ(49,"defs"),e.TgZ(50,"linearGradient",136),e._UZ(51,"stop",90),e._UZ(52,"stop",91),e._UZ(53,"stop",92),e.qZA(),e.TgZ(54,"linearGradient",137),e._UZ(55,"stop",90),e._UZ(56,"stop",91),e._UZ(57,"stop",92),e.qZA(),e.TgZ(58,"linearGradient",138),e._UZ(59,"stop",90),e._UZ(60,"stop",91),e._UZ(61,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(62,"div",47),e.TgZ(63,"mat-card-title"),e._uU(64,"Step 2: Invoice/Payment"),e.qZA(),e.qZA(),e.TgZ(65,"div",48),e.TgZ(66,"mat-card-subtitle",49),e._uU(67," All you have to do is make a payment to yourself in a favorable direction by generating and paying an invoice. This is taken care automatically by your node. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Ao(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",139),e._UZ(2,"path",140),e._UZ(3,"path",141),e._UZ(4,"path",142),e._UZ(5,"path",143),e._UZ(6,"path",144),e._UZ(7,"path",145),e._UZ(8,"path",146),e._UZ(9,"path",147),e._UZ(10,"path",148),e._UZ(11,"path",149),e._UZ(12,"path",150),e._UZ(13,"path",151),e._UZ(14,"path",152),e._UZ(15,"path",153),e._UZ(16,"path",154),e._UZ(17,"path",155),e._UZ(18,"path",156),e._UZ(19,"path",157),e._UZ(20,"path",158),e._UZ(21,"path",159),e._UZ(22,"path",160),e._UZ(23,"path",161),e._UZ(24,"path",162),e._UZ(25,"path",163),e._UZ(26,"path",162),e._UZ(27,"path",164),e._UZ(28,"path",165),e._UZ(29,"path",166),e._UZ(30,"path",167),e._UZ(31,"path",168),e._UZ(32,"path",169),e._UZ(33,"path",170),e._UZ(34,"path",171),e._UZ(35,"path",172),e._UZ(36,"path",173),e._UZ(37,"path",174),e._UZ(38,"path",175),e._UZ(39,"path",176),e._UZ(40,"path",177),e._UZ(41,"path",178),e.TgZ(42,"defs"),e.TgZ(43,"linearGradient",179),e._UZ(44,"stop",90),e._UZ(45,"stop",91),e._UZ(46,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(47,"div",47),e.TgZ(48,"mat-card-title"),e._uU(49,"Step 3: Rebalance amount"),e.qZA(),e.qZA(),e.TgZ(50,"div",48),e.TgZ(51,"mat-card-subtitle",49),e._uU(52," You will be moving part or all of the local balance to the remote side. For the route to be circular, there should be at least 3 nodes involved. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function vo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",139),e._UZ(2,"path",180),e._UZ(3,"path",142),e._UZ(4,"path",181),e._UZ(5,"path",144),e._UZ(6,"path",145),e._UZ(7,"path",182),e._UZ(8,"path",147),e._UZ(9,"path",183),e._UZ(10,"path",184),e._UZ(11,"path",185),e._UZ(12,"path",186),e._UZ(13,"path",187),e._UZ(14,"path",188),e._UZ(15,"path",189),e._UZ(16,"path",190),e._UZ(17,"path",191),e._UZ(18,"path",157),e._UZ(19,"path",192),e._UZ(20,"path",193),e._UZ(21,"path",178),e._UZ(22,"path",159),e._UZ(23,"path",160),e._UZ(24,"path",194),e._UZ(25,"path",162),e._UZ(26,"path",163),e._UZ(27,"path",162),e._UZ(28,"path",164),e._UZ(29,"path",165),e._UZ(30,"path",166),e._UZ(31,"path",167),e._UZ(32,"path",195),e._UZ(33,"path",169),e._UZ(34,"path",196),e._UZ(35,"path",171),e._UZ(36,"path",172),e._UZ(37,"path",173),e._UZ(38,"path",174),e._UZ(39,"path",175),e._UZ(40,"path",197),e.TgZ(41,"defs"),e.TgZ(42,"linearGradient",198),e._UZ(43,"stop",90),e._UZ(44,"stop",91),e._UZ(45,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(46,"div",47),e.TgZ(47,"mat-card-title"),e._uU(48,"Rebalance successful!"),e.qZA(),e.qZA(),e.TgZ(49,"div",48),e.TgZ(50,"mat-card-subtitle",49),e._uU(51," Your channel is successfully rebalanced and is able to continue to route payments. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let wo=(()=>{class n{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z","fill","#444053"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z","fill","#D0D2D5"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z","fill","#3F3D56"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z","fill","#D0D2D5"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z","fill","#D0D2D5"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","#444053"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z","fill","#444053"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z","fill","#6C63FF"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z","fill","#6C63FF"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z","fill","#6C63FF"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z","fill","#6C63FF"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z","fill","#6C63FF"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z","fill","#6C63FF"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z","fill","#6C63FF"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z","fill","#6C63FF"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z","fill","#6C63FF"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z","fill","#6C63FF"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z","fill","#6C63FF"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z","fill","#6C63FF"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z","fill","#6C63FF"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z","fill","#6C63FF"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z","fill","#6C63FF"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z","fill","#E6E6E6"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z","fill","#C4B7FF"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z","fill","#6C63FF"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z","fill","#C4B7FF"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z","fill","#6C63FF"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z","fill","#C4B7FF"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z","fill","#5E4EA5"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z","fill","#5E4EA5"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z","fill","#5E4EA5"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z","fill","#5E4EA5"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z","fill","#4A4A4A"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z","fill","#CBCBCB"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z","fill","#F2F2F2"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z","fill","#3F3D56"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z","fill","#4A4A4A"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z","fill","#4A4A4A"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z","fill","#4A4A4A"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z","fill","#4A4A4A"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z","fill","#4A4A4A"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z","fill","#4A4A4A"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z","fill","#F2F2F2"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z","fill","#4A4A4A"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z","fill","#4A4A4A"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z","fill","#5B5B5B"],["d","M42 75H9V91H42V75Z","fill","#5E4EA5"],["d","M42 42H9V58H42V42Z","fill","#5E4EA5"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z","fill","#4A4A4A"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z","fill","#F1F1F1"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z","fill","#4A4A4A"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z","fill","#D0CDE1"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z","fill","#4A4A4A"],["d","M265 57.3624H357.392V120.307H265V57.3624Z","fill","#CBCBCB"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z","fill","#4A4A4A"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z","fill","#4A4A4A"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z","fill","#4A4A4A"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z","fill","#4A4A4A"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z","fill","#4A4A4A"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z","fill","#4A4A4A"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z","fill","#4A4A4A"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z","fill","#F2F2F2"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z","fill","#4A4A4A"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z","fill","#5B5B5B"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z","fill","#C4B7FF"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z","fill","#6C63FF"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z","fill","#C4B7FF"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z","fill","#6C63FF"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#C4B7FF"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#5E4EA5"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z","fill","#4A4A4A"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z","fill","#CBCBCB"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z","fill","#F2F2F2"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z","fill","#3F3D56"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z","fill","#4A4A4A"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z","fill","#4A4A4A"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z","fill","#4A4A4A"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z","fill","#5B5B5B"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke","#C4B7FF","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M122.399 37H32.25V137.616H122.399V37Z","fill","#E6E6E6"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z","fill","#C4B7FF"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z","fill","#6C63FF"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z","fill","#C4B7FF"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z","fill","#6C63FF"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z","fill","#C4B7FF"],["d","M74.5 112H40.5V128H74.5V112Z","fill","#5E4EA5"],["d","M74.5 79H40.5V95H74.5V79Z","fill","#5E4EA5"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z","fill","#5E4EA5"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z","fill","#5E4EA5"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z","fill","#5E4EA5"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z","fill","#5E4EA5"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z","fill","#5E4EA5"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z","fill","#C4B7FF"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z","fill","#C4B7FF"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z","fill","#F2F2F2"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z","fill","#5B5B5B"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z","fill","#F2F2F2"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z","fill","#CBCBCB"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z","fill","#595959"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z","fill","#F2F2F2"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z","fill","#CBCBCB"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z","fill","#595959"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z","fill","#595959"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z","fill","#CBCBCB"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z","fill","#CBCBCB"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z","fill","#CBCBCB"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z","fill","#595959"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z","fill","#5E4EA5"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z","fill","#6C63FF"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z","fill","#C4B7FF"],["d","M76 112H41V128H76V112Z","fill","#5E4EA5"],["d","M70 79H41V95H70V79Z","fill","#5E4EA5"],["d","M70 47H41V63H70V47Z","fill","#5E4EA5"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z","fill","#5E4EA5"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z","fill","#5E4EA5"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z","fill","#5E4EA5"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z","fill","#CBCBCB"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z","fill","#595959"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(t,a){if(1&t&&(e.YNc(0,Zo,1,0,"ng-container",0),e.YNc(1,yo,47,5,"ng-template",null,1,e.W1O),e.YNc(3,To,96,5,"ng-template",null,2,e.W1O),e.YNc(5,bo,68,5,"ng-template",null,3,e.W1O),e.YNc(7,Ao,53,5,"ng-template",null,4,e.W1O),e.YNc(9,vo,52,5,"ng-template",null,5,e.W1O)),2&t){const o=e.MAs(2),s=e.MAs(4),u=e.MAs(6),g=e.MAs(8),N=e.MAs(10);e.Q6J("ngTemplateOutlet",1===a.stepNumber?o:2===a.stepNumber?s:3===a.stepNumber?u:4===a.stepNumber?g:N)}},directives:[p.tP,_.xw,_.yH,_.Wh,p.mk,q.oO,T.n5,T.$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:[xo.l]}}),n})();const qo=["stepper"];function So(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.inputFormLabel)}}function Lo(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function ko(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount must be a positive number."),e.qZA())}function Fo(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",null==t.selChannel?null:t.selChannel.local_balance,".")}}function Uo(n,i){if(1&n&&(e.TgZ(0,"mat-option",55),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.AsE("",t.remote_alias," - ",t.chan_id,"")}}function No(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Receive from Peer is required."),e.qZA())}function Oo(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Receive from Peer not found in the list."),e.qZA())}function Ro(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.feeFormLabel)}}function Io(n,i){if(1&n&&(e.TgZ(0,"mat-option",55),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.name," ")}}function Mo(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder," is required.")}}function Do(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder," must be a positive number.")}}function Po(n,i){1&n&&e._uU(0,"Invoice/Payment")}function Jo(n,i){1&n&&(e.TgZ(0,"mat-icon",56),e._uU(1,"check"),e.qZA())}function Eo(n,i){1&n&&e._UZ(0,"mat-progress-bar",57)}function Qo(n,i){if(1&n&&(e.TgZ(0,"mat-icon",56),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(null!=t.paymentStatus&&t.paymentStatus.error?"close":"check")}}function Yo(n,i){1&n&&e._UZ(0,"div",14)}function Ho(n,i){1&n&&e._UZ(0,"mat-progress-bar",57)}function Bo(n,i){if(1&n&&(e.TgZ(0,"h4",58),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentStatus&&t.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function Vo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",59),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onRestart()}),e._uU(1,"Start Again"),e.qZA()}}function Go(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"div",6),e.TgZ(2,"mat-card-header",7),e.TgZ(3,"div",8),e.TgZ(4,"span",9),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"div",10),e.TgZ(7,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().showInfo()}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(10,"X"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"mat-card-content",13),e.TgZ(12,"div",14),e.TgZ(13,"div",15),e.TgZ(14,"div",16),e._UZ(15,"fa-icon",17),e.TgZ(16,"span"),e._uU(17,"Circular Rebalance is a payment you make to *yourselves* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",18),e.TgZ(19,"p",19),e.TgZ(20,"strong"),e._uU(21,"Channel Peer:\xa0"),e.qZA(),e._uU(22),e.ALo(23,"titlecase"),e.qZA(),e.TgZ(24,"p",19),e.TgZ(25,"strong"),e._uU(26,"Channel ID:\xa0"),e.qZA(),e._uU(27),e.qZA(),e.qZA(),e.TgZ(28,"mat-vertical-stepper",20,21),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().stepSelectionChanged(o)}),e.TgZ(30,"mat-step",22),e.TgZ(31,"form",23),e.YNc(32,So,1,1,"ng-template",24),e.TgZ(33,"div",25),e.TgZ(34,"mat-form-field",26),e._UZ(35,"input",27),e.TgZ(36,"mat-hint"),e._uU(37),e.qZA(),e.TgZ(38,"span",28),e._uU(39,"Sats"),e.qZA(),e.YNc(40,Lo,2,0,"mat-error",29),e.YNc(41,ko,2,0,"mat-error",29),e.YNc(42,Fo,2,1,"mat-error",29),e.qZA(),e.TgZ(43,"mat-form-field",30),e.TgZ(44,"input",31),e.NdJ("change",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.qZA(),e.TgZ(45,"mat-autocomplete",32,33),e.NdJ("optionSelected",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.YNc(47,Uo,2,3,"mat-option",34),e.ALo(48,"async"),e.qZA(),e.YNc(49,No,2,0,"mat-error",29),e.YNc(50,Oo,2,0,"mat-error",29),e.qZA(),e.qZA(),e.TgZ(51,"div",35),e.TgZ(52,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSelectFee()}),e._uU(53,"Select Fee"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"mat-step",22),e.TgZ(55,"form",23),e.YNc(56,Ro,1,1,"ng-template",37),e.TgZ(57,"div",25),e.TgZ(58,"div",25),e.TgZ(59,"mat-form-field",30),e.TgZ(60,"mat-select",38),e.YNc(61,Io,2,2,"mat-option",34),e.qZA(),e.qZA(),e.TgZ(62,"mat-form-field",26),e._UZ(63,"input",39),e.YNc(64,Mo,2,1,"mat-error",29),e.YNc(65,Do,2,1,"mat-error",29),e.qZA(),e.qZA(),e.qZA(),e.TgZ(66,"div",35),e.TgZ(67,"button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onRebalance()}),e._uU(68,"Rebalance"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"mat-step",41),e.TgZ(70,"form",23),e.YNc(71,Po,1,0,"ng-template",24),e.TgZ(72,"div",42),e.TgZ(73,"mat-expansion-panel",43),e.TgZ(74,"mat-expansion-panel-header"),e.TgZ(75,"mat-panel-title"),e.TgZ(76,"span",44),e._uU(77),e.YNc(78,Jo,2,0,"mat-icon",45),e.qZA(),e.qZA(),e.qZA(),e.TgZ(79,"div",14),e.TgZ(80,"span",46),e._uU(81),e.qZA(),e.qZA(),e.qZA(),e.YNc(82,Eo,1,0,"mat-progress-bar",47),e.TgZ(83,"mat-expansion-panel",48),e.TgZ(84,"mat-expansion-panel-header"),e.TgZ(85,"mat-panel-title"),e.TgZ(86,"span",44),e._uU(87),e.YNc(88,Qo,2,1,"mat-icon",45),e.qZA(),e.qZA(),e.qZA(),e.YNc(89,Yo,1,0,"div",49),e.qZA(),e.YNc(90,Ho,1,0,"mat-progress-bar",47),e.qZA(),e.YNc(91,Bo,2,1,"h4",50),e.TgZ(92,"div",51),e.YNc(93,Vo,2,0,"button",52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(94,"div",53),e.TgZ(95,"button",54),e._uU(96,"Close"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.MAs(46),a=e.oxw(),o=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(a.channel?"Channel "+a.loopDirectionCaption:a.loopDirectionCaption),e.xp6(1),e.Q6J("fxFlex",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM?"17":"9"),e.xp6(9),e.Q6J("icon",a.faInfoCircle),e.xp6(7),e.Oqu(e.lcZ(23,45,a.selChannel.remote_alias)),e.xp6(5),e.Oqu(a.selChannel.chan_id),e.xp6(1),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",a.inputFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.inputFormGroup),e.xp6(4),e.Q6J("step",100),e.xp6(2),e.AsE("(Local Bal: ",null==a.selChannel?null:a.selChannel.local_balance,", Remaining: ",(null==a.selChannel?null:a.selChannel.local_balance)-(a.inputFormGroup.controls.rebalanceAmount.value?a.inputFormGroup.controls.rebalanceAmount.value:0),")"),e.xp6(3),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.min),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.max),e.xp6(2),e.Q6J("matAutocomplete",t),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(48,47,a.filteredActiveChannels)),e.xp6(2),e.Q6J("ngIf",null==a.inputFormGroup.controls.selRebalancePeer.errors?null:a.inputFormGroup.controls.selRebalancePeer.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.selRebalancePeer.errors?null:a.inputFormGroup.controls.selRebalancePeer.errors.notfound),e.xp6(4),e.Q6J("stepControl",a.feeFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.feeFormGroup),e.xp6(6),e.Q6J("ngForOf",a.feeLimitTypes),e.xp6(2),e.s9C("placeholder",a.feeFormGroup.controls.selFeeLimitType.value?a.feeFormGroup.controls.selFeeLimitType.value.placeholder:a.feeLimitTypes[0].placeholder),e.Q6J("step",1),e.xp6(1),e.Q6J("ngIf",null==a.feeFormGroup.controls.feeLimit.errors?null:a.feeFormGroup.controls.feeLimit.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.feeFormGroup.controls.feeLimit.errors?null:a.feeFormGroup.controls.feeLimit.errors.min),e.xp6(4),e.Q6J("stepControl",a.statusFormGroup),e.xp6(1),e.Q6J("formGroup",a.statusFormGroup),e.xp6(7),e.Oqu(a.flgInvoiceGenerated?a.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated),e.xp6(3),e.Oqu(a.paymentRequest),e.xp6(1),e.Q6J("ngIf",!a.flgInvoiceGenerated),e.xp6(1),e.Q6J("expanded",(a.flgInvoiceGenerated||a.flgReusingInvoice)&&a.flgPaymentSent),e.xp6(4),e.Oqu(a.flgInvoiceGenerated||a.flgPaymentSent?a.flgPaymentSent?null!=a.paymentStatus&&a.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),e.xp6(1),e.Q6J("ngIf",a.flgPaymentSent),e.xp6(1),e.Q6J("ngIf",!a.paymentStatus)("ngIfElse",o),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated&&!a.flgPaymentSent),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated&&a.flgPaymentSent),e.xp6(2),e.Q6J("ngIf",a.paymentStatus&&a.paymentStatus.error),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function zo(n,i){1&n&&e.GkF(0)}function Wo(n,i){if(1&n&&e.YNc(0,zo,1,0,"ng-container",60),2&n){const t=e.oxw(),a=e.MAs(4),o=e.MAs(6);e.Q6J("ngTemplateOutlet",t.paymentStatus.error?a:o)}}function Xo(n,i){if(1&n&&(e.TgZ(0,"div",14),e.TgZ(1,"span",46),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Error: ",t.paymentStatus.error,"")}}function $o(n,i){if(1&n&&(e.TgZ(0,"div",14),e.TgZ(1,"div",61),e.TgZ(2,"div",6),e.TgZ(3,"h4",62),e._uU(4,"Payment Hash"),e.qZA(),e.TgZ(5,"span",46),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e._UZ(7,"mat-divider",63),e.TgZ(8,"div",61),e.TgZ(9,"div",64),e.TgZ(10,"h4",62),e._uU(11),e.qZA(),e.TgZ(12,"span",46),e._uU(13),e.qZA(),e.qZA(),e.TgZ(14,"div",64),e.TgZ(15,"h4",62),e._uU(16,"Number of Hops"),e.qZA(),e.TgZ(17,"span",46),e._uU(18),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.Oqu(t.paymentStatus.payment_hash),e.xp6(5),e.hij("Total Fees (",t.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),e.xp6(2),e.Oqu(t.paymentStatus.payment_route.total_fees_msat?t.paymentStatus.payment_route.total_fees_msat:t.paymentStatus.payment_route.total_fees?t.paymentStatus.payment_route.total_fees:0),e.xp6(5),e.Oqu(t.paymentStatus&&t.paymentStatus.payment_route&&t.paymentStatus.payment_route.hops&&t.paymentStatus.payment_route.hops.length?t.paymentStatus.payment_route.hops.length:0)}}const jo=function(n,i){return{"dot-primary":n,"dot-primary-lighter":i}};function Ko(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"span",81),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onStepChanged(s)}),e._UZ(1,"p",82),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,jo,a.stepNumber===t,a.stepNumber!==t))}}function es(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",83),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onStepChanged(4)}),e._uU(1,"Back"),e.qZA()}}function ts(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",84),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function ns(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",85),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function as(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",86),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.onStepChanged(o.stepNumber-1)}),e._uU(1,"Back"),e.qZA()}}function is(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.onStepChanged(o.stepNumber+1)}),e._uU(1,"Next"),e.qZA()}}const os=function(){return[1,2,3,4,5]};function ss(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",65),e.TgZ(1,"div",66),e.TgZ(2,"mat-card-header",67),e.TgZ(3,"div",68),e._UZ(4,"span",9),e.qZA(),e.TgZ(5,"div",69),e.TgZ(6,"button",70),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(7,"X"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",71),e.TgZ(9,"rtl-channel-rebalance-infographics",72),e.NdJ("stepNumberChange",function(o){return e.CHM(t),e.oxw().stepNumber=o}),e.qZA(),e.qZA(),e.TgZ(10,"div",73),e.YNc(11,Ko,2,4,"span",74),e.qZA(),e.TgZ(12,"div",75),e.YNc(13,es,2,0,"button",76),e.YNc(14,ts,2,0,"button",77),e.YNc(15,ns,2,0,"button",78),e.YNc(16,as,2,0,"button",79),e.YNc(17,is,2,0,"button",80),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection),e.xp6(2),e.Q6J("ngForOf",e.DdM(9,os)),e.xp6(2),e.Q6J("ngIf",5===t.stepNumber),e.xp6(1),e.Q6J("ngIf",5===t.stepNumber),e.xp6(1),e.Q6J("ngIf",t.stepNumber<5),e.xp6(1),e.Q6J("ngIf",t.stepNumber>1&&t.stepNumber<5),e.xp6(1),e.Q6J("ngIf",t.stepNumber<5)}}let ls=(()=>{class n{constructor(t,a,o,s,u,g,N,x){this.dialogRef=t,this.data=a,this.logger=o,this.store=s,this.actions=u,this.formBuilder=g,this.decimalPipe=N,this.commonService=x,this.faInfoCircle=Z.sqG,this.invoices={},this.selChannel={},this.activeChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=l.cu,this.animationDirection="forward",this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize();let t="",a="";this.selChannel=this.data.message.selChannel,this.activeChannels=this.data.message.channels.filter(o=>o.active&&o.chan_id!==this.selChannel.chan_id&&o.remote_balance>0),this.activeChannels=this.activeChannels.sort((o,s)=>(t=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"",a=s.remote_alias?s.remote_alias.toLowerCase():o.chan_id.toLowerCase(),ta?1:0)),l.Vc.forEach((o,s)=>{s>0&&this.feeLimitTypes.push(o)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[c.kI.required]],rebalanceAmount:["",[c.kI.required,c.kI.min(1),c.kI.max(this.selChannel.local_balance)]],selRebalancePeer:[null,c.kI.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],c.kI.required],feeLimit:["",[c.kI.required,c.kI.min(0)]],hiddenFeeLimit:["",[c.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(C.Ef).pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{this.invoices=o.listInvoices,this.logger.info(o)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,E.h)(o=>o.type===l.uR.SET_QUERY_ROUTES_LND||o.type===l.uR.SEND_PAYMENT_STATUS_LND||o.type===l.uR.NEWLY_SAVED_INVOICE_LND)).subscribe(o=>{o.type===l.uR.SET_QUERY_ROUTES_LND&&(this.queryRoute=o.payload),o.type===l.uR.SEND_PAYMENT_STATUS_LND&&(this.logger.info(o.payload),this.flgPaymentSent=!0,this.paymentStatus=o.payload,this.flgEditable=!0),o.type===l.uR.NEWLY_SAVED_INVOICE_LND&&(this.logger.info(o.payload),this.flgInvoiceGenerated=!0,this.sendPayment(o.payload.paymentRequest))}),this.inputFormGroup.get("rebalanceAmount").valueChanges.pipe((0,d.R)(this.unSubs[2]),(0,Ce.O)(0)).subscribe(o=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Ze.of)(o?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer").valueChanges.pipe((0,d.R)(this.unSubs[3]),(0,Ce.O)("")).subscribe(o=>{"string"==typeof o&&(this.filteredActiveChannels=(0,Ze.of)(this.filterActiveChannels()))})}onSelectFee(){return this.inputFormGroup.controls.selRebalancePeer.value&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value&&this.onSelectedPeerChanged(),this.inputFormGroup.controls.selRebalancePeer.value&&"string"!=typeof this.inputFormGroup.controls.selRebalancePeer.value?!this.inputFormGroup.controls.rebalanceAmount.value||(0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),void this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0])):(this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0)}stepSelectionChanged(t){switch(t.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+this.queryRoute.routes[0].hops.length:"Select rebalance fee"}t.selectedIndex+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;const t=this.findUnsettledInvoice();t?(this.flgReusingInvoice=!0,this.sendPayment(t.payment_request)):this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",invoiceValue:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:3600,pageSize:l.IV,openModal:!1}}))}findUnsettledInvoice(){return this.invoices.invoices.find(t=>(0==+t.settle_date||!t.settle_date)&&t.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==t.state)}sendPayment(t){this.flgInvoiceGenerated=!0,this.paymentRequest=t,this.store.dispatch((0,b.oV)("percent"===this.feeFormGroup.controls.selFeeLimitType.value.id&&+this.feeFormGroup.controls.feeLimit.value%1!=0?{payload:{uiMessage:l.m6.NO_SPINNER,paymentReq:t,outgoingChannel:this.selChannel,feeLimitType:"fixed",feeLimit:Math.ceil(+this.feeFormGroup.controls.feeLimit.value*+this.inputFormGroup.controls.rebalanceAmount.value/100),allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}:{payload:{uiMessage:l.m6.NO_SPINNER,paymentReq:t,outgoingChannel:this.selChannel,feeLimitType:this.feeFormGroup.controls.selFeeLimitType.value.id,feeLimit:this.feeFormGroup.controls.feeLimit.value,allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}))}filterActiveChannels(){return this.activeChannels.filter(t=>t.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&t.chan_id!==this.selChannel.chan_id&&(0===t.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===t.chan_id.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const t=this.activeChannels.filter(a=>a.remote_alias.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===a.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));t&&t.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(t[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(t){return t&&t.remote_alias?t.remote_alias:t&&t.chan_id?t.chan_id:""}showInfo(){this.flgShowInfo=!0}onStepChanged(t){this.animationDirection=t{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(c.qu),e.Y36(p.JJ),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-rebalance"]],viewQuery:function(t,a){if(1&t&&e.Gf(qo,5),2&t){let o;e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxFlex","48","fxLayoutAlign","start end"],["type","text","placeholder","Receive from Peer","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["tabindex","6","formControlName","selFeeLimitType","Placeholder","Fee Limits","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"placeholder","step"],["mat-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(t,a){1&t&&(e.YNc(0,Go,97,49,"div",0),e.YNc(1,Wo,1,1,"ng-template",null,1,e.W1O),e.YNc(3,Xo,3,1,"ng-template",null,2,e.W1O),e.YNc(5,$o,19,4,"ng-template",null,3,e.W1O),e.YNc(7,ss,18,10,"div",4)),2&t&&(e.Q6J("ngIf",!a.flgShowInfo),e.xp6(7),e.Q6J("ngIf",a.flgShowInfo))},directives:[p.O5,_.xw,_.yH,_.Wh,T.dk,L.lW,T.dn,M.BN,B.Vq,B.C0,c._Y,c.JL,c.sg,B.VY,f.KE,I.Nt,c.wV,c.Fj,W.h,c.JJ,c.u,c.Q7,f.bx,f.R9,ne.ZL,ne.XC,p.sg,R.gD,H.ib,H.yz,H.yK,J.ZT,f.TO,Y.ey,K.Hw,P.pW,p.tP,z.d,wo,p.mk,q.oO],pipes:[p.rS,p.Ov],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[ye._]}}),n})();function rs(n,i){if(1&n&&(e.TgZ(0,"div",16),e.TgZ(1,"p",17),e.TgZ(2,"mat-icon",18),e._uU(3,"close"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(4),e.Oqu(t.errorMsg)}}function cs(n,i){if(1&n&&(e.TgZ(0,"div",27),e._UZ(1,"fa-icon",28),e.TgZ(2,"span"),e._uU(3,"Priority/Fee for force closing inactive channels cannot be modified."),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faInfoCircle)}}function us(n,i){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function ps(n,i){1&n&&(e.TgZ(0,"mat-form-field",30),e._UZ(1,"input",31),e.qZA())}function ms(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function _s(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",32),e.TgZ(1,"input",33,34),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).blocks=o}),e.qZA(),e.YNc(3,ms,2,0,"mat-error",35),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.blocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.blocks)}}function ds(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function hs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",32),e.TgZ(1,"input",36,37),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).fees=o}),e.qZA(),e.YNc(3,ds,2,0,"mat-error",35),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.fees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.fees)}}function gs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",19),e.YNc(1,cs,4,1,"div",20),e.TgZ(2,"div",21),e.TgZ(3,"mat-form-field",22),e.TgZ(4,"mat-select",23),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().selTransType=o}),e.YNc(5,us,2,2,"mat-option",24),e.qZA(),e.qZA(),e.YNc(6,ps,2,0,"mat-form-field",25),e.YNc(7,_s,4,4,"mat-form-field",26),e.YNc(8,hs,4,4,"mat-form-field",26),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.channelToClose.active),e.xp6(3),e.Q6J("value",t.selTransType)("disabled",!t.channelToClose.active),e.xp6(1),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","0"===t.selTransType),e.xp6(1),e.Q6J("ngIf","1"===t.selTransType),e.xp6(1),e.Q6J("ngIf","2"===t.selTransType)}}function fs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(1,"Clear"),e.qZA()}}function Cs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw().onCloseChannel()}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.channelToClose.active?"Close Channel":"Force Close")}}function xs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(1,"Ok"),e.qZA()}}let Zs=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.store=o,this.actions=s,this.logger=u,this.transTypes=l.Dr,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=Z.eHv,this.faInfoCircle=Z.sqG,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.unSubs=[new m.x,new m.x]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND||t.type===l.uR.SET_CHANNELS_LND)).subscribe(t=>{if(t.type===l.uR.SET_CHANNELS_LND){const a=t.payload.find(o=>o.chan_id===this.data.channel.chan_id);a&&a.pending_htlcs&&a.pending_htlcs.length&&a.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.Bn.ERROR&&"FetchAllChannels"===t.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+t.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const t={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(t.targetConf=this.blocks),this.fees&&(t.satPerByte=this.fees),this.store.dispatch((0,b.BL)({payload:t})),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(G.eX),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-close-channel"]],decls:19,vars:7,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","class","mr-1","tabindex","3","default","",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","5",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","48"],["tabindex","1",3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48"],["matInput","","placeholder","Default","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","2",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","ccfees","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["clchfee","ngModel"],["mat-button","","color","primary","type","reset","tabindex","3","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click"],["mat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7),e.TgZ(10,"div",8),e.TgZ(11,"p",9),e._uU(12),e.qZA(),e.YNc(13,rs,5,1,"div",10),e.YNc(14,gs,9,7,"div",11),e.qZA(),e.TgZ(15,"div",12),e.YNc(16,fs,2,0,"button",13),e.YNc(17,Cs,2,1,"button",14),e.YNc(18,xs,2,0,"button",15),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(a.channelToClose.active?"Close Channel":"Force Close Channel"),e.xp6(7),e.hij("",a.channelToClose.active?"Closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point):"Force closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point)," "),e.xp6(1),e.Q6J("ngIf",a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",!a.flgPendingHtlcs),e.xp6(2),e.Q6J("ngIf",a.channelToClose.active&&!a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",!a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",a.flgPendingHtlcs))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,c._Y,c.JL,c.F,p.O5,K.Hw,f.KE,R.gD,p.sg,M.BN,Y.ey,I.Nt,c.wV,c.qQ,c.Fj,$.q,c.Q7,c.JJ,c.On,f.TO],styles:[""]}),n})();function ys(n,i){1&n&&e._UZ(0,"mat-progress-bar",30)}function Ts(n,i){1&n&&(e.TgZ(0,"th",31),e._uU(1," Peer "),e.qZA())}function bs(n,i){1&n&&e._UZ(0,"span",39)}function As(n,i){1&n&&e._UZ(0,"span",40)}function vs(n,i){if(1&n&&(e.TgZ(0,"span",41),e._UZ(1,"fa-icon",42),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faEyeSlash)}}function ws(n,i){if(1&n&&(e.TgZ(0,"span",43),e._UZ(1,"fa-icon",42),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faEye)}}const qs=function(n){return{"max-width":n}};function Ss(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"div",33),e.YNc(2,bs,1,0,"span",34),e.YNc(3,As,1,0,"span",35),e.YNc(4,vs,2,1,"span",36),e.YNc(5,ws,2,1,"span",37),e.TgZ(6,"span",38),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(6,qs,a.screenSize===a.screenSizeEnum.XS?"10rem":a.screenSize===a.screenSizeEnum.MD?"15rem":"22rem")),e.xp6(1),e.Q6J("ngIf",t.active),e.xp6(1),e.Q6J("ngIf",!t.active),e.xp6(1),e.Q6J("ngIf",t.private),e.xp6(1),e.Q6J("ngIf",!t.private),e.xp6(2),e.Oqu(t.remote_alias||t.remote_pubkey)}}function Ls(n,i){if(1&n&&(e.TgZ(0,"th",44),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Uptime (",t.timeUnit,")")}}function ks(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",t.uptime_str," ")}}function Fs(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Sats Sent "),e.qZA())}function Us(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.total_satoshis_sent)," ")}}function Ns(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Sats Received "),e.qZA())}function Os(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.total_satoshis_received)," ")}}function Rs(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Local Balance (Sats) "),e.qZA())}function Is(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.local_balance)," ")}}function Ms(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Remote Balance (Sats) "),e.qZA())}function Ds(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.remote_balance)," ")}}function Ps(n,i){1&n&&(e.TgZ(0,"th",46),e._uU(1,"Balance Score "),e.qZA())}function Js(n,i){if(1&n&&(e.TgZ(0,"td",47),e.TgZ(1,"div",48),e.TgZ(2,"mat-hint",49),e._uU(3),e.ALo(4,"number"),e.qZA(),e.qZA(),e._UZ(5,"mat-progress-bar",50),e.qZA()),2&n){const t=i.$implicit;e.xp6(3),e.Oqu(e.lcZ(4,2,t.balancedness||0)),e.xp6(2),e.s9C("value",t.local_balance&&t.local_balance>0?+t.local_balance/(+t.local_balance+ +t.remote_balance)*100:0)}}function Es(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",51),e.TgZ(1,"div",52),e.TgZ(2,"mat-select",53),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",54),e.NdJ("click",function(){return e.CHM(t),e.oxw().onChannelUpdate("all")}),e._uU(5,"Update Fee Policy"),e.qZA(),e.TgZ(6,"mat-option",54),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(7,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Qs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-option",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().onCircularRebalance(o)}),e._uU(1,"Circular Rebalance"),e.qZA()}}function Ys(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-option",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().onLoopOut(o)}),e._uU(1,"Loop Out"),e.qZA()}}function Hs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",55),e.TgZ(1,"div",52),e.TgZ(2,"mat-select",56),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",54),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onChannelClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onViewRemotePolicy(s)}),e._uU(7,"View Remote Fee "),e.qZA(),e.TgZ(8,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onChannelUpdate(s)}),e._uU(9,"Update Fee Policy"),e.qZA(),e.YNc(10,Qs,2,0,"mat-option",57),e.YNc(11,Ys,2,0,"mat-option",57),e.TgZ(12,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onChannelClose(s)}),e._uU(13,"Close Channel"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(10),e.Q6J("ngIf",+t.versionsArr[0]>0||+t.versionsArr[1]>=9),e.xp6(1),e.Q6J("ngIf",t.selNode.swapServerUrl)}}function Bs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No peers connected. Add a peer in order to open a channel."),e.qZA())}function Vs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No channel available."),e.qZA())}function Gs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting channels..."),e.qZA())}function zs(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Ws(n,i){if(1&n&&(e.TgZ(0,"td",58),e.YNc(1,Bs,2,0,"p",59),e.YNc(2,Vs,2,0,"p",59),e.YNc(3,Gs,2,0,"p",59),e.YNc(4,zs,2,1,"p",59),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Xs=function(n){return{"display-none":n}};function $s(n,i){if(1&n&&e._UZ(0,"tr",60),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Xs,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function js(n,i){1&n&&e._UZ(0,"tr",61)}function Ks(n,i){1&n&&e._UZ(0,"tr",62)}const el=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},tl=function(){return["no_channel"]};let nl=(()=>{class n{constructor(t,a,o,s,u,g,N,x){var U,re,ve,we;this.logger=t,this.store=a,this.lndEffects=o,this.commonService=s,this.rtlEffects=u,this.decimalPipe=g,this.loopService=N,this.router=x,this.timeUnit="mins:secs",this.userPersonaEnum=l.ol,this.selNode={},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.versionsArr=[],this.faEye=Z.Mdf,this.faEyeSlash=Z.Aq,this.targetConf=6,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","balancedness","actions"]):(this.flgSticky=!0,this.displayedColumns=["remote_alias","uptime","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness","actions"]),this.selFilter=(null===(re=null===(U=this.router.getCurrentNavigation().extras)||void 0===U?void 0:U.state)||void 0===re?void 0:re.filter)?null===(we=null===(ve=this.router.getCurrentNavigation().extras)||void 0===ve?void 0:ve.state)||void 0===we?void 0:we.filter:""}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t,this.information&&this.information.version&&(this.versionsArr=this.information.version.split("."))}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.numPeers=t.peers&&t.peers.length?t.peers.length:0}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.totalBalance=+t.blockchainBalance.total_balance}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=this.calculateUptime(t.channels),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,b.$A)({payload:{uiMessage:l.m6.GET_REMOTE_POLICY,channelID:t.chan_id.toString()+"/"+this.information.identity_pubkey}})),this.lndEffects.setLookup.pipe((0,V.q)(1)).subscribe(a=>{if(!a.fee_base_msat&&!a.fee_rate_milli_msat&&!a.time_lock_delta)return!1;const o=[[{key:"fee_base_msat",value:a.fee_base_msat,title:"Base Fees (mSats)",width:25,type:l.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:l.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:l.Gi.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:a.time_lock_delta,title:"Time Lock Delta",width:25,type:l.Gi.NUMBER}]],s="Remote policy for Channel: "+(t.remote_alias||t.chan_id?t.remote_alias&&t.chan_id?t.remote_alias+" ("+t.chan_id+")":t.remote_alias?t.remote_alias:t.chan_id:t.channel_point);setTimeout(()=>{this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:s,message:o}}}))},0)})}onCircularRebalance(t){this.store.dispatch((0,v.qR)({payload:{data:{message:{channels:this.channelsData,selChannel:t},component:ls}}}))}onChannelUpdate(t){"all"===t?(this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:1e3,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:40,width:32}]}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[5])).subscribe(o=>{o&&this.store.dispatch((0,b.pW)({payload:{baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,timeLockDelta:o[2].inputValue,chanPoint:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.store.dispatch((0,b.$A)({payload:{uiMessage:l.m6.GET_CHAN_POLICY,channelID:t.chan_id.toString()}})),this.lndEffects.setLookup.pipe((0,V.q)(1)).subscribe(a=>{this.myChanPolicy=a.node1_pub===this.information.identity_pubkey?a.node1_policy:a.node2_pub===this.information.identity_pubkey?a.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy);const o="Update fee policy for Channel: "+(t.remote_alias||t.chan_id?t.remote_alias&&t.chan_id?t.remote_alias+" ("+t.chan_id+")":t.remote_alias?t.remote_alias:t.chan_id:t.channel_point),s=[];setTimeout(()=>{this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:o,noBtnText:"Cancel",yesBtnText:"Update Channel",message:s,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.time_lock_delta,width:32}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[6])).subscribe(a=>{a&&this.store.dispatch((0,b.pW)({payload:{baseFeeMsat:a[0].inputValue,feeRate:a[1].inputValue,timeLockDelta:a[2].inputValue,chanPoint:t.channel_point}}))})),this.applyFilter()}onChannelClose(t){t.active&&this.store.dispatch((0,b.UR)()),this.store.dispatch((0,v.qR)({payload:{data:{channel:t,component:Zs}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!0,component:xe}}}))}loadChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?1:-1),this.channels=new r.by([...t]),this.channels.filterPredicate=(a,o)=>((a.active?"active":"inactive")+(a.chan_id?a.chan_id.toLowerCase():"")+(a.remote_pubkey?a.remote_pubkey.toLowerCase():"")+(a.remote_alias?a.remote_alias.toLowerCase():"")+(a.capacity?a.capacity:"")+(a.local_balance?a.local_balance:"")+(a.remote_balance?a.remote_balance:"")+(a.total_satoshis_sent?a.total_satoshis_sent:"")+(a.total_satoshis_received?a.total_satoshis_received:"")+(a.commit_fee?a.commit_fee:"")+(a.private?"private":"public")).includes(o),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}calculateUptime(t){let g=60,N=1,x=0;switch(t.forEach(U=>{U.uptime&&+U.uptime>x&&(x=+U.uptime)}),!0){case x<3600:this.timeUnit="Mins:Secs",g=60,N=1;break;case x>=3600&&x<86400:this.timeUnit="Hrs:Mins",g=3600,N=60;break;case x>=86400&&x<31536e3:this.timeUnit="Days:Hrs",g=86400,N=3600;break;case x>31536e3:this.timeUnit="Yrs:Days",g=31536e3,N=86400;break;default:this.timeUnit="Mins:Secs",g=60,N=1}return t.forEach(U=>{U.uptime_str=U.uptime?this.decimalPipe.transform(Math.floor(+U.uptime/g),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+U.uptime%g/N),"2.0-0"):"---"}),t}onLoopOut(t){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[7])).subscribe(a=>{this.store.dispatch((0,v.qR)({payload:{minHeight:"56rem",data:{channel:t,minQuote:a[0],maxQuote:a[1],direction:l.$I.LOOP_OUT,component:Oe.a}}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(t){return(t/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v),e.Y36(oe.V),e.Y36(p.JJ),e.Y36(Re.W),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-open-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:39,vars:14,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","uptime"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","yellow"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,ys,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Ts,2,0,"th",10),e.YNc(11,Ss,8,8,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Ls,2,1,"th",13),e.YNc(14,ks,3,1,"td",11),e.BQk(),e.ynx(15,14),e.YNc(16,Fs,2,0,"th",13),e.YNc(17,Us,4,3,"td",11),e.BQk(),e.ynx(18,15),e.YNc(19,Ns,2,0,"th",13),e.YNc(20,Os,4,3,"td",11),e.BQk(),e.ynx(21,16),e.YNc(22,Rs,2,0,"th",13),e.YNc(23,Is,4,3,"td",11),e.BQk(),e.ynx(24,17),e.YNc(25,Ms,2,0,"th",13),e.YNc(26,Ds,4,3,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,Ps,2,0,"th",19),e.YNc(29,Js,6,4,"td",20),e.BQk(),e.ynx(30,21),e.YNc(31,Es,8,0,"th",22),e.YNc(32,Hs,14,2,"td",23),e.BQk(),e.ynx(33,24),e.YNc(34,Ws,5,4,"td",25),e.BQk(),e.YNc(35,$s,1,3,"tr",26),e.YNc(36,js,1,0,"tr",27),e.YNc(37,Ks,1,0,"tr",28),e.qZA(),e.qZA(),e._UZ(38,"mat-paginator",29),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",(null==a.apiCallStatus?null:a.apiCallStatus.status)===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(11,el,""!==a.errorMessage)),e.xp6(28),e.Q6J("matFooterRowDef",e.DdM(13,tl)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,X.gM,M.BN,f.bx,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-remote_alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-remote_alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}@media only screen and (max-width: 75em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 35%;width:35%}}@media only screen and (max-width: 56.25em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}}.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:1 1 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 75em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset;flex:1 1 25%;width:25%}}@media only screen and (max-width: 56.25em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}}@media only screen and (max-width: 37.5em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 56.25em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 90%}}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),n})();const al=["outputIdx"];function il(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Index for change output is required."),e.qZA())}function ol(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid index value."),e.qZA())}function sl(n,i){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function ll(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function rl(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",17),e.TgZ(1,"input",30,31),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().blocks=o}),e.qZA(),e.YNc(3,ll,2,0,"mat-error",20),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.blocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.blocks)}}function cl(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function ul(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",17),e.TgZ(1,"input",32,33),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().fees=o}),e.qZA(),e.YNc(3,cl,2,0,"mat-error",20),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.fees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.fees)}}function pl(n,i){if(1&n&&(e.TgZ(0,"div",34),e._UZ(1,"fa-icon",13),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.bumpFeeError)}}let ml=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.logger=o,this.dataService=s,this.snackBar=u,this.transTypes=[...l.Dr],this.selTransType="2",this.blocks=null,this.fees=null,this.outputIndex=null,this.faCopy=Z.kZ_,this.faInfoCircle=Z.sqG,this.faExclamationTriangle=Z.eHv,this.bumpFeeError="",this.unSubs=[new m.x,new m.x]}set payReq(t){t&&(this.outputIdx=t)}ngOnInit(){this.transTypes=this.transTypes.splice(1),this.bumpFeeChannel=this.data.pendingChannel;const t=this.bumpFeeChannel.channel.channel_point.split(":")||[];this.bumpFeeChannel.channel.txid_str=t[0]||(this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point:""),this.bumpFeeChannel.channel.output_index=+t[1]||null}onBumpFee(){return this.outputIndex===this.bumpFeeChannel.channel.output_index?(this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0):!this.outputIndex&&0!==this.outputIndex||!("1"!==this.selTransType||this.blocks&&0!==this.blocks)||!("2"!==this.selTransType||this.fees&&0!==this.fees)||void this.dataService.bumpFee(this.bumpFeeChannel.channel.txid_str,this.outputIndex,this.blocks,this.fees).pipe((0,d.R)(this.unSubs[0])).subscribe({next:t=>{this.dialogRef.close(!1)},error:t=>{this.logger.error(t),this.bumpFeeError=t.message?t.message:t}})}onCopyID(t){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.selTransType="2",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(j.D),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-bump-fee"]],viewQuery:function(t,a){if(1&t&&e.Gf(al,5),2&t){let o;e.iGM(o=e.CRH())&&(a.payReq=o.first)}},decls:48,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","32","fxLayoutAlign","start end"],["matInput","","placeholder","Index for Change Output","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","32"],["tabindex","2",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Bump Fee"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7),e.TgZ(10,"div",8),e.TgZ(11,"p",9),e._uU(12),e.TgZ(13,"fa-icon",10),e.NdJ("copied",function(s){return a.onCopyID(s)}),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"fa-icon",13),e.TgZ(17,"span",14),e._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. "),e.TgZ(19,"div"),e._uU(20,"Before attempting fee bump ensure the following:"),e.qZA(),e.TgZ(21,"div",15),e._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),e.qZA(),e.TgZ(23,"div",15),e._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."),e.qZA(),e.TgZ(25,"div",15),e._uU(26,"3: Find the index value of the change output via a block explorer."),e.qZA(),e.TgZ(27,"div",15),e._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),e.qZA(),e.TgZ(29,"div",15),e._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."),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",16),e.TgZ(32,"mat-form-field",17),e.TgZ(33,"input",18,19),e.NdJ("ngModelChange",function(s){return a.outputIndex=s}),e.qZA(),e.YNc(35,il,2,0,"mat-error",20),e.YNc(36,ol,2,0,"mat-error",20),e.qZA(),e.TgZ(37,"mat-form-field",21),e.TgZ(38,"mat-select",22),e.NdJ("valueChange",function(s){return a.selTransType=s})("selectionChange",function(){return a.blocks=null,a.fees=null}),e.YNc(39,sl,2,2,"mat-option",23),e.qZA(),e.qZA(),e.YNc(40,rl,4,4,"mat-form-field",24),e.YNc(41,ul,4,4,"mat-form-field",24),e.qZA(),e.YNc(42,pl,4,2,"div",25),e.qZA(),e.qZA(),e.TgZ(43,"div",26),e.TgZ(44,"button",27),e.NdJ("click",function(){return a.resetData()}),e._uU(45,"Clear"),e.qZA(),e.TgZ(46,"button",28),e.NdJ("click",function(){return a.onBumpFee()}),e._uU(47),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(34);e.xp6(12),e.hij("Bump fee for channel point: ",null==a.bumpFeeChannel||null==a.bumpFeeChannel.channel?null:a.bumpFeeChannel.channel.channel_point," "),e.xp6(1),e.Q6J("icon",a.faCopy)("payload",null==a.bumpFeeChannel||null==a.bumpFeeChannel.channel?null:a.bumpFeeChannel.channel.txid_str),e.xp6(3),e.Q6J("icon",a.faInfoCircle),e.xp6(17),e.Q6J("ngModel",a.outputIndex)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",null==o.errors?null:o.errors.required),e.xp6(1),e.Q6J("ngIf",null==o.errors?null:o.errors.pendingChannelOutputIndex),e.xp6(2),e.Q6J("value",a.selTransType),e.xp6(1),e.Q6J("ngForOf",a.transTypes),e.xp6(1),e.Q6J("ngIf","1"===a.selTransType),e.xp6(1),e.Q6J("ngIf","2"===a.selTransType),e.xp6(1),e.Q6J("ngIf",""!==a.bumpFeeError),e.xp6(5),e.Oqu(""!==a.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,c._Y,c.JL,c.F,M.BN,f.R9,se.y,X.gM,f.KE,I.Nt,c.wV,c.qQ,c.Fj,$.q,c.Q7,c.JJ,c.On,p.O5,R.gD,p.sg,f.TO,Y.ey],styles:[""]}),n})();function _l(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function dl(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function hl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",37),e._uU(1," Peer "),e.qZA())}const me=function(n){return{"max-width":n}};function gl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function fl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Commit Fee (Sats) "),e.qZA())}function Cl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.commit_fee))}}function xl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Commit Weight "),e.qZA())}function Zl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.commit_weight))}}function yl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Capacity (Sats)"),e.qZA())}function Tl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function bl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",41),e._uU(1,"Actions"),e.qZA())}function Al(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",42),e.TgZ(1,"div",43),e.TgZ(2,"mat-select",44),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",45),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onOpenClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",45),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onBumpFee(s)}),e._uU(7,"Bump Fee"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function vl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function wl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function ql(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Sl(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,vl,2,0,"p",47),e.YNc(2,wl,2,0,"p",47),e.YNc(3,ql,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Te=function(n){return{"display-none":n}};function Ll(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingOpenChannels&&(null==t.pendingOpenChannels?null:t.pendingOpenChannels.data)&&(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)>0))}}function kl(n,i){1&n&&e._UZ(0,"mat-header-row")}function Fl(n,i){1&n&&e._UZ(0,"mat-row",49)}function Ul(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function Nl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",37),e._uU(1," Peer "),e.qZA())}function Ol(n,i){if(1&n&&(e.TgZ(0,"mat-cell",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function Rl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Recovered Balance (Sats) "),e.qZA())}function Il(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.recovered_balance))}}function Ml(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Limbo Balance (Sats) "),e.qZA())}function Dl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.limbo_balance))}}function Pl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Capacity (Sats) "),e.qZA())}function Jl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function El(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function Ql(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",52),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onForceClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Yl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function Hl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function Bl(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Vl(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,Yl,2,0,"p",47),e.YNc(2,Hl,2,0,"p",47),e.YNc(3,Bl,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function Gl(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingForceClosingChannels&&(null==t.pendingForceClosingChannels?null:t.pendingForceClosingChannels.data)&&(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)>0))}}function zl(n,i){1&n&&e._UZ(0,"mat-header-row")}function Wl(n,i){1&n&&e._UZ(0,"mat-row",49)}function Xl(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function $l(n,i){1&n&&(e.TgZ(0,"mat-header-cell",53),e._uU(1," Peer "),e.qZA())}function jl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",54),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function Kl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Local Balance (Sats) "),e.qZA())}function er(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.local_balance))}}function tr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Remote Balance (Sats) "),e.qZA())}function nr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.remote_balance))}}function ar(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Capacity (Sats) "),e.qZA())}function ir(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function or(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function sr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",55),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function lr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function rr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function cr(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function ur(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,lr,2,0,"p",47),e.YNc(2,rr,2,0,"p",47),e.YNc(3,cr,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function pr(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingClosingChannels&&(null==t.pendingClosingChannels?null:t.pendingClosingChannels.data)&&(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)>0))}}function mr(n,i){1&n&&e._UZ(0,"mat-header-row")}function _r(n,i){1&n&&e._UZ(0,"mat-row",49)}function dr(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function hr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",53),e._uU(1," Peer "),e.qZA())}function gr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",54),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function fr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Limbo Balance (Sats) "),e.qZA())}function Cr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij("",e.lcZ(2,1,t.limbo_balance)," ")}}function xr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Local Balance (Sats) "),e.qZA())}function Zr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.local_balance))}}function yr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Remote Balance (Sats) "),e.qZA())}function Tr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.remote_balance))}}function br(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Capacity (Sats) "),e.qZA())}function Ar(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function vr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function wr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",56),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onWaitClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function qr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function Sr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function Lr(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function kr(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,qr,2,0,"p",47),e.YNc(2,Sr,2,0,"p",47),e.YNc(3,Lr,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Fr=function(n){return{"py-0":!0,"display-none":n}};function Ur(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Fr,t.pendingWaitClosingChannels&&(null==t.pendingWaitClosingChannels?null:t.pendingWaitClosingChannels.data)&&(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)>0))}}function Nr(n,i){1&n&&e._UZ(0,"mat-header-row")}function Or(n,i){1&n&&e._UZ(0,"mat-row",49)}const _e=function(n){return{"error-border bordered-box":n,"bordered-box":!0}},Rr=function(){return["no_pending_open"]},Ir=function(){return["no_pending_force_closing"]},Mr=function(){return["no_pending_closing"]},Dr=function(){return["no_pending_wait_closing"]};let Pr=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.commonService=o,this.selNode={},this.selectedFilter="",this.information={},this.pendingChannels={},this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.pendingOpenChannelsLength=0,this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.pendingForceClosingChannelsLength=0,this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.pendingClosingChannelsLength=0,this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"],this.pendingWaitClosingChannelsLength=0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.displayedOpenColumns=["remote_alias","actions"],this.displayedForceClosingColumns=["remote_alias","actions"],this.displayedClosingColumns=["remote_alias","actions"],this.displayedWaitClosingColumns=["remote_alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.displayedOpenColumns=["remote_alias","commit_fee","actions"],this.displayedForceClosingColumns=["remote_alias","limbo_balance","actions"],this.displayedClosingColumns=["remote_alias","remote_balance","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","actions"]):(this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.pendingChannels=t.pendingChannels,this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),this.logger.info(t)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(t){const a=JSON.parse(JSON.stringify(t,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:100,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"confirmation_height",value:s.confirmation_height,title:"Confirmation Height",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}],[{key:"fee_per_kw",value:s.fee_per_kw,title:"Fee/KW",width:25,type:l.Gi.NUMBER},{key:"commit_weight",value:s.commit_weight,title:"Commit Weight",width:25,type:l.Gi.NUMBER},{key:"commit_fee",value:s.commit_fee,title:"Commit Fee",width:50,type:l.Gi.NUMBER}]]}}}))}onBumpFee(t){this.store.dispatch((0,v.qR)({payload:{data:{pendingChannel:t,component:ml}}}))}onForceClosingClick(t){const a=JSON.parse(JSON.stringify(t,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:s.closing_txid,title:"Closing Transaction ID",width:100,type:l.Gi.STRING}],[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"limbo_balance",value:s.limbo_balance,title:"Limbo Balance",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}],[{key:"maturity_height",value:s.maturity_height,title:"Maturity Height",width:25,type:l.Gi.NUMBER},{key:"blocks_til_maturity",value:s.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:l.Gi.NUMBER},{key:"recovered_balance",value:s.recovered_balance,title:"Recovered Balance",width:50,type:l.Gi.NUMBER}]]}}}))}onClosingClick(t){const a=JSON.parse(JSON.stringify(t,["closing_txid"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:s.closing_txid,title:"Closing Transaction ID",width:50,type:l.Gi.STRING}],[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:50,type:l.Gi.NUMBER}]]}}}))}onWaitClosingClick(t){const a=JSON.parse(JSON.stringify(t,["limbo_balance"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s=JSON.parse(JSON.stringify(t.commitments,["local_txid"],2)),u={};Object.assign(u,a,o,s),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:u.local_txid,title:"Transaction ID",width:100,type:l.Gi.STRING}],[{key:"channel_point",value:u.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:u.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:u.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:u.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"limbo_balance",value:u.limbo_balance,title:"Limbo Balance",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:u.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:u.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}]]}}}))}loadOpenChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingOpenChannelsLength=t.length?t.length:0,this.pendingOpenChannels=new r.by([...t]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingOpenChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingForceClosingChannelsLength=t.length?t.length:0,this.pendingForceClosingChannels=new r.by([...t]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingForceClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingClosingChannelsLength=t.length?t.length:0,this.pendingClosingChannels=new r.by([...t]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingWaitClosingChannelsLength=t.length?t.length:0,this.pendingWaitClosingChannels=new r.by([...t]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingWaitClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingWaitClosingChannels)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-pending-table"]],viewQuery:function(t,a){if(1&t&&e.Gf(A.YE,5),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first)}},decls:121,vars:44,consts:[["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngStyle",4,"matCellDef"],["matColumnDef","commit_fee"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","commit_weight"],["matColumnDef","capacity"],["matColumnDef","actions"],["fxLayoutAlign","end center","class","pl-3 pr-4",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],[4,"matHeaderRowDef"],["fxLayoutAlign","stretch stretch",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","recovered_balance"],["matColumnDef","limbo_balance"],["fxLayoutAlign","end center","class","pl-4 pr-3",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","pl-4",4,"matCellDef"],["matColumnDef","no_pending_force_closing"],["class","pl-2","mat-sort-header","",4,"matHeaderCellDef"],["class","pl-2",3,"ngStyle",4,"matCellDef"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-sort-header",""],[3,"ngStyle"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"pl-3","pr-4"],["fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["fxLayoutAlign","stretch stretch"],["fxLayoutAlign","end center",1,"pl-4","pr-3"],["fxLayoutAlign","end center",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","2",3,"click"],["mat-sort-header","",1,"pl-2"],[1,"pl-2",3,"ngStyle"],["mat-stroked-button","","color","primary","type","button","tabindex","3",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"span",1),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"mat-accordion",2),e.YNc(5,_l,1,0,"mat-progress-bar",3),e.TgZ(6,"mat-expansion-panel",4),e.TgZ(7,"mat-expansion-panel-header"),e.TgZ(8,"mat-panel-title"),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"div",5),e.YNc(11,dl,1,0,"mat-progress-bar",3),e.TgZ(12,"table",6,7),e.ynx(14,8),e.YNc(15,hl,2,0,"mat-header-cell",9),e.YNc(16,gl,2,4,"mat-cell",10),e.BQk(),e.ynx(17,11),e.YNc(18,fl,2,0,"mat-header-cell",12),e.YNc(19,Cl,3,3,"mat-cell",13),e.BQk(),e.ynx(20,14),e.YNc(21,xl,2,0,"mat-header-cell",12),e.YNc(22,Zl,3,3,"mat-cell",13),e.BQk(),e.ynx(23,15),e.YNc(24,yl,2,0,"mat-header-cell",12),e.YNc(25,Tl,3,3,"mat-cell",13),e.BQk(),e.ynx(26,16),e.YNc(27,bl,2,0,"mat-header-cell",17),e.YNc(28,Al,8,0,"mat-cell",18),e.BQk(),e.ynx(29,19),e.YNc(30,Sl,4,3,"td",20),e.BQk(),e.YNc(31,Ll,1,3,"tr",21),e.YNc(32,kl,1,0,"mat-header-row",22),e.YNc(33,Fl,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(34,Ul,1,0,"mat-progress-bar",3),e.TgZ(35,"mat-expansion-panel",4),e.TgZ(36,"mat-expansion-panel-header"),e.TgZ(37,"mat-panel-title"),e._uU(38),e.qZA(),e.qZA(),e.TgZ(39,"div",5),e.TgZ(40,"table",24,7),e.ynx(42,8),e.YNc(43,Nl,2,0,"mat-header-cell",9),e.YNc(44,Ol,2,4,"mat-cell",10),e.BQk(),e.ynx(45,25),e.YNc(46,Rl,2,0,"mat-header-cell",12),e.YNc(47,Il,3,3,"mat-cell",13),e.BQk(),e.ynx(48,26),e.YNc(49,Ml,2,0,"mat-header-cell",12),e.YNc(50,Dl,3,3,"mat-cell",13),e.BQk(),e.ynx(51,15),e.YNc(52,Pl,2,0,"mat-header-cell",12),e.YNc(53,Jl,3,3,"mat-cell",13),e.BQk(),e.ynx(54,16),e.YNc(55,El,2,0,"mat-header-cell",27),e.YNc(56,Ql,3,0,"mat-cell",28),e.BQk(),e.ynx(57,29),e.YNc(58,Vl,4,3,"td",20),e.BQk(),e.YNc(59,Gl,1,3,"tr",21),e.YNc(60,zl,1,0,"mat-header-row",22),e.YNc(61,Wl,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(62,Xl,1,0,"mat-progress-bar",3),e.TgZ(63,"mat-expansion-panel",4),e.TgZ(64,"mat-expansion-panel-header"),e.TgZ(65,"mat-panel-title"),e._uU(66),e.qZA(),e.qZA(),e.TgZ(67,"div",5),e.TgZ(68,"table",24,7),e.ynx(70,8),e.YNc(71,$l,2,0,"mat-header-cell",30),e.YNc(72,jl,2,4,"mat-cell",31),e.BQk(),e.ynx(73,32),e.YNc(74,Kl,2,0,"mat-header-cell",12),e.YNc(75,er,3,3,"mat-cell",13),e.BQk(),e.ynx(76,33),e.YNc(77,tr,2,0,"mat-header-cell",12),e.YNc(78,nr,3,3,"mat-cell",13),e.BQk(),e.ynx(79,15),e.YNc(80,ar,2,0,"mat-header-cell",12),e.YNc(81,ir,3,3,"mat-cell",13),e.BQk(),e.ynx(82,16),e.YNc(83,or,2,0,"mat-header-cell",27),e.YNc(84,sr,3,0,"mat-cell",28),e.BQk(),e.ynx(85,34),e.YNc(86,ur,4,3,"td",20),e.BQk(),e.YNc(87,pr,1,3,"tr",21),e.YNc(88,mr,1,0,"mat-header-row",22),e.YNc(89,_r,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(90,dr,1,0,"mat-progress-bar",3),e.TgZ(91,"mat-expansion-panel",4),e.TgZ(92,"mat-expansion-panel-header"),e.TgZ(93,"mat-panel-title"),e._uU(94),e.qZA(),e.qZA(),e.TgZ(95,"div",5),e.TgZ(96,"table",24,7),e.ynx(98,8),e.YNc(99,hr,2,0,"mat-header-cell",30),e.YNc(100,gr,2,4,"mat-cell",31),e.BQk(),e.ynx(101,26),e.YNc(102,fr,2,0,"mat-header-cell",12),e.YNc(103,Cr,3,3,"mat-cell",13),e.BQk(),e.ynx(104,32),e.YNc(105,xr,2,0,"mat-header-cell",12),e.YNc(106,Zr,3,3,"mat-cell",13),e.BQk(),e.ynx(107,33),e.YNc(108,yr,2,0,"mat-header-cell",12),e.YNc(109,Tr,3,3,"mat-cell",13),e.BQk(),e.ynx(110,15),e.YNc(111,br,2,0,"mat-header-cell",12),e.YNc(112,Ar,3,3,"mat-cell",13),e.BQk(),e.ynx(113,16),e.YNc(114,vr,2,0,"mat-header-cell",27),e.YNc(115,wr,3,0,"mat-cell",28),e.BQk(),e.ynx(116,35),e.YNc(117,kr,4,3,"td",20),e.BQk(),e.YNc(118,Ur,1,3,"tr",21),e.YNc(119,Nr,1,0,"mat-header-row",22),e.YNc(120,Or,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.hij("Total Limbo Balance: ",e.lcZ(3,30,a.pendingChannels.total_limbo_balance)," Sats"),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Open (",a.pendingOpenChannelsLength,")"),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.pendingOpenChannels)("ngClass",e.VKq(32,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(34,Rr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedOpenColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedOpenColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Force Closing (",a.pendingForceClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingForceClosingChannels)("ngClass",e.VKq(35,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(37,Ir)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedForceClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedForceClosingColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Closing (",a.pendingClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingClosingChannels)("ngClass",e.VKq(38,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(40,Mr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedClosingColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Waiting Close (",a.pendingWaitClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingWaitClosingChannels)("ngClass",e.VKq(41,_e,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(43,Dr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedWaitClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedWaitClosingColumns))},directives:[_.xw,H.pp,p.O5,H.ib,H.yz,H.yK,_.Wh,_.yH,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk,L.lW],pipes:[p.JJ],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}),n})();function Jr(n,i){1&n&&e._UZ(0,"mat-progress-bar",27)}function Er(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1," Close Type "),e.qZA())}function Qr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"div",30),e.TgZ(2,"mat-icon",31),e._uU(3,"info_outline"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.xp6(2),e.Q6J("matTooltip",a.channelClosureType[t.close_type].tooltip),e.xp6(2),e.hij(" ",a.channelClosureType[t.close_type].name," ")}}function Yr(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1," Peer "),e.qZA())}const Hr=function(n){return{"max-width":n}};function Br(n,i){if(1&n&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Hr,a.screenSize===a.screenSizeEnum.XS?"10rem":"20rem")),e.xp6(1),e.hij(" ",t.remote_alias," ")}}function Vr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Capacity "),e.qZA())}function Gr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.capacity)," ")}}function zr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Close Height "),e.qZA())}function Wr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.close_height)," ")}}function Xr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Settled Balance "),e.qZA())}function $r(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.settled_balance)," ")}}function jr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",35),e.TgZ(1,"div",36),e.TgZ(2,"mat-select",37),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Kr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",39),e.TgZ(1,"span",34),e.TgZ(2,"button",40),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onClosedChannelClick(u,o)}),e._uU(3,"View Info"),e.qZA(),e.qZA(),e.qZA()}}function ec(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No closed channel available."),e.qZA())}function tc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting closed channels..."),e.qZA())}function nc(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function ac(n,i){if(1&n&&(e.TgZ(0,"td",41),e.YNc(1,ec,2,0,"p",42),e.YNc(2,tc,2,0,"p",42),e.YNc(3,nc,2,1,"p",42),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const ic=function(n){return{"display-none":n}};function oc(n,i){if(1&n&&e._UZ(0,"tr",43),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,ic,(null==t.closedChannels?null:t.closedChannels.data)&&(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)>0))}}function sc(n,i){1&n&&e._UZ(0,"tr",44)}function lc(n,i){1&n&&e._UZ(0,"tr",45)}const rc=function(n){return{"error-border":n,"overflow-auto":!0}},cc=function(){return["no_closed_channel"]};let uc=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.commonService=o,this.channelClosureType=l.HW,this.faHistory=Z.qO$,this.displayedColumns=[],this.closedChannelsData=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unsub=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["close_type","remote_alias","settled_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["close_type","remote_alias","capacity","close_height","settled_balance","actions"])}ngOnInit(){this.store.select(C.P2).pipe((0,d.R)(this.unsub[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.closedChannelsData=t.closedChannels,this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(t)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(){this.closedChannels.filter=this.selFilter.trim().toLowerCase()}onClosedChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[t.close_type].name,title:"Close Type",width:30,type:l.Gi.STRING},{key:"settled_balance",value:t.settled_balance,title:"Settled Balance",width:30,type:l.Gi.NUMBER},{key:"time_locked_balance",value:t.time_locked_balance,title:"Time Locked Balance",width:40,type:l.Gi.NUMBER}],[{key:"chan_id",value:t.chan_id,title:"Channel ID",width:30},{key:"capacity",value:t.capacity,title:"Capacity",width:30,type:l.Gi.NUMBER},{key:"close_height",value:t.close_height,title:"Close Height",width:40,type:l.Gi.NUMBER}],[{key:"remote_alias",value:t.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:t.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:t.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:t.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:l.Gi.STRING}]]}}}))}loadClosedChannelsTable(t){this.closedChannels=new r.by([...t]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.closedChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.closedChannels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unsub.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-closed-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:33,vars:14,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row","fxLayoutAlign","start center"],[1,"info-icon","info-icon-text",3,"matTooltip"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,Jr,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Er,2,0,"th",10),e.YNc(11,Qr,5,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Yr,2,0,"th",10),e.YNc(14,Br,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Vr,2,0,"th",15),e.YNc(17,Gr,4,3,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,zr,2,0,"th",15),e.YNc(20,Wr,4,3,"td",11),e.BQk(),e.ynx(21,17),e.YNc(22,Xr,2,0,"th",15),e.YNc(23,$r,4,3,"td",11),e.BQk(),e.ynx(24,18),e.YNc(25,jr,6,0,"th",19),e.YNc(26,Kr,4,0,"td",20),e.BQk(),e.ynx(27,21),e.YNc(28,ac,4,3,"td",22),e.BQk(),e.YNc(29,oc,1,3,"tr",23),e.YNc(30,sc,1,0,"tr",24),e.YNc(31,lc,1,0,"tr",25),e.qZA(),e.qZA(),e._UZ(32,"mat-paginator",26),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.closedChannels)("ngClass",e.VKq(11,rc,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(13,cc)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,K.Hw,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-close_type[_ngcontent-%COMP%]{flex:0 0 16%;min-width:5rem}.mat-column-remote_alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function pc(n,i){1&n&&e._UZ(0,"mat-progress-bar",27)}function mc(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1,"Amount (Sats)"),e.qZA())}function _c(n,i){if(1&n&&(e.TgZ(0,"span",33),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,null==t?null:t.amount)," ")}}function dc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,_c,3,3,"span",32),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function hc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",30),e._uU(2),e.qZA(),e.YNc(3,dc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" Active HTLCs: ",null==t||null==t.pending_htlcs?null:t.pending_htlcs.length," "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function gc(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1,"Alias/Incoming"),e.qZA())}function fc(n,i){if(1&n&&(e.TgZ(0,"span",30),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null!=t&&t.incoming?"Yes":"No"," ")}}function Cc(n,i){if(1&n&&(e.ynx(0),e.YNc(1,fc,2,1,"span",34),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function xc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",30),e._uU(2),e.qZA(),e.YNc(3,Cc,2,1,"ng-container",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(null==t?null:t.remote_alias),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Zc(n,i){1&n&&(e.TgZ(0,"th",35),e.TgZ(1,"span",36),e._uU(2,"Expiration Height"),e.qZA(),e.qZA())}function yc(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t?null:t.expiration_height,"1.0-0")," ")}}function Tc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,yc,3,4,"span",37),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function bc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",36),e._uU(2),e.qZA(),e.YNc(3,Tc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(" "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Ac(n,i){1&n&&(e.TgZ(0,"th",38),e.TgZ(1,"span",36),e._uU(2,"Hash Lock"),e.qZA(),e.qZA())}function vc(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.hash_lock," ")}}function wc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,vc,2,1,"span",37),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function qc(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",36),e._uU(2),e.qZA(),e.YNc(3,wc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(" "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Sc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",40),e.TgZ(1,"div",41),e.TgZ(2,"mat-select",42),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Lc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",45),e.TgZ(1,"button",48),e.NdJ("click",function(){const s=e.CHM(t).$implicit,u=e.oxw(2).$implicit;return e.oxw().onHTLCClick(s,u)}),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=i.index;e.xp6(2),e.hij("View ",t+1,"")}}function kc(n,i){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Lc,3,1,"div",47),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function Fc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"span",45),e.TgZ(2,"button",46),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return s.is_expanded=!s.is_expanded}),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,kc,2,1,"div",31),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(3),e.Oqu(t.is_expanded?"Hide":"Show"),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Uc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No active htlc available."),e.qZA())}function Nc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting active htlcs..."),e.qZA())}function Oc(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Rc(n,i){if(1&n&&(e.TgZ(0,"td",49),e.YNc(1,Uc,2,0,"p",31),e.YNc(2,Nc,2,0,"p",31),e.YNc(3,Oc,2,1,"p",31),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.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.COMPLETED),e.xp6(1),e.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),e.xp6(1),e.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 Ic=function(n){return{"display-none":n}};function Mc(n,i){if(1&n&&e._UZ(0,"tr",50),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Ic,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Dc(n,i){1&n&&e._UZ(0,"tr",51)}function Pc(n,i){1&n&&e._UZ(0,"tr",52)}const Jc=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Ec=function(){return["no_channel"]};let Qc=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","expiration_height","actions"]):(this.flgSticky=!0,this.displayedColumns=["amount","incoming","expiration_height","hash_lock","actions"])}ngOnInit(){this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsJSONArr=t.channels.filter(a=>a.pending_htlcs&&a.pending_htlcs.length>0)||[],this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:a.remote_alias,title:"Alias",width:100,type:l.Gi.STRING}],[{key:"amount",value:t.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER},{key:"incoming",value:t.incoming?"Yes":"No",title:"Incoming",width:50,type:l.Gi.STRING}],[{key:"expiration_height",value:t.expiration_height,title:"Expiration Height",width:50,type:l.Gi.NUMBER},{key:"hash_lock",value:t.hash_lock,title:"Hash Lock",width:50,type:l.Gi.STRING}]]}}}))}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!0,component:xe}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadHTLCsTable(t){this.channels=new r.by(t?[...t]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>{switch(o){case"amount":return this.commonService.sortByKey(a.pending_htlcs,o,"number",this.sort.direction),a.pending_htlcs&&a.pending_htlcs.length?a.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(a.pending_htlcs,o,"boolean",this.sort.direction),a.remote_alias?a.remote_alias:a.remote_pubkey?a.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(a.pending_htlcs,o,"number",this.sort.direction),a;default:return a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null}},this.channels.paginator=this.paginator,this.channels.filterPredicate=(a,o)=>((a.remote_alias?a.remote_alias.toLowerCase():"")+a.pending_htlcs.map(u=>JSON.stringify(u)+(u.incoming?"yes":"no"))).includes(o),this.applyFilter()}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){return JSON.parse(JSON.stringify(this.channels.data)).reduce((o,s)=>o.concat(s.pending_htlcs?s.pending_htlcs:s),[])}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("HTLCs")}])],decls:30,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","expiration_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"px-2"],["fxLayoutAlign","end center"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,pc,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,mc,2,0,"th",10),e.YNc(11,hc,4,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,gc,2,0,"th",10),e.YNc(14,xc,4,2,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,Zc,3,0,"th",14),e.YNc(17,bc,4,2,"td",11),e.BQk(),e.ynx(18,15),e.YNc(19,Ac,3,0,"th",16),e.YNc(20,qc,4,2,"td",17),e.BQk(),e.ynx(21,18),e.YNc(22,Sc,6,0,"th",19),e.YNc(23,Fc,5,2,"td",20),e.BQk(),e.ynx(24,21),e.YNc(25,Rc,4,3,"td",22),e.BQk(),e.YNc(26,Mc,1,3,"tr",23),e.YNc(27,Dc,1,0,"tr",24),e.YNc(28,Pc,1,0,"tr",25),e.qZA(),e.qZA(),e._UZ(29,"mat-paginator",26),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(11,Jc,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(13,Ec)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.sg,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-amount[_ngcontent-%COMP%], .mat-column-expiration_height[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-incoming[_ngcontent-%COMP%], .mat-column-hash_lock[_ngcontent-%COMP%]{flex:0 0 25%;width:25%;text-overflow:ellipsis}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}"]}),n})();function Yc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Wallet password is required."),e.qZA())}let Hc=(()=>{class n{constructor(t){this.store=t,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch((0,b.xG)({payload:{pwd:window.btoa(this.walletPassword)}}))}resetData(){this.walletPassword=""}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-unlock-wallet"]],decls:12,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","placeholder","Password","name","walletPassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(s){return a.walletPassword=s}),e.qZA(),e.TgZ(4,"mat-hint"),e._uU(5,"Enter Wallet Password"),e.qZA(),e.YNc(6,Yc,2,0,"mat-error",4),e.qZA(),e.TgZ(7,"div",5),e.TgZ(8,"button",6),e.NdJ("click",function(){return a.resetData()}),e._uU(9,"Clear Field"),e.qZA(),e.TgZ(10,"button",7),e.NdJ("click",function(){return a.onUnlockWallet()}),e._uU(11,"Unlock Wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.walletPassword),e.xp6(3),e.Q6J("ngIf",!a.walletPassword))},directives:[_.xw,c._Y,c.JL,c.F,_.Wh,f.KE,_.yH,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,f.bx,p.O5,L.lW,f.TO],styles:[""]}),n})();var Bc=h(1555);function Vc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",5),e._uU(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"button",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.proceed=!1,o.warnRes=!0}),e._uU(6,"Do Not Proceed"),e.qZA(),e.TgZ(7,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.proceed=!0,o.warnRes=!0}),e._uU(8,"Proceed"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Gc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e._uU(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),e.qZA(),e.TgZ(3,"div",6),e.TgZ(4,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().warnRes=!1}),e._uU(5,"Go Back"),e.qZA(),e.qZA(),e.qZA()}}function zc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Wc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password must be at least 8 characters in length."),e.qZA())}function Xc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Confirm password is required."),e.qZA())}function $c(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Confirm password must be at least 8 characters in length."),e.qZA())}function jc(n,i){1&n&&(e.TgZ(0,"div",41),e.TgZ(1,"mat-icon",42),e._uU(2,"cancel"),e.qZA(),e._uU(3,"Passwords do not match. "),e.qZA())}function Kc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Cipher seed is required."),e.qZA())}function e1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),e.qZA())}function t1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Passphrase is required."),e.qZA())}function n1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"vpn_key"),e.qZA())}function a1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"swap_calls"),e.qZA())}function i1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"fingerprint"),e.qZA())}function o1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-vertical-stepper",12,13),e.TgZ(2,"mat-step",14),e.TgZ(3,"form",15),e.TgZ(4,"mat-form-field",16),e._UZ(5,"input",17),e.TgZ(6,"mat-hint"),e._uU(7,"Enter Wallet Password"),e.qZA(),e.YNc(8,zc,2,0,"mat-error",1),e.YNc(9,Wc,2,0,"mat-error",1),e.qZA(),e.TgZ(10,"mat-form-field",16),e._UZ(11,"input",18),e.TgZ(12,"mat-hint"),e._uU(13,"Confirm Wallet Password"),e.qZA(),e.YNc(14,Xc,2,0,"mat-error",1),e.YNc(15,$c,2,0,"mat-error",1),e.qZA(),e.YNc(16,jc,4,0,"div",19),e.TgZ(17,"div",20),e.TgZ(18,"button",21),e._uU(19,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"mat-step",22),e.TgZ(21,"form",23),e.TgZ(22,"div",24),e.TgZ(23,"mat-slide-toggle",25),e._uU(24,"Existing Cipher"),e.qZA(),e.TgZ(25,"mat-form-field",26),e._UZ(26,"input",27),e.TgZ(27,"mat-hint"),e._uU(28,"Cipher Seed"),e.qZA(),e.YNc(29,Kc,2,0,"mat-error",1),e.YNc(30,e1,2,0,"mat-error",1),e.qZA(),e.qZA(),e.TgZ(31,"div",28),e.TgZ(32,"button",29),e._uU(33,"Back"),e.qZA(),e.TgZ(34,"button",30),e._uU(35,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"mat-step",31),e.TgZ(37,"form",23),e.TgZ(38,"div",24),e.TgZ(39,"mat-slide-toggle",32),e._uU(40,"Existing Passphrase"),e.qZA(),e.TgZ(41,"mat-form-field",33),e._UZ(42,"input",34),e.TgZ(43,"mat-hint"),e._uU(44,"Enter Passphrase"),e.qZA(),e.YNc(45,t1,2,0,"mat-error",1),e.qZA(),e.qZA(),e.TgZ(46,"div",28),e.TgZ(47,"button",35),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(48,"Clear"),e.qZA(),e.TgZ(49,"button",36),e._uU(50,"Back"),e.qZA(),e.TgZ(51,"button",37),e.NdJ("click",function(){return e.CHM(t),e.oxw().onInitWallet()}),e._uU(52,"Initialize Wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(53,n1,2,0,"ng-template",38),e.YNc(54,a1,2,0,"ng-template",39),e.YNc(55,i1,2,0,"ng-template",40),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",t.passwordFormGroup),e.xp6(1),e.Q6J("formGroup",t.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletPassword.errors?null:t.passwordFormGroup.controls.initWalletPassword.errors.required),e.xp6(1),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletPassword.errors?null:t.passwordFormGroup.controls.initWalletPassword.errors.minlength),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:t.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),e.xp6(1),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:t.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),e.xp6(1),e.Q6J("ngIf",(null==t.passwordFormGroup.errors?null:t.passwordFormGroup.errors.unmatchedPasswords)&&(t.passwordFormGroup.controls.initWalletPassword.touched||t.passwordFormGroup.controls.initWalletPassword.dirty)&&(t.passwordFormGroup.controls.initWalletConfirmPassword.touched||t.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),e.xp6(4),e.Q6J("stepControl",t.cipherFormGroup),e.xp6(1),e.Q6J("formGroup",t.cipherFormGroup),e.xp6(2),e.Q6J("labelPosition","before"),e.xp6(6),e.Q6J("ngIf",null==t.cipherFormGroup.controls.cipherSeed.errors?null:t.cipherFormGroup.controls.cipherSeed.errors.required),e.xp6(1),e.Q6J("ngIf",!(null!=t.cipherFormGroup.controls.cipherSeed.errors&&t.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==t.cipherFormGroup.controls.cipherSeed.errors?null:t.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),e.xp6(6),e.Q6J("stepControl",t.passphraseFormGroup),e.xp6(1),e.Q6J("formGroup",t.passphraseFormGroup),e.xp6(2),e.Q6J("labelPosition","before"),e.xp6(6),e.Q6J("ngIf",null==t.passphraseFormGroup.controls.passphrase.errors?null:t.passphraseFormGroup.controls.passphrase.errors.required)}}function s1(n,i){if(1&n&&(e.TgZ(0,"span",48),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function l1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",43),e._uU(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),e.qZA(),e.TgZ(4,"div",44),e.YNc(5,s1,2,1,"span",45),e.qZA(),e.TgZ(6,"div",46),e._uU(7,"Wallet initialization is done."),e.qZA(),e.TgZ(8,"div",46),e._uU(9,"The node will be usable only after LND has synced completely with the network."),e.qZA(),e.TgZ(10,"div",46),e._uU(11,"Click continue only after writing down the seed."),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"button",47),e.NdJ("click",function(){return e.CHM(t),e.oxw().onGoToHome()}),e._uU(14,"Go To Home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(5),e.Q6J("ngForOf",t.genSeedResponse)}}function r1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",46),e._uU(3,"Something went wrong! Unable to initialize wallet!"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"button",49),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(6,"Restart"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function c1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",46),e._uU(3,"Wallet recovery is done."),e.qZA(),e.TgZ(4,"div",46),e._uU(5,"The node will be usable only after LND has synced completely with the network."),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"button",50),e.NdJ("click",function(){return e.CHM(t),e.oxw().onGoToHome()}),e._uU(8,"Go To Home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function u1(n){const i=n.get("initWalletPassword"),t=n.get("initWalletConfirmPassword");return i&&t&&i.value!==t.value?{unmatchedPasswords:!0}:null}function p1(n){const i=n.value.toString().trim().split(",")||[];return i&&24!==i.length?{invalidCipher:!0}:null}let m1=(()=>{class n{constructor(t,a,o){this.store=t,this.formBuilder=a,this.lndEffects=o,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[c.kI.required,c.kI.minLength(8)]],initWalletConfirmPassword:["",[c.kI.required,c.kI.minLength(8)]]},{validators:u1}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[p1]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,d.R)(this.unsubs[0])).subscribe(t=>{t?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe((0,d.R)(this.unsubs[1])).subscribe(t=>{t?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe((0,d.R)(this.unsubs[2])).subscribe(t=>{this.initWalletResponse=t}),this.lndEffects.genSeedResponse.pipe((0,d.R)(this.unsubs[3])).subscribe(t=>{this.genSeedResponse=t,this.store.dispatch((0,b.y2)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.cipherFormGroup.controls.existingCipher.value){const t=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch((0,b.y2)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:t,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:t}}))}else this.store.dispatch((0,b.fu)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{payload:""}))}onGoToHome(){setTimeout(()=>{this.store.dispatch((0,v.tw)()),this.store.dispatch((0,b.sQ)({payload:{loadPage:"HOME"}}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(c.qu),e.Y36(ee.l))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-initialize-wallet"]],viewQuery:function(t,a){if(1&t&&e.Gf(B.Vq,5),2&t){let o;e.iGM(o=e.CRH())&&(a.stepper=o.first)}},features:[e._Bn([{provide:Bc.gx,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["stepper",""],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","placeholder","Confirm Password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","placeholder","Comma separated array of 24 words cipher seed","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Passphrase","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Vc,9,0,"div",1),e.YNc(2,Gc,6,0,"div",2),e.YNc(3,o1,56,17,"mat-vertical-stepper",3),e.YNc(4,l1,15,1,"div",1),e.YNc(5,r1,7,0,"div",1),e.YNc(6,c1,9,0,"div",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.insecureLND&&!a.warnRes),e.xp6(1),e.Q6J("ngIf",a.warnRes&&!a.proceed),e.xp6(1),e.Q6J("ngIf",(!a.insecureLND||a.warnRes&&a.proceed)&&a.genSeedResponse.length<=0&&""===a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length>0&&""!==a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length>0&&""===a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length<=0&&""!==a.initWalletResponse))},directives:[_.xw,p.O5,c._Y,c.JL,c.F,_.Wh,_.yH,L.lW,B.Vq,B.C0,c.sg,f.KE,I.Nt,c.Fj,c.JJ,c.u,c.Q7,f.bx,B.Ic,ue.Rr,B.fd,B.z9,f.TO,K.Hw,p.sg],styles:[""]}),n})(),_1=(()=>{class n{constructor(){this.faWallet=Z.X5K}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-wallet"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Unlock"],["label","Initialize"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Wallet"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"mat-tab-group"),e.TgZ(8,"mat-tab",5),e._UZ(9,"rtl-unlock-wallet"),e.qZA(),e.TgZ(10,"mat-tab",6),e._UZ(11,"rtl-initialize-wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faWallet))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.SP,D.uX,Hc,m1],styles:[""]}),n})();var d1=h(1365);function h1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let g1=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,this.faExchangeAlt=Z.Ssp,this.faChartPie=Z.OS1,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"lookuptransactions",name:"Lookup"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1]),(0,d1.M)(this.store.select(C.$k))).subscribe(([a,o])=>{this.currencyUnits=o.currencyUnits,this.balances=o.userPersona===l.ol.OPERATOR?[{title:"Local Capacity",dataValue:a.lightningBalance.local,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:a.lightningBalance.remote,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:a.lightningBalance.local,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:a.lightningBalance.remote,tooltip:"Amount you can receive"}],this.logger.info(a)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Lightning Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"Lightning Transactions"),e.qZA(),e.qZA(),e.TgZ(12,"div",7),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"nav",8),e.YNc(16,h1,2,3,"div",9),e.qZA(),e.TgZ(17,"div",10),e._UZ(18,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faExchangeAlt),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function f1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let C1=(()=>{class n{constructor(t){this.router=t,this.faSearch=Z.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-graph"]],decls:11,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Graph Lookups"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,f1,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faSearch),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function x1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Destination pubkey is required."),e.qZA())}function Z1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function y1(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function T1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Hop "),e.qZA())}function b1(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.hop_sequence," ")}}function A1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Peer "),e.qZA())}const v1=function(n){return{"max-width":n}};function w1(n,i){if(1&n&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,v1,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.hij(" ",null==t?null:t.pubkey_alias," ")}}function q1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Channel "),e.qZA())}function S1(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.chan_id," ")}}function L1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Capacity (Sats) "),e.qZA())}function k1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.chan_capacity),"")}}function F1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Amount To Fwd (Sats) "),e.qZA())}function U1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.amt_to_forward)," ")}}function N1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Fee (mSats) "),e.qZA())}function O1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.fee_msat)," ")}}function R1(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function I1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"button",45),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onHopClick(u,o)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function M1(n,i){1&n&&e._UZ(0,"tr",46)}function D1(n,i){1&n&&e._UZ(0,"tr",47)}const P1=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}};let J1=(()=>{class n{constructor(t,a,o){this.store=t,this.lndEffects=a,this.commonService=o,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=Z.FpQ,this.faExclamationTriangle=Z.eHv,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["pubkey_alias","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","fee_msat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"])}ngOnInit(){this.lndEffects.setQueryRoutes.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.qrHops=new r.by([]),t.routes&&t.routes.length&&t.routes.length>0&&t.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new r.by([...t.routes[0].hops]),this.qrHops.data=t.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new r.by([]),this.flgLoading[0]=!0,this.store.dispatch((0,b.WO)({payload:{destPubkey:this.destinationPubkey,amount:this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:t.hop_sequence,title:"Sequence",width:33,type:l.Gi.NUMBER},{key:"amt_to_forward",value:t.amt_to_forward,title:"Amount To Forward (Sats)",width:33,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:34,type:l.Gi.NUMBER}],[{key:"chan_capacity",value:t.chan_capacity,title:"Channel Capacity (Sats)",width:50,type:l.Gi.NUMBER},{key:"expiry",value:t.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER}],[{key:"pubkey_alias",value:t.pubkey_alias,title:"Peer Alias",width:50,type:l.Gi.STRING},{key:"chan_id",value:t.chan_id,title:"Channel ID",width:50,type:l.Gi.STRING}],[{key:"pub_key",value:t.pub_key,title:"Peer Pubkey",width:100,type:l.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-query-routes"]],viewQuery:function(t,a){if(1&t&&e.Gf(A.YE,5),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first)}},decls:51,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","chan_id"],["matColumnDef","chan_capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,a){if(1&t){const o=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.NdJ("ngSubmit",function(){return e.CHM(o),e.MAs(2).form.valid&&a.onQueryRoutes()}),e.TgZ(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span"),e._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",5),e.TgZ(8,"input",6,7),e.NdJ("ngModelChange",function(u){return a.destinationPubkey=u}),e.qZA(),e.YNc(10,x1,2,0,"mat-error",8),e.qZA(),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(u){return a.amount=u}),e.qZA(),e.YNc(13,Z1,2,0,"mat-error",8),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"button",12),e.NdJ("click",function(){return a.resetData()}),e._uU(16,"Clear"),e.qZA(),e.TgZ(17,"button",13),e._uU(18,"Query Route"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",14),e.TgZ(20,"div",15),e._UZ(21,"fa-icon",16),e.TgZ(22,"span",17),e._uU(23,"Transaction Route"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",18),e.YNc(25,y1,1,0,"mat-progress-bar",19),e.TgZ(26,"table",20,21),e.ynx(28,22),e.YNc(29,T1,2,0,"th",23),e.YNc(30,b1,2,1,"td",24),e.BQk(),e.ynx(31,25),e.YNc(32,A1,2,0,"th",23),e.YNc(33,w1,2,4,"td",26),e.BQk(),e.ynx(34,27),e.YNc(35,q1,2,0,"th",23),e.YNc(36,S1,2,1,"td",24),e.BQk(),e.ynx(37,28),e.YNc(38,L1,2,0,"th",29),e.YNc(39,k1,4,3,"td",24),e.BQk(),e.ynx(40,30),e.YNc(41,F1,2,0,"th",29),e.YNc(42,U1,4,3,"td",24),e.BQk(),e.ynx(43,31),e.YNc(44,N1,2,0,"th",29),e.YNc(45,O1,4,3,"td",24),e.BQk(),e.ynx(46,32),e.YNc(47,R1,3,0,"th",33),e.YNc(48,I1,3,0,"td",34),e.BQk(),e.YNc(49,M1,1,0,"tr",35),e.YNc(50,D1,1,0,"tr",36),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.xp6(4),e.Q6J("icon",a.faExclamationTriangle),e.xp6(4),e.Q6J("ngModel",a.destinationPubkey),e.xp6(2),e.Q6J("ngIf",!a.destinationPubkey),e.xp6(2),e.Q6J("ngModel",a.amount)("step",1e3)("min",0),e.xp6(1),e.Q6J("ngIf",!a.amount),e.xp6(8),e.Q6J("icon",a.faRoute),e.xp6(4),e.Q6J("ngIf",!0===a.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",a.qrHops)("ngClass",e.VKq(14,P1,"error"===a.flgLoading[0])),e.xp6(23),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns))},directives:[_.xw,_.yH,c._Y,c.JL,c.F,_.Wh,M.BN,f.KE,I.Nt,c.Fj,c.Q7,c.JJ,c.On,p.O5,c.wV,c.qQ,$.q,L.lW,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.as,r.nj,f.TO,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var ie=h(9814);function E1(n,i){if(1&n&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.AsE("",a.nodeFeaturesEnum[t.value.name]||t.value.name,": ",t.value.is_required?"Mandatory":"Optional","")}}function Q1(n,i){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Network"),e.qZA())}function Y1(n,i){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.network," ")}}function H1(n,i){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Address"),e.qZA())}function B1(n,i){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.addr," ")}}function V1(n,i){1&n&&(e.TgZ(0,"th",29),e.TgZ(1,"span",30),e._uU(2,"Actions"),e.qZA(),e.qZA())}function G1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",31),e.TgZ(1,"span",30),e.TgZ(2,"button",32),e.NdJ("copied",function(o){return e.CHM(t),e.oxw(2).onCopyNodeURI(o)}),e._uU(3,"Copy Node URI"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(2),e.Q6J("payload",a.lookupResult.node.pub_key+"@"+t.addr)}}function z1(n,i){1&n&&e._UZ(0,"tr",33)}function W1(n,i){1&n&&e._UZ(0,"tr",34)}const X1=function(n){return{"background-color":n}};function $1(n,i){if(1&n&&(e.TgZ(0,"div",1),e._UZ(1,"mat-divider",2),e.TgZ(2,"div",3),e.TgZ(3,"div",4),e.TgZ(4,"h4",5),e._uU(5,"Alias"),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.TgZ(8,"span",7),e._uU(9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",8),e.TgZ(11,"h4",5),e._uU(12,"Pub Key"),e.qZA(),e.TgZ(13,"span",9),e._uU(14),e.qZA(),e.qZA(),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"div",3),e.TgZ(17,"div",4),e.TgZ(18,"h4",5),e._uU(19,"Last Update"),e.qZA(),e.TgZ(20,"span",6),e._uU(21),e.ALo(22,"date"),e.qZA(),e.qZA(),e.TgZ(23,"div",8),e.TgZ(24,"h4",5),e._uU(25,"Total Capacity (Sats)"),e.qZA(),e.TgZ(26,"span",6),e._uU(27),e.ALo(28,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(29,"mat-divider",10),e.TgZ(30,"div",3),e.TgZ(31,"div",4),e.TgZ(32,"h4",5),e._uU(33,"Number of Channels"),e.qZA(),e.TgZ(34,"span",6),e._uU(35),e.ALo(36,"number"),e.qZA(),e.qZA(),e.TgZ(37,"div",11),e.TgZ(38,"h4",5),e._uU(39,"Features"),e.qZA(),e.YNc(40,E1,2,2,"span",12),e.ALo(41,"keyvalue"),e.qZA(),e.qZA(),e._UZ(42,"mat-divider",10),e.TgZ(43,"div",13),e.TgZ(44,"h4",14),e._uU(45,"Addresses"),e.qZA(),e.TgZ(46,"div",15),e.TgZ(47,"table",16,17),e.ynx(49,18),e.YNc(50,Q1,2,0,"th",19),e.YNc(51,Y1,2,1,"td",20),e.BQk(),e.ynx(52,21),e.YNc(53,H1,2,0,"th",19),e.YNc(54,B1,2,1,"td",20),e.BQk(),e.ynx(55,22),e.YNc(56,V1,3,0,"th",23),e.YNc(57,G1,4,1,"td",24),e.BQk(),e.YNc(58,z1,1,0,"tr",25),e.YNc(59,W1,1,0,"tr",26),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(t.lookupResult.node.alias),e.xp6(1),e.Q6J("ngStyle",e.VKq(24,X1,null==t.lookupResult.node?null:t.lookupResult.node.color)),e.xp6(1),e.Oqu(null==t.lookupResult.node?null:t.lookupResult.node.color),e.xp6(5),e.Oqu(t.lookupResult.node.pub_key),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(22,15,1e3*t.lookupResult.node.last_update,"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(e.lcZ(28,18,t.lookupResult.total_capacity)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(36,20,t.lookupResult.num_channels)),e.xp6(5),e.Q6J("ngForOf",e.lcZ(41,22,t.lookupResult.node.features)),e.xp6(2),e.Q6J("inset",!0),e.xp6(5),e.Q6J("dataSource",t.lookupResult.node.addresses),e.xp6(11),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}let j1=(()=>{class n{constructor(t,a){this.logger=t,this.snackBar=a,this.nodeFeaturesEnum=l.hZ,this.displayedColumns=["network","addr","actions"]}onCopyNodeURI(t){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+t)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start",1,"my-1"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxLayout","column"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&e.YNc(0,$1,60,26,"div",0),2&t&&e.Q6J("ngIf",a.lookupResult)},directives:[p.O5,_.xw,z.d,_.yH,_.Wh,p.PC,q.Zl,p.sg,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,A.nU,r.ev,L.lW,se.y,r.XQ,r.Gk],pipes:[p.uU,p.JJ,p.Nd],styles:[""]}),n})();function K1(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 1"),e.qZA())}function eu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 1 (Your Node)"),e.qZA())}function tu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 2"),e.qZA())}function nu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 2 (Your Node)"),e.qZA())}function au(n,i){if(1&n&&(e.TgZ(0,"div",1),e._UZ(1,"mat-divider",2),e.TgZ(2,"div",3),e.TgZ(3,"div",4),e.TgZ(4,"h4",5),e._uU(5,"Channel Id"),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"h4",5),e._uU(10,"Channel Point"),e.qZA(),e.TgZ(11,"span",6),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e._UZ(13,"mat-divider",8),e.TgZ(14,"div",3),e.TgZ(15,"div",4),e.TgZ(16,"h4",5),e._uU(17,"Last Update"),e.qZA(),e.TgZ(18,"span",6),e._uU(19),e.ALo(20,"date"),e.qZA(),e.qZA(),e.TgZ(21,"div",7),e.TgZ(22,"h4",5),e._uU(23,"Capacity (Sats)"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(27,"mat-divider",8),e.TgZ(28,"div",9),e.TgZ(29,"div",10),e.TgZ(30,"div",11),e.YNc(31,K1,2,0,"h3",12),e.YNc(32,eu,2,0,"h3",12),e.qZA(),e._UZ(33,"mat-divider",8),e.TgZ(34,"div",13),e.TgZ(35,"h4",5),e._uU(36,"Pubkey"),e.qZA(),e.TgZ(37,"span",6),e._uU(38),e.qZA(),e.qZA(),e._UZ(39,"mat-divider",8),e.TgZ(40,"div",14),e.TgZ(41,"h4",5),e._uU(42,"Time Lock Delta"),e.qZA(),e.TgZ(43,"span",6),e._uU(44),e.qZA(),e.qZA(),e._UZ(45,"mat-divider",8),e.TgZ(46,"div",14),e.TgZ(47,"h4",5),e._uU(48,"Min HTLC"),e.qZA(),e.TgZ(49,"span",6),e._uU(50),e.qZA(),e.qZA(),e._UZ(51,"mat-divider",8),e.TgZ(52,"div",14),e.TgZ(53,"h4",5),e._uU(54,"Fee Base Msat"),e.qZA(),e.TgZ(55,"span",6),e._uU(56),e.qZA(),e.qZA(),e._UZ(57,"mat-divider",8),e.TgZ(58,"div",14),e.TgZ(59,"h4",5),e._uU(60,"Fee Rate Milli Msat"),e.qZA(),e.TgZ(61,"span",6),e._uU(62),e.qZA(),e.qZA(),e._UZ(63,"mat-divider",8),e.TgZ(64,"div",14),e.TgZ(65,"h4",5),e._uU(66,"Disabled"),e.qZA(),e.TgZ(67,"span",6),e._uU(68),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",10),e.TgZ(70,"div"),e.YNc(71,tu,2,0,"h3",12),e.YNc(72,nu,2,0,"h3",12),e.qZA(),e._UZ(73,"mat-divider",8),e.TgZ(74,"div",13),e.TgZ(75,"h4",5),e._uU(76,"Pubkey"),e.qZA(),e.TgZ(77,"span",6),e._uU(78),e.qZA(),e.qZA(),e._UZ(79,"mat-divider",8),e.TgZ(80,"div",14),e.TgZ(81,"h4",5),e._uU(82,"Time Lock Delta"),e.qZA(),e.TgZ(83,"span",6),e._uU(84),e.qZA(),e.qZA(),e._UZ(85,"mat-divider",8),e.TgZ(86,"div",14),e.TgZ(87,"h4",5),e._uU(88,"Min HTLC"),e.qZA(),e.TgZ(89,"span",6),e._uU(90),e.qZA(),e.qZA(),e._UZ(91,"mat-divider",8),e.TgZ(92,"div",14),e.TgZ(93,"h4",5),e._uU(94,"Fee Base Msat"),e.qZA(),e.TgZ(95,"span",6),e._uU(96),e.qZA(),e.qZA(),e._UZ(97,"mat-divider",8),e.TgZ(98,"div",14),e.TgZ(99,"h4",5),e._uU(100,"Fee Rate Milli Msat"),e.qZA(),e.TgZ(101,"span",6),e._uU(102),e.qZA(),e.qZA(),e._UZ(103,"mat-divider",8),e.TgZ(104,"div",14),e.TgZ(105,"h4",5),e._uU(106,"Disabled"),e.qZA(),e.TgZ(107,"span",6),e._uU(108),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(t.lookupResult.channel_id),e.xp6(5),e.Oqu(t.lookupResult.chan_point),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(20,35,1e3*t.lookupResult.last_update,"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(e.lcZ(26,38,t.lookupResult.capacity)),e.xp6(2),e.Q6J("inset",!0),e.xp6(4),e.Q6J("ngIf",!t.node1_match),e.xp6(1),e.Q6J("ngIf",t.node1_match),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(t.lookupResult.node1_pub),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.time_lock_delta),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.min_htlc),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.fee_base_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.fee_rate_milli_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null!=t.lookupResult.node1_policy&&t.lookupResult.node1_policy.disabled?"Yes":"No"),e.xp6(3),e.Q6J("ngIf",!t.node2_match),e.xp6(1),e.Q6J("ngIf",t.node2_match),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(t.lookupResult.node2_pub),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.time_lock_delta),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.min_htlc),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.fee_base_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.fee_rate_milli_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null!=t.lookupResult.node2_policy&&t.lookupResult.node2_policy.disabled?"Yes":"No")}}let iu=(()=>{class n{constructor(t){this.store=t,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.lookupResult.node1_pub===t.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===t.identity_pubkey&&(this.node2_match=!0)})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","30","fxLayoutAlign","end start"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start"],[1,"my-1",3,"inset"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],["fxLayout","column","fxFlex","20"],["fxLayout","column","fxFlex","10"],[1,"page-title","font-bold-500"]],template:function(t,a){1&t&&e.YNc(0,au,109,40,"div",0),2&t&&e.Q6J("ngIf",a.lookupResult)},directives:[p.O5,_.xw,z.d,_.yH,_.Wh],pipes:[p.uU,p.JJ],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),n})();function ou(n,i){if(1&n&&(e.TgZ(0,"mat-radio-button",17),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("value",t.id)("checked",a.selectedFieldId===t.id),e.xp6(1),e.hij(" ",t.name," ")}}function su(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function lu(n,i){1&n&&e._UZ(0,"mat-progress-bar",20)}const ru=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function cu(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,lu,1,0,"mat-progress-bar",19),e._uU(2),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(3,ru,""!==t.errorMessage&&"Getting lookup details..."!==t.errorMessage)),e.xp6(1),e.Q6J("ngIf","Getting lookup details..."===t.errorMessage),e.xp6(1),e.hij(" ",t.errorMessage," ")}}function uu(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-node-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("lookupResult",t.lookupValue)}}function pu(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-channel-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("lookupResult",t.lookupValue)}}function mu(n,i){1&n&&(e.TgZ(0,"span",27),e.TgZ(1,"h3"),e._uU(2,"Error! Unable to find details!"),e.qZA(),e.qZA())}function _u(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"div",22),e.TgZ(2,"span",23),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"div",24),e.YNc(5,uu,2,1,"span",25),e.YNc(6,pu,2,1,"span",25),e.YNc(7,mu,3,0,"span",26),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.hij("",t.lookupFields[t.selectedFieldId].name," Details"),e.xp6(1),e.Q6J("ngSwitch",t.selectedFieldId),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1)}}const du=function(n){return{"mt-1":!0,"mt-2":n}};let He=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.actions=s,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.faSearch=Z.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.SET_LOOKUP_LND&&(this.errorMessage=0===this.selectedFieldId&&t.payload.hasOwnProperty("node")||1===this.selectedFieldId&&t.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(t.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!t.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!t.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&"Lookup"===t.payload.action&&(this.errorMessage="",t.payload.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof t.payload.message?JSON.stringify(t.payload.message):t.payload.message),t.payload.status===l.Bn.INITIATED&&(this.errorMessage=l.m6.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,b.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,b.$A)({payload:{uiMessage:l.m6.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lookups"]],decls:19,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-content",2),e.TgZ(3,"form",3,4),e.TgZ(5,"div",5),e.TgZ(6,"mat-radio-group",6),e.NdJ("ngModelChange",function(s){return a.selectedFieldId=s})("change",function(s){return a.onSelectChange(s)}),e.YNc(7,ou,2,3,"mat-radio-button",7),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",8),e.TgZ(9,"input",9,10),e.NdJ("change",function(){return a.clearLookupValue()})("ngModelChange",function(s){return a.lookupKey=s}),e.qZA(),e.YNc(11,su,2,1,"mat-error",11),e.qZA(),e.TgZ(12,"div",12),e.TgZ(13,"button",13),e.NdJ("click",function(){return a.resetData()}),e._uU(14,"Clear"),e.qZA(),e.TgZ(15,"button",14),e.NdJ("click",function(){return a.onLookup()}),e._uU(16,"Lookup"),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,cu,3,5,"div",15),e.YNc(18,_u,8,4,"div",16),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",a.selectedFieldId),e.xp6(1),e.Q6J("ngForOf",a.lookupFields),e.xp6(1),e.Q6J("ngClass",e.VKq(8,du,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("placeholder",(null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key")("ngModel",a.lookupKey),e.xp6(2),e.Q6J("ngIf",!a.lookupKey),e.xp6(6),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},directives:[_.xw,_.yH,_.Wh,T.dn,c._Y,c.JL,c.F,ie.VQ,c.JJ,c.On,p.sg,f.KE,p.mk,q.oO,I.Nt,c.Fj,c.Q7,p.O5,L.lW,ie.U0,f.TO,P.pW,p.RF,p.n9,p.ED,j1,iu],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})();var be=h(6856);function hu(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid date format."),e.qZA())}function gu(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid date format."),e.qZA())}function fu(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",27),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let Cu=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,this.faMapSigns=Z.SuH,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"},{link:"nonroutingprs",name:"Non Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.onEventsFetch();const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}onEventsFetch(){this.store.dispatch((0,b.QJ)({payload:{forwarding_events:[]}})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch((0,b.u0)({payload:{end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch((0,b.QJ)({payload:{forwarding_events:[]}})),this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing"]],decls:35,vars:15,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["routingForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","placeholder","Start Date","name","startDate","tabindex","1",3,"matDatepicker","max","ngModel","ngModelChange"],["strtDate","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],["startDatepicker",""],[4,"ngIf"],["matInput","","placeholder","End Date","name","endDate","tabindex","2",3,"matDatepicker","min","max","ngModel","ngModelChange"],["enDate","ngModel"],["endDatepicker",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Routing"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-card-content",6),e.TgZ(8,"form",7,8),e.NdJ("ngSubmit",function(){return a.onEventsFetch()}),e.TgZ(10,"div",9),e.TgZ(11,"mat-form-field",10),e.TgZ(12,"input",11,12),e.NdJ("ngModelChange",function(s){return a.startDate=s}),e.qZA(),e._UZ(14,"mat-datepicker-toggle",13),e._UZ(15,"mat-datepicker",14,15),e.YNc(17,hu,2,0,"mat-error",16),e.qZA(),e.TgZ(18,"mat-form-field",10),e.TgZ(19,"input",17,18),e.NdJ("ngModelChange",function(s){return a.endDate=s}),e.qZA(),e._UZ(21,"mat-datepicker-toggle",13),e._UZ(22,"mat-datepicker",14,19),e.YNc(24,gu,2,0,"mat-error",16),e.qZA(),e.qZA(),e.TgZ(25,"div",20),e.TgZ(26,"button",21),e.NdJ("click",function(){return a.resetData()}),e._uU(27,"Clear"),e.qZA(),e.TgZ(28,"button",22),e._uU(29,"Fetch Events"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",23),e.TgZ(31,"nav",24),e.YNc(32,fu,2,3,"div",25),e.qZA(),e.qZA(),e.TgZ(33,"div",26),e._UZ(34,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(13),s=e.MAs(16),u=e.MAs(20),g=e.MAs(23);e.xp6(2),e.Q6J("icon",a.faMapSigns),e.xp6(10),e.Q6J("matDatepicker",s)("max",a.today)("ngModel",a.startDate),e.xp6(2),e.Q6J("for",s),e.xp6(1),e.Q6J("startAt",a.startDate),e.xp6(2),e.Q6J("ngIf",o.errors),e.xp6(2),e.Q6J("matDatepicker",g)("min",a.startDate)("max",a.today)("ngModel",a.endDate),e.xp6(2),e.Q6J("for",g),e.xp6(1),e.Q6J("startAt",a.endDate),e.xp6(2),e.Q6J("ngIf",u.errors),e.xp6(8),e.Q6J("ngForOf",a.links)}},directives:[_.xw,_.Wh,M.BN,_.yH,T.a8,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,be.hl,Ee.F,c.Fj,c.JJ,c.On,be.nW,f.R9,be.Mq,p.O5,$.q,L.lW,D.BU,p.sg,y.lC,f.TO,D.Nj,y.rH],styles:[""]}),n})();function xu(n,i){if(1&n&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function Zu(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e._UZ(1,"div",7),e.TgZ(2,"mat-form-field",8),e.TgZ(3,"input",9),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().filterValue=o})("input",function(){return e.CHM(t),e.oxw().applyFilter()})("keyup",function(){return e.CHM(t),e.oxw().applyFilter()}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.filterValue)}}function yu(n,i){1&n&&e._UZ(0,"mat-progress-bar",31)}function Tu(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Timestamp"),e.qZA())}function bu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,1e3*t.timestamp,"dd/MMM/y HH:mm"))}}function Au(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Inbound Channel"),e.qZA())}function vu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t.alias_in)}}function wu(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Outbound Channel"),e.qZA())}function qu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t.alias_out)}}function Su(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Inbound Amount (Sats)"),e.qZA())}function Lu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amt_in))}}function ku(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Outbound Amount (Sats)"),e.qZA())}function Fu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amt_out))}}function Uu(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Fee (mSats)"),e.qZA())}function Nu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.fee_msat))}}function Ou(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",36),e.TgZ(1,"div",37),e.TgZ(2,"mat-select",38),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",39),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Ru(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",40),e.TgZ(1,"button",41),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onForwardingEventClick(u,o)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Iu(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No forwarding history available."),e.qZA())}function Mu(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting forwarding history..."),e.qZA())}function Du(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function Pu(n,i){if(1&n&&(e.TgZ(0,"td",42),e.YNc(1,Iu,2,0,"p",43),e.YNc(2,Mu,2,0,"p",43),e.YNc(3,Du,2,1,"p",43),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ju=function(n){return{"display-none":n}};function Eu(n,i){if(1&n&&e._UZ(0,"tr",44),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ju,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function Qu(n,i){1&n&&e._UZ(0,"tr",45)}function Yu(n,i){1&n&&e._UZ(0,"tr",46)}const Hu=function(){return["no_event"]};function Bu(n,i){if(1&n&&(e.TgZ(0,"div",10),e.YNc(1,yu,1,0,"mat-progress-bar",11),e.TgZ(2,"table",12,13),e.ynx(4,14),e.YNc(5,Tu,2,0,"th",15),e.YNc(6,bu,3,4,"td",16),e.BQk(),e.ynx(7,17),e.YNc(8,Au,2,0,"th",15),e.YNc(9,vu,2,1,"td",16),e.BQk(),e.ynx(10,18),e.YNc(11,wu,2,0,"th",15),e.YNc(12,qu,2,1,"td",16),e.BQk(),e.ynx(13,19),e.YNc(14,Su,2,0,"th",20),e.YNc(15,Lu,4,3,"td",16),e.BQk(),e.ynx(16,21),e.YNc(17,ku,2,0,"th",20),e.YNc(18,Fu,4,3,"td",16),e.BQk(),e.ynx(19,22),e.YNc(20,Uu,2,0,"th",20),e.YNc(21,Nu,4,3,"td",16),e.BQk(),e.ynx(22,23),e.YNc(23,Ou,6,0,"th",24),e.YNc(24,Ru,3,0,"td",25),e.BQk(),e.ynx(25,26),e.YNc(26,Pu,4,3,"td",27),e.BQk(),e.YNc(27,Eu,1,3,"tr",28),e.YNc(28,Qu,1,0,"tr",29),e.YNc(29,Yu,1,0,"tr",30),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.forwardingHistoryEvents),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(6,Hu)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function Vu(n,i){if(1&n&&e._UZ(0,"mat-paginator",47),2&n){const t=e.oxw();e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Be=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.datePipe=s,this.eventsData=[],this.filterValue="",this.forwardingHistoryData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","fee_msat","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amt_in","amt_out","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat","actions"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.forwardingHistoryData=t.forwardingHistory.forwarding_events||[],this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory))})}ngAfterViewInit(){this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:l.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,t.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:t.timestamp,title:"Timestamp",width:25,type:l.Gi.DATE_TIME},{key:"amt_in",value:t.amt_in,title:"Inbound Amount (Sats)",width:25,type:l.Gi.NUMBER},{key:"amt_out",value:t.amt_out,title:"Outbound Amount (Sats)",width:25,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:25,type:l.Gi.NUMBER}],[{key:"alias_in",value:t.alias_in,title:"Inbound Peer Alias",width:25,type:l.Gi.STRING},{key:"chan_id_in",value:t.chan_id_in,title:"Inbound Channel ID",width:25,type:l.Gi.STRING},{key:"alias_out",value:t.alias_out,title:"Outbound Peer Alias",width:25,type:l.Gi.STRING},{key:"chan_id_out",value:t.chan_id_out,title:"Outbound Channel ID",width:25,type:l.Gi.STRING}]]}}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new r.by(t?[...t]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.forwardingHistoryEvents.filterPredicate=(a,o)=>((a.timestamp?this.datePipe.transform(new Date(1e3*a.timestamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-forwarding-history"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Events")}]),e.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","alias_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,xu,2,1,"div",1),e.YNc(2,Zu,4,1,"div",2),e.YNc(3,Bu,30,7,"div",3),e.YNc(4,Vu,1,3,"mat-paginator",4),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.Wh,p.O5,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,p.mk,q.oO,r.XQ,r.Gk,S.NW],pipes:[p.uU,p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const Gu=["tableIn"],zu=["tableOut"],Wu=["paginatorIn"],Xu=["paginatorOut"];function $u(n,i){if(1&n&&(e.TgZ(0,"div",3),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function ju(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function Ku(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Channel ID"),e.qZA())}const de=function(n){return{"max-width":n}};function ep(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function tp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Peer Alias"),e.qZA())}function np(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.alias)}}function ap(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Events"),e.qZA())}function ip(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.events))}}function op(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Total Amount (Sats)"),e.qZA())}function sp(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_amount))}}function lp(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function rp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"button",45),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onRoutingPeerClick(u,o,"in")}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function cp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No incoming routing peer available."),e.qZA())}function up(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting incoming routing peers..."),e.qZA())}function pp(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function mp(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,cp,2,0,"p",47),e.YNc(2,up,2,0,"p",47),e.YNc(3,pp,2,1,"p",47),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ve=function(n){return{"display-none":n}};function _p(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ve,(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function dp(n,i){1&n&&e._UZ(0,"tr",49)}function hp(n,i){1&n&&e._UZ(0,"tr",50)}function gp(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function fp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Channel ID"),e.qZA())}function Cp(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function xp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Peer Alias"),e.qZA())}function Zp(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.alias)}}function yp(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Events"),e.qZA())}function Tp(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.events))}}function bp(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Total Amount (Sats)"),e.qZA())}function Ap(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_amount))}}function vp(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function wp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",51),e.TgZ(1,"button",52),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onRoutingPeerClick(u,o,"out")}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function qp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No outgoing routing peer available."),e.qZA())}function Sp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting outgoing routing peers..."),e.qZA())}function Lp(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function kp(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,qp,2,0,"p",47),e.YNc(2,Sp,2,0,"p",47),e.YNc(3,Lp,2,1,"p",47),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function Fp(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ve,(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function Up(n,i){1&n&&e._UZ(0,"tr",49)}function Np(n,i){1&n&&e._UZ(0,"tr",50)}const Op=function(n,i){return{"mt-2":n,"mt-1":i}},Rp=function(){return["no_incoming_event"]},Ip=function(n){return{"mt-2":n}},Mp=function(){return["no_outgoing_event"]};function Dp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",4),e.TgZ(1,"div",5),e.TgZ(2,"div",6),e.TgZ(3,"div",7),e._uU(4,"Incoming"),e.qZA(),e.TgZ(5,"mat-form-field",8),e.TgZ(6,"input",9),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyIncomingFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().filterIn=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",10),e.YNc(8,ju,1,0,"mat-progress-bar",11),e.TgZ(9,"table",12,13),e.ynx(11,14),e.YNc(12,Ku,2,0,"th",15),e.YNc(13,ep,2,4,"td",16),e.BQk(),e.ynx(14,17),e.YNc(15,tp,2,0,"th",15),e.YNc(16,np,2,4,"td",16),e.BQk(),e.ynx(17,18),e.YNc(18,ap,2,0,"th",19),e.YNc(19,ip,4,3,"td",20),e.BQk(),e.ynx(20,21),e.YNc(21,op,2,0,"th",19),e.YNc(22,sp,4,3,"td",20),e.BQk(),e.ynx(23,22),e.YNc(24,lp,3,0,"th",23),e.YNc(25,rp,3,0,"td",24),e.BQk(),e.ynx(26,25),e.YNc(27,mp,4,3,"td",26),e.BQk(),e.YNc(28,_p,1,3,"tr",27),e.YNc(29,dp,1,0,"tr",28),e.YNc(30,hp,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(31,"mat-paginator",30,31),e.qZA(),e.TgZ(33,"div",5),e.TgZ(34,"div",6),e.TgZ(35,"div",7),e._uU(36,"Outgoing"),e.qZA(),e.TgZ(37,"mat-form-field",8),e.TgZ(38,"input",9),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyOutgoingFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().filterOut=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",10),e.YNc(40,gp,1,0,"mat-progress-bar",11),e.TgZ(41,"table",32,33),e.ynx(43,14),e.YNc(44,fp,2,0,"th",15),e.YNc(45,Cp,2,4,"td",16),e.BQk(),e.ynx(46,17),e.YNc(47,xp,2,0,"th",15),e.YNc(48,Zp,2,4,"td",16),e.BQk(),e.ynx(49,18),e.YNc(50,yp,2,0,"th",19),e.YNc(51,Tp,4,3,"td",20),e.BQk(),e.ynx(52,21),e.YNc(53,bp,2,0,"th",19),e.YNc(54,Ap,4,3,"td",20),e.BQk(),e.ynx(55,22),e.YNc(56,vp,3,0,"th",23),e.YNc(57,wp,3,0,"td",34),e.BQk(),e.ynx(58,35),e.YNc(59,kp,4,3,"td",26),e.BQk(),e.YNc(60,Fp,1,3,"tr",27),e.YNc(61,Up,1,0,"tr",28),e.YNc(62,Np,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(63,"mat-paginator",30,36),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngClass",e.WLB(22,Op,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),e.xp6(4),e.Q6J("ngModel",t.filterIn),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.RoutingPeersIncoming),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(25,Rp)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS),e.xp6(3),e.Q6J("ngClass",e.VKq(26,Ip,t.screenSize!==t.screenSizeEnum.LG)),e.xp6(4),e.Q6J("ngModel",t.filterOut),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.RoutingPeersOutgoing),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(28,Mp)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Pp=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.routingPeersData=[],this.displayedColumns=[],this.RoutingPeersIncoming=new r.by([]),this.RoutingPeersOutgoing=new r.by([]),this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["chan_id","events","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","alias","events","total_amount"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","alias","events","total_amount"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.routingPeersData=t.forwardingHistory.forwarding_events?t.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadRoutingPeersTable(this.routingPeersData)}onRoutingPeerClick(t,a,o){let s=" Routing Information";s="in"===o?"Incoming"+s:"Outgoing"+s,this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:s,message:[[{key:"chan_id",value:t.chan_id,title:"Channel ID",width:50,type:l.Gi.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:l.Gi.STRING}],[{key:"events",value:t.events,title:"Events",width:50,type:l.Gi.NUMBER},{key:"total_amount",value:t.total_amount,title:"Total Amount (Sats)",width:50,type:l.Gi.NUMBER}]]}}}))}loadRoutingPeersTable(t){if(t.length>0){const a=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new r.by(a[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new r.by(a[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new r.by([]),this.RoutingPeersOutgoing=new r.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter()}groupRoutingPeers(t){const a=[],o=[];return t.forEach(s=>{const u=a.find(N=>N.chan_id===s.chan_id_in),g=o.find(N=>N.chan_id===s.chan_id_out);u?(u.events++,u.total_amount=+u.total_amount+ +s.amt_in):a.push({chan_id:s.chan_id_in,alias:s.alias_in,events:1,total_amount:+s.amt_in}),g?(g.events++,g.total_amount=+g.total_amount+ +s.amt_out):o.push({chan_id:s.chan_id_out,alias:s.alias_out,events:1,total_amount:+s.amt_out})}),[this.commonService.sortDescByKey(a,"total_amount"),this.commonService.sortDescByKey(o,"total_amount")]}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 n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Gu,5,A.YE),e.Gf(zu,5,A.YE),e.Gf(Wu,5),e.Gf(Xu,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sortIn=o.first),e.iGM(o=e.CRH())&&(a.sortOut=o.first),e.iGM(o=e.CRH())&&(a.paginatorIn=o.first),e.iGM(o=e.CRH())&&(a.paginatorOut=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Routing peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-cell","",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","5",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,$u,2,1,"div",1),e.YNc(2,Dp,65,29,"div",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.Wh,p.O5,_.yH,p.mk,q.oO,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Jp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",7),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let Ep=(()=>{class n{constructor(t){this.router=t,this.faChartBar=Z.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Reports"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,Jp,2,3,"div",6),e.qZA(),e._UZ(9,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartBar),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,y.lC,D.Nj,y.rH],styles:[""]}),n})();var Ge=h(7671),ze=h(6046);function Qp(n,i){1&n&&e._UZ(0,"mat-progress-bar",16)}function Yp(n,i){if(1&n&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw();e.Q6J("@fadeIn",t.events.total_fee_msat),e.xp6(1),e.AsE("",e.xi3(2,3,t.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",e.lcZ(3,6,(null==t.events||null==t.events.forwarding_events?null:t.events.forwarding_events.length)||0)," Events")}}function Hp(n,i){1&n&&(e.TgZ(0,"div",18),e._uU(1,"No routing report for the selected period"),e.qZA())}const Bp=function(n){return{"error-border":n}};function Vp(n,i){if(1&n&&(e.TgZ(0,"div",19),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(2,Bp,"Getting Forwarding History..."!==t.errorMessage&&""!==t.errorMessage)),e.xp6(1),e.Oqu(t.errorMessage)}}function Gp(n,i){if(1&n&&(e.TgZ(0,"span"),e.TgZ(1,"span",22),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"span",22),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA()),2&n){const t=i.model,a=e.oxw(2);e.xp6(2),e.hij("Events: ",e.lcZ(3,2,(a.selReportBy===a.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),e.xp6(3),e.hij("Fee: ",e.xi3(6,4,(a.selReportBy===a.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function zp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"ngx-charts-bar-vertical",20),e.NdJ("select",function(o){return e.CHM(t),e.oxw().onChartBarSelected(o)})("mouseup",function(o){return e.CHM(t),e.oxw().onChartMouseUp(o)}),e.YNc(1,Gp,7,7,"ng-template",null,21,e.W1O),e.qZA()}if(2&n){const t=e.oxw();e.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 Wp(n,i){if(1&n&&e._UZ(0,"rtl-forwarding-history",23),2&n){const t=e.oxw();e.Q6J("eventsData",null==t.events?null:t.events.forwarding_events)("filterValue",t.eventFilterValue)}}let Xp=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.dataService=a,this.commonService=o,this.store=s,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.reportBy=l.Xr,this.selReportBy=l.Xr.FEES,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.identity_pubkey&&setTimeout(()=>{this.fetchEvents(this.startDate,this.endDate)},10)}),this.commonService.containerSizeUpdated.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=t.width/10;break;case l.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))})}fetchEvents(t,a){this.errorMessage=l.m6.GET_FORWARDING_HISTORY;const o=Math.round(t.getTime()/1e3).toString(),s=Math.round(a.getTime()/1e3).toString();this.dataService.getForwardingHistory("LND",o,s).pipe((0,d.R)(this.unSubs[2])).subscribe({next:u=>{this.errorMessage="",u.forwarding_events&&u.forwarding_events.length?(u.forwarding_events=u.forwarding_events.reverse(),this.events=u,this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(t):this.prepareFeeReport(t)):(this.events={forwarding_events:[],total_fee_msat:0},this.routingReportData=[])},error:u=>{this.errorMessage=u}})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===l.op[1]?t.name+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(t){const a=Math.round(t.getTime()/1e3),o=[];if(this.events.total_fee_msat=0,this.reportPeriod===l.op[1]){for(let s=0;s<12;s++)o.push({name:l.gg[s].name,value:0,extra:{totalEvents:0}});this.events.forwarding_events.map(s=>{const u=new Date(1e3*+s.timestamp).getMonth();return o[u].value=o[u].value+ +s.fee_msat/1e3,o[u].extra.totalEvents=o[u].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}else{for(let s=0;s{const u=Math.floor((+s.timestamp-a)/this.secondsInADay);return o[u].value=o[u].value+ +s.fee_msat/1e3,o[u].extra.totalEvents=o[u].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}return o}prepareEventsReport(t){const a=Math.round(t.getTime()/1e3),o=[];if(this.events.total_fee_msat=0,this.reportPeriod===l.op[1]){for(let s=0;s<12;s++)o.push({name:l.gg[s].name,value:0,extra:{totalFees:0}});this.events.forwarding_events.map(s=>{const u=new Date(1e3*+s.timestamp).getMonth();return o[u].value=o[u].value+1,o[u].extra.totalFees=o[u].extra.totalFees+ +s.fee_msat/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}else{for(let s=0;s{const u=Math.floor((+s.timestamp-a)/this.secondsInADay);return o[u].value=o[u].value+1,o[u].extra.totalFees=o[u].extra.totalFees+ +s.fee_msat/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}return o}onSelectionChange(t){const a=t.selDate.getMonth(),o=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,a,1,0,0,0),this.endDate=new Date(o,a,this.getMonthDays(a,o),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,a){return 1===t&&a%4==0?l.gg[t].days+1:l.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 n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(j.D),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing-report"]],hostBindings:function(t,a){1&t&&e.NdJ("mouseup",function(s){return a.onChartMouseUp(s)})},decls:20,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["mode","indeterminate","class","mt-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x","my-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",3,"ngClass",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],[3,"eventsData","filterValue",4,"ngIf"],["mode","indeterminate",1,"mt-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1",3,"ngClass"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"rtl-horizontal-scroller",1),e.NdJ("stepChanged",function(s){return a.onSelectionChange(s)}),e.qZA(),e.TgZ(2,"div",2),e.TgZ(3,"mat-radio-group",3),e.NdJ("ngModelChange",function(s){return a.selReportBy=s})("change",function(){return a.onSelReportByChange()}),e.TgZ(4,"span",4),e._uU(5,"Report By: "),e.qZA(),e.TgZ(6,"mat-radio-button",5),e._uU(7,"Fees"),e.qZA(),e.TgZ(8,"mat-radio-button",6),e._uU(9,"Events"),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,Qp,1,0,"mat-progress-bar",7),e.TgZ(11,"div",8),e.YNc(12,Yp,4,8,"div",9),e.YNc(13,Hp,2,0,"div",10),e.YNc(14,Vp,2,4,"div",11),e.TgZ(15,"div",12),e.YNc(16,zp,3,11,"ngx-charts-bar-vertical",13),e.qZA(),e.qZA(),e.TgZ(17,"div",14),e.TgZ(18,"div",12),e.YNc(19,Wp,1,2,"rtl-forwarding-history",15),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selReportBy),e.xp6(3),e.s9C("value",a.reportBy.FEES),e.xp6(2),e.s9C("value",a.reportBy.EVENTS),e.xp6(2),e.Q6J("ngIf","Getting Forwarding History..."===a.errorMessage),e.xp6(2),e.Q6J("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.xp6(1),e.Q6J("ngIf",(a.routingReportData.length<=0||a.events.forwarding_events.length<=0)&&""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(2),e.Q6J("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.xp6(3),e.Q6J("ngIf",a.events&&(null==a.events?null:a.events.forwarding_events)&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0))},directives:[_.xw,_.Wh,_.yH,Ge.D,ie.VQ,c.JJ,c.On,ie.U0,p.O5,P.pW,p.mk,q.oO,ze.K$,Be],pipes:[p.JJ],styles:[""],data:{animation:[ye.J]}}),n})();var $p=h(165);function jp(n,i){1&n&&(e.TgZ(0,"div",11),e._UZ(1,"mat-progress-bar",12),e.TgZ(2,"span"),e._uU(3,"Getting transactions data..."),e.qZA(),e.qZA())}function Kp(n,i){if(1&n&&(e.TgZ(0,"div",13),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function em(n,i){if(1&n&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE(" Paid ",e.xi3(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.lcZ(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function tm(n,i){if(1&n&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE(" Received ",e.xi3(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.lcZ(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function nm(n,i){if(1&n&&(e.TgZ(0,"div",14),e.YNc(1,em,4,7,"div",15),e.YNc(2,tm,4,7,"div",15),e.qZA()),2&n){const t=e.oxw();e.Q6J("@fadeIn",t.transactionsReportSummary),e.xp6(1),e.Q6J("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod>0),e.xp6(1),e.Q6J("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function am(n,i){1&n&&(e.TgZ(0,"div",17),e._uU(1,"No transactions report for the selected period"),e.qZA())}function im(n,i){if(1&n&&(e.TgZ(0,"span",21),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=i.model;e.xp6(1),e.HOy("",t.name,": ",e.xi3(2,4,t.value||0,"1.0-2"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",e.lcZ(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function om(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"ngx-charts-bar-vertical-2d",19),e.NdJ("select",function(o){return e.CHM(t),e.oxw(2).onChartBarSelected(o)})("mouseup",function(o){return e.CHM(t),e.oxw(2).onChartMouseUp(o)}),e.YNc(1,im,4,9,"ng-template",null,20,e.W1O),e.qZA()}if(2&n){const t=e.oxw(2);e.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:8)}}function sm(n,i){if(1&n&&(e.TgZ(0,"div",9),e.YNc(1,om,3,13,"ngx-charts-bar-vertical-2d",18),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.transactionsReportData.length>0&&t.transactionsNonZeroReportData.length>0)}}function lm(n,i){if(1&n&&e._UZ(0,"rtl-transactions-report-table",22),2&n){const t=e.oxw();e.Q6J("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let rm=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.scrollRanges=l.op,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[{date:"",name:"1",series:[{extra:{total:0},name:"Paid",value:0},{extra:{total:0},name:"Received",value:0}]}],this.transactionsNonZeroReportData=[{amount_paid:0,amount_received:0,date:"",num_invoices:0,num_payments:0}],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.l5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.apiCallStatus.status===l.Bn.UN_INITIATED&&this.store.dispatch((0,b.Jo)()),this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.payments=t.allLightningTransactions.listPaymentsAll.payments||[],this.invoices=t.allLightningTransactions.listInvoicesAll.invoices||[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()),this.logger.info(t)}),this.commonService.containerSizeUpdated.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=t.width/10;break;case l.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===l.op[1]?t.series+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,a){const o=Math.round(t.getTime()/1e3),s=Math.round(a.getTime()/1e3),u=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const g=this.payments.filter(x=>"SUCCEEDED"===x.status&&x.creation_date>=o&&x.creation_datex.settled&&+x.creation_date>=o&&+x.creation_date{const U=new Date(1e3*+x.creation_date).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +x.value_msat+ +x.fee_msat,u[U].series[0].value=u[U].series[0].value+(+x.value_msat+ +x.fee_msat)/1e3,u[U].series[0].extra.total=u[U].series[0].extra.total+1,this.transactionsReportSummary}),N.map(x=>{const U=new Date(1e3*+x.creation_date).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +x.amt_paid_msat,u[U].series[1].value=u[U].series[1].value+ +x.amt_paid_msat/1e3,u[U].series[1].extra.total=u[U].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let x=0;x{const U=Math.floor((+x.creation_date-o)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +x.value_msat+ +x.fee_msat,u[U].series[0].value=u[U].series[0].value+(+x.value_msat+ +x.fee_msat)/1e3,u[U].series[0].extra.total=u[U].series[0].extra.total+1,this.transactionsReportSummary}),N.map(x=>{const U=Math.floor((+x.creation_date-o)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +x.amt_paid_msat,u[U].series[1].value=u[U].series[1].value+ +x.amt_paid_msat/1e3,u[U].series[1].extra.total=u[U].series[1].extra.total+1,this.transactionsReportSummary})}return u}prepareTableData(){return this.transactionsReportData.reduce((t,a)=>a.series[0].extra.total>0||a.series[1].extra.total>0?t.concat({date:a.date,amount_paid:a.series[0].value,num_payments:a.series[0].extra.total,amount_received:a.series[1].value,num_invoices:a.series[1].extra.total}):t,[])}onSelectionChange(t){const a=t.selDate.getMonth(),o=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,a,1,0,0,0),this.endDate=new Date(o,a,this.getMonthDays(a,o),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,a){return 1===t&&a%4==0?l.gg[t].days+1:l.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-transactions-report"]],hostBindings:function(t,a){1&t&&e.NdJ("mouseup",function(s){return a.onChartMouseUp(s)})},decls:11,vars:6,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],[3,"stepChanged"],["class","p-2",4,"ngIf"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"dataList","dataRange","filterValue",4,"ngIf"],[1,"p-2"],["mode","indeterminate"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"rtl-horizontal-scroller",3),e.NdJ("stepChanged",function(s){return a.onSelectionChange(s)}),e.qZA(),e.YNc(4,jp,4,0,"div",4),e.YNc(5,Kp,2,1,"div",5),e.YNc(6,nm,3,3,"div",6),e.YNc(7,am,2,0,"div",7),e.YNc(8,sm,2,1,"div",8),e.TgZ(9,"div",9),e.YNc(10,lm,1,3,"rtl-transactions-report-table",10),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.ERROR),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length<=0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(2),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED))},directives:[_.xw,_.Wh,_.yH,Ge.D,p.O5,P.pW,ze.H5,$p.g],pipes:[p.JJ],styles:[""],data:{animation:[ye.J]}}),n})();const cm=["form"];function um(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"UTXO Label is required."),e.qZA())}function pm(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.labelError)}}function mm(n,i){if(1&n&&(e.TgZ(0,"div",16),e._UZ(1,"fa-icon",17),e.YNc(2,pm,2,1,"span",11),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.labelError)}}let _m=(()=>{class n{constructor(t,a,o,s,u,g){this.dialogRef=t,this.data=a,this.dataService=o,this.store=s,this.snackBar=u,this.commonService=g,this.faExclamationTriangle=Z.eHv,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.utxo=this.data.utxo,this.label=this.utxo.label}onLabelUTXO(){if(!this.label||""===this.label)return!0;this.labelError="",this.dataService.labelUTXO(this.utxo.outpoint.txid_bytes,this.label,!0).pipe((0,d.R)(this.unSubs[0])).subscribe({next:t=>{this.store.dispatch((0,b.mC)()),this.store.dispatch((0,b.Ly)()),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:t=>{this.labelError=t}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(j.D),e.Y36(w.yh),e.Y36(te.ux),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(t,a){if(1&t&&e.Gf(cm,7),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first)}},decls:20,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","100"],["autoFocus","","matInput","","placeholder","UTXO Label","name","label","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Label UTXO"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.NdJ("submit",function(){return a.onLabelUTXO()})("reset",function(){return a.resetData()}),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(s){return a.label=s}),e.qZA(),e.YNc(13,um,2,0,"mat-error",11),e.qZA(),e.YNc(14,mm,3,2,"div",12),e.TgZ(15,"div",13),e.TgZ(16,"button",14),e._uU(17,"Clear"),e.qZA(),e.TgZ(18,"button",15),e._uU(19,"Label UTXO"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.label),e.xp6(1),e.Q6J("ngIf",!a.label),e.xp6(1),e.Q6J("ngIf",""!==a.labelError))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,f.TO,M.BN],styles:[""]}),n})();function dm(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function hm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Transaction ID "),e.qZA())}function gm(n,i){1&n&&(e.TgZ(0,"span",35),e.TgZ(1,"mat-icon",36),e._uU(2,"warning"),e.qZA(),e.qZA())}function fm(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,gm,3,0,"span",34),e.qZA()),2&n){const t=e.oxw().$implicit;e.oxw();const a=e.MAs(34);e.xp6(1),e.Q6J("ngIf",t.amount_sat<1e3)("ngIfElse",a)}}const We=function(n){return{"max-width":n}};function Cm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",31),e.YNc(2,fm,2,2,"span",32),e.TgZ(3,"span",33),e._uU(4),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(3,We,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(2),e.Q6J("ngIf",a.utxos.length>0&&a.dustUtxos.length>0&&!a.isDustUTXO),e.xp6(2),e.Oqu(t.outpoint.txid_str)}}function xm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Output "),e.qZA())}function Zm(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(t.outpoint.output_index)}}function ym(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Label "),e.qZA())}function Tm(n,i){if(1&n&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,We,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.label," ")}}function bm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Amount (Sats) "),e.qZA())}function Am(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amount_sat||0))}}function vm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Confirmations "),e.qZA())}function wm(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.confirmations||0))}}function qm(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",40),e.TgZ(1,"div",41),e.TgZ(2,"mat-select",42),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Sm(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"div",45),e.TgZ(2,"mat-select",46),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onUTXOClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onLabelUTXO(s)}),e._uU(7,"Label"),e.qZA(),e.TgZ(8,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onLeaseUTXO(s)}),e._uU(9,"Lease"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Lm(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No UTXO available."),e.qZA())}function km(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting UTXOs..."),e.qZA())}function Fm(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Um(n,i){if(1&n&&(e.TgZ(0,"td",47),e.YNc(1,Lm,2,0,"p",32),e.YNc(2,km,2,0,"p",32),e.YNc(3,Fm,2,1,"p",32),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Nm=function(n){return{"display-none":n}};function Om(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Nm,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function Rm(n,i){1&n&&e._UZ(0,"tr",49)}function Im(n,i){1&n&&e._UZ(0,"tr",50)}function Mm(n,i){1&n&&e._UZ(0,"mat-icon",36)}const Dm=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Pm=function(){return["no_utxo"]};let Jm=(()=>{class n{constructor(t,a,o,s,u,g){this.logger=t,this.commonService=a,this.dataService=o,this.store=s,this.rtlEffects=u,this.decimalPipe=g,this.isDustUTXO=!1,this.addressType=l.x$,this.faMoneyBillWave=Z.aj4,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount_sat","confirmations","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"])}ngOnInit(){this.store.select(C.T4).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),t.utxos&&t.utxos.length>0&&(this.dustUtxos=t.utxos.filter(a=>+a.amount_sat<1e3),this.utxos=t.utxos,this.loadUTXOsTable(this.isDustUTXO?this.dustUtxos:this.utxos)),this.logger.info(t)})}ngOnChanges(){!this.isDustUTXO&&this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos),this.isDustUTXO&&this.dustUtxos&&this.dustUtxos.length>0&&this.loadUTXOsTable(this.dustUtxos)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(t){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:t.outpoint.txid_str,title:"Transaction ID",width:100,type:l.Gi.STRING}],[{key:"label",value:t.label,title:"Label",width:100,type:l.Gi.STRING}],[{key:"output_index",value:t.outpoint.output_index,title:"Output Index",width:34,type:l.Gi.NUMBER},{key:"amount_sat",value:t.amount_sat,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER},{key:"confirmations",value:t.confirmations,title:"Confirmations",width:33,type:l.Gi.NUMBER}],[{key:"address_type",value:this.addressType[t.address_type].name,title:"Address Type",width:34},{key:"address",value:t.address,title:"Address",width:66}],[{key:"pk_script",value:t.pk_script,title:"PK Script",width:100,type:l.Gi.STRING}]]}}}))}loadUTXOsTable(t){this.listUTXOs=new r.by([...t]),this.listUTXOs.filterPredicate=(a,o)=>((a.label?a.label.toLowerCase():"")+(a.outpoint.txid_str?a.outpoint.txid_str.toLowerCase():"")+(a.outpoint.output_index?a.outpoint.output_index:"")+(a.outpoint.txid_bytes?a.outpoint.txid_bytes.toLowerCase():"")+(a.address?a.address.toLowerCase():"")+(a.address_type?a.address_type.toLowerCase():"")+(a.amount_sat?a.amount_sat:"")+(a.confirmations?a.confirmations:"")+(a.pk_script?a.pk_script.toLowerCase():"")).includes(o),this.listUTXOs.sortingDataAccessor=(a,o)=>{switch(o){case"tx_id":return a.outpoint.txid_str.toLocaleLowerCase();case"output":return+a.outpoint.output_index;default:return a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null}},this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onLabelUTXO(t){this.store.dispatch((0,v.qR)({payload:{data:{utxo:t,component:_m}}}))}onLeaseUTXO(t){const a=[[{key:"txid_str",value:t.outpoint.txid_str,title:"Transaction ID",width:100}],[{key:"amount_sat",value:this.decimalPipe.transform(t.amount_sat),title:"Amount (Sats)",width:100}]];t.label&&a.splice(1,0,[{key:"label",value:t.label,title:"Label",width:100}]),this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Lease UTXO",informationMessage:"The UTXO will be leased for 10 minutes.",message:a,noBtnText:"Cancel",yesBtnText:"Lease UTXO"}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{o&&this.dataService.leaseUTXO(t.outpoint.txid_bytes,t.outpoint.output_index)})}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 n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(j.D),e.Y36(w.yh),e.Y36(oe.V),e.Y36(p.JJ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{isDustUTXO:"isDustUTXO"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("UTXOs")}]),e.TTD],decls:35,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-3",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["fxLayout","row"],[4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"small-icon"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"div",5),e.YNc(6,dm,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,hm,2,0,"th",10),e.YNc(11,Cm,5,5,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,xm,2,0,"th",13),e.YNc(14,Zm,3,1,"td",14),e.BQk(),e.ynx(15,15),e.YNc(16,ym,2,0,"th",10),e.YNc(17,Tm,2,4,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,bm,2,0,"th",13),e.YNc(20,Am,4,3,"td",14),e.BQk(),e.ynx(21,17),e.YNc(22,vm,2,0,"th",13),e.YNc(23,wm,4,3,"td",14),e.BQk(),e.ynx(24,18),e.YNc(25,qm,6,0,"th",19),e.YNc(26,Sm,10,0,"td",20),e.BQk(),e.ynx(27,21),e.YNc(28,Um,4,3,"td",22),e.BQk(),e.YNc(29,Om,1,3,"tr",23),e.YNc(30,Rm,1,0,"tr",24),e.YNc(31,Im,1,0,"tr",25),e.qZA(),e._UZ(32,"mat-paginator",26),e.qZA(),e.qZA(),e.qZA(),e.YNc(33,Mm,1,0,"ng-template",null,27,e.W1O)),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selFilter),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.listUTXOs)("ngClass",e.VKq(11,Dm,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(13,Pm)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,X.gM,K.Hw,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{padding-left:1rem;flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-tx_id[_ngcontent-%COMP%]{flex:1 1 15%}.mat-column-tx_id[_ngcontent-%COMP%] .ellipsis-child[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function Em(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Qm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Date/Time "),e.qZA())}function Ym(n,i){if(1&n&&(e.TgZ(0,"td",30),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,1e3*t.time_stamp,"dd/MMM/y HH:mm"))}}function Hm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Label "),e.qZA())}const Bm=function(n){return{"max-width":n}};function Vm(n,i){if(1&n&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Bm,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.label," ")}}function Gm(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Amount (Sats) "),e.qZA())}function zm(n,i){if(1&n&&(e.TgZ(0,"span",35),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.amount))}}function Wm(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij("(",e.lcZ(2,1,-1*t.amount),")")}}function Xm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.YNc(1,zm,3,3,"span",33),e.YNc(2,Wm,3,3,"span",34),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf",t.amount>0||0===t.amount),e.xp6(1),e.Q6J("ngIf",t.amount<0)}}function $m(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Fees (Sats) "),e.qZA())}function jm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_fees))}}function Km(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Block Height "),e.qZA())}function e_(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.block_height))}}function t_(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Confirmations "),e.qZA())}function n_(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.num_confirmations)," ")}}function a_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",37),e.TgZ(1,"div",38),e.TgZ(2,"mat-select",39),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function i_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",41),e.TgZ(1,"button",42),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onTransactionClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function o_(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No transaction available."),e.qZA())}function s_(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting transactions..."),e.qZA())}function l_(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function r_(n,i){if(1&n&&(e.TgZ(0,"td",43),e.YNc(1,o_,2,0,"p",44),e.YNc(2,s_,2,0,"p",44),e.YNc(3,l_,2,1,"p",44),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const c_=function(n){return{"display-none":n}};function u_(n,i){if(1&n&&e._UZ(0,"tr",45),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,c_,(null==t.listTransactions?null:t.listTransactions.data)&&(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)>0))}}function p_(n,i){1&n&&e._UZ(0,"tr",46)}function m_(n,i){1&n&&e._UZ(0,"tr",47)}const __=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},d_=function(){return["no_transaction"]};let h_=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.datePipe=s,this.faHistory=Z.qO$,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","num_confirmations","total_fees","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["time_stamp","label","amount","total_fees","num_confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["time_stamp","label","amount","total_fees","block_height","num_confirmations","actions"])}ngOnInit(){this.store.select(C.dx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),t.transactions&&t.transactions.length>0&&(this.transactions=t.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(t)})}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}onTransactionClick(t){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:t.block_hash,title:"Block Hash",width:100}],[{key:"tx_hash",value:t.tx_hash,title:"Transaction Hash",width:100}],[{key:"label",value:t.label,title:"Label",width:100,type:l.Gi.STRING}],[{key:"time_stamp",value:t.time_stamp,title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"block_height",value:t.block_height,title:"Block Height",width:50,type:l.Gi.NUMBER}],[{key:"num_confirmations",value:t.num_confirmations,title:"Number of Confirmations",width:34,type:l.Gi.NUMBER},{key:"total_fees",value:t.total_fees,title:"Total Fees (Sats)",width:33,type:l.Gi.NUMBER},{key:"amount",value:t.amount,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER}],[{key:"dest_addresses",value:t.dest_addresses,title:"Destination Addresses",width:100,type:l.Gi.ARRAY}]],scrollable:t.dest_addresses&&t.dest_addresses.length>5}}}))}loadTransactionsTable(t){this.listTransactions=new r.by([...t]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.listTransactions.filterPredicate=(a,o)=>((a.time_stamp?this.datePipe.transform(new Date(1e3*a.time_stamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.listTransactions.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Transactions")}]),e.TTD],decls:36,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"div",5),e.YNc(6,Em,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Qm,2,0,"th",10),e.YNc(11,Ym,3,4,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Hm,2,0,"th",10),e.YNc(14,Vm,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Gm,2,0,"th",15),e.YNc(17,Xm,3,2,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,$m,2,0,"th",15),e.YNc(20,jm,4,3,"td",11),e.BQk(),e.ynx(21,17),e.YNc(22,Km,2,0,"th",15),e.YNc(23,e_,4,3,"td",11),e.BQk(),e.ynx(24,18),e.YNc(25,t_,2,0,"th",15),e.YNc(26,n_,4,3,"td",11),e.BQk(),e.ynx(27,19),e.YNc(28,a_,6,0,"th",20),e.YNc(29,i_,3,0,"td",21),e.BQk(),e.ynx(30,22),e.YNc(31,r_,4,3,"td",23),e.BQk(),e.YNc(32,u_,1,3,"tr",24),e.YNc(33,p_,1,0,"tr",25),e.YNc(34,m_,1,0,"tr",26),e.qZA(),e._UZ(35,"mat-paginator",27),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selFilter),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.listTransactions)("ngClass",e.VKq(11,__,""!==a.errorMessage)),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(13,d_)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.uU,p.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function g_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"UTXOs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numUtxos)}}function f_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"Transactions"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numTransactions)}}function C_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"Dust UTXOs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numDustUtxos)}}let x_=(()=>{class n{constructor(t,a){this.logger=t,this.store=a,this.selectedTableIndex=0,this.selectedTableIndexChange=new e.vpe,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.store.dispatch((0,b.mC)()),this.store.dispatch((0,b.Ly)()),this.store.select(C.T4).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.utxos&&t.utxos.length>0&&(this.numUtxos=t.utxos.length,this.numDustUtxos=t.utxos.filter(a=>+a.amount_sat<1e3).length),this.logger.info(t)}),this.store.select(C.dx).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{t.transactions&&t.transactions.length>0&&(this.numTransactions=t.transactions.length),this.logger.info(t)})}onSelectedIndexChanged(t){this.selectedTableIndexChange.emit(t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:11,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-tab-group",1),e.NdJ("selectedIndexChange",function(s){return a.onSelectedIndexChanged(s)}),e.TgZ(2,"mat-tab"),e.YNc(3,g_,2,1,"ng-template",2),e._UZ(4,"rtl-on-chain-utxos",3),e.qZA(),e.TgZ(5,"mat-tab"),e.YNc(6,f_,2,1,"ng-template",2),e._UZ(7,"rtl-on-chain-transaction-history",4),e.qZA(),e.TgZ(8,"mat-tab"),e.YNc(9,C_,2,1,"ng-template",2),e._UZ(10,"rtl-on-chain-utxos",3),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("selectedIndex",a.selectedTableIndex),e.xp6(3),e.Q6J("isDustUTXO",!1),e.xp6(6),e.Q6J("isDustUTXO",!0))},directives:[_.xw,_.yH,_.Wh,D.SP,D.uX,D.uD,Jm,h_,fe.k],styles:[""]}),n})();const Z_=function(n,i){return[n,i]};function y_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=null==s?null:s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.Q6J("active",a.activeLink===(null==t?null:t.link))("routerLink",e.WLB(3,Z_,null==t?null:t.link,null==a.selectedTable?null:a.selectedTable.name)),e.xp6(1),e.Oqu(null==t?null:t.name)}}let T_=(()=>{class n{constructor(t,a,o){this.store=t,this.router=a,this.activatedRoute=o,this.selNode={},this.faExchangeAlt=Z.Ssp,this.faChartPie=Z.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"},{id:2,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(a=>a.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link,this.selectedTable=this.tables.find(s=>s.name===a.urlAfterRedirects.substring(a.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[1])).subscribe(a=>{this.selNode=a}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[2])).subscribe(a=>{this.balances=[{title:"Total Balance",dataValue:a.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:a.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:a.blockchainBalance.unconfirmed_balance}]})}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(a=>a.id===t),this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(y.F0),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain"]],decls:21,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"On-chain Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"On-chain Transactions"),e.qZA(),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"nav",7),e.YNc(16,y_,2,6,"div",8),e.qZA(),e.TgZ(17,"div",9),e._UZ(18,"router-outlet"),e.qZA(),e.TgZ(19,"div",10),e.TgZ(20,"rtl-utxo-tables",11),e.NdJ("selectedTableIndexChange",function(s){return a.onSelectedTableIndexChanged(s)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faExchangeAlt),e.xp6(7),e.Q6J("ngForOf",a.links),e.xp6(4),e.Q6J("selectedTableIndex",null==a.selectedTable?null:a.selectedTable.id))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.BU,p.sg,_.yH,y.lC,x_,D.Nj,y.rH],styles:[""]}),n})();var b_=h(9122);function A_(n,i){if(1&n&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.addressTp," ")}}let v_=(()=>{class n{constructor(t,a){this.store=t,this.lndEffects=a,this.addressTypes=l._t,this.selectedAddressType=l._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,b._E)({payload:this.selectedAddressType})),this.lndEffects.setNewAddress.pipe((0,V.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,v.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:b_.n}}}))},0)})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(ee.l))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"mat-select",3),e.NdJ("ngModelChange",function(s){return a.selectedAddressType=s}),e.YNc(4,A_,2,2,"mat-option",4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"button",6),e.NdJ("click",function(){return a.onGenerateAddress()}),e._uU(7,"Generate Address"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selectedAddressType),e.xp6(1),e.Q6J("ngForOf",a.addressTypes))},directives:[_.xw,_.Wh,f.KE,_.yH,R.gD,c.JJ,c.On,p.sg,L.lW,Y.ey],styles:[""]}),n})();var w_=h(8012),Xe=h(8377);const q_=["form"],S_=["formSweepAll"],L_=["stepper"];function k_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Bitcoin address is required."),e.qZA())}function F_(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.amountError)}}function U_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t)}}function N_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function O_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function R_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",23),e.TgZ(1,"input",32,33),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).transactionBlocks=o}),e.qZA(),e.YNc(3,O_,2,0,"mat-error",14),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.transactionBlocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.transactionBlocks)}}function I_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function M_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",23),e.TgZ(1,"input",34,35),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).transactionFees=o}),e.qZA(),e.YNc(3,I_,2,0,"mat-error",14),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.transactionFees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.transactionFees)}}function D_(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.sendFundError)}}function P_(n,i){if(1&n&&(e.TgZ(0,"div",36),e._UZ(1,"fa-icon",37),e.YNc(2,D_,2,1,"span",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.sendFundError)}}function J_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",9,10),e.NdJ("submit",function(){return e.CHM(t),e.oxw().onSendFunds()})("reset",function(){return e.CHM(t),e.oxw().resetData()}),e.TgZ(2,"mat-form-field",11),e.TgZ(3,"input",12,13),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().transactionAddress=o}),e.qZA(),e.YNc(5,k_,2,0,"mat-error",14),e.qZA(),e.TgZ(6,"mat-form-field",15),e.TgZ(7,"input",16,17),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().transactionAmount=o}),e.qZA(),e.TgZ(9,"span",18),e._uU(10),e.qZA(),e.YNc(11,F_,2,1,"mat-error",14),e.qZA(),e.TgZ(12,"mat-form-field",19),e.TgZ(13,"mat-select",20),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().onAmountUnitChange(o)}),e.YNc(14,U_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.TgZ(15,"div",22),e.TgZ(16,"mat-form-field",23),e.TgZ(17,"mat-select",24),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().selTransType=o}),e.YNc(18,N_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.YNc(19,R_,4,4,"mat-form-field",25),e.YNc(20,M_,4,4,"mat-form-field",25),e.qZA(),e._UZ(21,"div",26),e.YNc(22,P_,3,2,"div",27),e.TgZ(23,"div",28),e.TgZ(24,"button",29),e._uU(25,"Clear Fields"),e.qZA(),e.TgZ(26,"button",30),e._uU(27,"Send Funds"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.transactionAddress),e.xp6(2),e.Q6J("ngIf",!t.transactionAddress),e.xp6(2),e.Q6J("ngModel",t.transactionAmount)("step",100)("min",0),e.xp6(3),e.hij(" ",t.selAmountUnit," "),e.xp6(1),e.Q6J("ngIf",!t.transactionAmount),e.xp6(2),e.Q6J("value",t.selAmountUnit),e.xp6(1),e.Q6J("ngForOf",t.amountUnits),e.xp6(3),e.Q6J("value",t.selTransType),e.xp6(1),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","1"===t.selTransType),e.xp6(1),e.Q6J("ngIf","2"===t.selTransType),e.xp6(2),e.Q6J("ngIf",""!==t.sendFundError)}}function E_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(3);e.Oqu(t.passwordFormLabel)}}function Q_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Y_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-step",42),e.TgZ(1,"form",61),e.YNc(2,E_,1,1,"ng-template",55),e.TgZ(3,"div",0),e.TgZ(4,"mat-form-field",1),e._UZ(5,"input",62),e.YNc(6,Q_,2,0,"mat-error",14),e.qZA(),e.qZA(),e.TgZ(7,"div",63),e.TgZ(8,"button",64),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onAuthenticate()}),e._uU(9,"Confirm"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("stepControl",t.passwordFormGroup)("editable",t.flgEditable),e.xp6(1),e.Q6J("formGroup",t.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.password.errors?null:t.passwordFormGroup.controls.password.errors.required)}}function H_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.sendFundFormLabel)}}function B_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Bitcoin address is required."),e.qZA())}function V_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function G_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function z_(n,i){if(1&n&&(e.TgZ(0,"mat-form-field",65),e._UZ(1,"input",66),e.YNc(2,G_,2,0,"mat-error",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("step",1)("min",0),e.xp6(1),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionBlocks.errors?null:t.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function W_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function X_(n,i){if(1&n&&(e.TgZ(0,"mat-form-field",65),e._UZ(1,"input",67),e.YNc(2,W_,2,0,"mat-error",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("step",1)("min",0),e.xp6(1),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionFees.errors?null:t.sendFundFormGroup.controls.transactionFees.errors.required)}}function $_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.confirmFormLabel)}}function j_(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.sendFundError)}}function K_(n,i){if(1&n&&(e.TgZ(0,"div",36),e._UZ(1,"fa-icon",37),e.YNc(2,j_,2,1,"span",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.sendFundError)}}function ed(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",38),e.TgZ(1,"mat-vertical-stepper",39,40),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().stepSelectionChanged(o)}),e.YNc(3,Y_,10,4,"mat-step",41),e.TgZ(4,"mat-step",42),e.TgZ(5,"form",43),e.YNc(6,H_,1,1,"ng-template",44),e.TgZ(7,"div",45),e.TgZ(8,"mat-form-field",46),e._UZ(9,"input",47),e.YNc(10,B_,2,0,"mat-error",14),e.qZA(),e.TgZ(11,"mat-form-field",48),e.TgZ(12,"mat-select",49),e.YNc(13,V_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.YNc(14,z_,3,3,"mat-form-field",50),e.YNc(15,X_,3,3,"mat-form-field",50),e.qZA(),e.TgZ(16,"div",51),e.TgZ(17,"button",52),e._uU(18,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"mat-step",53),e.TgZ(20,"form",54),e.YNc(21,$_,1,1,"ng-template",55),e.TgZ(22,"div",38),e.TgZ(23,"div",56),e._UZ(24,"fa-icon",57),e.TgZ(25,"span"),e._uU(26,"You are about to sweep all funds from RTL. Are you sure?"),e.qZA(),e.qZA(),e.YNc(27,K_,3,2,"div",27),e.TgZ(28,"div",51),e.TgZ(29,"button",58),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSendFunds()}),e._uU(30,"Sweep All Funds"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",59),e.TgZ(32,"button",60),e._uU(33),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("linear",!0),e.xp6(2),e.Q6J("ngIf",!t.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("stepControl",t.sendFundFormGroup)("editable",t.flgEditable),e.xp6(1),e.Q6J("formGroup",t.sendFundFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionAddress.errors?null:t.sendFundFormGroup.controls.transactionAddress.errors.required),e.xp6(3),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","1"===t.sendFundFormGroup.controls.selTransType.value),e.xp6(1),e.Q6J("ngIf","2"===t.sendFundFormGroup.controls.selTransType.value),e.xp6(4),e.Q6J("stepControl",t.confirmFormGroup),e.xp6(1),e.Q6J("formGroup",t.confirmFormGroup),e.xp6(4),e.Q6J("icon",t.faExclamationTriangle),e.xp6(3),e.Q6J("ngIf",""!==t.sendFundError),e.xp6(5),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(t.flgValidated?"Close":"Cancel")}}let td=(()=>{class n{constructor(t,a,o,s,u,g,N,x,U,re){this.dialogRef=t,this.data=a,this.logger=o,this.store=s,this.rtlEffects=u,this.commonService=g,this.decimalPipe=N,this.snackBar=x,this.actions=U,this.formBuilder=re,this.faExclamationTriangle=Z.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=l.uA,this.selAmountUnit=l.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=l.Xz,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[c.kI.required]],password:["",[c.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",c.kI.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",c.kI.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{"1"===t?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([c.kI.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([c.kI.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select(Xe.Yj).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.appConfig=t}),this.store.select(Xe.dT).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[3]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND||t.type===l.uR.SET_CHANNEL_TRANSACTION_RES_LND)).subscribe(t=>{t.type===l.uR.SET_CHANNEL_TRANSACTION_RES_LND&&(this.store.dispatch((0,v.jW)({payload:this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!"})),this.dialogRef.close()),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.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,v.QO)({payload:w_(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,V.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.invalidValues)return!0;this.sendFundError="";const t={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(t.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(t.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(t.fees=this.sendFundFormGroup.controls.transactionFees.value)):(t.address=this.transactionAddress,"1"===this.selTransType&&(t.blocks=this.transactionBlocks),"2"===this.selTransType&&(t.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==l.NT.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit,l.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:a=>{this.selAmountUnit=l.NT.SATS,t.amount=+this.decimalPipe.transform(a[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]]).replace(/,/g,""),this.store.dispatch((0,b.Wi)({payload:t}))},error:a=>{this.transactionAmount=null,this.selAmountUnit=l.NT.SATS,this.amountError="Conversion Error: "+a}}):this.store.dispatch((0,b.Wi)({payload:t}))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(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.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" (Sats/vByte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value)}t.selectedIndex{this.selAmountUnit=t.value,a.transactionAmount=+a.decimalPipe.transform(g[s],a.currencyUnitFormats[s]).replace(/,/g,"")},error:g=>{a.transactionAmount=null,this.amountError="Conversion Error: "+g,this.selAmountUnit=o,s=o}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(w.yh),e.Y36(oe.V),e.Y36(O.v),e.Y36(p.JJ),e.Y36(te.ux),e.Y36(G.eX),e.Y36(c.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(t,a){if(1&t&&(e.Gf(q_,7),e.Gf(S_,5),e.Gf(L_,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.formSweepAll=o.first),e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","55"],["autoFocus","","matInput","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex.gt-sm","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","48"],["tabindex","4",3,"value","valueChange"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","5",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","6",3,"ngModel","step","min","ngModelChange"],["fees","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxFlex.gt-sm","25"],["formControlName","selTransType","tabindex","5"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","6",3,"step","min"],["matInput","","formControlName","transactionFees","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","7",3,"step","min"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.YNc(9,J_,28,14,"form",7),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,ed,34,15,"ng-template",null,8,e.W1O)),2&t){const o=e.MAs(11);e.xp6(5),e.Oqu(a.sweepAll?"Sweep All Funds":"Send Funds"),e.xp6(1),e.Q6J("mat-dialog-close",!1),e.xp6(3),e.Q6J("ngIf",!a.sweepAll)("ngIfElse",o)}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,R.gD,p.sg,f.TO,Y.ey,M.BN,B.Vq,B.C0,c.sg,B.VY,c.u,B.Ic],styles:[""]}),n})(),$e=(()=>{class n{constructor(t,a){this.store=t,this.activatedRoute=a,this.sweepAll=!1,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.activatedRoute.data.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.sweepAll=t.sweepAll})}openSendFundsModal(){this.store.dispatch((0,v.qR)({payload:{data:{sweepAll:this.sweepAll,component:td}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.openSendFundsModal()}),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Oqu(a.sweepAll?"Sweep All":"Send Funds"))},directives:[_.xw,_.yH,_.Wh,L.lW],styles:[""]}),n})();function nd(n,i){1&n&&e._UZ(0,"mat-progress-bar",26)}function ad(n,i){if(1&n&&e._UZ(0,"rtl-node-info",27),2&n){const t=e.oxw(3);e.Q6J("information",t.information)("showColorFieldSeparately",!0)}}function id(n,i){if(1&n&&e._UZ(0,"rtl-channel-status-info",28),2&n){const t=e.oxw(3);e.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[4])}}function od(n,i){if(1&n&&e._UZ(0,"rtl-fee-info",29),2&n){const t=e.oxw(3);e.Q6J("fees",t.fees)("errorMessage",t.errorMessages[2])}}const je=function(n){return{"dashboard-card-content":!0,"error-border":n}};function sd(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",13),e.TgZ(1,"div",14),e.TgZ(2,"div",15),e.TgZ(3,"div",16),e._UZ(4,"fa-icon",17),e.TgZ(5,"span"),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",18),e.TgZ(8,"mat-card",19),e.TgZ(9,"mat-card-content",20),e.YNc(10,nd,1,0,"mat-progress-bar",21),e.TgZ(11,"div",22),e.YNc(12,ad,1,2,"rtl-node-info",23),e.YNc(13,id,1,2,"rtl-channel-status-info",24),e.YNc(14,od,1,2,"rtl-fee-info",25),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(4),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(3),e.Q6J("ngClass",e.VKq(10,je,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.ERROR)||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.INITIATED)||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","status"),e.xp6(1),e.Q6J("ngSwitchCase","fee")}}function ld(n,i){if(1&n&&(e.TgZ(0,"mat-grid-list",11),e.YNc(1,sd,15,12,"mat-grid-tile",12),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.nodeCards)}}function rd(n,i){1&n&&e._UZ(0,"mat-progress-bar",26)}function cd(n,i){1&n&&e.GkF(0)}function ud(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,cd,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function pd(n,i){1&n&&e.GkF(0)}function md(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,pd,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(13);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function _d(n,i){1&n&&e.GkF(0)}function dd(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,_d,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(15);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function hd(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",30),e.TgZ(1,"mat-card",31),e.TgZ(2,"mat-card-content",20),e.YNc(3,rd,1,0,"mat-progress-bar",21),e.TgZ(4,"div",22),e.YNc(5,ud,2,1,"div",32),e.YNc(6,md,2,1,"div",32),e.YNc(7,dd,2,1,"div",32),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(2),e.Q6J("ngClass",e.VKq(8,je,a.apiCallStatusNetwork.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf",a.apiCallStatusNetwork.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","general"),e.xp6(1),e.Q6J("ngSwitchCase","channels"),e.xp6(1),e.Q6J("ngSwitchCase","degrees")}}function gd(n,i){if(1&n&&(e.TgZ(0,"div",35),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessages[1])}}function fd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Network Capacity"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Number of Nodes"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",37),e._uU(15,"Number of Channels"),e.qZA(),e.TgZ(16,"span",38),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.hij("",e.lcZ(6,3,t.networkInfo.total_network_capacity)," Sats"),e.xp6(6),e.Oqu(e.lcZ(12,5,t.networkInfo.num_nodes)),e.xp6(6),e.Oqu(e.lcZ(18,7,t.networkInfo.num_channels))}}function Cd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Max Channel Size"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Avg Channel Size"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",37),e._uU(15,"Min Channel Size"),e.qZA(),e.TgZ(16,"span",38),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.Oqu(e.lcZ(6,3,t.networkInfo.max_channel_size)),e.xp6(6),e.Oqu(e.lcZ(12,5,t.networkInfo.avg_channel_size)),e.xp6(6),e.Oqu(e.lcZ(18,7,t.networkInfo.min_channel_size))}}function xd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Max Out Degree"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Avg Out Degree"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div",39),e._UZ(14,"h4",37),e._UZ(15,"span",38),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.Oqu(e.lcZ(6,2,t.networkInfo.max_out_degree)),e.xp6(6),e.Oqu(e.xi3(12,4,t.networkInfo.avg_out_degree,"1.0-2"))}}const Zd=function(n){return{"mt-1":n}};let yd=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.faProjectDiagram=Z.o4t,this.faBolt=Z.BDt,this.faServer=Z.xf3,this.faNetworkWired=Z.kXW,this.selNode={},this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=l.cu,this.userPersonaEnum=l.ol,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusNetwork=null,this.apiCallStatusFees=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select(C.bx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apiCallStatus,this.apiCallStatusNodeInfo.status===l.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.store.select(C.N7).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusNetwork=t.apiCallStatus,this.apiCallStatusNetwork.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusNetwork.message?JSON.stringify(this.apiCallStatusNetwork.message):this.apiCallStatusNetwork.message),this.networkInfo=t.networkInfo}),this.store.select(C.JG).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[2]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=t.apiCallStatus,this.apiCallStatusPendingChannels.status===l.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message),this.channelsStatus.pending={num_channels:t.pendingChannelsSummary.open.num_channels,capacity:t.pendingChannelsSummary.open.limbo_balance},this.channelsStatus.closing={num_channels:t.pendingChannelsSummary.closing.num_channels+t.pendingChannelsSummary.force_closing.num_channels+t.pendingChannelsSummary.waiting_close.num_channels,capacity:t.pendingChannelsSummary.total_limbo_balance}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[3]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message),this.channelsStatus.active=t.channelsSummary.active,this.channelsStatus.inactive=t.channelsSummary.inactive,this.logger.info(t)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-network-info"]],decls:16,vars:6,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,ld,2,1,"mat-grid-list",1),e.TgZ(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5,"Network"),e.qZA(),e.qZA(),e.TgZ(6,"mat-grid-list",5),e.YNc(7,hd,8,10,"mat-grid-tile",6),e.qZA(),e.qZA(),e.YNc(8,gd,3,1,"ng-template",null,7,e.W1O),e.YNc(10,fd,19,9,"ng-template",null,8,e.W1O),e.YNc(12,Cd,19,9,"ng-template",null,9,e.W1O),e.YNc(14,xd,16,7,"ng-template",null,10,e.W1O)),2&t&&(e.xp6(1),e.Q6J("ngIf",a.selNode.userPersona!==a.userPersonaEnum.OPERATOR),e.xp6(1),e.Q6J("ngClass",e.VKq(4,Zd,a.screenSize!==a.screenSizeEnum.XS)),e.xp6(1),e.Q6J("icon",a.faProjectDiagram),e.xp6(4),e.Q6J("ngForOf",a.networkCards))},directives:[_.xw,_.Wh,p.O5,p.mk,q.oO,M.BN,ce.Il,p.sg,ce.DX,_.yH,T.a8,T.dn,p.RF,p.n9,P.pW,Fe,Ne,Ue,p.tP],pipes:[p.JJ],styles:[""]}),n})();function Td(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let bd=(()=>{class n{constructor(t){this.router=t,this.faDownload=Z.q7m,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-backup"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Channels Backup"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,Td,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faDownload),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function Ad(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",23),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.TgZ(3,"div",25),e.TgZ(4,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().onRestoreChannels({})}),e._uU(5,"Restore All"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function vd(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.TgZ(3,"h4",28),e._uU(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function wd(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function qd(n,i){1&n&&e._UZ(0,"mat-progress-bar",29)}function Sd(n,i){1&n&&(e.TgZ(0,"th",30),e._uU(1," Channel Point "),e.qZA())}const Ld=function(n){return{"max-width":n}};function kd(n,i){if(1&n&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ld,a.screenSize===a.screenSizeEnum.XS?"10rem":"45rem")),e.xp6(1),e.Oqu(null==t?null:t.channel_point)}}function Fd(n,i){1&n&&(e.TgZ(0,"th",32),e.TgZ(1,"span",33),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Ud(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",34),e.TgZ(1,"span",33),e.TgZ(2,"button",35),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onRestoreChannels(s)}),e._uU(3,"Restore"),e.qZA(),e.qZA(),e.qZA()}}function Nd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No singular channel backups available."),e.qZA())}function Od(n,i){if(1&n&&(e.TgZ(0,"td",36),e.YNc(1,Nd,2,0,"p",37),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.channels||!t.channels.data||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)}}const Rd=function(n){return{"display-none":n}};function Id(n,i){if(1&n&&e._UZ(0,"tr",38),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Rd,t.channels&&t.channels.data&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Md(n,i){1&n&&e._UZ(0,"tr",39)}function Dd(n,i){1&n&&e._UZ(0,"tr",40)}const Pd=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Jd=function(){return["no_channel"]};let Ed=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.lndEffects=o,this.commonService=s,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.allRestoreExists=!1,this.flgLoading=[!0],this.flgSticky=!1,this.selFilter="",this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,b.tb)()),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.lndEffects.setRestoreChannelList.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.allRestoreExists=t.all_restore_exists,this.channelsData=t.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||t&&t.files)&&(this.flgLoading[0]=!1),this.logger.info(t)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(t){this.store.dispatch((0,b.vV)({payload:{channelPoint:t.channel_point?t.channel_point:"ALL"}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadRestoreTable(t){this.channels=new r.by([...t]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.channels.paginator=this.paginator,this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-restore-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:24,vars:17,consts:[["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell",""],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Ad,6,1,"div",1),e.YNc(2,vd,5,1,"div",2),e.YNc(3,wd,3,1,"div",2),e.TgZ(4,"div",3),e._UZ(5,"div",4),e.TgZ(6,"mat-form-field",5),e.TgZ(7,"input",6),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.YNc(9,qd,1,0,"mat-progress-bar",8),e.TgZ(10,"table",9,10),e.ynx(12,11),e.YNc(13,Sd,2,0,"th",12),e.YNc(14,kd,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Fd,3,0,"th",15),e.YNc(17,Ud,4,0,"td",16),e.BQk(),e.ynx(18,17),e.YNc(19,Od,2,1,"td",18),e.BQk(),e.YNc(20,Id,1,3,"tr",19),e.YNc(21,Md,1,0,"tr",20),e.YNc(22,Dd,1,0,"tr",21),e.qZA(),e.qZA(),e._UZ(23,"mat-paginator",22),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.allRestoreExists),e.xp6(1),e.Q6J("ngIf",!a.allRestoreExists&&(!a.channels||(null==a.channels||null==a.channels.data?null:a.channels.data.length)<=0)),e.xp6(1),e.Q6J("ngIf",!a.allRestoreExists&&a.channels&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)>0),e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",!0===a.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(14,Pd,"error"===a.flgLoading[0])),e.xp6(10),e.Q6J("matFooterRowDef",e.DdM(16,Jd)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,p.O5,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,L.lW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,r.yh,r.Q2,r.XQ,r.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Qd(n,i){1&n&&e._UZ(0,"mat-progress-bar",31)}function Yd(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Channel Point "),e.qZA())}const Hd=function(n){return{"max-width":n}};function Bd(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Hd,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(null==t?null:t.channel_point)}}function Vd(n,i){1&n&&(e.TgZ(0,"th",34),e.TgZ(1,"span",35),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Gd(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",36),e.TgZ(1,"div",37),e.TgZ(2,"mat-select",38),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",39),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onChannelClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onBackupChannels(s)}),e._uU(7,"Backup"),e.qZA(),e.TgZ(8,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onDownloadBackup(s)}),e._uU(9,"Download Backup"),e.qZA(),e.TgZ(10,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onVerifyChannels(s)}),e._uU(11,"Verify"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function zd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No channel available."),e.qZA())}function Wd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting channels..."),e.qZA())}function Xd(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function $d(n,i){if(1&n&&(e.TgZ(0,"td",40),e.YNc(1,zd,2,0,"p",41),e.YNc(2,Wd,2,0,"p",41),e.YNc(3,Xd,2,1,"p",41),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.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.COMPLETED),e.xp6(1),e.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),e.xp6(1),e.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 jd=function(n){return{"display-none":n}};function Kd(n,i){if(1&n&&e._UZ(0,"tr",42),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,jd,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function eh(n,i){1&n&&e._UZ(0,"tr",43)}function th(n,i){1&n&&e._UZ(0,"tr",44)}const nh=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},ah=function(){return["no_channel"]};let ih=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.actions=o,this.commonService=s,this.faInfoCircle=Z.sqG,this.faExclamationTriangle=Z.eHv,this.faArchive=Z.N2j,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=t.channels,this.channelsData.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(t=>t.type===l.uR.SET_CHANNELS_LND||t.type===l.pg.SHOW_FILE)).subscribe(t=>{t.type===l.uR.SET_CHANNELS_LND&&(this.selectedChannel=null),t.type===l.pg.SHOW_FILE&&(this.commonService.downloadFile(t.payload,"channel-"+(this.selectedChannel.channel_point?this.selectedChannel.channel_point:"all"),".bak",".bak"),this.selectedChannel=null)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(t){this.store.dispatch((0,b.Vv)({payload:{uiMessage:l.m6.BACKUP_CHANNEL,channelPoint:t.channel_point?t.channel_point:"ALL",showMessage:""}}))}onVerifyChannels(t){this.store.dispatch((0,b.Cp)({payload:{channelPoint:t.channel_point?t.channel_point:"ALL"}}))}onDownloadBackup(t){this.selectedChannel=t,this.store.dispatch((0,v.dc)({payload:{channelPoint:t.channel_point?t.channel_point:"all"}}))}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!1,component:xe}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadBackupTable(t){this.channels=new r.by(t?[...t]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(a,o)=>((a.active?"active":"inactive")+(a.channel_point?a.channel_point.toLowerCase():"")+(a.chan_id?a.chan_id.toLowerCase():"")+(a.remote_pubkey?a.remote_pubkey.toLowerCase():"")+(a.remote_alias?a.remote_alias.toLowerCase():"")+(a.capacity?a.capacity:"")+(a.local_balance?a.local_balance:"")+(a.remote_balance?a.remote_balance:"")+(a.total_satoshis_sent?a.total_satoshis_sent:"")+(a.total_satoshis_received?a.total_satoshis_received:"")+(a.commit_fee?a.commit_fee:"")+(a.private?"private":"public")).includes(o),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-backup-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:42,vars:18,consts:[["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell","","fxLayoutAlign","end center"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5,"Save your backup files in a redundant location."),e.qZA(),e.qZA(),e.TgZ(6,"div",4),e._UZ(7,"fa-icon",3),e.TgZ(8,"span"),e.TgZ(9,"strong"),e._uU(10,"Backup Folder Location: "),e.qZA(),e._uU(11),e.qZA(),e.qZA(),e.TgZ(12,"div",5),e.TgZ(13,"button",6),e.NdJ("click",function(){return a.onVerifyChannels({})}),e._uU(14,"Verify All"),e.qZA(),e.TgZ(15,"button",7),e.NdJ("click",function(){return a.onBackupChannels({})}),e._uU(16,"Backup All"),e.qZA(),e.TgZ(17,"button",8),e.NdJ("click",function(){return a.onDownloadBackup({})}),e._uU(18,"Download Backup"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",9),e.TgZ(20,"div",10),e._UZ(21,"fa-icon",11),e.TgZ(22,"span",12),e._uU(23,"Backups"),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",13),e.TgZ(25,"input",14),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",15),e.YNc(27,Qd,1,0,"mat-progress-bar",16),e.TgZ(28,"table",17,18),e.ynx(30,19),e.YNc(31,Yd,2,0,"th",20),e.YNc(32,Bd,2,4,"td",21),e.BQk(),e.ynx(33,22),e.YNc(34,Vd,3,0,"th",23),e.YNc(35,Gd,12,0,"td",24),e.BQk(),e.ynx(36,25),e.YNc(37,$d,4,3,"td",26),e.BQk(),e.YNc(38,Kd,1,3,"tr",27),e.YNc(39,eh,1,0,"tr",28),e.YNc(40,th,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(41,"mat-paginator",30),e.qZA()),2&t&&(e.xp6(3),e.Q6J("icon",a.faExclamationTriangle),e.xp6(4),e.Q6J("icon",a.faInfoCircle),e.xp6(4),e.hij("",a.selNode.channelBackupPath,"."),e.xp6(10),e.Q6J("icon",a.faArchive),e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(15,nh,""!==a.errorMessage)),e.xp6(10),e.Q6J("matFooterRowDef",e.DdM(17,ah)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,M.BN,L.lW,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function oh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let sh=(()=>{class n{constructor(t){this.router=t,this.faUserCheck=Z.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Sign/Verify Message"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,oh,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faUserCheck),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function lh(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Message is required."),e.qZA())}let rh=(()=>{class n{constructor(t,a,o){this.dataService=t,this.snackBar=a,this.logger=o,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new m.x,new m.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.signedMessage=this.message,this.signature=t.signature})}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 n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D),e.Y36(te.ux),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"textarea",4),e.NdJ("ngModelChange",function(s){return a.message=s})("keyup",function(){return a.onMessageChange()}),e.qZA(),e.YNc(5,lh,2,0,"mat-error",5),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"button",7),e.NdJ("click",function(){return a.resetData()}),e._uU(8,"Clear Field"),e.qZA(),e.TgZ(9,"button",8),e.NdJ("click",function(){return a.onSign()}),e._uU(10,"Sign"),e.qZA(),e.qZA(),e._UZ(11,"mat-divider",9),e.TgZ(12,"div",10),e.TgZ(13,"p"),e._uU(14,"Generated Signature"),e.qZA(),e.qZA(),e.TgZ(15,"div",11),e._uU(16),e.qZA(),e.TgZ(17,"div",12),e.TgZ(18,"button",13),e.NdJ("copied",function(s){return a.onCopyField(s)}),e._uU(19,"Copy Signature"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.message),e.xp6(1),e.Q6J("ngIf",!a.message),e.xp6(6),e.Q6J("inset",!0),e.xp6(5),e.Oqu(a.signature),e.xp6(2),e.Q6J("payload",a.signature))},directives:[_.xw,_.yH,_.Wh,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,L.lW,z.d,se.y,f.TO],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function ch(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Message is required."),e.qZA())}function uh(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Signature is required."),e.qZA())}function ph(n,i){1&n&&(e.TgZ(0,"p",13),e.TgZ(1,"mat-icon",14),e._uU(2,"close"),e.qZA(),e._uU(3,"Verification failed, please double check message and signature"),e.qZA())}function mh(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Pubkey Used"),e.qZA())}function _h(n,i){if(1&n&&(e.TgZ(0,"div",20),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(2),e.Oqu(null==t.verifyRes?null:t.verifyRes.pubkey)}}function dh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",21),e.TgZ(1,"button",22),e.NdJ("copied",function(o){return e.CHM(t),e.oxw(2).onCopyField(o)}),e._uU(2,"Copy Pubkey"),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function hh(n,i){if(1&n&&(e.TgZ(0,"div",15),e._UZ(1,"mat-divider",16),e.TgZ(2,"div",17),e.YNc(3,mh,2,0,"p",5),e.qZA(),e.YNc(4,_h,3,1,"div",18),e.YNc(5,dh,3,1,"div",19),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(2),e.Q6J("ngIf",t.verifyRes.valid),e.xp6(1),e.Q6J("ngIf",t.verifyRes.valid),e.xp6(1),e.Q6J("ngIf",t.verifyRes.valid)}}let gh=(()=>{class n{constructor(t,a,o){this.dataService=t,this.snackBar=a,this.logger=o,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new m.x,new m.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,d.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:"",valid: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 n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D),e.Y36(te.ux),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"textarea",4),e.NdJ("ngModelChange",function(s){return a.message=s})("keyup",function(){return a.onChange()}),e.qZA(),e.YNc(5,ch,2,0,"mat-error",5),e.qZA(),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"input",6,7),e.NdJ("ngModelChange",function(s){return a.signature=s})("keyup",function(){return a.onChange()}),e.qZA(),e.YNc(9,uh,2,0,"mat-error",5),e.qZA(),e.YNc(10,ph,4,0,"p",8),e.TgZ(11,"div",9),e.TgZ(12,"button",10),e.NdJ("click",function(){return a.resetData()}),e._uU(13,"Clear Fields"),e.qZA(),e.TgZ(14,"button",11),e.NdJ("click",function(){return a.onVerify()}),e._uU(15,"Verify"),e.qZA(),e.qZA(),e.YNc(16,hh,6,4,"div",12),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.message),e.xp6(1),e.Q6J("ngIf",!a.message),e.xp6(2),e.Q6J("ngModel",a.signature),e.xp6(2),e.Q6J("ngIf",!a.signature),e.xp6(1),e.Q6J("ngIf",a.showVerifyStatus&&!a.verifyRes.valid),e.xp6(6),e.Q6J("ngIf",a.showVerifyStatus&&a.verifyRes.valid))},directives:[_.xw,_.yH,_.Wh,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,L.lW,f.TO,K.Hw,z.d,se.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var fh=h(9442),k=h(1643);function Ch(n,i){if(1&n&&(e.TgZ(0,"div",3),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function xh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e._uU(2,"Non Routing Peers"),e.qZA(),e.TgZ(3,"mat-form-field",11),e.TgZ(4,"input",12),e.NdJ("keyup",function(){return e.CHM(t),e.oxw(2).applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw(2).filter=o}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(4),e.Q6J("ngModel",t.filter)}}function Zh(n,i){1&n&&e._UZ(0,"mat-progress-bar",35)}function yh(n,i){1&n&&(e.TgZ(0,"th",36),e._uU(1,"Channel ID"),e.qZA())}const Ke=function(n){return{"max-width":n}};function Th(n,i){if(1&n&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.Q6J("ngStyle",e.VKq(2,Ke,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function bh(n,i){1&n&&(e.TgZ(0,"th",36),e._uU(1,"Peer Alias"),e.qZA())}function Ah(n,i){if(1&n&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.Q6J("ngStyle",e.VKq(2,Ke,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.remote_alias)}}function vh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Sats Sent"),e.qZA())}function wh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_satoshis_sent))}}function qh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Sats Received"),e.qZA())}function Sh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_satoshis_received))}}function Lh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Local Balance (Sats)"),e.qZA())}function kh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.local_balance))}}function Fh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Remote Balance (Sats)"),e.qZA())}function Uh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.remote_balance))}}function Nh(n,i){1&n&&(e.TgZ(0,"th",41),e.TgZ(1,"span",40),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Oh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",42),e.TgZ(1,"button",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(3).onManagePeer(s)}),e._uU(2,"Manage"),e.qZA(),e.qZA()}}function Rh(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"All peers are routing."),e.qZA())}function Ih(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting non routing peers..."),e.qZA())}function Mh(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.Oqu(t.errorMessage)}}function Dh(n,i){if(1&n&&(e.TgZ(0,"td",44),e.YNc(1,Rh,2,0,"p",45),e.YNc(2,Ih,2,0,"p",45),e.YNc(3,Mh,2,1,"p",45),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ph=function(n){return{"display-none":n}};function Jh(n,i){if(1&n&&e._UZ(0,"tr",46),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ph,(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)>0))}}function Eh(n,i){1&n&&e._UZ(0,"tr",47)}function Qh(n,i){1&n&&e._UZ(0,"tr",48)}const Yh=function(){return["no_non_routing_event"]};function Hh(n,i){if(1&n&&(e.TgZ(0,"div",13),e.YNc(1,Zh,1,0,"mat-progress-bar",14),e.TgZ(2,"table",15,16),e.ynx(4,17),e.YNc(5,yh,2,0,"th",18),e.YNc(6,Th,2,4,"td",19),e.BQk(),e.ynx(7,20),e.YNc(8,bh,2,0,"th",18),e.YNc(9,Ah,2,4,"td",19),e.BQk(),e.ynx(10,21),e.YNc(11,vh,2,0,"th",22),e.YNc(12,wh,4,3,"td",23),e.BQk(),e.ynx(13,24),e.YNc(14,qh,2,0,"th",22),e.YNc(15,Sh,4,3,"td",23),e.BQk(),e.ynx(16,25),e.YNc(17,Lh,2,0,"th",22),e.YNc(18,kh,4,3,"td",23),e.BQk(),e.ynx(19,26),e.YNc(20,Fh,2,0,"th",22),e.YNc(21,Uh,4,3,"td",23),e.BQk(),e.ynx(22,27),e.YNc(23,Nh,3,0,"th",28),e.YNc(24,Oh,3,0,"td",29),e.BQk(),e.ynx(25,30),e.YNc(26,Dh,4,3,"td",31),e.BQk(),e.YNc(27,Jh,1,3,"tr",32),e.YNc(28,Eh,1,0,"tr",33),e.YNc(29,Qh,1,0,"tr",34),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.NonRoutingPeers),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(6,Yh)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function Bh(n,i){if(1&n&&(e.TgZ(0,"div",4),e.YNc(1,xh,5,1,"div",5),e.YNc(2,Hh,30,7,"div",6),e._UZ(3,"mat-paginator",7,8),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",""===t.errorMessage),e.xp6(1),e.Q6J("ngIf",""===t.errorMessage),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Vh=(()=>{class n{constructor(t,a,o,s,u){this.logger=t,this.commonService=a,this.store=o,this.router=s,this.activatedRoute=u,this.routingPeersData=[],this.displayedColumns=[],this.NonRoutingPeers=new r.by([]),this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filter="",this.activeChannels=[],this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","remote_alias","local_balance","remote_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.routingPeersData=t.forwardingHistory.forwarding_events?t.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sort&&this.paginator&&this.loadNonRoutingPeersTable(this.routingPeersData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory)}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.activeChannels=t.channels,this.logger.info(t)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData)}onManagePeer(t){this.router.navigate(["../../","connections","channels","open"],{relativeTo:this.activatedRoute,state:{filter:t.chan_id}})}loadNonRoutingPeersTable(t){if(t.length>0){const a=this.activeChannels.filter(o=>t.findIndex(s=>s.chan_id_in===o.chan_id||s.chan_id_out===o.chan_id)<0);this.NonRoutingPeers=new r.by(a),this.NonRoutingPeers.sort=this.sort,this.NonRoutingPeers.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.NonRoutingPeers.paginator=this.paginator,this.logger.info(this.NonRoutingPeers)}else this.NonRoutingPeers=new r.by([]);this.applyFilter()}applyFilter(){this.NonRoutingPeers.filter=this.filter.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(y.F0),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-non-routing-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Non routing peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginator",""],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","total_satoshis_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_non_routing_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Ch,2,1,"div",1),e.YNc(2,Bh,5,5,"div",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.yH,_.Wh,p.O5,S.NW,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,L.lW,r.yh,r.Q2,p.mk,q.oO,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})(),Gh=(()=>{class n{constructor(t){this.dataService=t,this.paths="",this.unSubs=[new m.x,new m.x]}ngOnInit(){if(this.payment.htlcs&&this.payment.htlcs[0]&&this.payment.htlcs[0].route&&this.payment.htlcs[0].route.hops&&this.payment.htlcs[0].route.hops.length>0){const t=this.payment.htlcs[0].route.hops.reduce((a,o)=>""===a?o.pub_key:a+","+o.pub_key,"");this.dataService.getAliasesFromPubkeys(t,!0).pipe((0,d.R)(this.unSubs[0])).subscribe(a=>{this.paths=a.reduce((o,s)=>""===o?s:o+"\n"+s,"")})}this.payment.payment_request&&""!==this.payment.payment_request.trim()&&this.dataService.decodePayment(this.payment.payment_request,!1).pipe((0,V.q)(1)).subscribe(t=>{t&&t.description&&""!==t.description&&(this.payment.description=t.description)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-payment-lookup"]],inputs:{payment:"payment"},decls:66,vars:20,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","50"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-card-content",1),e.TgZ(2,"div",2),e.TgZ(3,"h4",3),e._uU(4,"Payment Hash"),e.qZA(),e.TgZ(5,"span",4),e._uU(6),e.qZA(),e.qZA(),e._UZ(7,"mat-divider",5),e.TgZ(8,"div",2),e.TgZ(9,"h4",3),e._uU(10,"Payment Preimage"),e.qZA(),e.TgZ(11,"span",4),e.TgZ(12,"div"),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e._UZ(14,"mat-divider",5),e.TgZ(15,"div",2),e.TgZ(16,"h4",3),e._uU(17,"Payment Request"),e.qZA(),e.TgZ(18,"span",4),e.TgZ(19,"div"),e._uU(20),e.qZA(),e.qZA(),e.qZA(),e._UZ(21,"mat-divider",5),e.TgZ(22,"div",2),e.TgZ(23,"h4",3),e._uU(24,"Description"),e.qZA(),e.TgZ(25,"span",4),e.TgZ(26,"div"),e._uU(27),e.qZA(),e.qZA(),e.qZA(),e._UZ(28,"mat-divider",5),e.TgZ(29,"div",6),e.TgZ(30,"div",7),e.TgZ(31,"h4",3),e._uU(32,"Status"),e.qZA(),e.TgZ(33,"span",4),e.TgZ(34,"div"),e._uU(35),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",7),e.TgZ(37,"h4",3),e._uU(38,"Creation Date"),e.qZA(),e.TgZ(39,"span",4),e.TgZ(40,"div"),e._uU(41),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(42,"mat-divider",5),e.TgZ(43,"div",6),e.TgZ(44,"div",7),e.TgZ(45,"h4",3),e._uU(46,"Value (mSats)"),e.qZA(),e.TgZ(47,"span",4),e.TgZ(48,"div"),e._uU(49),e.ALo(50,"number"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",7),e.TgZ(52,"h4",3),e._uU(53,"Fee (mSats)"),e.qZA(),e.TgZ(54,"span",4),e.TgZ(55,"div"),e._uU(56),e.ALo(57,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(58,"mat-divider",5),e.TgZ(59,"div",2),e.TgZ(60,"h4",3),e._uU(61,"Path"),e.qZA(),e.TgZ(62,"span",4),e.TgZ(63,"div"),e._uU(64),e.qZA(),e.qZA(),e.qZA(),e._UZ(65,"mat-divider",5),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_hash),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_preimage),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_request),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.description),e.xp6(1),e.Q6J("inset",!0),e.xp6(7),e.Oqu(null==a.payment?null:a.payment.status),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.creation_date),e.xp6(1),e.Q6J("inset",!0),e.xp6(7),e.Oqu(e.lcZ(50,16,null==a.payment?null:a.payment.value_msat)),e.xp6(7),e.Oqu(e.lcZ(57,18,null==a.payment?null:a.payment.fee_msat)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.paths),e.xp6(1),e.Q6J("inset",!0))},directives:[_.xw,_.yH,_.Wh,T.dn,z.d],pipes:[p.JJ],styles:[""]}),n})();var zh=h(159);function Wh(n,i){if(1&n&&e._UZ(0,"qr-code",22),2&n){const t=e.oxw();e.Q6J("value",null==t.invoice?null:t.invoice.payment_request)("size",t.qrWidth)("errorCorrectionLevel","L")}}function Xh(n,i){1&n&&(e.TgZ(0,"span",23),e._uU(1,"N/A"),e.qZA())}function $h(n,i){if(1&n&&e._UZ(0,"qr-code",22),2&n){const t=e.oxw();e.Q6J("value",null==t.invoice?null:t.invoice.payment_request)("size",t.qrWidth)("errorCorrectionLevel","L")}}function jh(n,i){1&n&&(e.TgZ(0,"span",24),e._uU(1,"QR Code Not Applicable"),e.qZA())}function Kh(n,i){1&n&&e._UZ(0,"mat-divider",16),2&n&&e.Q6J("inset",!0)}function eg(n,i){1&n&&(e.ynx(0),e._uU(1," (zero amount) "),e.BQk())}const Ae=function(n){return{"mr-0":n}};function tg(n,i){if(1&n&&e._UZ(0,"span",38),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ng(n,i){if(1&n&&e._UZ(0,"span",39),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ag(n,i){if(1&n&&e._UZ(0,"span",40),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ig(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"div",32),e.TgZ(2,"span",33),e.YNc(3,tg,1,3,"span",34),e.YNc(4,ng,1,3,"span",35),e.YNc(5,ag,1,3,"span",36),e._uU(6),e.qZA(),e.TgZ(7,"span",37),e._uU(8),e.ALo(9,"number"),e.qZA(),e.qZA(),e._UZ(10,"mat-divider",16),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SETTLED"===t.state),e.xp6(1),e.Q6J("ngIf","ACCEPTED"===t.state),e.xp6(1),e.Q6J("ngIf","CANCELED"===t.state),e.xp6(1),e.hij(" ",t.chan_id," "),e.xp6(2),e.Oqu(e.xi3(9,6,+t.amt_msat/1e3||0,a.getDecimalFormat(t))),e.xp6(2),e.Q6J("inset",!0)}}function og(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",11),e.TgZ(1,"mat-expansion-panel",25),e.NdJ("opened",function(){return e.CHM(t),e.oxw().flgOpened=!0})("closed",function(){return e.CHM(t),e.oxw().onExpansionClosed()}),e.TgZ(2,"mat-expansion-panel-header"),e.TgZ(3,"mat-panel-title"),e.TgZ(4,"h4",26),e._uU(5,"HTLCs"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",27),e.TgZ(7,"div",28),e.TgZ(8,"span",29),e._uU(9,"Channel ID"),e.qZA(),e.TgZ(10,"span",30),e._uU(11,"Amount (Sats)"),e.qZA(),e.qZA(),e._UZ(12,"mat-divider",16),e.YNc(13,ig,11,9,"div",31),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(12),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngForOf",null==t.invoice?null:t.invoice.htlcs)}}function sg(n,i){1&n&&e._UZ(0,"mat-divider",16),2&n&&e.Q6J("inset",!0)}const et=function(n){return{"display-none":n}};let lg=(()=>{class n{constructor(t){this.commonService=t,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS&&(this.qrWidth=220)}getDecimalFormat(t){return t.amt_msat<1e3?"1.0-4":"1.0-0"}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-invoice-lookup"]],inputs:{invoice:"invoice"},decls:90,vars:45,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","20",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","80"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.YNc(2,Wh,1,3,"qr-code",2),e.YNc(3,Xh,2,0,"span",3),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"mat-card-content",5),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.YNc(8,$h,1,3,"qr-code",2),e.YNc(9,jh,2,0,"span",8),e.qZA(),e.YNc(10,Kh,1,1,"mat-divider",9),e.TgZ(11,"div",10),e.TgZ(12,"div",11),e.TgZ(13,"div",12),e.TgZ(14,"h4",13),e._uU(15),e.qZA(),e.TgZ(16,"span",14),e._uU(17),e.ALo(18,"number"),e.YNc(19,eg,2,0,"ng-container",15),e.qZA(),e.qZA(),e.TgZ(20,"div",12),e.TgZ(21,"h4",13),e._uU(22,"Amount Settled"),e.qZA(),e.TgZ(23,"span",14),e.TgZ(24,"div"),e._uU(25),e.ALo(26,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(27,"mat-divider",16),e.TgZ(28,"div",11),e.TgZ(29,"div",12),e.TgZ(30,"h4",13),e._uU(31,"Date Created"),e.qZA(),e.TgZ(32,"span",14),e._uU(33),e.ALo(34,"date"),e.qZA(),e.qZA(),e.TgZ(35,"div",12),e.TgZ(36,"h4",13),e._uU(37,"Date Settled"),e.qZA(),e.TgZ(38,"span",14),e._uU(39),e.ALo(40,"date"),e.qZA(),e.qZA(),e.qZA(),e._UZ(41,"mat-divider",16),e.TgZ(42,"div",11),e.TgZ(43,"div",17),e.TgZ(44,"h4",13),e._uU(45,"Memo"),e.qZA(),e.TgZ(46,"span",14),e._uU(47),e.qZA(),e.qZA(),e.qZA(),e._UZ(48,"mat-divider",16),e.TgZ(49,"div",11),e.TgZ(50,"div",17),e.TgZ(51,"h4",13),e._uU(52,"Payment Request"),e.qZA(),e.TgZ(53,"span",18),e._uU(54),e.qZA(),e.qZA(),e.qZA(),e._UZ(55,"mat-divider",16),e.TgZ(56,"div",11),e.TgZ(57,"div",17),e.TgZ(58,"h4",13),e._uU(59,"Payment Hash"),e.qZA(),e.TgZ(60,"span",18),e._uU(61),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div"),e._UZ(63,"mat-divider",16),e.TgZ(64,"div",11),e.TgZ(65,"div",17),e.TgZ(66,"h4",13),e._uU(67,"Preimage"),e.qZA(),e.TgZ(68,"span",18),e._uU(69),e.qZA(),e.qZA(),e.qZA(),e._UZ(70,"mat-divider",16),e.TgZ(71,"div",11),e.TgZ(72,"div",19),e.TgZ(73,"h4",13),e._uU(74,"State"),e.qZA(),e.TgZ(75,"span",18),e._uU(76),e.qZA(),e.qZA(),e.TgZ(77,"div",20),e.TgZ(78,"h4",13),e._uU(79,"Expiry"),e.qZA(),e.TgZ(80,"span",18),e._uU(81),e.qZA(),e.qZA(),e.TgZ(82,"div",20),e.TgZ(83,"h4",13),e._uU(84,"Private Routing Hints"),e.qZA(),e.TgZ(85,"span",18),e._uU(86),e.qZA(),e.qZA(),e.qZA(),e._UZ(87,"mat-divider",16),e.YNc(88,og,14,2,"div",21),e.YNc(89,sg,1,1,"mat-divider",9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.VKq(41,et,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.xp6(4),e.Q6J("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.VKq(43,et,a.screenSize!==a.screenSizeEnum.XS&&a.screenSize!==a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM),e.xp6(5),e.Oqu(a.screenSize===a.screenSizeEnum.XS?"Amount":"Amount Requested"),e.xp6(2),e.hij("",e.lcZ(18,31,(null==a.invoice?null:a.invoice.value)||0)," Sats"),e.xp6(2),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.value)||"0"===(null==a.invoice?null:a.invoice.value)),e.xp6(6),e.hij("",e.lcZ(26,33,null==a.invoice?null:a.invoice.amt_paid_sat)," Sats"),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(34,35,1e3*(null==a.invoice?null:a.invoice.creation_date),"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(0!=+(null==a.invoice?null:a.invoice.settle_date)?e.xi3(40,38,1e3*+(null==a.invoice?null:a.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.invoice?null:a.invoice.memo),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.payment_request)||"N/A"),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.r_hash)||""),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.r_preimage)||"-"),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.invoice?null:a.invoice.state),e.xp6(5),e.Oqu(null==a.invoice?null:a.invoice.expiry),e.xp6(5),e.Oqu(null!=a.invoice&&a.invoice.private?"Yes":"No"),e.xp6(1),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0))},directives:[_.xw,_.Wh,_.yH,p.mk,q.oO,p.O5,T.dn,Q.$V,z.d,zh.uU,H.ib,H.yz,H.yK,p.sg,X.gM],pipes:[p.JJ,p.uU],styles:[""]}),n})();function rg(n,i){if(1&n&&(e.TgZ(0,"mat-radio-button",17),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("value",t.id)("checked",a.selectedFieldId===t.id),e.xp6(1),e.hij(" ",t.name," ")}}function cg(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function ug(n,i){1&n&&e._UZ(0,"mat-progress-bar",20)}const pg=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function mg(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,ug,1,0,"mat-progress-bar",19),e._uU(2),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(3,pg,""!==t.errorMessage&&"Getting lookup details..."!==t.errorMessage)),e.xp6(1),e.Q6J("ngIf","Getting lookup details..."===t.errorMessage),e.xp6(1),e.hij(" ",t.errorMessage," ")}}function _g(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-payment-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("payment",t.lookupValue)}}function dg(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-invoice-lookup",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("invoice",t.lookupValue)}}function hg(n,i){1&n&&(e.TgZ(0,"span",27),e.TgZ(1,"h3"),e._uU(2,"Error! Unable to find details!"),e.qZA(),e.qZA())}function gg(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"div",22),e.TgZ(2,"span",23),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"div",24),e.YNc(5,_g,2,1,"span",25),e.YNc(6,dg,2,1,"span",25),e.YNc(7,hg,3,0,"span",26),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.hij("",t.lookupFields[t.selectedFieldId].name," Details"),e.xp6(1),e.Q6J("ngSwitch",t.selectedFieldId),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1)}}const fg=function(n){return{"mt-1":!0,"mt-2":n}},Zg=y.Bz.forChild([{path:"",component:Se,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:si,canActivate:[k.QM]},{path:"wallet",component:_1,canActivate:[k.a1]},{path:"onchain",component:T_,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:v_,canActivate:[k.QM]},{path:"send/:selTab",component:$e,data:{sweepAll:!1},canActivate:[k.QM]},{path:"sweep/:selTab",component:$e,data:{sweepAll:!0},canActivate:[k.QM]}]},{path:"connections",component:ci,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:po,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:nl,canActivate:[k.QM]},{path:"pending",component:Pr,canActivate:[k.QM]},{path:"closed",component:uc,canActivate:[k.QM]},{path:"activehtlcs",component:Qc,canActivate:[k.QM]}]},{path:"peers",component:so,data:{sweepAll:!1},canActivate:[k.QM]}]},{path:"transactions",component:g1,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:De,canActivate:[k.QM]},{path:"invoices",component:Ie,canActivate:[k.QM]},{path:"lookuptransactions",component:(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.actions=s,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Payment",placeholder:"Payment Hash"},{id:1,name:"Invoice",placeholder:"Payment Hash"}],this.faSearch=Z.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND)).subscribe(t=>{this.flgSetLookupValue=!t.payload.error,this.lookupValue=JSON.parse(JSON.stringify(t.payload)),this.errorMessage=t.payload.error?this.commonService.extractErrorMessage(t.payload.error):"",this.logger.info(this.lookupValue)})}onLookup(){if(!this.lookupKey)return!0;switch(this.errorMessage="",this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,b.yZ)({payload:Buffer.from(this.lookupKey.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}));break;case 1:this.store.dispatch((0,b.n7)({payload:{openSnackBar:!1,paymentHash:Buffer.from(this.lookupKey.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lookup-transactions"]],decls:19,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mb-2"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"payment"],[3,"invoice"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-content",2),e.TgZ(3,"form",3,4),e.TgZ(5,"div",5),e.TgZ(6,"mat-radio-group",6),e.NdJ("ngModelChange",function(s){return a.selectedFieldId=s})("change",function(s){return a.onSelectChange(s)}),e.YNc(7,rg,2,3,"mat-radio-button",7),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",8),e.TgZ(9,"input",9,10),e.NdJ("change",function(){return a.clearLookupValue()})("ngModelChange",function(s){return a.lookupKey=s}),e.qZA(),e.YNc(11,cg,2,1,"mat-error",11),e.qZA(),e.TgZ(12,"div",12),e.TgZ(13,"button",13),e.NdJ("click",function(){return a.resetData()}),e._uU(14,"Clear"),e.qZA(),e.TgZ(15,"button",14),e.NdJ("click",function(){return a.onLookup()}),e._uU(16,"Lookup"),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,mg,3,5,"div",15),e.YNc(18,gg,8,4,"div",16),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",a.selectedFieldId),e.xp6(1),e.Q6J("ngForOf",a.lookupFields),e.xp6(1),e.Q6J("ngClass",e.VKq(8,fg,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("placeholder",(null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key")("ngModel",a.lookupKey),e.xp6(2),e.Q6J("ngIf",!a.lookupKey),e.xp6(6),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},directives:[_.xw,_.yH,_.Wh,T.dn,c._Y,c.JL,c.F,ie.VQ,c.JJ,c.On,p.sg,f.KE,p.mk,q.oO,I.Nt,c.Fj,c.Q7,p.O5,L.lW,ie.U0,f.TO,P.pW,p.RF,p.n9,p.ED,Gh,lg],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})(),canActivate:[k.QM]}]},{path:"messages",component:sh,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:rh,canActivate:[k.QM]},{path:"verify",component:gh,canActivate:[k.QM]}]},{path:"channelbackup",component:bd,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:ih,canActivate:[k.QM]},{path:"restore",component:Ed,canActivate:[k.QM]}]},{path:"routing",component:Cu,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Be,canActivate:[k.QM]},{path:"peers",component:Pp,canActivate:[k.QM]},{path:"nonroutingprs",component:Vh,canActivate:[k.QM]}]},{path:"reports",component:Ep,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Xp,canActivate:[k.QM]},{path:"transactions",component:rm,canActivate:[k.QM]}]},{path:"graph",component:C1,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:He,canActivate:[k.QM]},{path:"queryroutes",component:J1,canActivate:[k.QM]}]},{path:"lookups",component:He,canActivate:[k.QM]},{path:"network",component:yd,canActivate:[k.QM]},{path:"**",component:fh.w},{path:"rates",redirectTo:"network"}]}]);var yg=h(8750);let Tg=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n,bootstrap:[Se]}),n.\u0275inj=e.cJS({providers:[k.QM],imports:[[p.ez,yg.m,Zg]]}),n})()}}]); \ No newline at end of file diff --git a/frontend/636.f1aaa7338619caeb.js b/frontend/636.f1aaa7338619caeb.js deleted file mode 100644 index 9feb4871..00000000 --- a/frontend/636.f1aaa7338619caeb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[636],{1636:(bg,qe,h)=>{h.r(qe),h.d(qe,{LNDModule:()=>Tg});var p=h(9808),y=h(1402),tt=h(8878),e=h(5e3),_=h(7093),P=h(5899);function nt(n,i){1&n&&e._UZ(0,"mat-progress-bar",3)}let Se=(()=>{class n{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(a=>{switch(!0){case a instanceof y.OD:this.loading=!0;break;case a instanceof y.m2:case a instanceof y.gk:case a instanceof y.Q3:this.loading=!1}})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lnd-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,nt,1,0,"mat-progress-bar",1),e._UZ(2,"router-outlet",null,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.loading))},directives:[_.xw,_.yH,_.Wh,p.O5,y.lC,P.pW],styles:[""],data:{animation:[tt.g]}}),n})();var m=h(7579),d=h(2722),E=h(9300),Le=h(534),Z=h(801),l=h(7731),C=h(6529),F=h(5043),w=h(5620),G=h(6642),O=h(62),M=h(9444),ce=h(3954),T=h(9224),he=h(2181),q=h(3322),L=h(7423),K=h(5245);const ke=function(n){return{backgroundColor:n}};function at(n,i){if(1&n&&e._UZ(0,"span",6),2&n){const t=e.oxw();e.Q6J("ngStyle",e.VKq(1,ke,null==t.information?null:t.information.color))}}function it(n,i){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h4",1),e._uU(2,"Color"),e.qZA(),e.TgZ(3,"div",2),e._UZ(4,"span",7),e._uU(5),e.ALo(6,"uppercase"),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(4),e.Q6J("ngStyle",e.VKq(4,ke,null==t.information?null:t.information.color)),e.xp6(1),e.hij(" ",e.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function ot(n,i){if(1&n&&(e.TgZ(0,"span",2),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}let Fe=(()=>{class n{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 n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[e.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,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div"),e.TgZ(2,"h4",1),e._uU(3,"Alias"),e.qZA(),e.TgZ(4,"div",2),e._uU(5),e.YNc(6,at,1,3,"span",3),e.qZA(),e.qZA(),e.YNc(7,it,7,6,"div",4),e.TgZ(8,"div"),e.TgZ(9,"h4",1),e._uU(10,"Implementation"),e.qZA(),e.TgZ(11,"div",2),e._uU(12),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",1),e._uU(15,"Chain"),e.qZA(),e.YNc(16,ot,2,1,"span",5),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.hij(" ",null==a.information?null:a.information.alias," "),e.xp6(1),e.Q6J("ngIf",!a.showColorFieldSeparately),e.xp6(1),e.Q6J("ngIf",a.showColorFieldSeparately),e.xp6(5),e.Oqu(null!=a.information&&a.information.lnImplementation||null!=a.information&&a.information.version?(null==a.information?null:a.information.lnImplementation)+" "+(null==a.information?null:a.information.version):""),e.xp6(4),e.Q6J("ngForOf",a.chains))},directives:[_.xw,_.yH,_.Wh,p.O5,p.sg,p.PC,q.Zl],pipes:[p.gd],styles:[""]}),n})();function st(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div"),e.TgZ(2,"h4",3),e._uU(3,"Lightning"),e.qZA(),e.TgZ(4,"div",4),e._uU(5),e.ALo(6,"number"),e.qZA(),e._UZ(7,"mat-progress-bar",5),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"h4",3),e._uU(10,"On-chain"),e.qZA(),e.TgZ(11,"div",4),e._uU(12),e.ALo(13,"number"),e.qZA(),e._UZ(14,"mat-progress-bar",5),e.qZA(),e.TgZ(15,"div"),e.TgZ(16,"h4",3),e._uU(17,"Total"),e.qZA(),e.TgZ(18,"div",4),e._uU(19),e.ALo(20,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.hij("",e.lcZ(6,5,null==t.balances?null:t.balances.lightning)," Sats"),e.xp6(2),e.s9C("value",(null==t.balances?null:t.balances.lightning)/(null==t.balances?null:t.balances.total)*100),e.xp6(5),e.hij("",e.lcZ(13,7,null==t.balances?null:t.balances.onchain)," Sats"),e.xp6(2),e.s9C("value",(null==t.balances?null:t.balances.onchain)/(null==t.balances?null:t.balances.total)*100),e.xp6(5),e.hij("",e.lcZ(20,9,null==t.balances?null:t.balances.total)," Sats")}}function lt(n,i){if(1&n&&(e.TgZ(0,"div",6),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let rt=(()=>{class n{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,a){if(1&t&&(e.YNc(0,st,21,11,"div",0),e.YNc(1,lt,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf"," "===a.errorMessage)("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh,P.pW],pipes:[p.JJ],styles:[""]}),n})();var f=h(7322),X=h(7238),z=h(4834),Q=h(644);const ct=function(){return["../connections/channels/open"]},ut=function(n){return{filter:n}};function pt(n,i){if(1&n&&(e.TgZ(0,"div",19),e.TgZ(1,"a",20),e._uU(2),e.ALo(3,"slice"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"mat-hint",21),e.TgZ(6,"strong",8),e._uU(7,"Local:"),e.qZA(),e._uU(8),e.ALo(9,"number"),e.qZA(),e.TgZ(10,"mat-hint",22),e._UZ(11,"fa-icon",23),e._uU(12),e.ALo(13,"number"),e.qZA(),e.TgZ(14,"mat-hint",24),e.TgZ(15,"strong",8),e._uU(16,"Remote:"),e.qZA(),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e._UZ(19,"mat-progress-bar",25),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.xp6(1),e.s9C("matTooltip",t.remote_alias||t.remote_pubkey),e.s9C("matTooltipDisabled",(t.remote_alias||t.remote_pubkey).length<26),e.Q6J("routerLink",e.DdM(21,ct))("state",e.VKq(22,ut,t.chan_id)),e.xp6(1),e.AsE(" ",e.Dn7(3,11,t.remote_alias||t.remote_pubkey,0,24),"",(t.remote_alias||t.remote_pubkey).length>25?"...":""," "),e.xp6(6),e.hij("",e.lcZ(9,15,t.local_balance||0)," Sats"),e.xp6(3),e.Q6J("icon",a.faBalanceScale),e.xp6(1),e.hij(" (",e.lcZ(13,17,t.balancedness||0),") "),e.xp6(5),e.hij("",e.lcZ(18,19,t.remote_balance||0)," Sats"),e.xp6(2),e.s9C("value",t.local_balance&&t.local_balance>0?+t.local_balance/(+t.local_balance+ +t.remote_balance)*100:0)}}function mt(n,i){if(1&n&&(e.TgZ(0,"div",17),e.YNc(1,pt,20,24,"div",18),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.allChannels)}}function _t(n,i){if(1&n&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._uU(3,"Total Capacity"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"mat-hint",7),e.TgZ(6,"strong",8),e._uU(7,"Local:"),e.qZA(),e._uU(8),e.ALo(9,"number"),e.qZA(),e.TgZ(10,"mat-hint",9),e._UZ(11,"fa-icon",10),e._uU(12),e.ALo(13,"number"),e.qZA(),e.TgZ(14,"mat-hint",11),e.TgZ(15,"strong",8),e._uU(16,"Remote:"),e.qZA(),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e._UZ(19,"mat-progress-bar",12),e.qZA(),e.TgZ(20,"div",13),e._UZ(21,"mat-divider",14),e.qZA(),e.TgZ(22,"div",15),e.YNc(23,mt,2,1,"div",16),e.qZA(),e.qZA()),2&n){const t=e.oxw(),a=e.MAs(2);e.xp6(8),e.hij("",e.lcZ(9,7,(null==t.channelBalances?null:t.channelBalances.localBalance)||0)," Sats"),e.xp6(3),e.Q6J("icon",t.faBalanceScale),e.xp6(1),e.hij(" (",e.lcZ(13,9,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),e.xp6(5),e.hij("",e.lcZ(18,11,(null==t.channelBalances?null:t.channelBalances.remoteBalance)||0)," Sats"),e.xp6(2),e.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),e.xp6(4),e.Q6J("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",a)}}function dt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",26),e._uU(1," No channels available. "),e.TgZ(2,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw().goToChannels()}),e._uU(3,"Open Channel"),e.qZA(),e.qZA()}}function ht(n,i){if(1&n&&(e.TgZ(0,"div",28),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let gt=(()=>{class n{constructor(t){this.router=t,this.faBalanceScale=Z.DL8,this.faDumbbell=Z.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,a){if(1&t&&(e.YNc(0,_t,24,13,"div",0),e.YNc(1,dt,4,0,"ng-template",null,1,e.W1O),e.YNc(3,ht,3,1,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(4);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,_.yH,f.bx,M.BN,X.gM,P.pW,z.d,Q.$V,p.sg,y.yS,L.lW],pipes:[p.JJ,p.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),n})();function ft(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e.TgZ(2,"div"),e.TgZ(3,"h4",4),e._uU(4,"Daily"),e.qZA(),e.TgZ(5,"div",5),e._uU(6),e.ALo(7,"number"),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"h4",4),e._uU(10,"Weekly"),e.qZA(),e.TgZ(11,"div",5),e._uU(12),e.ALo(13,"number"),e.qZA(),e.qZA(),e.TgZ(14,"div"),e.TgZ(15,"h4",4),e._uU(16,"Monthly"),e.qZA(),e.TgZ(17,"div",5),e._uU(18),e.ALo(19,"number"),e.qZA(),e.qZA(),e.TgZ(20,"div",6),e._UZ(21,"h4",7),e._UZ(22,"span",5),e.qZA(),e.qZA(),e.TgZ(23,"div",3),e.TgZ(24,"div"),e.TgZ(25,"h4",4),e._uU(26,"Transactions"),e.qZA(),e.TgZ(27,"div",5),e._uU(28),e.ALo(29,"number"),e.qZA(),e.qZA(),e.TgZ(30,"div"),e.TgZ(31,"h4",4),e._uU(32,"Transactions"),e.qZA(),e.TgZ(33,"div",5),e._uU(34),e.ALo(35,"number"),e.qZA(),e.qZA(),e.TgZ(36,"div"),e.TgZ(37,"h4",4),e._uU(38,"Transactions"),e.qZA(),e.TgZ(39,"div",5),e._uU(40),e.ALo(41,"number"),e.qZA(),e.qZA(),e.TgZ(42,"div",6),e._UZ(43,"h4",7),e._UZ(44,"span",5),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.hij("",e.lcZ(7,6,null==t.fees?null:t.fees.day_fee_sum)," Sats"),e.xp6(6),e.hij("",e.lcZ(13,8,null==t.fees?null:t.fees.week_fee_sum)," Sats"),e.xp6(6),e.hij("",e.lcZ(19,10,null==t.fees?null:t.fees.month_fee_sum)," Sats"),e.xp6(10),e.Oqu(e.lcZ(29,12,null==t.fees?null:t.fees.daily_tx_count)),e.xp6(6),e.Oqu(e.lcZ(35,14,null==t.fees?null:t.fees.weekly_tx_count)),e.xp6(6),e.Oqu(e.lcZ(41,16,null==t.fees?null:t.fees.monthly_tx_count))}}function Ct(n,i){if(1&n&&(e.TgZ(0,"div",8),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Ue=(()=>{class n{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum},{name:"Daily ",value:this.fees.day_fee_sum}];const t=Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10),a=Math.pow(10,t-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/a)*a/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[e.TTD],decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,a){if(1&t&&(e.YNc(0,ft,45,18,"div",0),e.YNc(1,Ct,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh],pipes:[p.JJ],styles:[""]}),n})();function xt(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e.TgZ(2,"div"),e.TgZ(3,"h4",4),e._uU(4,"Active"),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"span",6),e._uU(7),e.ALo(8,"number"),e.qZA(),e.qZA(),e.TgZ(9,"div"),e.TgZ(10,"h4",4),e._uU(11,"Pending"),e.qZA(),e.TgZ(12,"div",5),e._UZ(13,"span",7),e._uU(14),e.ALo(15,"number"),e.qZA(),e.qZA(),e.TgZ(16,"div"),e.TgZ(17,"h4",4),e._uU(18,"Inactive"),e.qZA(),e.TgZ(19,"div",5),e._UZ(20,"span",8),e._uU(21),e.ALo(22,"number"),e.qZA(),e.qZA(),e.TgZ(23,"div"),e.TgZ(24,"h4",4),e._uU(25,"Closing"),e.qZA(),e.TgZ(26,"div",5),e._UZ(27,"span",9),e._uU(28),e.ALo(29,"number"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",3),e.TgZ(31,"div"),e.TgZ(32,"h4",4),e._uU(33,"Capacity"),e.qZA(),e.TgZ(34,"div",5),e._uU(35),e.ALo(36,"number"),e.qZA(),e.qZA(),e.TgZ(37,"div"),e.TgZ(38,"h4",4),e._uU(39,"Capacity"),e.qZA(),e.TgZ(40,"div",5),e._uU(41),e.ALo(42,"number"),e.qZA(),e.qZA(),e.TgZ(43,"div"),e.TgZ(44,"h4",4),e._uU(45,"Capacity"),e.qZA(),e.TgZ(46,"div",5),e._uU(47),e.ALo(48,"number"),e.qZA(),e.qZA(),e.TgZ(49,"div"),e.TgZ(50,"h4",4),e._uU(51,"Capacity"),e.qZA(),e.TgZ(52,"div",5),e._uU(53),e.ALo(54,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(7),e.Oqu(e.lcZ(8,8,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(15,10,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(22,12,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(29,14,(null==t.channelsStatus||null==t.channelsStatus.closing?null:t.channelsStatus.closing.num_channels)||0)),e.xp6(7),e.hij("",e.lcZ(36,16,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(42,18,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(48,20,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(54,22,(null==t.channelsStatus||null==t.channelsStatus.closing?null:t.channelsStatus.closing.capacity)||0)," Sats")}}function Zt(n,i){if(1&n&&(e.TgZ(0,"div",10),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Ne=(()=>{class n{constructor(){this.channelsStatus={}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,a){if(1&t&&(e.YNc(0,xt,55,24,"div",0),e.YNc(1,Zt,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf"," "===a.errorMessage)("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh],pipes:[p.JJ],styles:[""]}),n})();var Oe=h(8213),v=h(7861),Re=h(9107);function yt(n,i){if(1&n&&(e.TgZ(0,"mat-hint",19),e.TgZ(1,"strong",20),e._uU(2,"Capacity: "),e.qZA(),e._uU(3),e.ALo(4,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.hij("",e.lcZ(4,1,t.remote_balance||0)," Sats")}}function Tt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2).$implicit;return e.oxw(3).onLoopOut(o)}),e._uU(1,"Loop Out"),e.qZA()}}function bt(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"mat-hint",22),e.TgZ(2,"strong",20),e._uU(3,"Capacity: "),e.qZA(),e._uU(4),e.ALo(5,"number"),e.qZA(),e.YNc(6,Tt,2,0,"button",23),e.qZA()),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.xp6(4),e.hij("",e.lcZ(5,2,t.local_balance||0)," Sats"),e.xp6(2),e.Q6J("ngIf",a.showLoop)}}function At(n,i){if(1&n&&e._UZ(0,"mat-progress-bar",25),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.s9C("value",a.totalLiquidity>0?(+t.remote_balance||0)/a.totalLiquidity*100:0)}}function vt(n,i){if(1&n&&e._UZ(0,"mat-progress-bar",25),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.s9C("value",a.totalLiquidity>0?(+t.local_balance||0)/a.totalLiquidity*100:0)}}const wt=function(){return["../connections/channels/open"]},qt=function(n){return{filter:n}};function St(n,i){if(1&n&&(e.TgZ(0,"div",13),e.TgZ(1,"a",14),e._uU(2),e.ALo(3,"slice"),e.qZA(),e.TgZ(4,"div",15),e.YNc(5,yt,5,3,"mat-hint",16),e.YNc(6,bt,7,4,"div",17),e.qZA(),e.YNc(7,At,1,1,"mat-progress-bar",18),e.YNc(8,vt,1,1,"mat-progress-bar",18),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.xp6(1),e.s9C("matTooltip",t.remote_alias||t.remote_pubkey),e.s9C("matTooltipDisabled",(t.remote_alias||t.remote_pubkey).length<26),e.Q6J("routerLink",e.DdM(14,wt))("state",e.VKq(15,qt,t.chan_id)),e.xp6(1),e.AsE(" ",e.Dn7(3,10,t.remote_alias||t.remote_pubkey,0,24),"",(t.remote_alias||t.remote_pubkey).length>25?"...":""," "),e.xp6(3),e.Q6J("ngIf","In"===a.direction),e.xp6(1),e.Q6J("ngIf","Out"===a.direction),e.xp6(1),e.Q6J("ngIf","In"===a.direction),e.xp6(1),e.Q6J("ngIf","Out"===a.direction)}}function Lt(n,i){if(1&n&&(e.TgZ(0,"div",11),e.YNc(1,St,9,17,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.allChannels)}}const kt=function(n,i,t){return{"mb-4":n,"mb-2":i,"mb-1":t}};function Ft(n,i){if(1&n&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._uU(3,"Total Capacity"),e.qZA(),e.TgZ(4,"mat-hint",6),e._uU(5),e.ALo(6,"number"),e.qZA(),e._UZ(7,"mat-progress-bar",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"mat-divider",9),e.qZA(),e.YNc(10,Lt,2,1,"div",10),e.qZA()),2&n){const t=e.oxw(),a=e.MAs(2);e.Q6J("ngClass",e.kEZ(6,kt,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)),e.xp6(5),e.hij("",e.lcZ(6,4,t.totalLiquidity)," Sats"),e.xp6(5),e.Q6J("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",a)}}function Ut(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).goToChannels()}),e._uU(1,"Open Channel"),e.qZA()}}function Nt(n,i){if(1&n&&(e.TgZ(0,"div",26),e._uU(1," No channels available. "),e.YNc(2,Ut,2,0,"button",27),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf","Out"===t.direction)}}function Ot(n,i){if(1&n&&(e.TgZ(0,"div",29),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Rt=(()=>{class n{constructor(t,a,o,s){this.router=t,this.loopService=a,this.commonService=o,this.store=s,this.targetConf=6,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.showLoop=!(!t.swapServerUrl||""===t.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(t){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[1])).subscribe(a=>{this.store.dispatch((0,v.qR)({payload:{minHeight:"56rem",data:{channel:t,minQuote:a[0],maxQuote:a[1],direction:l.$I.LOOP_OUT,component:Oe.a}}}))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0),e.Y36(Re.W),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","85","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","15","fxLayoutAlign","end start","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","15","fxLayoutAlign","end start","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,a){if(1&t&&(e.YNc(0,Ft,11,10,"div",0),e.YNc(1,Nt,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Ot,3,1,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(4);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,_.yH,p.mk,q.oO,f.bx,P.pW,z.d,Q.$V,p.sg,y.yS,X.gM,L.lW],pipes:[p.JJ,p.OU],styles:[""]}),n})();var D=h(3251),S=h(6087),A=h(4847),r=h(2075),J=h(8966),b=h(6523),c=h(3075),I=h(7531),W=h(3390),$=h(6534),R=h(4107),ue=h(2368),Y=h(508);function It(n,i){if(1&n&&(e.TgZ(0,"mat-option",25),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(e.lcZ(2,2,t))}}function Mt(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.invoiceError)}}function Dt(n,i){if(1&n&&(e.TgZ(0,"div",26),e._UZ(1,"fa-icon",27),e.YNc(2,Mt,2,1,"span",28),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.invoiceError)}}let Pt=(()=>{class n{constructor(t,a,o,s,u,g){this.dialogRef=t,this.data=a,this.store=o,this.decimalPipe=s,this.commonService=u,this.actions=g,this.faExclamationTriangle=Z.eHv,this.selNode={},this.memo="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.timeUnitEnum=l.Qk,this.timeUnits=l.LO,this.selTimeUnit=l.Qk.SECS,this.invoiceError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===t.payload.action&&(this.invoiceError=t.payload.message,t.payload.status===l.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="";let a=this.expiry?this.expiry:3600;this.selTimeUnit!==l.Qk.SECS&&(a=this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS)),this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:a,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,l.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 n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(p.JJ),e.Y36(O.v),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-create-invoices"]],decls:38,vars:16,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","50","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","24","fxLayoutAlign","start end"],["matInput","","placeholder","Expiry","type","number","tabindex","3","name","expiry",3,"ngModel","step","min","ngModelChange"],["tabindex","4","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","name","private",3,"ngModel","ngModelChange"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","5","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","6",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,a){if(1&t){const o=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Create Invoice"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(u){return a.memo=u}),e.qZA(),e.qZA(),e.TgZ(13,"mat-form-field",11),e.TgZ(14,"input",12),e.NdJ("ngModelChange",function(u){return a.invoiceValue=u})("keyup",function(){return a.onInvoiceValueChange()}),e.qZA(),e.TgZ(15,"span",13),e._uU(16," Sats "),e.qZA(),e.TgZ(17,"mat-hint"),e._uU(18),e.qZA(),e.qZA(),e.TgZ(19,"mat-form-field",14),e.TgZ(20,"input",15),e.NdJ("ngModelChange",function(u){return a.expiry=u}),e.qZA(),e.TgZ(21,"span",13),e._uU(22),e.ALo(23,"titlecase"),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",14),e.TgZ(25,"mat-select",16),e.NdJ("selectionChange",function(u){return a.onTimeUnitChange(u)}),e.YNc(26,It,3,4,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(27,"div",18),e.TgZ(28,"mat-slide-toggle",19),e.NdJ("ngModelChange",function(u){return a.private=u}),e._uU(29,"Private Routing Hints"),e.qZA(),e.TgZ(30,"mat-icon",20),e._uU(31,"info_outline"),e.qZA(),e.qZA(),e.YNc(32,Dt,3,2,"div",21),e.TgZ(33,"div",22),e.TgZ(34,"button",23),e.NdJ("click",function(){return a.resetData()}),e._uU(35,"Clear Field"),e.qZA(),e.TgZ(36,"button",24),e.NdJ("click",function(){e.CHM(o);const u=e.MAs(10);return a.onAddInvoice(u)}),e._uU(37,"Create Invoice"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.memo),e.xp6(2),e.Q6J("ngModel",a.invoiceValue)("step",100)("min",1),e.xp6(4),e.Oqu(a.invoiceValueHint),e.xp6(2),e.Q6J("ngModel",a.expiry)("step",a.selTimeUnit===a.timeUnitEnum.SECS?300:a.selTimeUnit===a.timeUnitEnum.MINS?10:a.selTimeUnit===a.timeUnitEnum.HOURS?2:1)("min",1),e.xp6(2),e.hij(" ",e.lcZ(23,14,a.selTimeUnit)," "),e.xp6(3),e.Q6J("value",a.selTimeUnit),e.xp6(1),e.Q6J("ngForOf",a.timeUnits),e.xp6(2),e.Q6J("ngModel",a.private),e.xp6(4),e.Q6J("ngIf",""!==a.invoiceError))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,f.bx,R.gD,p.sg,ue.Rr,K.Hw,X.gM,p.O5,Y.ey,M.BN],pipes:[p.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var Jt=h(8627);function Et(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",4,5),e.TgZ(2,"mat-form-field",6),e.TgZ(3,"input",7),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().memo=o}),e.qZA(),e.qZA(),e.TgZ(4,"mat-form-field",8),e.TgZ(5,"input",9),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().invoiceValue=o})("keyup",function(){return e.CHM(t),e.oxw().onInvoiceValueChange()}),e.qZA(),e.TgZ(6,"span",10),e._uU(7," Sats "),e.qZA(),e.TgZ(8,"mat-hint"),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"div",11),e.TgZ(11,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(12,"Clear Field"),e.qZA(),e.TgZ(13,"button",13),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(1);return e.oxw().onAddInvoice(o)}),e._uU(14,"Create Invoice"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.memo),e.xp6(2),e.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),e.xp6(4),e.Oqu(t.invoiceValueHint)}}function Qt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"button",15),e.NdJ("click",function(){return e.CHM(t),e.oxw().openCreateInvoiceModal()}),e._uU(2,"Create Invoice"),e.qZA(),e.qZA()}}function Yt(n,i){1&n&&e._UZ(0,"mat-progress-bar",46)}function Ht(n,i){1&n&&(e.TgZ(0,"th",47),e._uU(1," Date Created "),e.qZA())}const pe=function(n){return{"mr-0":n}};function Bt(n,i){if(1&n&&e._UZ(0,"span",53),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Vt(n,i){if(1&n&&e._UZ(0,"span",54),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Gt(n,i){if(1&n&&e._UZ(0,"span",55),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function zt(n,i){if(1&n&&e._UZ(0,"span",56),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Wt(n,i){if(1&n&&(e.TgZ(0,"td",48),e.YNc(1,Bt,1,3,"span",49),e.YNc(2,Vt,1,3,"span",50),e.YNc(3,Gt,1,3,"span",51),e.YNc(4,zt,1,3,"span",52),e._uU(5),e.ALo(6,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","OPEN"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","SETTLED"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","ACCEPTED"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","CANCELED"===(null==t?null:t.state)),e.xp6(1),e.hij(" ",e.xi3(6,5,1e3*(null==t?null:t.creation_date),"dd/MMM/y HH:mm"),"")}}function Xt(n,i){1&n&&(e.TgZ(0,"th",57),e._uU(1," Date Settled "),e.qZA())}function $t(n,i){if(1&n&&(e.TgZ(0,"td",58),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(0!=+(null==t?null:t.settle_date)?e.xi3(2,1,1e3*+(null==t?null:t.settle_date),"dd/MMM/y HH:mm"):"-")}}function jt(n,i){1&n&&(e.TgZ(0,"th",47),e._uU(1," Memo "),e.qZA())}const Kt=function(n){return{"max-width":n}};function en(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"div",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Kt,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),e.xp6(2),e.Oqu(null==t?null:t.memo)}}function tn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1," Amount (Sats) "),e.qZA())}function nn(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.value)," ")}}function an(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1," Amount Settled (Sats) "),e.qZA())}function on(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.amt_paid_sat)," ")}}function sn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",63),e.TgZ(1,"div",64),e.TgZ(2,"mat-select",65),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}const ln=function(n){return{"pl-3":n}};function rn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",67),e.TgZ(1,"div",68),e.TgZ(2,"mat-select",69),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onInvoiceClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",66),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onRefreshInvoice(s)}),e._uU(7,"Refresh"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,ln,t.screenSize!==t.screenSizeEnum.XS))}}function cn(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No invoice available."),e.qZA())}function un(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting invoices..."),e.qZA())}function pn(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function mn(n,i){if(1&n&&(e.TgZ(0,"td",70),e.YNc(1,cn,2,0,"p",71),e.YNc(2,un,2,0,"p",71),e.YNc(3,pn,2,1,"p",71),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const _n=function(n){return{"display-none":n}};function dn(n,i){if(1&n&&e._UZ(0,"tr",72),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,_n,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function hn(n,i){1&n&&e._UZ(0,"tr",73)}function gn(n,i){1&n&&e._UZ(0,"tr",74)}const fn=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Cn=function(){return["no_invoice"]};function xn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.TgZ(2,"div",18),e._UZ(3,"fa-icon",19),e.TgZ(4,"span",20),e._uU(5,"Invoices History"),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",21),e.TgZ(7,"input",22),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().selFilter=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",23),e.YNc(9,Yt,1,0,"mat-progress-bar",24),e.TgZ(10,"table",25,26),e.ynx(12,27),e.YNc(13,Ht,2,0,"th",28),e.YNc(14,Wt,7,8,"td",29),e.BQk(),e.ynx(15,30),e.YNc(16,Xt,2,0,"th",31),e.YNc(17,$t,3,4,"td",32),e.BQk(),e.ynx(18,33),e.YNc(19,jt,2,0,"th",28),e.YNc(20,en,4,4,"td",29),e.BQk(),e.ynx(21,34),e.YNc(22,tn,2,0,"th",35),e.YNc(23,nn,4,3,"td",29),e.BQk(),e.ynx(24,36),e.YNc(25,an,2,0,"th",35),e.YNc(26,on,4,3,"td",29),e.BQk(),e.ynx(27,37),e.YNc(28,sn,6,0,"th",38),e.YNc(29,rn,8,3,"td",39),e.BQk(),e.ynx(30,40),e.YNc(31,mn,4,3,"td",41),e.BQk(),e.YNc(32,dn,1,3,"tr",42),e.YNc(33,hn,1,0,"tr",43),e.YNc(34,gn,1,0,"tr",44),e.qZA(),e.TgZ(35,"mat-paginator",45),e.NdJ("page",function(o){return e.CHM(t),e.oxw().onPageChange(o)}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("icon",t.faHistory),e.xp6(4),e.Q6J("ngModel",t.selFilter),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.invoices)("ngClass",e.VKq(13,fn,""!==t.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(15,Cn)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("length",t.totalInvoices)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Ie=(()=>{class n{constructor(t,a,o,s,u,g){this.logger=t,this.store=a,this.decimalPipe=o,this.commonService=s,this.datePipe=u,this.actions=g,this.calledFrom="transactions",this.faHistory=Z.qO$,this.selNode={},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.information={},this.flgSticky=!1,this.selFilter="",this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.firstOffset=-1,this.lastOffset=-1,this.totalInvoices=0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","value","amt_paid_sat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","memo","value","actions"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","settle_date","memo","value","amt_paid_sat","actions"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.Ef).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.totalInvoices=t.listInvoices.total_invoices,this.firstOffset=+t.listInvoices.first_index_offset,this.lastOffset=+t.listInvoices.last_index_offset,this.invoicesData=t.listInvoices.invoices||[],this.invoicesData.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoicesData),this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[3]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.SET_LOOKUP_LND&&this.invoicesData.length>0&&this.sort&&this.paginator&&t.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(t.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(t){const a=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:a,pageSize:this.pageSize,openModal:!0}})),this.resetData()}onInvoiceClick(t){this.store.dispatch((0,v.qR)({payload:{data:{invoice:t,newlyAdded:!1,component:Jt.v}}}))}onRefreshInvoice(t){this.store.dispatch((0,b.n7)({payload:{openSnackBar:!0,paymentHash:Buffer.from(t.r_hash.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}}))}updateInvoicesData(t){this.invoicesData=this.invoicesData.map(a=>a.r_hash===t.r_hash?t:a)}loadInvoicesTable(t){this.invoices=new r.by(t?[...t]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.invoices.filterPredicate=(a,o)=>((a.creation_date?this.datePipe.transform(new Date(1e3*a.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(a.settle_date?this.datePipe.transform(new Date(1e3*a.settle_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.applyFilter(),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onPageChange(t){let a=!0,o=this.lastOffset;this.pageSize=t.pageSize,0===t.pageIndex?(a=!0,o=0):t.pageIndext.previousPageIndex&&t.length>(t.pageIndex+1)*t.pageSize?(a=!0,o=this.firstOffset):t.length<=(t.pageIndex+1)*t.pageSize&&(a=!1,o=0),this.store.dispatch((0,b.WM)({payload:{num_max_invoices:t.pageSize,index_offset:o,reversed:a}}))}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,l.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch((0,v.qR)({payload:{data:{pageSize:this.pageSize,component:Pt}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(p.JJ),e.Y36(O.v),e.Y36(p.uU),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-invoices"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","tabindex","6","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","settle_date"],["mat-header-cell","","mat-sort-header","","class","pl-4",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","memo"],["matColumnDef","value"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot grey","matTooltip","Open","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Open","matTooltipPosition","right",1,"dot","grey",3,"ngClass"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Et,15,5,"form",1),e.YNc(2,Qt,3,0,"div",2),e.YNc(3,xn,36,16,"div",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf","home"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom))},directives:[_.xw,_.yH,_.Wh,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,f.bx,L.lW,M.BN,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.uU,p.JJ],styles:[".mat-column-memo[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-memo[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var V=h(5698),j=h(8104),H=h(1125),ne=h(1079);const Zn=["paymentReq"];function yn(n,i){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function Tn(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment request is required."),e.qZA())}function bn(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function An(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment amount is required."),e.qZA())}function vn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",1),e.TgZ(1,"input",29,30),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().paymentAmount=o})("change",function(o){return e.CHM(t),e.oxw().onAmountChange(o)}),e.qZA(),e.TgZ(3,"mat-hint"),e._uU(4,"It is a zero amount invoice, enter amount to be paid."),e.qZA(),e.YNc(5,An,2,0,"mat-error",11),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.paymentAmount),e.xp6(4),e.Q6J("ngIf",!t.paymentAmount)}}function wn(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",null==t?null:t.name," ")}}function qn(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.selFeeLimitType?null:t.selFeeLimitType.placeholder," is required.")}}function Sn(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu((null==t?null:t.remote_alias)||(null==t?null:t.chan_id))}}function Ln(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Channel not found in the list."),e.qZA())}function kn(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentError)}}function Fn(n,i){if(1&n&&(e.TgZ(0,"div",32),e._UZ(1,"fa-icon",33),e.YNc(2,kn,2,1,"span",11),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.paymentError)}}let Un=(()=>{class n{constructor(t,a,o,s,u,g,N){this.dialogRef=t,this.store=a,this.logger=o,this.commonService=s,this.decimalPipe=u,this.actions=g,this.dataService=N,this.faExclamationTriangle=Z.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new c.NI,this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.feeLimitTypes=l.Vc,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{this.selNode=o}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(o=>{this.activeChannels=o.channels.filter(s=>s.active),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(o)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(o=>o.type===l.uR.UPDATE_API_CALL_STATUS_LND||o.type===l.uR.SEND_PAYMENT_STATUS_LND)).subscribe(o=>{o.type===l.uR.SEND_PAYMENT_STATUS_LND&&this.dialogRef.close(),o.type===l.uR.UPDATE_API_CALL_STATUS_LND&&o.payload.status===l.Bn.ERROR&&"SendPayment"===o.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=o.payload.message)});let t="",a="";this.activeChannels=this.activeChannels.sort((o,s)=>(t=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"",a=s.remote_alias?s.remote_alias.toLowerCase():s.chan_id?s.chan_id.toLowerCase():"",ta?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,d.R)(this.unSubs[3])).subscribe(o=>{"string"==typeof o&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){return this.activeChannels.filter(t=>0===(t.remote_alias?t.remote_alias.toLowerCase():t.chan_id?t.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&t.local_balance>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0))}displayFn(t){return t&&t.remote_alias?t.remote_alias:t&&t.chan_id?t.chan_id:""}onSelectedChannelChanged(){if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const t=this.activeChannels.filter(a=>{const o=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"";return o.length===this.selectedChannelCtrl.value.length&&0===o.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")});t&&t.length>0?(this.selectedChannelCtrl.setValue(t[0]),this.selectedChannelCtrl.setErrors(null)):this.selectedChannelCtrl.setErrors({notfound:!0})}}onSendPayment(){if(this.selectedChannelCtrl.value&&"string"==typeof this.selectedChannelCtrl.value&&this.onSelectedChannelChanged(),!this.paymentRequest||this.zeroAmtInvoice&&(!this.paymentAmount||this.paymentAmount<=0)||"string"==typeof this.selectedChannelCtrl.value)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.onPaymentRequestEntry(this.paymentRequest)}sendPayment(){if(this.selFeeLimitType!==this.feeLimitTypes[0]&&!this.feeLimit)return!0;this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.zeroAmtInvoice=!1,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}}))):(this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:this.paymentAmount,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}})))}onAmountChange(t){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,V.q)(1)).subscribe({next:a=>{this.paymentDecoded=a,this.selectedChannelCtrl.setValue(null),this.onAdvancedPanelToggle(!0,!0),this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.filteredMinAmtActvChannels=this.filterChannels(),this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.zeroAmtInvoice=!1,this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats ("+o.symbol+" "+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHint="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"))},error:a=>{this.logger.error(a),this.paymentDecodedHint="ERROR: "+a.message,this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(t,a){if(t&&!a){const o=this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.remote_alias?this.selectedChannelCtrl.value.remote_alias:this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.chan_id?this.selectedChannelCtrl.value.chan_id:"";this.advancedTitle="Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(""!==o?" | First Outgoing Channel: "+o:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selectedChannelCtrl.setValue(null),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(w.yh),e.Y36(F.mQ),e.Y36(O.v),e.Y36(p.JJ),e.Y36(G.eX),e.Y36(j.D))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(t,a){if(1&t&&e.Gf(Zn,5),2&t){let o;e.iGM(o=e.CRH())&&(a.paymentReq=o.first)}},decls:43,vars:21,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","5","Placeholder","Fee Limits",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","26"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModel","placeholder","step","min","disabled","ngModelChange"],["fLmt","ngModel"],["fxFlex","40","fxLayoutAlign","start end"],["type","text","placeholder","First Outgoing Channel","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","id","sendBtn","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Send Payment"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.TgZ(11,"mat-form-field",1),e.TgZ(12,"textarea",9,10),e.NdJ("ngModelChange",function(s){return a.onPaymentRequestEntry(s)})("matTextareaAutosize",function(){return!0}),e.qZA(),e.YNc(14,yn,2,1,"mat-hint",11),e.YNc(15,Tn,2,0,"mat-error",11),e.YNc(16,bn,2,1,"mat-error",11),e.qZA(),e.YNc(17,vn,6,2,"mat-form-field",12),e.TgZ(18,"mat-expansion-panel",13),e.NdJ("closed",function(){return a.onAdvancedPanelToggle(!0,!1)})("opened",function(){return a.onAdvancedPanelToggle(!1,!1)}),e.TgZ(19,"mat-expansion-panel-header"),e.TgZ(20,"mat-panel-title"),e.TgZ(21,"span"),e._uU(22),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",14),e.TgZ(24,"mat-form-field",15),e.TgZ(25,"mat-select",16),e.NdJ("valueChange",function(s){return a.selFeeLimitType=s}),e.YNc(26,wn,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(27,"mat-form-field",18),e.TgZ(28,"input",19,20),e.NdJ("ngModelChange",function(s){return a.feeLimit=s}),e.qZA(),e.YNc(30,qn,2,1,"mat-error",11),e.qZA(),e.TgZ(31,"mat-form-field",21),e._UZ(32,"input",22),e.TgZ(33,"mat-autocomplete",23,24),e.NdJ("optionSelected",function(){return a.onSelectedChannelChanged()}),e.YNc(35,Sn,2,2,"mat-option",17),e.qZA(),e.YNc(36,Ln,2,0,"mat-error",11),e.qZA(),e.qZA(),e.qZA(),e.YNc(37,Fn,3,2,"div",25),e.TgZ(38,"div",26),e.TgZ(39,"button",27),e.NdJ("click",function(){return a.resetData()}),e._uU(40,"Clear Fields"),e.qZA(),e.TgZ(41,"button",28),e.NdJ("click",function(){return a.onSendPayment()}),e._uU(42,"Send Payment"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(13),s=e.MAs(34);e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.paymentRequest),e.xp6(2),e.Q6J("ngIf",a.paymentRequest&&""!==a.paymentDecodedHint),e.xp6(1),e.Q6J("ngIf",!a.paymentRequest),e.xp6(1),e.Q6J("ngIf",null==o.errors?null:o.errors.decodeError),e.xp6(1),e.Q6J("ngIf",a.zeroAmtInvoice),e.xp6(5),e.Oqu(a.advancedTitle),e.xp6(3),e.Q6J("value",a.selFeeLimitType),e.xp6(1),e.Q6J("ngForOf",a.feeLimitTypes),e.xp6(2),e.Q6J("ngModel",a.feeLimit)("placeholder",null==a.selFeeLimitType?null:a.selFeeLimitType.placeholder)("step",1)("min",0)("disabled",a.selFeeLimitType===a.feeLimitTypes[0]),e.xp6(2),e.Q6J("ngIf",a.selFeeLimitType!==a.feeLimitTypes[0]&&!a.feeLimit),e.xp6(2),e.Q6J("formControl",a.selectedChannelCtrl)("matAutocomplete",s),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",a.filteredMinAmtActvChannels),e.xp6(1),e.Q6J("ngIf",null==a.selectedChannelCtrl.errors?null:a.selectedChannelCtrl.errors.notfound),e.xp6(1),e.Q6J("ngIf",""!==a.paymentError)}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,H.ib,H.yz,H.yK,R.gD,p.sg,c.wV,c.qQ,$.q,ne.ZL,c.oH,ne.XC,f.bx,f.TO,Y.ey,M.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var oe=h(3093),ee=h(711);const Nn=["sendPaymentForm"];function On(n,i){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function Rn(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment request is required."),e.qZA())}function In(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",4,5),e.TgZ(2,"mat-form-field",6),e.TgZ(3,"textarea",7,8),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().onPaymentRequestEntry(o)})("matTextareaAutosize",function(){return!0}),e.qZA(),e.YNc(5,On,2,1,"mat-hint",9),e.YNc(6,Rn,2,0,"mat-error",9),e.qZA(),e.TgZ(7,"div",10),e.TgZ(8,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(9,"Clear Field"),e.qZA(),e.TgZ(10,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSendPayment()}),e._uU(11,"Send Payment"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.paymentRequest),e.xp6(2),e.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),e.xp6(1),e.Q6J("ngIf",!t.paymentRequest)}}function Mn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",13),e.TgZ(1,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().openSendPaymentModal()}),e._uU(2,"Send Payment"),e.qZA(),e.qZA()}}function Dn(n,i){1&n&&e._UZ(0,"mat-progress-bar",52)}function Pn(n,i){1&n&&(e.TgZ(0,"th",53),e._uU(1,"Creation Date"),e.qZA())}const ae=function(n){return{"mr-0":n}};function Jn(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function En(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function Qn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.YNc(1,Jn,1,3,"span",55),e.YNc(2,En,1,3,"span",56),e._uU(3),e.ALo(4,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","SUCCEEDED"===(null==t?null:t.status)),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==(null==t?null:t.status)),e.xp6(1),e.hij(" ",e.xi3(4,3,1e3*(null==t?null:t.creation_date),"dd/MMM/y HH:mm")," ")}}function Yn(n,i){1&n&&(e.TgZ(0,"th",53),e._uU(1,"Payment Hash"),e.qZA())}const Me=function(n){return{"max-width":n}};function Hn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(2),e.Oqu(null==t?null:t.payment_hash)}}function Bn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"Fee (Sats)"),e.qZA())}function Vn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==t?null:t.fee))}}function Gn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"Value (Sats)"),e.qZA())}function zn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==t?null:t.value))}}function Wn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"#Hops"),e.qZA())}function Xn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu((null==t||null==t.htlcs[0]||null==t.htlcs[0].route||null==t.htlcs[0].route.hops?null:t.htlcs[0].route.hops.length)||0)}}function $n(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",63),e.TgZ(1,"div",64),e.TgZ(2,"mat-select",65),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function jn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",67),e.TgZ(1,"button",68),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onPaymentClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Kn(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No payment available."),e.qZA())}function ea(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting payments..."),e.qZA())}function ta(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function na(n,i){if(1&n&&(e.TgZ(0,"td",69),e.YNc(1,Kn,2,0,"p",9),e.YNc(2,ea,2,0,"p",9),e.YNc(3,ta,2,1,"p",9),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function aa(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function ia(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function oa(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(5);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function sa(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(5);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function la(n,i){if(1&n&&(e.TgZ(0,"span",72),e.YNc(1,oa,1,3,"span",55),e.YNc(2,sa,1,3,"span",56),e._uU(3),e.ALo(4,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","SUCCEEDED"===t.status),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==t.status),e.xp6(1),e.hij(" ",e.xi3(4,3,1e3*t.attempt_time,"dd/MMM/y HH:mm")," ")}}function ra(n,i){if(1&n&&(e.ynx(0),e.YNc(1,la,5,6,"span",71),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ca(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",70),e.YNc(2,aa,1,3,"span",55),e.YNc(3,ia,1,3,"span",56),e._uU(4),e.qZA(),e.YNc(5,ra,2,1,"ng-container",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Q6J("ngIf","SUCCEEDED"===(null==t?null:t.status)),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==(null==t?null:t.status)),e.xp6(1),e.hij(" Total Attempts: ",null==t||null==t.htlcs?null:t.htlcs.length," "),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function ua(n,i){if(1&n&&(e.TgZ(0,"span",70),e._uU(1),e.qZA()),2&n){const t=i.index;e.xp6(1),e.hij(" HTLC ",t+1," ")}}function pa(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ua,2,1,"span",73),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ma(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,pa,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(3,Me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(2),e.Oqu(null==t?null:t.payment_hash),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function _a(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t.route?null:t.route.total_fees,"1.0-0")," ")}}function da(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,_a,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ha(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2),e.ALo(3,"number"),e.qZA(),e.YNc(4,da,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.xi3(3,2,null==t?null:t.fee,"1.0-0")),e.xp6(2),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function ga(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t.route?null:t.route.total_amt,"1.0-0")," ")}}function fa(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ga,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function Ca(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2),e.ALo(3,"number"),e.qZA(),e.YNc(4,fa,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.xi3(3,2,null==t?null:t.value,"1.0-0")),e.xp6(2),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function xa(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,(null==t.route||null==t.route.hops?null:t.route.hops.length)||0,"1.0-0")," ")}}function Za(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,xa,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ya(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2,"-"),e.qZA(),e.YNc(3,Za,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(3),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function Ta(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",62),e.TgZ(1,"button",79),e.NdJ("click",function(){const s=e.CHM(t).$implicit,u=e.oxw(2).$implicit;return e.oxw(2).onHTLCClick(s,u)}),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=i.index;e.xp6(2),e.hij("View ",t+1,"")}}function ba(n,i){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Ta,3,1,"div",78),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function Aa(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",76),e.TgZ(1,"span",62),e.TgZ(2,"button",77),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return s.is_expanded=!(null!=s&&s.is_expanded)}),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,ba,2,1,"div",9),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(3),e.Oqu(null!=t&&t.is_expanded?"Hide":"Show"),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function va(n,i){1&n&&e._UZ(0,"tr",80)}const wa=function(n){return{"display-none":n}};function qa(n,i){if(1&n&&e._UZ(0,"tr",81),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,wa,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function Sa(n,i){1&n&&e._UZ(0,"tr",82)}function La(n,i){1&n&&e._UZ(0,"tr",80)}const ka=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Fa=function(){return["no_payment"]};function Ua(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"div",16),e.TgZ(2,"div",17),e._UZ(3,"fa-icon",18),e.TgZ(4,"span",19),e._uU(5,"Payments History"),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",20),e.TgZ(7,"input",21),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().selFilter=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",22),e.TgZ(9,"div",23),e.YNc(10,Dn,1,0,"mat-progress-bar",24),e.TgZ(11,"table",25,26),e.ynx(13,27),e.YNc(14,Pn,2,0,"th",28),e.YNc(15,Qn,5,6,"td",29),e.BQk(),e.ynx(16,30),e.YNc(17,Yn,2,0,"th",28),e.YNc(18,Hn,4,4,"td",29),e.BQk(),e.ynx(19,31),e.YNc(20,Bn,2,0,"th",32),e.YNc(21,Vn,4,3,"td",29),e.BQk(),e.ynx(22,33),e.YNc(23,Gn,2,0,"th",32),e.YNc(24,zn,4,3,"td",29),e.BQk(),e.ynx(25,34),e.YNc(26,Wn,2,0,"th",32),e.YNc(27,Xn,3,1,"td",29),e.BQk(),e.ynx(28,35),e.YNc(29,$n,6,0,"th",36),e.YNc(30,jn,3,0,"td",37),e.BQk(),e.ynx(31,38),e.YNc(32,na,4,3,"td",39),e.BQk(),e.ynx(33,40),e.YNc(34,ca,6,4,"td",29),e.BQk(),e.ynx(35,41),e.YNc(36,ma,5,5,"td",29),e.BQk(),e.ynx(37,42),e.YNc(38,ha,5,5,"td",29),e.BQk(),e.ynx(39,43),e.YNc(40,Ca,5,5,"td",29),e.BQk(),e.ynx(41,44),e.YNc(42,ya,4,1,"td",29),e.BQk(),e.ynx(43,45),e.YNc(44,Aa,5,2,"td",46),e.BQk(),e.YNc(45,va,1,0,"tr",47),e.YNc(46,qa,1,3,"tr",48),e.YNc(47,Sa,1,0,"tr",49),e.YNc(48,La,1,0,"tr",50),e.qZA(),e.TgZ(49,"mat-paginator",51),e.NdJ("page",function(o){return e.CHM(t),e.oxw().onPageChange(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("icon",t.faHistory),e.xp6(4),e.Q6J("ngModel",t.selFilter),e.xp6(3),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.payments)("ngClass",e.VKq(15,ka,""!==t.errorMessage)),e.xp6(34),e.Q6J("matRowDefColumns",t.htlcColumns)("matRowDefWhen",t.is_group),e.xp6(1),e.Q6J("matFooterRowDef",e.DdM(17,Fa)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("length",t.totalPayments)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let De=(()=>{class n{constructor(t,a,o,s,u,g,N,x){this.logger=t,this.commonService=a,this.dataService=o,this.store=s,this.rtlEffects=u,this.lndEffects=g,this.decimalPipe=N,this.datePipe=x,this.calledFrom="transactions",this.faHistory=Z.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.peers=[],this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.firstOffset=-1,this.lastOffset=-1,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","actions"],this.htlcColumns=["groupTotal","groupFee","groupAction"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupFee","groupValue","groupHops","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","payment_hash","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupHash","groupFee","groupValue","groupHops","groupAction"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(C.PP).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.paymentJSONArr=t.listPayments.payments||[],this.totalPayments=this.paymentJSONArr.length,this.firstOffset=+t.listPayments.first_index_offset,this.lastOffset=+t.listPayments.last_index_offset,this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize)),this.logger.info(t)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize))}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,V.q)(1)).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.timestamp?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:l.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(a=>{a&&(this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:l.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:l.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(o=>{o&&(this.paymentDecoded.num_satoshis=o[0].inputValue,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:o[0].inputValue,fromDialog:!1}})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch((0,v.qR)({payload:{data:{component:Un}}}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,V.q)(1)).subscribe(a=>{this.paymentDecoded=a,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[5])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}onPageChange(t){let a=!0,o=this.lastOffset;this.pageSize=t.pageSize,0===t.pageIndex?(a=!0,o=0):t.pageIndext.previousPageIndex&&t.length>(t.pageIndex+1)*t.pageSize?(a=!0,o=this.firstOffset):t.length<=(t.pageIndex+1)*t.pageSize&&(a=!1,o=0);const s=t.pageIndex*this.pageSize;this.loadPaymentsTable(this.paymentJSONArr.slice(s,s+this.pageSize))}is_group(t,a){return a.htlcs&&a.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(t){const a=this;return t.reduce((o,s)=>{const u=a.peers.find(g=>g.pub_key===s.pub_key);return u&&u.alias?o.push("
Channel: "+u.alias.padEnd(20)+"			Amount (Sats): "+a.decimalPipe.transform(s.amt_to_forward)+"
"):a.dataService.getAliasesFromPubkeys(s.pub_key,!1).pipe((0,d.R)(a.unSubs[6])).subscribe(g=>{o.push("
Channel: "+(g.node&&g.node.alias?g.node.alias.padEnd(20):s.pub_key.substring(0,17)+"...")+"			Amount (Sats): "+a.decimalPipe.transform(s.amt_to_forward)+"
")}),o},[])}onHTLCClick(t,a){a.payment_request&&""!==a.payment_request.trim()?this.dataService.decodePayment(a.payment_request,!1).pipe((0,V.q)(1)).subscribe({next:o=>{setTimeout(()=>{this.showHTLCView(t,a,o)},0)},error:o=>{this.showHTLCView(t,a,null)}}):this.showHTLCView(t,a,null)}showHTLCView(t,a,o){const s=[[{key:"payment_hash",value:a.payment_hash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"preimage",value:t.preimage,title:"Preimage",width:100,type:l.Gi.STRING}],[{key:"payment_request",value:a.payment_request,title:"Payment Request",width:100,type:l.Gi.STRING}],[{key:"status",value:t.status,title:"Status",width:33,type:l.Gi.STRING},{key:"attempt_time_ns",value:+t.attempt_time_ns/1e9,title:"Attempt Time",width:33,type:l.Gi.DATE_TIME},{key:"resolve_time_ns",value:+t.resolve_time_ns/1e9,title:"Resolve Time",width:34,type:l.Gi.DATE_TIME}],[{key:"total_amt",value:t.route.total_amt,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER},{key:"total_fees",value:t.route.total_fees,title:"Fee (Sats)",width:33,type:l.Gi.NUMBER},{key:"total_time_lock",value:t.route.total_time_lock,title:"Total Time Lock",width:34,type:l.Gi.NUMBER}],[{key:"hops",value:this.getHopDetails(t.route.hops),title:"Hops",width:100,type:l.Gi.ARRAY}]];o&&o.description&&""!==o.description&&s.splice(3,0,[{key:"description",value:o.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"HTLC Information",message:s,scrollable:t.route&&t.route.hops&&t.route.hops.length>1}}}))}onPaymentClick(t){if(t.htlcs&&t.htlcs[0]&&t.htlcs[0].route&&t.htlcs[0].route.hops&&t.htlcs[0].route.hops.length>0){const a=t.htlcs[0].route.hops.reduce((o,s)=>""===o?s.pub_key:o+","+s.pub_key,"");this.dataService.getAliasesFromPubkeys(a,!0).pipe((0,d.R)(this.unSubs[7])).subscribe(o=>{this.showPaymentView(t,o.reduce((s,u)=>""===s?u:s+"\n"+u,""))})}else this.showPaymentView(t,"")}showPaymentView(t,a){const o=[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"payment_request",value:t.payment_request,title:"Payment Request",width:100,type:l.Gi.STRING}],[{key:"status",value:t.status,title:"Status",width:50,type:l.Gi.STRING},{key:"creation_date",value:t.creation_date,title:"Creation Date",width:50,type:l.Gi.DATE_TIME}],[{key:"value_msat",value:t.value_msat,title:"Value (mSats)",width:50,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:50,type:l.Gi.NUMBER}],[{key:"path",value:a,title:"Path",width:100,type:l.Gi.STRING}]];t.payment_request&&""!==t.payment_request.trim()?this.dataService.decodePayment(t.payment_request,!1).pipe((0,V.q)(1)).subscribe(s=>{s&&s.description&&""!==s.description&&o.splice(3,0,[{key:"description",value:s.description,title:"Description",width:100,type:l.Gi.STRING}]),setTimeout(()=>{this.openPaymentAlert(o,t.htlcs&&t.htlcs[0]&&t.htlcs[0].route&&t.htlcs[0].route.hops&&t.htlcs[0].route.hops.length>1)},0)}):this.openPaymentAlert(o,!1)}openPaymentAlert(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Information",message:t,scrollable:a}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new r.by(t?[...t]:[]),this.payments.sortingDataAccessor=(a,o)=>"hops"===o?a.htlcs.length&&a.htlcs[0]&&a.htlcs[0].route&&a.htlcs[0].route.hops&&a.htlcs[0].route.hops.length?a.htlcs[0].route.hops.length:0:a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.payments.sort=this.sort,this.payments.filterPredicate=(a,o)=>((a.creation_date?this.datePipe.transform(new Date(1e3*a.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const t=JSON.parse(JSON.stringify(this.payments.data)),a=t.reduce((o,s)=>(s.payment_request&&""!==s.payment_request.trim()&&(o=""===o?s.payment_request:o+","+s.payment_request),o),"");this.dataService.decodePayments(a).pipe((0,d.R)(this.unSubs[8])).subscribe(o=>{let s=0;o.forEach((g,N)=>{if(g){for(;t[N+s].payment_hash!==g.payment_hash;)s+=1;t[N+s].description=g.description}});const u=t.reduce((g,N)=>g.concat(N),[]);this.commonService.downloadFile(u,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(j.D),e.Y36(w.yh),e.Y36(oe.V),e.Y36(ee.l),e.Y36(p.JJ),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-payments"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Nn,5),e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-2",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-2"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,In,12,3,"form",1),e.YNc(2,Mn,3,0,"div",2),e.YNc(3,Ua,50,18,"div",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf","home"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom))},directives:[_.xw,_.yH,_.Wh,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,c.Q7,Q.$V,c.JJ,c.On,L.lW,f.bx,f.TO,M.BN,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.nj,r.Ke,r.as,S.NW,P.pW,r.ge,A.nU,r.ev,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,p.sg,r.Gk,r.Q2,r.XQ],pipes:[p.uU,p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),n})();function Na(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA()),2&n){e.oxw();const t=e.MAs(11);e.Q6J("matMenuTriggerFor",t)}}function Oa(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw().$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ra(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).onsortChannelsBy()}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw(3);e.xp6(1),e.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function Ia(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Ma(n,i){if(1&n&&e._UZ(0,"rtl-node-info",29),2&n){const t=e.oxw(3);e.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Da(n,i){if(1&n&&e._UZ(0,"rtl-balances-info",30),2&n){const t=e.oxw(3);e.Q6J("balances",t.balances)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[2])}}function Pa(n,i){if(1&n&&e._UZ(0,"rtl-channel-capacity-info",31),2&n){const t=e.oxw(3);e.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("allChannels",t.allChannelsCapacity)("errorMessage",t.errorMessages[3])}}function Ja(n,i){if(1&n&&e._UZ(0,"rtl-fee-info",32),2&n){const t=e.oxw(3);e.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1])}}function Ea(n,i){if(1&n&&e._UZ(0,"rtl-channel-status-info",33),2&n){const t=e.oxw(3);e.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[4])}}function Qa(n,i){1&n&&(e.TgZ(0,"h3"),e._uU(1,"Error! Unable to find information!"),e.qZA())}const Pe=function(n){return{"dashboard-card-content":!0,"error-border":n}};function Ya(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",8),e.TgZ(1,"mat-card",9),e.TgZ(2,"mat-card-header"),e.TgZ(3,"mat-card-title",10),e.TgZ(4,"div"),e._UZ(5,"fa-icon",11),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.YNc(9,Na,3,1,"button",12),e.TgZ(10,"mat-menu",13,14),e.YNc(12,Oa,2,1,"button",15),e.YNc(13,Ra,2,1,"button",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-card-content",17),e.YNc(15,Ia,1,0,"mat-progress-bar",18),e.TgZ(16,"div",19),e.YNc(17,Ma,1,2,"rtl-node-info",20),e.YNc(18,Da,1,2,"rtl-balances-info",21),e.YNc(19,Pa,1,4,"rtl-channel-capacity-info",22),e.YNc(20,Ja,1,2,"rtl-fee-info",23),e.YNc(21,Ea,1,2,"rtl-channel-status-info",24),e.YNc(22,Qa,2,0,"h3",25),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(5),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngIf",t.links[0]),e.xp6(3),e.Q6J("ngForOf",t.goToOptions),e.xp6(1),e.Q6J("ngIf","capacity"===t.id),e.xp6(1),e.s9C("fxFlex","node"===t.id||"balance"===t.id?70:"fee"===t.id||"status"===t.id?78:90),e.Q6J("ngClass",e.VKq(16,Pe,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.ERROR)||"capacity"===t.id&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.ERROR||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.ERROR))),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.INITIATED||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.INITIATED)),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","balance"),e.xp6(1),e.Q6J("ngSwitchCase","capacity"),e.xp6(1),e.Q6J("ngSwitchCase","fee"),e.xp6(1),e.Q6J("ngSwitchCase","status")}}function Ha(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e._UZ(2,"fa-icon",4),e.TgZ(3,"span",5),e._uU(4),e.qZA(),e.qZA(),e.TgZ(5,"mat-grid-list",6),e.YNc(6,Ya,23,18,"mat-grid-tile",7),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("icon",t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.ERROR?t.faFrown:t.faSmile),e.xp6(2),e.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."),e.xp6(1),e.Q6J("rowHeight",t.operatorCardHeight),e.xp6(1),e.Q6J("ngForOf",t.operatorCards)}}function Ba(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA()),2&n){e.oxw();const t=e.MAs(9);e.Q6J("matMenuTriggerFor",t)}}function Va(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw(2).$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ga(n,i){if(1&n&&(e.TgZ(0,"mat-card-header"),e.TgZ(1,"mat-card-title",10),e.TgZ(2,"div"),e._UZ(3,"fa-icon",11),e.TgZ(4,"span"),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"div"),e.YNc(7,Ba,3,1,"button",12),e.TgZ(8,"mat-menu",13,43),e.YNc(10,Va,2,1,"button",15),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngIf",t.links[0]),e.xp6(3),e.Q6J("ngForOf",t.goToOptions)}}function za(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Wa(n,i){if(1&n&&e._UZ(0,"rtl-node-info",44),2&n){const t=e.oxw(3);e.Q6J("information",t.information)}}function Xa(n,i){if(1&n&&e._UZ(0,"rtl-balances-info",30),2&n){const t=e.oxw(3);e.Q6J("balances",t.balances)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[2])}}function $a(n,i){if(1&n&&e._UZ(0,"rtl-channel-liquidity-info",45),2&n){const t=e.oxw(3);e.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("allChannels",t.allInboundChannels)("errorMessage",t.errorMessages[3])}}function ja(n,i){if(1&n&&e._UZ(0,"rtl-channel-liquidity-info",45),2&n){const t=e.oxw(3);e.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("allChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[3])}}function Ka(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw(3).$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function ei(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA(),e.TgZ(3,"mat-menu",13,53),e.YNc(5,Ka,2,1,"button",15),e.qZA()),2&n){const t=e.MAs(4),a=e.oxw(2).$implicit;e.Q6J("matMenuTriggerFor",t),e.xp6(5),e.Q6J("ngForOf",a.goToOptions)}}function ti(n,i){1&n&&(e.TgZ(0,"span",46),e.TgZ(1,"mat-tab-group",47),e.TgZ(2,"mat-tab",48),e._UZ(3,"rtl-lightning-invoices",49),e.qZA(),e.TgZ(4,"mat-tab",50),e._UZ(5,"rtl-lightning-payments",49),e.qZA(),e.TgZ(6,"mat-tab",51),e.YNc(7,ei,6,2,"ng-template",52),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.xp6(3),e.Q6J("calledFrom","home"),e.xp6(2),e.Q6J("calledFrom","home"),e.xp6(1),e.Q6J("disabled",!0))}function ni(n,i){1&n&&(e.TgZ(0,"h3"),e._uU(1,"Error! Unable to find information!"),e.qZA())}const ai=function(n){return{"p-0":n}};function ii(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",8),e.TgZ(1,"mat-card",36),e.YNc(2,Ga,11,4,"mat-card-header",37),e.TgZ(3,"mat-card-content",38),e.YNc(4,za,1,0,"mat-progress-bar",18),e.TgZ(5,"div",39),e.YNc(6,Wa,1,1,"rtl-node-info",40),e.YNc(7,Xa,1,2,"rtl-balances-info",21),e.YNc(8,$a,1,4,"rtl-channel-liquidity-info",41),e.YNc(9,ja,1,4,"rtl-channel-liquidity-info",41),e.YNc(10,ti,8,3,"span",42),e.YNc(11,ni,2,0,"h3",25),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(1),e.Q6J("ngClass",e.VKq(13,ai,"transactions"===t.id)),e.xp6(1),e.Q6J("ngIf","transactions"!==t.id),e.xp6(1),e.s9C("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),e.Q6J("ngClass",e.VKq(15,Pe,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","balance"),e.xp6(1),e.Q6J("ngSwitchCase","inboundLiq"),e.xp6(1),e.Q6J("ngSwitchCase","outboundLiq"),e.xp6(1),e.Q6J("ngSwitchCase","transactions")}}function oi(n,i){if(1&n&&(e.TgZ(0,"div",34),e._UZ(1,"fa-icon",4),e.TgZ(2,"span",5),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"mat-grid-list",35),e.YNc(5,ii,12,17,"mat-grid-tile",7),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faSmile),e.xp6(2),e.hij("Welcome ",t.information.alias,"! Your node is up and running."),e.xp6(1),e.Q6J("rowHeight",t.merchantCardHeight),e.xp6(1),e.Q6J("ngForOf",t.merchantCards)}}let si=(()=>{class n{constructor(t,a,o,s,u){switch(this.logger=t,this.store=a,this.actions=o,this.commonService=s,this.router=u,this.faSmile=Le.I3,this.faFrown=Le.Kf,this.faAngleDoubleDown=Z.Sbq,this.faAngleDoubleUp=Z.Vfw,this.faChartPie=Z.OS1,this.faBolt=Z.BDt,this.faServer=Z.xf3,this.faNetworkWired=Z.kXW,this.flgChildInfoUpdated=!1,this.userPersonaEnum=l.ol,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=l.cu,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case l.cu.XS:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:6},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}];break;case l.cu.SM:case l.cu.MD:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}];break;default:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}]}}ngOnInit(){this.store.select(C.bx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apiCallStatus,this.apiCallStatusNodeInfo.status===l.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.store.select(C.JG).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===l.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(C.qU).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=t.apiCallStatus,this.apiCallStatusBlockchainBalance.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message),this.balances.onchain=+t.blockchainBalance.total_balance>=0?+t.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=t.apiCallStatus,this.apiCallStatusPendingChannels.status===l.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message),this.channelsStatus.pending={num_channels:t.pendingChannelsSummary.open.num_channels,capacity:t.pendingChannelsSummary.open.limbo_balance},this.channelsStatus.closing={num_channels:t.pendingChannelsSummary.closing.num_channels+t.pendingChannelsSummary.force_closing.num_channels+t.pendingChannelsSummary.waiting_close.num_channels,capacity:t.pendingChannelsSummary.total_limbo_balance}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[3]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message);const a=t.lightningBalance&&t.lightningBalance.local?+t.lightningBalance.local:0,o=t.lightningBalance&&t.lightningBalance.remote?+t.lightningBalance.remote:0;this.channelBalances={localBalance:a,remoteBalance:o,balancedness:+(1-Math.abs((a-o)/(a+o))).toFixed(3)},this.balances.lightning=t.lightningBalance.local,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=t.channelsSummary.active.num_channels,this.inactiveChannels=t.channelsSummary.inactive.num_channels,this.channelsStatus.active=t.channelsSummary.active,this.channelsStatus.inactive=t.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=t.channels.filter(u=>!0===u.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(u=>u.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(u=>u.local_balance>0),"local_balance"))),this.allChannels.forEach(u=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +u.remote_balance,this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +u.local_balance}),this.flgChildInfoUpdated=this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum>=0,this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[5]),(0,E.h)(t=>t.type===l.uR.FETCH_FEES_LND||t.type===l.uR.SET_FEES_LND)).subscribe(t=>{t.type===l.uR.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),t.type===l.uR.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(t){"inactive"===t?this.router.navigateByUrl("/lnd/connections",{state:{filter:t}}):this.router.navigateByUrl("/lnd/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((t,a)=>{const o=+t.local_balance+ +t.remote_balance,s=+a.local_balance+ +a.remote_balance;return o>s?-1:o{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(O.v),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-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","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",1,"w-100","dashboard-tabs-group"],["label","Receive"],[3,"calledFrom"],["label","Pay"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(t,a){if(1&t&&(e.YNc(0,Ha,7,4,"div",0),e.YNc(1,oi,6,4,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf",(null==a.selNode?null:a.selNode.userPersona)===a.userPersonaEnum.OPERATOR)("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,M.BN,ce.Il,p.sg,ce.DX,T.a8,_.yH,T.dk,T.n5,he.VK,T.dn,p.mk,q.oO,p.RF,p.n9,p.ED,L.lW,he.p6,K.Hw,he.OP,P.pW,Fe,rt,gt,Ue,Ne,Rt,Q.$V,D.SP,D.uX,Ie,De,D.uD],styles:[""]}),n})();var ge=h(1203),fe=h(7544);function li(n,i){if(1&n&&(e.TgZ(0,"span",10),e._uU(1,"Channels"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.activeChannels)}}function ri(n,i){if(1&n&&(e.TgZ(0,"span",10),e._uU(1,"Peers"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.activePeers)}}let ci=(()=>{class n{constructor(t,a,o){this.store=t,this.logger=a,this.router=o,this.selNode={},this.activePeers=0,this.activeChannels=0,this.faUsers=Z.FVb,this.faChartPie=Z.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 m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t instanceof y.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(a=>a.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.logger.info(t)}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.activeChannels=t.channelsSummary.active.num_channels,this.logger.info(t)}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.balances=[{title:"Total Balance",dataValue:t.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:t.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:t.blockchainBalance.unconfirmed_balance}],this.logger.info(t)})}onSelectedTabChange(t){this.router.navigateByUrl("/lnd/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(F.mQ),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"On-chain Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"Connections"),e.qZA(),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"mat-tab-group",7),e.NdJ("selectedIndexChange",function(s){return a.activeLink=s})("selectedTabChange",function(s){return a.onSelectedTabChange(s)}),e.TgZ(16,"mat-tab"),e.YNc(17,li,2,1,"ng-template",8),e.qZA(),e.TgZ(18,"mat-tab"),e.YNc(19,ri,2,1,"ng-template",8),e.qZA(),e.qZA(),e.TgZ(20,"div",9),e._UZ(21,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faUsers),e.xp6(6),e.Q6J("selectedIndex",a.activeLink))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.SP,D.uX,D.uD,_.yH,y.lC,fe.k],styles:[""]}),n})();var Ce=h(8675),Je=h(4004),Ee=h(9843);const ui=["form"];function pi(n,i){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t.alias?t.alias:t.pub_key?t.pub_key:"")}}function mi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Peer alias is required."),e.qZA())}function _i(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Peer not found in the list."),e.qZA())}function di(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",34),e._UZ(1,"input",35),e.TgZ(2,"mat-autocomplete",36,37),e.NdJ("optionSelected",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.YNc(4,pi,2,2,"mat-option",24),e.ALo(5,"async"),e.qZA(),e.YNc(6,mi,2,0,"mat-error",17),e.YNc(7,_i,2,0,"mat-error",17),e.qZA()}if(2&n){const t=e.MAs(3),a=e.oxw();e.xp6(1),e.Q6J("formControl",a.selectedPeer)("matAutocomplete",t),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(5,6,a.filteredPeers)),e.xp6(2),e.Q6J("ngIf",null==a.selectedPeer.errors?null:a.selectedPeer.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.selectedPeer.errors?null:a.selectedPeer.errors.notfound)}}function hi(n,i){1&n&&e.GkF(0)}function gi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function fi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function Ci(n,i){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function xi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("","1"===t.selTransType?"Target Confirmation Blocks":"Fee"," is required.")}}function Zi(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.channelConnectionError)}}function yi(n,i){if(1&n&&(e.TgZ(0,"div",39),e._UZ(1,"fa-icon",40),e.YNc(2,Zi,2,1,"span",17),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.channelConnectionError)}}function Ti(n,i){if(1&n&&(e.TgZ(0,"mat-expansion-panel",42),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e.TgZ(3,"span"),e._uU(4,"Peer: \xa0"),e.qZA(),e.TgZ(5,"strong",43),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",9),e.TgZ(8,"div",44),e.TgZ(9,"div",34),e.TgZ(10,"h4",45),e._uU(11,"Pubkey"),e.qZA(),e.TgZ(12,"span",46),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e._UZ(14,"mat-divider",47),e.TgZ(15,"div",44),e.TgZ(16,"div",48),e.TgZ(17,"h4",45),e._uU(18,"Address"),e.qZA(),e.TgZ(19,"span",49),e._uU(20),e.qZA(),e.qZA(),e.TgZ(21,"div",48),e.TgZ(22,"h4",45),e._uU(23,"Inbound"),e.qZA(),e.TgZ(24,"span",49),e._uU(25),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(6),e.Oqu((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.address)),e.xp6(7),e.Oqu(t.peer.pub_key),e.xp6(7),e.Oqu(null==t.peer?null:t.peer.address),e.xp6(5),e.Oqu(null!=t.peer&&t.peer.inbound?"True":"False")}}function bi(n,i){if(1&n&&e.YNc(0,Ti,26,4,"mat-expansion-panel",41),2&n){const t=e.oxw();e.Q6J("ngIf",t.peer)}}let Qe=(()=>{class n{constructor(t,a,o,s){this.dialogRef=t,this.data=a,this.store=o,this.actions=s,this.selectedPeer=new c.NI,this.amount=new c.NI,this.faExclamationTriangle=Z.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=l.Dr,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(o=>o.type===l.uR.UPDATE_API_CALL_STATUS_LND||o.type===l.uR.FETCH_CHANNELS_LND)).subscribe(o=>{o.type===l.uR.UPDATE_API_CALL_STATUS_LND&&o.payload.status===l.Bn.ERROR&&"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message),o.type===l.uR.FETCH_CHANNELS_LND&&this.dialogRef.close()});let t="",a="";this.sortedPeers=this.peers.sort((o,s)=>(t=o.alias?o.alias.toLowerCase():o.pub_key?o.pub_key.toLowerCase():"",a=s.alias?s.alias.toLowerCase():o.pub_key.toLowerCase(),ta?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,d.R)(this.unSubs[1]),(0,Ce.O)(""),(0,Je.U)(o=>"string"==typeof o?o:o.alias?o.alias:o.pub_key),(0,Je.U)(o=>o?this.filterPeers(o):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(a=>0===a.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.pub_key?t.pub_key:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:null,"string"==typeof this.selectedPeer.value){const t=this.peers.filter(a=>a.alias.length===this.selectedPeer.value.length&&0===a.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].pub_key&&(this.selectedPubkey=t[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue)return!0;this.store.dispatch((0,b.YX)({payload:{selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed}}))}onAdvancedPanelToggle(t){this.advancedTitle=t?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-open-channel"]],viewQuery:function(t,a){if(1&t&&e.Gf(ui,7),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first)}},decls:55,vars:25,consts:[["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amnt",3,"ngModel","step","min","max","ngModelChange"],["amt","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","49"],["tabindex","3",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","tabindex","4","name","transTpValue",3,"ngModel","required","disabled","placeholder","step","min","ngModelChange"],["transTypeVal","ngModel"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","name","spendUnconfirmed",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayout","row"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.NdJ("submit",function(){return a.onOpenChannel()})("reset",function(){return a.resetData()}),e.TgZ(11,"div",9),e.YNc(12,di,8,8,"mat-form-field",10),e.qZA(),e.YNc(13,hi,1,0,"ng-container",11),e.TgZ(14,"div",9),e.TgZ(15,"div",12),e.TgZ(16,"mat-form-field",13),e.TgZ(17,"input",14,15),e.NdJ("ngModelChange",function(s){return a.fundingAmount=s}),e.qZA(),e.TgZ(19,"mat-hint"),e._uU(20),e.ALo(21,"number"),e.qZA(),e.TgZ(22,"span",16),e._uU(23," Sats "),e.qZA(),e.YNc(24,gi,2,0,"mat-error",17),e.YNc(25,fi,2,1,"mat-error",17),e.qZA(),e.TgZ(26,"div",18),e.TgZ(27,"mat-slide-toggle",19),e.NdJ("ngModelChange",function(s){return a.isPrivate=s}),e._uU(28,"Private Channel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"mat-expansion-panel",20),e.NdJ("closed",function(){return a.onAdvancedPanelToggle(!0)})("opened",function(){return a.onAdvancedPanelToggle(!1)}),e.TgZ(30,"mat-expansion-panel-header"),e.TgZ(31,"mat-panel-title"),e.TgZ(32,"span"),e._uU(33),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",21),e.TgZ(35,"div",12),e.TgZ(36,"mat-form-field",22),e.TgZ(37,"mat-select",23),e.NdJ("valueChange",function(s){return a.selTransType=s}),e.YNc(38,Ci,2,2,"mat-option",24),e.qZA(),e.qZA(),e.TgZ(39,"mat-form-field",22),e.TgZ(40,"input",25,26),e.NdJ("ngModelChange",function(s){return a.transTypeValue=s}),e.qZA(),e.YNc(42,xi,2,1,"mat-error",17),e.qZA(),e.qZA(),e.TgZ(43,"div",12),e.TgZ(44,"div",27),e.TgZ(45,"mat-slide-toggle",28),e.NdJ("ngModelChange",function(s){return a.spendUnconfirmed=s}),e._uU(46,"Spend Unconfirmed Output"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(47,yi,3,2,"div",29),e.TgZ(48,"div",30),e.TgZ(49,"button",31),e._uU(50,"Clear Fields"),e.qZA(),e.TgZ(51,"button",32),e._uU(52,"Open Channel"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(53,bi,1,1,"ng-template",null,33,e.W1O)),2&t){const o=e.MAs(54);e.xp6(5),e.Oqu(a.alertTitle),e.xp6(7),e.Q6J("ngIf",!a.peer&&a.peers&&a.peers.length>0),e.xp6(1),e.Q6J("ngTemplateOutlet",o),e.xp6(4),e.Q6J("ngModel",a.fundingAmount)("step",1e3)("min",1)("max",a.totalBalance),e.xp6(3),e.hij("(Remaining Bal: ",e.lcZ(21,23,a.totalBalance-(a.fundingAmount?a.fundingAmount:0)),")"),e.xp6(4),e.Q6J("ngIf",null==a.amount.errors?null:a.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.amount.errors?null:a.amount.errors.max),e.xp6(2),e.Q6J("ngModel",a.isPrivate),e.xp6(6),e.Oqu(a.advancedTitle),e.xp6(4),e.Q6J("value",a.selTransType),e.xp6(1),e.Q6J("ngForOf",a.transTypes),e.xp6(2),e.Q6J("ngModel",a.transTypeValue)("required","0"!==a.selTransType)("disabled","0"===a.selTransType)("placeholder","0"===a.selTransType?"Default":"1"===a.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("min",0),e.xp6(2),e.Q6J("ngIf","0"!==a.selTransType&&!a.transTypeValue),e.xp6(3),e.Q6J("ngModel",a.spendUnconfirmed),e.xp6(2),e.Q6J("ngIf",""!==a.channelConnectionError)}},directives:[_.xw,_.Wh,_.yH,T.dk,L.lW,T.dn,c._Y,c.JL,c.F,p.O5,p.tP,f.KE,I.Nt,c.wV,c.qQ,c.Fd,c.Fj,$.q,Ee.F,c.Q7,c.JJ,c.On,f.bx,f.R9,ue.Rr,H.ib,H.yz,H.yK,R.gD,p.sg,W.h,ne.ZL,c.oH,ne.XC,Y.ey,f.TO,M.BN,z.d],pipes:[p.JJ,p.Ov],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),n})();var B=h(5615);const Ai=["peersForm"],vi=["stepper"];function wi(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw();e.Oqu(t.peerFormLabel)}}function qi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function Si(n,i){if(1&n&&(e.TgZ(0,"div",37),e._UZ(1,"fa-icon",38),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.peerConnectionError)}}function Li(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw();e.Oqu(t.channelFormLabel)}}function ki(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function Fi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount must be a positive number."),e.qZA())}function Ui(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function Ni(n,i){if(1&n&&(e.TgZ(0,"mat-option",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function Oi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("","0"===t.channelFormGroup.controls.selTransType.value?"Default":"1"===t.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"," is required.")}}function Ri(n,i){if(1&n&&(e.TgZ(0,"div",37),e._UZ(1,"fa-icon",38),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.channelConnectionError)}}let Ii=(()=>{class n{constructor(t,a,o,s,u,g,N){this.dialogRef=t,this.data=a,this.store=o,this.lndEffects=s,this.formBuilder=u,this.actions=g,this.logger=N,this.faExclamationTriangle=Z.eHv,this.peerAddress="",this.totalBalance=0,this.transTypes=l.Dr,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new m.x,new m.x]}ngOnInit(){this.totalBalance=this.data.message.balance,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[c.kI.required]],peerAddress:["",[c.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[c.kI.required,c.kI.min(1),c.kI.max(this.totalBalance)]],isPrivate:[!1],selTransType:[l.Dr[0].id],transTypeValue:[{value:"",disabled:!0}],spendUnconfirmed:[!1],hiddenAmount:["",[c.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t===l.Dr[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([c.kI.required]))}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,E.h)(t=>t.type===l.uR.NEWLY_ADDED_PEER_LND||t.type===l.uR.FETCH_PENDING_CHANNELS_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.NEWLY_ADDED_PEER_LND&&(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===l.uR.FETCH_PENDING_CHANNELS_LND&&this.dialogRef.close(),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.Bn.ERROR&&("SaveNewPeer"===t.payload.action||"FetchGraphNode"===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="";const t=this.peerFormGroup.controls.peerAddress.value.search("@");let a="",o="";t>-1?(a=this.peerFormGroup.controls.peerAddress.value.substring(0,t),o=this.peerFormGroup.controls.peerAddress.value.substring(t+1),this.connectPeerWithParams(a,o)):(this.store.dispatch((0,b.dV)({payload:{pubkey:this.peerFormGroup.controls.peerAddress.value}})),this.lndEffects.setGraphNode.pipe((0,V.q)(1)).subscribe(s=>{setTimeout(()=>{o=s.node.addresses&&s.node.addresses.length&&s.node.addresses.length>0&&s.node.addresses[0].addr?s.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,o)},0)}))}connectPeerWithParams(t,a){this.store.dispatch((0,b.El)({payload:{pubkey:t,host:a,perm:!1}}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value)return!0;this.channelConnectionError="",this.store.dispatch((0,b.YX)({payload:{selectedPeerPubkey:this.newlyAddedPeer.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(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:"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer.alias:"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 n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(ee.l),e.Y36(c.qu),e.Y36(G.eX),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-connect-peer"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Ai,5),e.Gf(vi,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:56,vars:24,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType","placeholder","Transaction Type"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","30"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"placeholder","step","required"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Connect to a new peer"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"div",7),e.TgZ(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(s){return a.stepSelectionChanged(s)}),e.TgZ(12,"mat-step",10),e.TgZ(13,"form",11),e.YNc(14,wi,1,1,"ng-template",12),e.TgZ(15,"mat-form-field",1),e._UZ(16,"input",13),e.YNc(17,qi,2,0,"mat-error",14),e.qZA(),e.YNc(18,Si,4,2,"div",15),e.TgZ(19,"div",16),e.TgZ(20,"button",17),e.NdJ("click",function(){return a.onConnectPeer()}),e._uU(21),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"mat-step",10),e.TgZ(23,"form",18),e.YNc(24,Li,1,1,"ng-template",19),e.TgZ(25,"div",20),e.TgZ(26,"div",21),e.TgZ(27,"mat-form-field",22),e._UZ(28,"input",23),e.TgZ(29,"mat-hint"),e._uU(30),e.qZA(),e.TgZ(31,"span",24),e._uU(32," Sats "),e.qZA(),e.YNc(33,ki,2,0,"mat-error",14),e.YNc(34,Fi,2,0,"mat-error",14),e.YNc(35,Ui,2,1,"mat-error",14),e.qZA(),e.TgZ(36,"div",25),e.TgZ(37,"mat-slide-toggle",26),e._uU(38,"Private Channel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",27),e.TgZ(40,"mat-form-field",28),e.TgZ(41,"mat-select",29),e.YNc(42,Ni,2,2,"mat-option",30),e.qZA(),e.qZA(),e.TgZ(43,"mat-form-field",31),e._UZ(44,"input",32),e.YNc(45,Oi,2,1,"mat-error",14),e.qZA(),e.TgZ(46,"div",25),e.TgZ(47,"mat-slide-toggle",33),e._uU(48,"Spend Unconfirmed Output"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(49,Ri,4,2,"div",15),e.TgZ(50,"div",16),e.TgZ(51,"button",34),e.NdJ("click",function(){return a.onOpenChannel()}),e._uU(52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",35),e.TgZ(54,"button",36),e._uU(55),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",a.peerFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.peerFormGroup),e.xp6(4),e.Q6J("ngIf",null==a.peerFormGroup.controls.peerAddress.errors?null:a.peerFormGroup.controls.peerAddress.errors.required),e.xp6(1),e.Q6J("ngIf",""!==a.peerConnectionError),e.xp6(3),e.Oqu(""!==a.peerConnectionError?"Retry":"Add Peer"),e.xp6(1),e.Q6J("stepControl",a.channelFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.channelFormGroup),e.xp6(5),e.Q6J("step",1e3),e.xp6(2),e.hij("Remaining Bal: ",a.totalBalance-(a.channelFormGroup.controls.fundingAmount.value?a.channelFormGroup.controls.fundingAmount.value:0),""),e.xp6(3),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.min),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.max),e.xp6(7),e.Q6J("ngForOf",a.transTypes),e.xp6(2),e.Q6J("placeholder","0"===a.channelFormGroup.controls.selTransType.value?"Default":"1"===a.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("required","0"!==a.channelFormGroup.controls.selTransType.value),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.required),e.xp6(4),e.Q6J("ngIf",""!==a.channelConnectionError),e.xp6(3),e.Oqu(""!==a.channelConnectionError?"Retry":"Open Channel"),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(null!=a.newlyAddedPeer&&a.newlyAddedPeer.pub_key?"Do It Later":"Close"))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,B.Vq,B.C0,c._Y,c.JL,c.sg,B.VY,f.KE,I.Nt,c.Fj,W.h,c.JJ,c.u,c.Q7,p.O5,c.wV,f.bx,f.R9,ue.Rr,R.gD,p.sg,J.ZT,f.TO,M.BN,Y.ey],styles:[""]}),n})();function Mi(n,i){1&n&&e._UZ(0,"mat-progress-bar",32)}function Di(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Alias "),e.qZA())}const Ye=function(n){return{"max-width":n}};function Pi(n,i){if(1&n&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ye,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.alias," ")}}function Ji(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Public Key "),e.qZA())}function Ei(n,i){if(1&n&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ye,a.screenSize===a.screenSizeEnum.XS?"5rem":"35rem")),e.xp6(1),e.hij(" ",null==t?null:t.pub_key," ")}}function Qi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Sats Sent "),e.qZA())}function Yi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.sat_sent)," ")}}function Hi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Sats Received "),e.qZA())}function Bi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.sat_recv)," ")}}function Vi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Ping "),e.qZA())}function Gi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.ping_time)," ")}}function zi(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",38),e.TgZ(1,"div",39),e.TgZ(2,"mat-select",40),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",41),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Wi(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",42),e.TgZ(1,"div",39),e.TgZ(2,"mat-select",40),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",41),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onPeerClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",41),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onOpenChannel(s)}),e._uU(7,"Open Channel"),e.qZA(),e.TgZ(8,"mat-option",41),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onPeerDetach(s)}),e._uU(9,"Disconnect"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Xi(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No connected peer."),e.qZA())}function $i(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting peers..."),e.qZA())}function ji(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Ki(n,i){if(1&n&&(e.TgZ(0,"td",43),e.YNc(1,Xi,2,0,"p",44),e.YNc(2,$i,2,0,"p",44),e.YNc(3,ji,2,1,"p",44),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const eo=function(n){return{"display-none":n}};function to(n,i){if(1&n&&e._UZ(0,"tr",45),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,eo,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function no(n,i){1&n&&e._UZ(0,"tr",46)}function ao(n,i){1&n&&e._UZ(0,"tr",47)}const io=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},oo=function(){return["no_peer"]};let so=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.rtlEffects=o,this.commonService=s,this.availableBalance=0,this.faUsers=Z.FVb,this.displayedColumns=[],this.peersData=[],this.information={},this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","ping_time","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","pub_key","sat_sent","sat_recv","ping_time","actions"])}ngOnInit(){this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.information=t}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.availableBalance=t.blockchainBalance.total_balance||0}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.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)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.pub_key,message:[[{key:"pub_key",value:t.pub_key,title:"Public Key",width:100}],[{key:"address",value:t.address,title:"Address",width:100}],[{key:"alias",value:t.alias,title:"Alias",width:40},{key:"inbound",value:t.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:t.ping_time,title:"Ping Time",width:30,type:l.Gi.NUMBER}],[{key:"sat_sent",value:t.sat_sent,title:"Satoshis Sent",width:50,type:l.Gi.NUMBER},{key:"sat_recv",value:t.sat_recv,title:"Satoshis Received",width:50,type:l.Gi.NUMBER}],[{key:"bytes_sent",value:t.bytes_sent,title:"Bytes Sent",width:50,type:l.Gi.NUMBER},{key:"bytes_recv",value:t.bytes_recv,title:"Bytes Received",width:50,type:l.Gi.NUMBER}]]}}}))}onConnectPeer(){this.store.dispatch((0,v.qR)({payload:{data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:Ii}}}))}onOpenChannel(t){this.store.dispatch((0,v.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},component:Qe}}}))}onPeerDetach(t){this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[3])).subscribe(o=>{o&&this.store.dispatch((0,b.z)({payload:{pubkey:t.pub_key}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new r.by(t?[...t]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.peers.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(oe.V),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Peers")}])],decls:40,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","sat_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.onConnectPeer()}),e._uU(3,"Add Peer"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e._UZ(7,"fa-icon",6),e.TgZ(8,"span",7),e._uU(9,"Connected Peers"),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",8),e.TgZ(11,"input",9),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",10),e.YNc(13,Mi,1,0,"mat-progress-bar",11),e.TgZ(14,"table",12,13),e.ynx(16,14),e.YNc(17,Di,2,0,"th",15),e.YNc(18,Pi,2,4,"td",16),e.BQk(),e.ynx(19,17),e.YNc(20,Ji,2,0,"th",15),e.YNc(21,Ei,2,4,"td",16),e.BQk(),e.ynx(22,18),e.YNc(23,Qi,2,0,"th",19),e.YNc(24,Yi,4,3,"td",20),e.BQk(),e.ynx(25,21),e.YNc(26,Hi,2,0,"th",19),e.YNc(27,Bi,4,3,"td",20),e.BQk(),e.ynx(28,22),e.YNc(29,Vi,2,0,"th",19),e.YNc(30,Gi,4,3,"td",20),e.BQk(),e.ynx(31,23),e.YNc(32,zi,6,0,"th",24),e.YNc(33,Wi,10,0,"td",25),e.BQk(),e.ynx(34,26),e.YNc(35,Ki,4,3,"td",27),e.BQk(),e.YNc(36,to,1,3,"tr",28),e.YNc(37,no,1,0,"tr",29),e.YNc(38,ao,1,0,"tr",30),e.qZA(),e.qZA(),e._UZ(39,"mat-paginator",31),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("icon",a.faUsers),e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.peers)("ngClass",e.VKq(12,io,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(14,oo)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,L.lW,M.BN,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-pub_key[_ngcontent-%COMP%]{flex:1 1 35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem;flex:1 1 10%}.mat-column-sat_sent[_ngcontent-%COMP%], .mat-column-sat_recv[_ngcontent-%COMP%], .mat-column-ping_time[_ngcontent-%COMP%]{flex:1 1 13%;width:13%}"]}),n})();function lo(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Open"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numOpenChannels)}}function ro(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Pending"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numPendingChannels)}}function co(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Closed"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numClosedChannels)}}function uo(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Active HTLCs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numActiveHTLCs)}}let po=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t instanceof y.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(a=>a.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.numOpenChannels=t.channels&&t.channels.length?t.channels.length:0,this.numActiveHTLCs=t.channels.reduce((a,o)=>a+(o.pending_htlcs&&o.pending_htlcs.length>0?o.pending_htlcs.length:0),0),this.logger.info(t)}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.numPendingChannels=t.pendingChannelsSummary.total_channels?t.pendingChannelsSummary.total_channels:0}),this.store.select(C.P2).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.numClosedChannels=t.closedChannels&&t.closedChannels.length?t.closedChannels.length:0}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[5])).subscribe(t=>{this.totalBalance=+t.blockchainBalance.total_balance}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[6])).subscribe(t=>{this.peers=t.peers,this.peers.forEach(a=>{(!a.alias||""===a.alias)&&(a.alias=a.pub_key.substring(0,15)+"...")}),this.logger.info(t)})}onOpenChannel(){this.store.dispatch((0,v.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Qe}}}))}onSelectedTabChange(t){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channels-tables"]],decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.onOpenChannel()}),e._uU(3,"Open Channel"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-tab-group",4),e.NdJ("selectedIndexChange",function(s){return a.activeLink=s})("selectedTabChange",function(s){return a.onSelectedTabChange(s)}),e.TgZ(6,"mat-tab"),e.YNc(7,lo,2,1,"ng-template",5),e.qZA(),e.TgZ(8,"mat-tab"),e.YNc(9,ro,2,1,"ng-template",5),e.qZA(),e.TgZ(10,"mat-tab"),e.YNc(11,co,2,1,"ng-template",5),e.qZA(),e.TgZ(12,"mat-tab"),e.YNc(13,uo,2,1,"ng-template",5),e.qZA(),e.qZA(),e.TgZ(14,"div",6),e._UZ(15,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("selectedIndex",a.activeLink))},directives:[_.xw,_.yH,_.Wh,L.lW,D.SP,D.uX,D.uD,y.lC,fe.k],styles:[""]}),n})();var te=h(7261),se=h(6895);function mo(n,i){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"div",9),e.TgZ(2,"div",14),e.TgZ(3,"h4",11),e._uU(4,"Commit Fee"),e.qZA(),e.TgZ(5,"span",15),e._uU(6),e.ALo(7,"number"),e.qZA(),e.qZA(),e.TgZ(8,"div",14),e.TgZ(9,"h4",11),e._uU(10,"Commit Weight"),e.qZA(),e.TgZ(11,"span",15),e._uU(12),e.ALo(13,"number"),e.qZA(),e.qZA(),e.TgZ(14,"div",14),e.TgZ(15,"h4",11),e._uU(16,"Fee/KW"),e.qZA(),e.TgZ(17,"span",15),e._uU(18),e.ALo(19,"number"),e.qZA(),e.qZA(),e.TgZ(20,"div",14),e.TgZ(21,"h4",11),e._uU(22,"Static Remote Key"),e.qZA(),e.TgZ(23,"span",15),e._uU(24),e.qZA(),e.qZA(),e.qZA(),e._UZ(25,"mat-divider",13),e.TgZ(26,"div",9),e.TgZ(27,"div",14),e.TgZ(28,"h4",11),e._uU(29),e.qZA(),e.TgZ(30,"span",15),e._uU(31),e.ALo(32,"number"),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"h4",11),e._uU(35),e.qZA(),e.TgZ(36,"span",15),e._uU(37),e.ALo(38,"number"),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"h4",11),e._uU(41,"Unsettled Balance"),e.qZA(),e.TgZ(42,"span",15),e._uU(43),e.ALo(44,"number"),e.qZA(),e.qZA(),e.TgZ(45,"div",14),e.TgZ(46,"h4",11),e._uU(47,"CSV Delay"),e.qZA(),e.TgZ(48,"span",15),e._uU(49),e.ALo(50,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(51,"mat-divider",13),e.TgZ(52,"div",9),e.TgZ(53,"div",14),e.TgZ(54,"h4",11),e._uU(55,"Local Reserve (Sats)"),e.qZA(),e.TgZ(56,"span",15),e._uU(57),e.ALo(58,"number"),e.qZA(),e.qZA(),e.TgZ(59,"div",14),e.TgZ(60,"h4",11),e._uU(61,"Remote Reserve (Sats)"),e.qZA(),e.TgZ(62,"span",15),e._uU(63),e.ALo(64,"number"),e.qZA(),e.qZA(),e.TgZ(65,"div",14),e.TgZ(66,"h4",11),e._uU(67,"Lifetime (Seconds)"),e.qZA(),e.TgZ(68,"span",15),e._uU(69),e.ALo(70,"number"),e.qZA(),e.qZA(),e.TgZ(71,"div",14),e.TgZ(72,"h4",11),e._uU(73,"Pending HTLCs"),e.qZA(),e.TgZ(74,"span",15),e._uU(75),e.ALo(76,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(77,"mat-divider",13),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.Oqu(e.lcZ(7,17,t.channel.commit_fee)),e.xp6(6),e.Oqu(e.lcZ(13,19,t.channel.commit_weight)),e.xp6(6),e.Oqu(e.lcZ(19,21,t.channel.fee_per_kw)),e.xp6(6),e.Oqu(t.channel.static_remote_key?"Yes":"No"),e.xp6(1),e.Q6J("inset",!0),e.xp6(4),e.Oqu(t.screenSize===t.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),e.xp6(2),e.Oqu(e.lcZ(32,23,t.channel.total_satoshis_sent)),e.xp6(4),e.Oqu(t.screenSize===t.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),e.xp6(2),e.Oqu(e.lcZ(38,25,t.channel.total_satoshis_received)),e.xp6(6),e.Oqu(e.lcZ(44,27,t.channel.unsettled_balance)),e.xp6(6),e.Oqu(e.lcZ(50,29,t.channel.csv_delay)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(58,31,t.channel.local_chan_reserve_sat)),e.xp6(6),e.Oqu(e.lcZ(64,33,t.channel.remote_chan_reserve_sat)),e.xp6(6),e.Oqu(e.lcZ(70,35,t.channel.lifetime)),e.xp6(6),e.Oqu(e.lcZ(76,37,null==t.channel||null==t.channel.pending_htlcs?null:t.channel.pending_htlcs.length)),e.xp6(2),e.Q6J("inset",!0)}}function _o(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Show Advanced"),e.qZA())}function ho(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Hide Advanced"),e.qZA())}function go(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",23),e.NdJ("copied",function(o){return e.CHM(t),e.oxw().onCopyChanID(o)}),e._uU(1,"Copy Channel ID"),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("payload",t.channel.chan_id)}}function fo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(1,"OK"),e.qZA()}}const Co=function(n){return{"xs-scroll-y":n}};let xe=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.logger=o,this.commonService=s,this.snackBar=u,this.faReceipt=Z.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=l.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("Channel ID "+t+" copied."),this.logger.info("Copied Text: "+t)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(O.v),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-information"]],decls:94,vars:36,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Channel Information"),e.qZA(),e.qZA(),e.TgZ(7,"button",6),e.NdJ("click",function(){return a.onClose()}),e._uU(8,"X"),e.qZA(),e.qZA(),e.TgZ(9,"mat-card-content",7),e.TgZ(10,"div",8),e.TgZ(11,"div",9),e.TgZ(12,"div",10),e.TgZ(13,"h4",11),e._uU(14,"Channel ID"),e.qZA(),e.TgZ(15,"span",12),e._uU(16),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.TgZ(18,"h4",11),e._uU(19,"Peer Alias"),e.qZA(),e.TgZ(20,"span",12),e._uU(21),e.qZA(),e.qZA(),e.qZA(),e._UZ(22,"mat-divider",13),e.TgZ(23,"div",9),e.TgZ(24,"div",1),e.TgZ(25,"h4",11),e._uU(26,"Channel Point"),e.qZA(),e.TgZ(27,"span",12),e._uU(28),e.qZA(),e.qZA(),e.qZA(),e._UZ(29,"mat-divider",13),e.TgZ(30,"div",9),e.TgZ(31,"div",1),e.TgZ(32,"h4",11),e._uU(33,"Peer Public Key"),e.qZA(),e.TgZ(34,"span",12),e._uU(35),e.qZA(),e.qZA(),e.qZA(),e._UZ(36,"mat-divider",13),e.TgZ(37,"div",9),e.TgZ(38,"div",14),e.TgZ(39,"h4",11),e._uU(40,"Local Balance"),e.qZA(),e.TgZ(41,"span",15),e._uU(42),e.ALo(43,"number"),e.qZA(),e.qZA(),e.TgZ(44,"div",14),e.TgZ(45,"h4",11),e._uU(46,"Remote Balance"),e.qZA(),e.TgZ(47,"span",15),e._uU(48),e.ALo(49,"number"),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"h4",11),e._uU(52,"Capacity"),e.qZA(),e.TgZ(53,"span",15),e._uU(54),e.ALo(55,"number"),e.qZA(),e.qZA(),e.TgZ(56,"div",14),e.TgZ(57,"h4",11),e._uU(58,"Uptime (Seconds)"),e.qZA(),e.TgZ(59,"span",15),e._uU(60),e.ALo(61,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(62,"mat-divider",13),e.TgZ(63,"div",9),e.TgZ(64,"div",14),e.TgZ(65,"h4",11),e._uU(66,"Active"),e.qZA(),e.TgZ(67,"span",15),e._uU(68),e.qZA(),e.qZA(),e.TgZ(69,"div",14),e.TgZ(70,"h4",11),e._uU(71,"Private"),e.qZA(),e.TgZ(72,"span",15),e._uU(73),e.qZA(),e.qZA(),e.TgZ(74,"div",14),e.TgZ(75,"h4",11),e._uU(76,"Initiator"),e.qZA(),e.TgZ(77,"span",15),e._uU(78),e.qZA(),e.qZA(),e.TgZ(79,"div",14),e.TgZ(80,"h4",11),e._uU(81,"Number of Updates"),e.qZA(),e.TgZ(82,"span",15),e._uU(83),e.ALo(84,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(85,"mat-divider",13),e.YNc(86,mo,78,39,"div",16),e.TgZ(87,"div",17),e.TgZ(88,"button",18),e.NdJ("click",function(){return a.onShowAdvanced()}),e.YNc(89,_o,2,0,"p",19),e.YNc(90,ho,2,0,"ng-template",null,20,e.W1O),e.qZA(),e.YNc(92,go,2,1,"button",21),e.YNc(93,fo,2,0,"button",22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(91);e.xp6(4),e.Q6J("icon",a.faReceipt),e.xp6(5),e.Q6J("ngClass",e.VKq(34,Co,a.screenSize===a.screenSizeEnum.XS)),e.xp6(7),e.Oqu(a.channel.chan_id),e.xp6(5),e.Oqu(a.channel.remote_alias),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.channel_point),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.remote_pubkey),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(43,24,a.channel.local_balance)),e.xp6(6),e.Oqu(e.lcZ(49,26,a.channel.remote_balance)),e.xp6(6),e.Oqu(e.lcZ(55,28,a.channel.capacity)),e.xp6(6),e.Oqu(e.lcZ(61,30,a.channel.uptime)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.active?"Yes":"No"),e.xp6(5),e.Oqu(a.channel.private?"Yes":"No"),e.xp6(5),e.Oqu(a.channel.initiator?"Yes":"No"),e.xp6(5),e.Oqu(e.lcZ(84,32,a.channel.num_updates)),e.xp6(2),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngIf",a.showAdvanced),e.xp6(3),e.Q6J("ngIf",!a.showAdvanced)("ngIfElse",o),e.xp6(3),e.Q6J("ngIf",a.showCopy),e.xp6(1),e.Q6J("ngIf",!a.showCopy)}},directives:[_.xw,_.Wh,_.yH,T.dk,M.BN,L.lW,T.dn,p.mk,q.oO,z.d,p.O5,W.h,se.y],pipes:[p.JJ],styles:[""]}),n})();var Ze=h(9646),ye=h(7772),xo=h(113);function Zo(n,i){1&n&&e.GkF(0)}const le=function(n,i){return{"small-svg":n,"large-svg":i}};function yo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8),e._UZ(3,"path",9),e._UZ(4,"path",10),e._UZ(5,"path",11),e._UZ(6,"path",12),e._UZ(7,"path",13),e._UZ(8,"path",14),e._UZ(9,"path",15),e._UZ(10,"path",16),e._UZ(11,"path",17),e._UZ(12,"path",18),e._UZ(13,"path",19),e._UZ(14,"path",20),e._UZ(15,"path",21),e._UZ(16,"path",22),e._UZ(17,"path",23),e._UZ(18,"path",24),e._UZ(19,"path",25),e._UZ(20,"path",26),e._UZ(21,"path",27),e._UZ(22,"path",28),e._UZ(23,"path",29),e._UZ(24,"path",30),e._UZ(25,"path",31),e._UZ(26,"path",32),e._UZ(27,"path",33),e._UZ(28,"path",34),e._UZ(29,"path",35),e._UZ(30,"path",36),e._UZ(31,"path",37),e._UZ(32,"path",38),e._UZ(33,"path",39),e._UZ(34,"path",40),e._UZ(35,"path",41),e._UZ(36,"path",42),e._UZ(37,"path",43),e._UZ(38,"path",44),e._UZ(39,"path",45),e._UZ(40,"path",46),e.qZA(),e.kcU(),e.TgZ(41,"div",47),e.TgZ(42,"mat-card-title"),e._uU(43,"Circular rebalancing explained."),e.qZA(),e.qZA(),e.TgZ(44,"div",48),e.TgZ(45,"mat-card-subtitle",49),e._uU(46," Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained payment channels. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function To(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51),e._UZ(3,"path",52),e._UZ(4,"path",53),e._UZ(5,"path",54),e._UZ(6,"path",55),e._UZ(7,"path",56),e._UZ(8,"path",57),e._UZ(9,"path",58),e._UZ(10,"path",59),e._UZ(11,"path",60),e._UZ(12,"path",61),e._UZ(13,"path",62),e._UZ(14,"path",63),e._UZ(15,"path",64),e._UZ(16,"path",65),e._UZ(17,"path",66),e._UZ(18,"path",67),e._UZ(19,"path",68),e._UZ(20,"path",69),e._UZ(21,"path",70),e._UZ(22,"path",71),e._UZ(23,"path",72),e._UZ(24,"path",73),e._UZ(25,"path",74),e._UZ(26,"path",75),e._UZ(27,"path",76),e._UZ(28,"path",77),e._UZ(29,"path",78),e._UZ(30,"path",79),e._UZ(31,"path",80),e._UZ(32,"path",81),e._UZ(33,"path",51),e._UZ(34,"path",52),e._UZ(35,"path",53),e._UZ(36,"path",54),e._UZ(37,"path",55),e._UZ(38,"path",56),e._UZ(39,"path",57),e._UZ(40,"path",58),e._UZ(41,"path",59),e._UZ(42,"path",82),e._UZ(43,"path",83),e._UZ(44,"path",62),e._UZ(45,"path",84),e._UZ(46,"path",85),e._UZ(47,"path",86),e._UZ(48,"path",66),e._UZ(49,"path",67),e._UZ(50,"path",68),e._UZ(51,"path",69),e._UZ(52,"path",70),e._UZ(53,"path",71),e._UZ(54,"path",72),e._UZ(55,"path",73),e._UZ(56,"path",74),e._UZ(57,"path",75),e._UZ(58,"path",76),e._UZ(59,"path",77),e._UZ(60,"path",78),e._UZ(61,"path",79),e._UZ(62,"path",87),e._UZ(63,"path",81),e._UZ(64,"path",88),e.TgZ(65,"defs"),e.TgZ(66,"linearGradient",89),e._UZ(67,"stop",90),e._UZ(68,"stop",91),e._UZ(69,"stop",92),e.qZA(),e.TgZ(70,"linearGradient",93),e._UZ(71,"stop",90),e._UZ(72,"stop",91),e._UZ(73,"stop",92),e.qZA(),e.TgZ(74,"linearGradient",94),e._UZ(75,"stop",90),e._UZ(76,"stop",91),e._UZ(77,"stop",92),e.qZA(),e.TgZ(78,"linearGradient",95),e._UZ(79,"stop",90),e._UZ(80,"stop",91),e._UZ(81,"stop",92),e.qZA(),e.TgZ(82,"linearGradient",96),e._UZ(83,"stop",90),e._UZ(84,"stop",91),e._UZ(85,"stop",92),e.qZA(),e.TgZ(86,"linearGradient",97),e._UZ(87,"stop",90),e._UZ(88,"stop",91),e._UZ(89,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(90,"div",47),e.TgZ(91,"mat-card-title"),e._uU(92,"Step 1: Unbalanced channel"),e.qZA(),e.qZA(),e.TgZ(93,"div",48),e.TgZ(94,"mat-card-subtitle",49),e._uU(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function bo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",98),e._UZ(2,"path",99),e._UZ(3,"path",100),e._UZ(4,"path",101),e._UZ(5,"path",102),e._UZ(6,"path",103),e._UZ(7,"path",104),e._UZ(8,"path",105),e._UZ(9,"path",106),e._UZ(10,"path",107),e._UZ(11,"path",108),e._UZ(12,"path",109),e._UZ(13,"path",110),e._UZ(14,"path",111),e._UZ(15,"path",112),e._UZ(16,"path",113),e._UZ(17,"path",51),e._UZ(18,"path",114),e._UZ(19,"path",115),e._UZ(20,"path",116),e._UZ(21,"path",117),e._UZ(22,"path",118),e._UZ(23,"path",119),e._UZ(24,"path",120),e._UZ(25,"path",121),e._UZ(26,"path",82),e._UZ(27,"path",83),e._UZ(28,"path",122),e._UZ(29,"path",123),e._UZ(30,"path",124),e._UZ(31,"path",125),e._UZ(32,"path",66),e._UZ(33,"path",126),e._UZ(34,"path",127),e._UZ(35,"path",128),e._UZ(36,"path",129),e._UZ(37,"path",130),e._UZ(38,"path",131),e._UZ(39,"path",73),e._UZ(40,"path",74),e._UZ(41,"path",132),e._UZ(42,"path",76),e._UZ(43,"path",77),e._UZ(44,"path",78),e._UZ(45,"path",79),e._UZ(46,"path",133),e._UZ(47,"path",134),e._UZ(48,"path",135),e.TgZ(49,"defs"),e.TgZ(50,"linearGradient",136),e._UZ(51,"stop",90),e._UZ(52,"stop",91),e._UZ(53,"stop",92),e.qZA(),e.TgZ(54,"linearGradient",137),e._UZ(55,"stop",90),e._UZ(56,"stop",91),e._UZ(57,"stop",92),e.qZA(),e.TgZ(58,"linearGradient",138),e._UZ(59,"stop",90),e._UZ(60,"stop",91),e._UZ(61,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(62,"div",47),e.TgZ(63,"mat-card-title"),e._uU(64,"Step 2: Invoice/Payment"),e.qZA(),e.qZA(),e.TgZ(65,"div",48),e.TgZ(66,"mat-card-subtitle",49),e._uU(67," All you have to do is make a payment to yourself in a favorable direction by generating and paying an invoice. This is taken care automatically by your node. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Ao(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",139),e._UZ(2,"path",140),e._UZ(3,"path",141),e._UZ(4,"path",142),e._UZ(5,"path",143),e._UZ(6,"path",144),e._UZ(7,"path",145),e._UZ(8,"path",146),e._UZ(9,"path",147),e._UZ(10,"path",148),e._UZ(11,"path",149),e._UZ(12,"path",150),e._UZ(13,"path",151),e._UZ(14,"path",152),e._UZ(15,"path",153),e._UZ(16,"path",154),e._UZ(17,"path",155),e._UZ(18,"path",156),e._UZ(19,"path",157),e._UZ(20,"path",158),e._UZ(21,"path",159),e._UZ(22,"path",160),e._UZ(23,"path",161),e._UZ(24,"path",162),e._UZ(25,"path",163),e._UZ(26,"path",162),e._UZ(27,"path",164),e._UZ(28,"path",165),e._UZ(29,"path",166),e._UZ(30,"path",167),e._UZ(31,"path",168),e._UZ(32,"path",169),e._UZ(33,"path",170),e._UZ(34,"path",171),e._UZ(35,"path",172),e._UZ(36,"path",173),e._UZ(37,"path",174),e._UZ(38,"path",175),e._UZ(39,"path",176),e._UZ(40,"path",177),e._UZ(41,"path",178),e.TgZ(42,"defs"),e.TgZ(43,"linearGradient",179),e._UZ(44,"stop",90),e._UZ(45,"stop",91),e._UZ(46,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(47,"div",47),e.TgZ(48,"mat-card-title"),e._uU(49,"Step 3: Rebalance amount"),e.qZA(),e.qZA(),e.TgZ(50,"div",48),e.TgZ(51,"mat-card-subtitle",49),e._uU(52," You will be moving part or all of the local balance to the remote side. For the route to be circular, there should be at least 3 nodes involved. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function vo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",139),e._UZ(2,"path",180),e._UZ(3,"path",142),e._UZ(4,"path",181),e._UZ(5,"path",144),e._UZ(6,"path",145),e._UZ(7,"path",182),e._UZ(8,"path",147),e._UZ(9,"path",183),e._UZ(10,"path",184),e._UZ(11,"path",185),e._UZ(12,"path",186),e._UZ(13,"path",187),e._UZ(14,"path",188),e._UZ(15,"path",189),e._UZ(16,"path",190),e._UZ(17,"path",191),e._UZ(18,"path",157),e._UZ(19,"path",192),e._UZ(20,"path",193),e._UZ(21,"path",178),e._UZ(22,"path",159),e._UZ(23,"path",160),e._UZ(24,"path",194),e._UZ(25,"path",162),e._UZ(26,"path",163),e._UZ(27,"path",162),e._UZ(28,"path",164),e._UZ(29,"path",165),e._UZ(30,"path",166),e._UZ(31,"path",167),e._UZ(32,"path",195),e._UZ(33,"path",169),e._UZ(34,"path",196),e._UZ(35,"path",171),e._UZ(36,"path",172),e._UZ(37,"path",173),e._UZ(38,"path",174),e._UZ(39,"path",175),e._UZ(40,"path",197),e.TgZ(41,"defs"),e.TgZ(42,"linearGradient",198),e._UZ(43,"stop",90),e._UZ(44,"stop",91),e._UZ(45,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(46,"div",47),e.TgZ(47,"mat-card-title"),e._uU(48,"Rebalance successful!"),e.qZA(),e.qZA(),e.TgZ(49,"div",48),e.TgZ(50,"mat-card-subtitle",49),e._uU(51," Your channel is successfully rebalanced and is able to continue to route payments. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let wo=(()=>{class n{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z","fill","#444053"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z","fill","#D0D2D5"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z","fill","#3F3D56"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z","fill","#D0D2D5"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z","fill","#D0D2D5"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","#444053"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z","fill","#444053"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z","fill","#6C63FF"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z","fill","#6C63FF"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z","fill","#6C63FF"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z","fill","#6C63FF"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z","fill","#6C63FF"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z","fill","#6C63FF"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z","fill","#6C63FF"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z","fill","#6C63FF"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z","fill","#6C63FF"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z","fill","#6C63FF"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z","fill","#6C63FF"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z","fill","#6C63FF"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z","fill","#6C63FF"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z","fill","#6C63FF"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z","fill","#6C63FF"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z","fill","#E6E6E6"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z","fill","#C4B7FF"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z","fill","#6C63FF"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z","fill","#C4B7FF"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z","fill","#6C63FF"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z","fill","#C4B7FF"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z","fill","#5E4EA5"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z","fill","#5E4EA5"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z","fill","#5E4EA5"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z","fill","#5E4EA5"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z","fill","#4A4A4A"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z","fill","#CBCBCB"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z","fill","#F2F2F2"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z","fill","#3F3D56"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z","fill","#4A4A4A"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z","fill","#4A4A4A"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z","fill","#4A4A4A"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z","fill","#4A4A4A"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z","fill","#4A4A4A"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z","fill","#4A4A4A"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z","fill","#F2F2F2"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z","fill","#4A4A4A"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z","fill","#4A4A4A"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z","fill","#5B5B5B"],["d","M42 75H9V91H42V75Z","fill","#5E4EA5"],["d","M42 42H9V58H42V42Z","fill","#5E4EA5"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z","fill","#4A4A4A"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z","fill","#F1F1F1"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z","fill","#4A4A4A"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z","fill","#D0CDE1"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z","fill","#4A4A4A"],["d","M265 57.3624H357.392V120.307H265V57.3624Z","fill","#CBCBCB"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z","fill","#4A4A4A"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z","fill","#4A4A4A"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z","fill","#4A4A4A"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z","fill","#4A4A4A"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z","fill","#4A4A4A"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z","fill","#4A4A4A"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z","fill","#4A4A4A"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z","fill","#F2F2F2"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z","fill","#4A4A4A"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z","fill","#5B5B5B"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z","fill","#C4B7FF"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z","fill","#6C63FF"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z","fill","#C4B7FF"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z","fill","#6C63FF"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#C4B7FF"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#5E4EA5"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z","fill","#4A4A4A"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z","fill","#CBCBCB"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z","fill","#F2F2F2"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z","fill","#3F3D56"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z","fill","#4A4A4A"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z","fill","#4A4A4A"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z","fill","#4A4A4A"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z","fill","#5B5B5B"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke","#C4B7FF","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M122.399 37H32.25V137.616H122.399V37Z","fill","#E6E6E6"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z","fill","#C4B7FF"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z","fill","#6C63FF"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z","fill","#C4B7FF"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z","fill","#6C63FF"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z","fill","#C4B7FF"],["d","M74.5 112H40.5V128H74.5V112Z","fill","#5E4EA5"],["d","M74.5 79H40.5V95H74.5V79Z","fill","#5E4EA5"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z","fill","#5E4EA5"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z","fill","#5E4EA5"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z","fill","#5E4EA5"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z","fill","#5E4EA5"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z","fill","#5E4EA5"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z","fill","#C4B7FF"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z","fill","#C4B7FF"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z","fill","#F2F2F2"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z","fill","#5B5B5B"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z","fill","#F2F2F2"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z","fill","#CBCBCB"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z","fill","#595959"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z","fill","#F2F2F2"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z","fill","#CBCBCB"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z","fill","#595959"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z","fill","#595959"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z","fill","#CBCBCB"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z","fill","#CBCBCB"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z","fill","#CBCBCB"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z","fill","#595959"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z","fill","#5E4EA5"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z","fill","#6C63FF"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z","fill","#C4B7FF"],["d","M76 112H41V128H76V112Z","fill","#5E4EA5"],["d","M70 79H41V95H70V79Z","fill","#5E4EA5"],["d","M70 47H41V63H70V47Z","fill","#5E4EA5"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z","fill","#5E4EA5"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z","fill","#5E4EA5"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z","fill","#5E4EA5"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z","fill","#CBCBCB"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z","fill","#595959"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(t,a){if(1&t&&(e.YNc(0,Zo,1,0,"ng-container",0),e.YNc(1,yo,47,5,"ng-template",null,1,e.W1O),e.YNc(3,To,96,5,"ng-template",null,2,e.W1O),e.YNc(5,bo,68,5,"ng-template",null,3,e.W1O),e.YNc(7,Ao,53,5,"ng-template",null,4,e.W1O),e.YNc(9,vo,52,5,"ng-template",null,5,e.W1O)),2&t){const o=e.MAs(2),s=e.MAs(4),u=e.MAs(6),g=e.MAs(8),N=e.MAs(10);e.Q6J("ngTemplateOutlet",1===a.stepNumber?o:2===a.stepNumber?s:3===a.stepNumber?u:4===a.stepNumber?g:N)}},directives:[p.tP,_.xw,_.yH,_.Wh,p.mk,q.oO,T.n5,T.$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:[xo.l]}}),n})();const qo=["stepper"];function So(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.inputFormLabel)}}function Lo(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function ko(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount must be a positive number."),e.qZA())}function Fo(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",null==t.selChannel?null:t.selChannel.local_balance,".")}}function Uo(n,i){if(1&n&&(e.TgZ(0,"mat-option",55),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.AsE("",t.remote_alias," - ",t.chan_id,"")}}function No(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Receive from Peer is required."),e.qZA())}function Oo(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Receive from Peer not found in the list."),e.qZA())}function Ro(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.feeFormLabel)}}function Io(n,i){if(1&n&&(e.TgZ(0,"mat-option",55),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.name," ")}}function Mo(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder," is required.")}}function Do(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder," must be a positive number.")}}function Po(n,i){1&n&&e._uU(0,"Invoice/Payment")}function Jo(n,i){1&n&&(e.TgZ(0,"mat-icon",56),e._uU(1,"check"),e.qZA())}function Eo(n,i){1&n&&e._UZ(0,"mat-progress-bar",57)}function Qo(n,i){if(1&n&&(e.TgZ(0,"mat-icon",56),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(null!=t.paymentStatus&&t.paymentStatus.error?"close":"check")}}function Yo(n,i){1&n&&e._UZ(0,"div",14)}function Ho(n,i){1&n&&e._UZ(0,"mat-progress-bar",57)}function Bo(n,i){if(1&n&&(e.TgZ(0,"h4",58),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentStatus&&t.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function Vo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",59),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onRestart()}),e._uU(1,"Start Again"),e.qZA()}}function Go(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"div",6),e.TgZ(2,"mat-card-header",7),e.TgZ(3,"div",8),e.TgZ(4,"span",9),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"div",10),e.TgZ(7,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().showInfo()}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(10,"X"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"mat-card-content",13),e.TgZ(12,"div",14),e.TgZ(13,"div",15),e.TgZ(14,"div",16),e._UZ(15,"fa-icon",17),e.TgZ(16,"span"),e._uU(17,"Circular Rebalance is a payment you make to *yourselves* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",18),e.TgZ(19,"p",19),e.TgZ(20,"strong"),e._uU(21,"Channel Peer:\xa0"),e.qZA(),e._uU(22),e.ALo(23,"titlecase"),e.qZA(),e.TgZ(24,"p",19),e.TgZ(25,"strong"),e._uU(26,"Channel ID:\xa0"),e.qZA(),e._uU(27),e.qZA(),e.qZA(),e.TgZ(28,"mat-vertical-stepper",20,21),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().stepSelectionChanged(o)}),e.TgZ(30,"mat-step",22),e.TgZ(31,"form",23),e.YNc(32,So,1,1,"ng-template",24),e.TgZ(33,"div",25),e.TgZ(34,"mat-form-field",26),e._UZ(35,"input",27),e.TgZ(36,"mat-hint"),e._uU(37),e.qZA(),e.TgZ(38,"span",28),e._uU(39,"Sats"),e.qZA(),e.YNc(40,Lo,2,0,"mat-error",29),e.YNc(41,ko,2,0,"mat-error",29),e.YNc(42,Fo,2,1,"mat-error",29),e.qZA(),e.TgZ(43,"mat-form-field",30),e.TgZ(44,"input",31),e.NdJ("change",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.qZA(),e.TgZ(45,"mat-autocomplete",32,33),e.NdJ("optionSelected",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.YNc(47,Uo,2,3,"mat-option",34),e.ALo(48,"async"),e.qZA(),e.YNc(49,No,2,0,"mat-error",29),e.YNc(50,Oo,2,0,"mat-error",29),e.qZA(),e.qZA(),e.TgZ(51,"div",35),e.TgZ(52,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSelectFee()}),e._uU(53,"Select Fee"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"mat-step",22),e.TgZ(55,"form",23),e.YNc(56,Ro,1,1,"ng-template",37),e.TgZ(57,"div",25),e.TgZ(58,"div",25),e.TgZ(59,"mat-form-field",30),e.TgZ(60,"mat-select",38),e.YNc(61,Io,2,2,"mat-option",34),e.qZA(),e.qZA(),e.TgZ(62,"mat-form-field",26),e._UZ(63,"input",39),e.YNc(64,Mo,2,1,"mat-error",29),e.YNc(65,Do,2,1,"mat-error",29),e.qZA(),e.qZA(),e.qZA(),e.TgZ(66,"div",35),e.TgZ(67,"button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onRebalance()}),e._uU(68,"Rebalance"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"mat-step",41),e.TgZ(70,"form",23),e.YNc(71,Po,1,0,"ng-template",24),e.TgZ(72,"div",42),e.TgZ(73,"mat-expansion-panel",43),e.TgZ(74,"mat-expansion-panel-header"),e.TgZ(75,"mat-panel-title"),e.TgZ(76,"span",44),e._uU(77),e.YNc(78,Jo,2,0,"mat-icon",45),e.qZA(),e.qZA(),e.qZA(),e.TgZ(79,"div",14),e.TgZ(80,"span",46),e._uU(81),e.qZA(),e.qZA(),e.qZA(),e.YNc(82,Eo,1,0,"mat-progress-bar",47),e.TgZ(83,"mat-expansion-panel",48),e.TgZ(84,"mat-expansion-panel-header"),e.TgZ(85,"mat-panel-title"),e.TgZ(86,"span",44),e._uU(87),e.YNc(88,Qo,2,1,"mat-icon",45),e.qZA(),e.qZA(),e.qZA(),e.YNc(89,Yo,1,0,"div",49),e.qZA(),e.YNc(90,Ho,1,0,"mat-progress-bar",47),e.qZA(),e.YNc(91,Bo,2,1,"h4",50),e.TgZ(92,"div",51),e.YNc(93,Vo,2,0,"button",52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(94,"div",53),e.TgZ(95,"button",54),e._uU(96,"Close"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.MAs(46),a=e.oxw(),o=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(a.channel?"Channel "+a.loopDirectionCaption:a.loopDirectionCaption),e.xp6(1),e.Q6J("fxFlex",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM?"17":"9"),e.xp6(9),e.Q6J("icon",a.faInfoCircle),e.xp6(7),e.Oqu(e.lcZ(23,45,a.selChannel.remote_alias)),e.xp6(5),e.Oqu(a.selChannel.chan_id),e.xp6(1),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",a.inputFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.inputFormGroup),e.xp6(4),e.Q6J("step",100),e.xp6(2),e.AsE("(Local Bal: ",null==a.selChannel?null:a.selChannel.local_balance,", Remaining: ",(null==a.selChannel?null:a.selChannel.local_balance)-(a.inputFormGroup.controls.rebalanceAmount.value?a.inputFormGroup.controls.rebalanceAmount.value:0),")"),e.xp6(3),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.min),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.max),e.xp6(2),e.Q6J("matAutocomplete",t),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(48,47,a.filteredActiveChannels)),e.xp6(2),e.Q6J("ngIf",null==a.inputFormGroup.controls.selRebalancePeer.errors?null:a.inputFormGroup.controls.selRebalancePeer.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.selRebalancePeer.errors?null:a.inputFormGroup.controls.selRebalancePeer.errors.notfound),e.xp6(4),e.Q6J("stepControl",a.feeFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.feeFormGroup),e.xp6(6),e.Q6J("ngForOf",a.feeLimitTypes),e.xp6(2),e.s9C("placeholder",a.feeFormGroup.controls.selFeeLimitType.value?a.feeFormGroup.controls.selFeeLimitType.value.placeholder:a.feeLimitTypes[0].placeholder),e.Q6J("step",1),e.xp6(1),e.Q6J("ngIf",null==a.feeFormGroup.controls.feeLimit.errors?null:a.feeFormGroup.controls.feeLimit.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.feeFormGroup.controls.feeLimit.errors?null:a.feeFormGroup.controls.feeLimit.errors.min),e.xp6(4),e.Q6J("stepControl",a.statusFormGroup),e.xp6(1),e.Q6J("formGroup",a.statusFormGroup),e.xp6(7),e.Oqu(a.flgInvoiceGenerated?a.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated),e.xp6(3),e.Oqu(a.paymentRequest),e.xp6(1),e.Q6J("ngIf",!a.flgInvoiceGenerated),e.xp6(1),e.Q6J("expanded",(a.flgInvoiceGenerated||a.flgReusingInvoice)&&a.flgPaymentSent),e.xp6(4),e.Oqu(a.flgInvoiceGenerated||a.flgPaymentSent?a.flgPaymentSent?null!=a.paymentStatus&&a.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),e.xp6(1),e.Q6J("ngIf",a.flgPaymentSent),e.xp6(1),e.Q6J("ngIf",!a.paymentStatus)("ngIfElse",o),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated&&!a.flgPaymentSent),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated&&a.flgPaymentSent),e.xp6(2),e.Q6J("ngIf",a.paymentStatus&&a.paymentStatus.error),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function zo(n,i){1&n&&e.GkF(0)}function Wo(n,i){if(1&n&&e.YNc(0,zo,1,0,"ng-container",60),2&n){const t=e.oxw(),a=e.MAs(4),o=e.MAs(6);e.Q6J("ngTemplateOutlet",t.paymentStatus.error?a:o)}}function Xo(n,i){if(1&n&&(e.TgZ(0,"div",14),e.TgZ(1,"span",46),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Error: ",t.paymentStatus.error,"")}}function $o(n,i){if(1&n&&(e.TgZ(0,"div",14),e.TgZ(1,"div",61),e.TgZ(2,"div",6),e.TgZ(3,"h4",62),e._uU(4,"Payment Hash"),e.qZA(),e.TgZ(5,"span",46),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e._UZ(7,"mat-divider",63),e.TgZ(8,"div",61),e.TgZ(9,"div",64),e.TgZ(10,"h4",62),e._uU(11),e.qZA(),e.TgZ(12,"span",46),e._uU(13),e.qZA(),e.qZA(),e.TgZ(14,"div",64),e.TgZ(15,"h4",62),e._uU(16,"Number of Hops"),e.qZA(),e.TgZ(17,"span",46),e._uU(18),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.Oqu(t.paymentStatus.payment_hash),e.xp6(5),e.hij("Total Fees (",t.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),e.xp6(2),e.Oqu(t.paymentStatus.payment_route.total_fees_msat?t.paymentStatus.payment_route.total_fees_msat:t.paymentStatus.payment_route.total_fees?t.paymentStatus.payment_route.total_fees:0),e.xp6(5),e.Oqu(t.paymentStatus&&t.paymentStatus.payment_route&&t.paymentStatus.payment_route.hops&&t.paymentStatus.payment_route.hops.length?t.paymentStatus.payment_route.hops.length:0)}}const jo=function(n,i){return{"dot-primary":n,"dot-primary-lighter":i}};function Ko(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"span",81),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onStepChanged(s)}),e._UZ(1,"p",82),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,jo,a.stepNumber===t,a.stepNumber!==t))}}function es(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",83),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onStepChanged(4)}),e._uU(1,"Back"),e.qZA()}}function ts(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",84),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function ns(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",85),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function as(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",86),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.onStepChanged(o.stepNumber-1)}),e._uU(1,"Back"),e.qZA()}}function is(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.onStepChanged(o.stepNumber+1)}),e._uU(1,"Next"),e.qZA()}}const os=function(){return[1,2,3,4,5]};function ss(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",65),e.TgZ(1,"div",66),e.TgZ(2,"mat-card-header",67),e.TgZ(3,"div",68),e._UZ(4,"span",9),e.qZA(),e.TgZ(5,"div",69),e.TgZ(6,"button",70),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(7,"X"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",71),e.TgZ(9,"rtl-channel-rebalance-infographics",72),e.NdJ("stepNumberChange",function(o){return e.CHM(t),e.oxw().stepNumber=o}),e.qZA(),e.qZA(),e.TgZ(10,"div",73),e.YNc(11,Ko,2,4,"span",74),e.qZA(),e.TgZ(12,"div",75),e.YNc(13,es,2,0,"button",76),e.YNc(14,ts,2,0,"button",77),e.YNc(15,ns,2,0,"button",78),e.YNc(16,as,2,0,"button",79),e.YNc(17,is,2,0,"button",80),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection),e.xp6(2),e.Q6J("ngForOf",e.DdM(9,os)),e.xp6(2),e.Q6J("ngIf",5===t.stepNumber),e.xp6(1),e.Q6J("ngIf",5===t.stepNumber),e.xp6(1),e.Q6J("ngIf",t.stepNumber<5),e.xp6(1),e.Q6J("ngIf",t.stepNumber>1&&t.stepNumber<5),e.xp6(1),e.Q6J("ngIf",t.stepNumber<5)}}let ls=(()=>{class n{constructor(t,a,o,s,u,g,N,x){this.dialogRef=t,this.data=a,this.logger=o,this.store=s,this.actions=u,this.formBuilder=g,this.decimalPipe=N,this.commonService=x,this.faInfoCircle=Z.sqG,this.invoices={},this.selChannel={},this.activeChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=l.cu,this.animationDirection="forward",this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize();let t="",a="";this.selChannel=this.data.message.selChannel,this.activeChannels=this.data.message.channels.filter(o=>o.active&&o.chan_id!==this.selChannel.chan_id&&o.remote_balance>0),this.activeChannels=this.activeChannels.sort((o,s)=>(t=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"",a=s.remote_alias?s.remote_alias.toLowerCase():o.chan_id.toLowerCase(),ta?1:0)),l.Vc.forEach((o,s)=>{s>0&&this.feeLimitTypes.push(o)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[c.kI.required]],rebalanceAmount:["",[c.kI.required,c.kI.min(1),c.kI.max(this.selChannel.local_balance)]],selRebalancePeer:[null,c.kI.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],c.kI.required],feeLimit:["",[c.kI.required,c.kI.min(0)]],hiddenFeeLimit:["",[c.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(C.Ef).pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{this.invoices=o.listInvoices,this.logger.info(o)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,E.h)(o=>o.type===l.uR.SET_QUERY_ROUTES_LND||o.type===l.uR.SEND_PAYMENT_STATUS_LND||o.type===l.uR.NEWLY_SAVED_INVOICE_LND)).subscribe(o=>{o.type===l.uR.SET_QUERY_ROUTES_LND&&(this.queryRoute=o.payload),o.type===l.uR.SEND_PAYMENT_STATUS_LND&&(this.logger.info(o.payload),this.flgPaymentSent=!0,this.paymentStatus=o.payload,this.flgEditable=!0),o.type===l.uR.NEWLY_SAVED_INVOICE_LND&&(this.logger.info(o.payload),this.flgInvoiceGenerated=!0,this.sendPayment(o.payload.paymentRequest))}),this.inputFormGroup.get("rebalanceAmount").valueChanges.pipe((0,d.R)(this.unSubs[2]),(0,Ce.O)(0)).subscribe(o=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Ze.of)(o?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer").valueChanges.pipe((0,d.R)(this.unSubs[3]),(0,Ce.O)("")).subscribe(o=>{"string"==typeof o&&(this.filteredActiveChannels=(0,Ze.of)(this.filterActiveChannels()))})}onSelectFee(){return this.inputFormGroup.controls.selRebalancePeer.value&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value&&this.onSelectedPeerChanged(),this.inputFormGroup.controls.selRebalancePeer.value&&"string"!=typeof this.inputFormGroup.controls.selRebalancePeer.value?!this.inputFormGroup.controls.rebalanceAmount.value||(0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),void this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0])):(this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0)}stepSelectionChanged(t){switch(t.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+this.queryRoute.routes[0].hops.length:"Select rebalance fee"}t.selectedIndex+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;const t=this.findUnsettledInvoice();t?(this.flgReusingInvoice=!0,this.sendPayment(t.payment_request)):this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",invoiceValue:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:3600,pageSize:l.IV,openModal:!1}}))}findUnsettledInvoice(){return this.invoices.invoices.find(t=>(0==+t.settle_date||!t.settle_date)&&t.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==t.state)}sendPayment(t){this.flgInvoiceGenerated=!0,this.paymentRequest=t,this.store.dispatch((0,b.oV)("percent"===this.feeFormGroup.controls.selFeeLimitType.value.id&&+this.feeFormGroup.controls.feeLimit.value%1!=0?{payload:{uiMessage:l.m6.NO_SPINNER,paymentReq:t,outgoingChannel:this.selChannel,feeLimitType:"fixed",feeLimit:Math.ceil(+this.feeFormGroup.controls.feeLimit.value*+this.inputFormGroup.controls.rebalanceAmount.value/100),allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}:{payload:{uiMessage:l.m6.NO_SPINNER,paymentReq:t,outgoingChannel:this.selChannel,feeLimitType:this.feeFormGroup.controls.selFeeLimitType.value.id,feeLimit:this.feeFormGroup.controls.feeLimit.value,allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}))}filterActiveChannels(){return this.activeChannels.filter(t=>t.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&t.chan_id!==this.selChannel.chan_id&&(0===t.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===t.chan_id.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const t=this.activeChannels.filter(a=>a.remote_alias.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===a.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));t&&t.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(t[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(t){return t&&t.remote_alias?t.remote_alias:t&&t.chan_id?t.chan_id:""}showInfo(){this.flgShowInfo=!0}onStepChanged(t){this.animationDirection=t{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(c.qu),e.Y36(p.JJ),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-rebalance"]],viewQuery:function(t,a){if(1&t&&e.Gf(qo,5),2&t){let o;e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxFlex","48","fxLayoutAlign","start end"],["type","text","placeholder","Receive from Peer","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["tabindex","6","formControlName","selFeeLimitType","Placeholder","Fee Limits","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"placeholder","step"],["mat-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(t,a){1&t&&(e.YNc(0,Go,97,49,"div",0),e.YNc(1,Wo,1,1,"ng-template",null,1,e.W1O),e.YNc(3,Xo,3,1,"ng-template",null,2,e.W1O),e.YNc(5,$o,19,4,"ng-template",null,3,e.W1O),e.YNc(7,ss,18,10,"div",4)),2&t&&(e.Q6J("ngIf",!a.flgShowInfo),e.xp6(7),e.Q6J("ngIf",a.flgShowInfo))},directives:[p.O5,_.xw,_.yH,_.Wh,T.dk,L.lW,T.dn,M.BN,B.Vq,B.C0,c._Y,c.JL,c.sg,B.VY,f.KE,I.Nt,c.wV,c.Fj,W.h,c.JJ,c.u,c.Q7,f.bx,f.R9,ne.ZL,ne.XC,p.sg,R.gD,H.ib,H.yz,H.yK,J.ZT,f.TO,Y.ey,K.Hw,P.pW,p.tP,z.d,wo,p.mk,q.oO],pipes:[p.rS,p.Ov],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[ye._]}}),n})();function rs(n,i){if(1&n&&(e.TgZ(0,"div",16),e.TgZ(1,"p",17),e.TgZ(2,"mat-icon",18),e._uU(3,"close"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(4),e.Oqu(t.errorMsg)}}function cs(n,i){if(1&n&&(e.TgZ(0,"div",27),e._UZ(1,"fa-icon",28),e.TgZ(2,"span"),e._uU(3,"Priority/Fee for force closing inactive channels cannot be modified."),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faInfoCircle)}}function us(n,i){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function ps(n,i){1&n&&(e.TgZ(0,"mat-form-field",30),e._UZ(1,"input",31),e.qZA())}function ms(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function _s(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",32),e.TgZ(1,"input",33,34),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).blocks=o}),e.qZA(),e.YNc(3,ms,2,0,"mat-error",35),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.blocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.blocks)}}function ds(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function hs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",32),e.TgZ(1,"input",36,37),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).fees=o}),e.qZA(),e.YNc(3,ds,2,0,"mat-error",35),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.fees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.fees)}}function gs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",19),e.YNc(1,cs,4,1,"div",20),e.TgZ(2,"div",21),e.TgZ(3,"mat-form-field",22),e.TgZ(4,"mat-select",23),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().selTransType=o}),e.YNc(5,us,2,2,"mat-option",24),e.qZA(),e.qZA(),e.YNc(6,ps,2,0,"mat-form-field",25),e.YNc(7,_s,4,4,"mat-form-field",26),e.YNc(8,hs,4,4,"mat-form-field",26),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.channelToClose.active),e.xp6(3),e.Q6J("value",t.selTransType)("disabled",!t.channelToClose.active),e.xp6(1),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","0"===t.selTransType),e.xp6(1),e.Q6J("ngIf","1"===t.selTransType),e.xp6(1),e.Q6J("ngIf","2"===t.selTransType)}}function fs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(1,"Clear"),e.qZA()}}function Cs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw().onCloseChannel()}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.channelToClose.active?"Close Channel":"Force Close")}}function xs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(1,"Ok"),e.qZA()}}let Zs=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.store=o,this.actions=s,this.logger=u,this.transTypes=l.Dr,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=Z.eHv,this.faInfoCircle=Z.sqG,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.unSubs=[new m.x,new m.x]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND||t.type===l.uR.SET_CHANNELS_LND)).subscribe(t=>{if(t.type===l.uR.SET_CHANNELS_LND){const a=t.payload.find(o=>o.chan_id===this.data.channel.chan_id);a&&a.pending_htlcs&&a.pending_htlcs.length&&a.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.Bn.ERROR&&"FetchAllChannels"===t.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+t.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const t={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(t.targetConf=this.blocks),this.fees&&(t.satPerByte=this.fees),this.store.dispatch((0,b.BL)({payload:t})),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(G.eX),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-close-channel"]],decls:19,vars:7,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","class","mr-1","tabindex","3","default","",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","5",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","48"],["tabindex","1",3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48"],["matInput","","placeholder","Default","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","2",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","ccfees","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["clchfee","ngModel"],["mat-button","","color","primary","type","reset","tabindex","3","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click"],["mat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7),e.TgZ(10,"div",8),e.TgZ(11,"p",9),e._uU(12),e.qZA(),e.YNc(13,rs,5,1,"div",10),e.YNc(14,gs,9,7,"div",11),e.qZA(),e.TgZ(15,"div",12),e.YNc(16,fs,2,0,"button",13),e.YNc(17,Cs,2,1,"button",14),e.YNc(18,xs,2,0,"button",15),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(a.channelToClose.active?"Close Channel":"Force Close Channel"),e.xp6(7),e.hij("",a.channelToClose.active?"Closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point):"Force closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point)," "),e.xp6(1),e.Q6J("ngIf",a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",!a.flgPendingHtlcs),e.xp6(2),e.Q6J("ngIf",a.channelToClose.active&&!a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",!a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",a.flgPendingHtlcs))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,c._Y,c.JL,c.F,p.O5,K.Hw,f.KE,R.gD,p.sg,M.BN,Y.ey,I.Nt,c.wV,c.qQ,c.Fj,$.q,c.Q7,c.JJ,c.On,f.TO],styles:[""]}),n})();function ys(n,i){1&n&&e._UZ(0,"mat-progress-bar",30)}function Ts(n,i){1&n&&(e.TgZ(0,"th",31),e._uU(1," Peer "),e.qZA())}function bs(n,i){1&n&&e._UZ(0,"span",39)}function As(n,i){1&n&&e._UZ(0,"span",40)}function vs(n,i){if(1&n&&(e.TgZ(0,"span",41),e._UZ(1,"fa-icon",42),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faEyeSlash)}}function ws(n,i){if(1&n&&(e.TgZ(0,"span",43),e._UZ(1,"fa-icon",42),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faEye)}}const qs=function(n){return{"max-width":n}};function Ss(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"div",33),e.YNc(2,bs,1,0,"span",34),e.YNc(3,As,1,0,"span",35),e.YNc(4,vs,2,1,"span",36),e.YNc(5,ws,2,1,"span",37),e.TgZ(6,"span",38),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(6,qs,a.screenSize===a.screenSizeEnum.XS?"10rem":a.screenSize===a.screenSizeEnum.MD?"15rem":"22rem")),e.xp6(1),e.Q6J("ngIf",t.active),e.xp6(1),e.Q6J("ngIf",!t.active),e.xp6(1),e.Q6J("ngIf",t.private),e.xp6(1),e.Q6J("ngIf",!t.private),e.xp6(2),e.Oqu(t.remote_alias||t.remote_pubkey)}}function Ls(n,i){if(1&n&&(e.TgZ(0,"th",44),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Uptime (",t.timeUnit,")")}}function ks(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",t.uptime_str," ")}}function Fs(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Sats Sent "),e.qZA())}function Us(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.total_satoshis_sent)," ")}}function Ns(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Sats Received "),e.qZA())}function Os(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.total_satoshis_received)," ")}}function Rs(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Local Balance (Sats) "),e.qZA())}function Is(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.local_balance)," ")}}function Ms(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Remote Balance (Sats) "),e.qZA())}function Ds(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.remote_balance)," ")}}function Ps(n,i){1&n&&(e.TgZ(0,"th",46),e._uU(1,"Balance Score "),e.qZA())}function Js(n,i){if(1&n&&(e.TgZ(0,"td",47),e.TgZ(1,"div",48),e.TgZ(2,"mat-hint",49),e._uU(3),e.ALo(4,"number"),e.qZA(),e.qZA(),e._UZ(5,"mat-progress-bar",50),e.qZA()),2&n){const t=i.$implicit;e.xp6(3),e.Oqu(e.lcZ(4,2,t.balancedness||0)),e.xp6(2),e.s9C("value",t.local_balance&&t.local_balance>0?+t.local_balance/(+t.local_balance+ +t.remote_balance)*100:0)}}function Es(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",51),e.TgZ(1,"div",52),e.TgZ(2,"mat-select",53),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",54),e.NdJ("click",function(){return e.CHM(t),e.oxw().onChannelUpdate("all")}),e._uU(5,"Update Fee Policy"),e.qZA(),e.TgZ(6,"mat-option",54),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(7,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Qs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-option",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().onCircularRebalance(o)}),e._uU(1,"Circular Rebalance"),e.qZA()}}function Ys(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-option",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().onLoopOut(o)}),e._uU(1,"Loop Out"),e.qZA()}}function Hs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",55),e.TgZ(1,"div",52),e.TgZ(2,"mat-select",56),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",54),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onChannelClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onViewRemotePolicy(s)}),e._uU(7,"View Remote Fee "),e.qZA(),e.TgZ(8,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onChannelUpdate(s)}),e._uU(9,"Update Fee Policy"),e.qZA(),e.YNc(10,Qs,2,0,"mat-option",57),e.YNc(11,Ys,2,0,"mat-option",57),e.TgZ(12,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onChannelClose(s)}),e._uU(13,"Close Channel"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(10),e.Q6J("ngIf",+t.versionsArr[0]>0||+t.versionsArr[1]>=9),e.xp6(1),e.Q6J("ngIf",t.selNode.swapServerUrl)}}function Bs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No peers connected. Add a peer in order to open a channel."),e.qZA())}function Vs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No channel available."),e.qZA())}function Gs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting channels..."),e.qZA())}function zs(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Ws(n,i){if(1&n&&(e.TgZ(0,"td",58),e.YNc(1,Bs,2,0,"p",59),e.YNc(2,Vs,2,0,"p",59),e.YNc(3,Gs,2,0,"p",59),e.YNc(4,zs,2,1,"p",59),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Xs=function(n){return{"display-none":n}};function $s(n,i){if(1&n&&e._UZ(0,"tr",60),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Xs,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function js(n,i){1&n&&e._UZ(0,"tr",61)}function Ks(n,i){1&n&&e._UZ(0,"tr",62)}const el=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},tl=function(){return["no_peer"]};let nl=(()=>{class n{constructor(t,a,o,s,u,g,N,x){var U,re,ve,we;this.logger=t,this.store=a,this.lndEffects=o,this.commonService=s,this.rtlEffects=u,this.decimalPipe=g,this.loopService=N,this.router=x,this.timeUnit="mins:secs",this.userPersonaEnum=l.ol,this.selNode={},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.versionsArr=[],this.faEye=Z.Mdf,this.faEyeSlash=Z.Aq,this.targetConf=6,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","balancedness","actions"]):(this.flgSticky=!0,this.displayedColumns=["remote_alias","uptime","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness","actions"]),this.selFilter=(null===(re=null===(U=this.router.getCurrentNavigation().extras)||void 0===U?void 0:U.state)||void 0===re?void 0:re.filter)?null===(we=null===(ve=this.router.getCurrentNavigation().extras)||void 0===ve?void 0:ve.state)||void 0===we?void 0:we.filter:""}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t,this.information&&this.information.version&&(this.versionsArr=this.information.version.split("."))}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.numPeers=t.peers&&t.peers.length?t.peers.length:0}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.totalBalance=+t.blockchainBalance.total_balance}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=this.calculateUptime(t.channels),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,b.$A)({payload:{uiMessage:l.m6.GET_REMOTE_POLICY,channelID:t.chan_id.toString()+"/"+this.information.identity_pubkey}})),this.lndEffects.setLookup.pipe((0,V.q)(1)).subscribe(a=>{if(!a.fee_base_msat&&!a.fee_rate_milli_msat&&!a.time_lock_delta)return!1;const o=[[{key:"fee_base_msat",value:a.fee_base_msat,title:"Base Fees (mSats)",width:25,type:l.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:l.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:l.Gi.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:a.time_lock_delta,title:"Time Lock Delta",width:25,type:l.Gi.NUMBER}]],s="Remote policy for Channel: "+(t.remote_alias||t.chan_id?t.remote_alias&&t.chan_id?t.remote_alias+" ("+t.chan_id+")":t.remote_alias?t.remote_alias:t.chan_id:t.channel_point);setTimeout(()=>{this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:s,message:o}}}))},0)})}onCircularRebalance(t){this.store.dispatch((0,v.qR)({payload:{data:{message:{channels:this.channelsData,selChannel:t},component:ls}}}))}onChannelUpdate(t){"all"===t?(this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:1e3,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:40,width:32}]}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[5])).subscribe(o=>{o&&this.store.dispatch((0,b.pW)({payload:{baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,timeLockDelta:o[2].inputValue,chanPoint:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.store.dispatch((0,b.$A)({payload:{uiMessage:l.m6.GET_CHAN_POLICY,channelID:t.chan_id.toString()}})),this.lndEffects.setLookup.pipe((0,V.q)(1)).subscribe(a=>{this.myChanPolicy=a.node1_pub===this.information.identity_pubkey?a.node1_policy:a.node2_pub===this.information.identity_pubkey?a.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy);const o="Update fee policy for Channel: "+(t.remote_alias||t.chan_id?t.remote_alias&&t.chan_id?t.remote_alias+" ("+t.chan_id+")":t.remote_alias?t.remote_alias:t.chan_id:t.channel_point),s=[];setTimeout(()=>{this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:o,noBtnText:"Cancel",yesBtnText:"Update Channel",message:s,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.time_lock_delta,width:32}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[6])).subscribe(a=>{a&&this.store.dispatch((0,b.pW)({payload:{baseFeeMsat:a[0].inputValue,feeRate:a[1].inputValue,timeLockDelta:a[2].inputValue,chanPoint:t.channel_point}}))})),this.applyFilter()}onChannelClose(t){t.active&&this.store.dispatch((0,b.UR)()),this.store.dispatch((0,v.qR)({payload:{data:{channel:t,component:Zs}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!0,component:xe}}}))}loadChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?1:-1),this.channels=new r.by([...t]),this.channels.filterPredicate=(a,o)=>((a.active?"active":"inactive")+(a.chan_id?a.chan_id.toLowerCase():"")+(a.remote_pubkey?a.remote_pubkey.toLowerCase():"")+(a.remote_alias?a.remote_alias.toLowerCase():"")+(a.capacity?a.capacity:"")+(a.local_balance?a.local_balance:"")+(a.remote_balance?a.remote_balance:"")+(a.total_satoshis_sent?a.total_satoshis_sent:"")+(a.total_satoshis_received?a.total_satoshis_received:"")+(a.commit_fee?a.commit_fee:"")+(a.private?"private":"public")).includes(o),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}calculateUptime(t){let g=60,N=1,x=0;switch(t.forEach(U=>{U.uptime&&+U.uptime>x&&(x=+U.uptime)}),!0){case x<3600:this.timeUnit="Mins:Secs",g=60,N=1;break;case x>=3600&&x<86400:this.timeUnit="Hrs:Mins",g=3600,N=60;break;case x>=86400&&x<31536e3:this.timeUnit="Days:Hrs",g=86400,N=3600;break;case x>31536e3:this.timeUnit="Yrs:Days",g=31536e3,N=86400;break;default:this.timeUnit="Mins:Secs",g=60,N=1}return t.forEach(U=>{U.uptime_str=U.uptime?this.decimalPipe.transform(Math.floor(+U.uptime/g),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+U.uptime%g/N),"2.0-0"):"---"}),t}onLoopOut(t){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[7])).subscribe(a=>{this.store.dispatch((0,v.qR)({payload:{minHeight:"56rem",data:{channel:t,minQuote:a[0],maxQuote:a[1],direction:l.$I.LOOP_OUT,component:Oe.a}}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(t){return(t/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v),e.Y36(oe.V),e.Y36(p.JJ),e.Y36(Re.W),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-open-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:39,vars:14,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","uptime"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_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","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","yellow"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,ys,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Ts,2,0,"th",10),e.YNc(11,Ss,8,8,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Ls,2,1,"th",13),e.YNc(14,ks,3,1,"td",11),e.BQk(),e.ynx(15,14),e.YNc(16,Fs,2,0,"th",13),e.YNc(17,Us,4,3,"td",11),e.BQk(),e.ynx(18,15),e.YNc(19,Ns,2,0,"th",13),e.YNc(20,Os,4,3,"td",11),e.BQk(),e.ynx(21,16),e.YNc(22,Rs,2,0,"th",13),e.YNc(23,Is,4,3,"td",11),e.BQk(),e.ynx(24,17),e.YNc(25,Ms,2,0,"th",13),e.YNc(26,Ds,4,3,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,Ps,2,0,"th",19),e.YNc(29,Js,6,4,"td",20),e.BQk(),e.ynx(30,21),e.YNc(31,Es,8,0,"th",22),e.YNc(32,Hs,14,2,"td",23),e.BQk(),e.ynx(33,24),e.YNc(34,Ws,5,4,"td",25),e.BQk(),e.YNc(35,$s,1,3,"tr",26),e.YNc(36,js,1,0,"tr",27),e.YNc(37,Ks,1,0,"tr",28),e.qZA(),e.qZA(),e._UZ(38,"mat-paginator",29),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",(null==a.apiCallStatus?null:a.apiCallStatus.status)===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(11,el,""!==a.errorMessage)),e.xp6(28),e.Q6J("matFooterRowDef",e.DdM(13,tl)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,X.gM,M.BN,f.bx,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-remote_alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-remote_alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}@media only screen and (max-width: 75em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 35%;width:35%}}@media only screen and (max-width: 56.25em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}}.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:1 1 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 75em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset;flex:1 1 25%;width:25%}}@media only screen and (max-width: 56.25em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}}@media only screen and (max-width: 37.5em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 56.25em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 90%}}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),n})();const al=["outputIdx"];function il(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Index for change output is required."),e.qZA())}function ol(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid index value."),e.qZA())}function sl(n,i){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function ll(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function rl(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",17),e.TgZ(1,"input",30,31),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().blocks=o}),e.qZA(),e.YNc(3,ll,2,0,"mat-error",20),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.blocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.blocks)}}function cl(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function ul(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",17),e.TgZ(1,"input",32,33),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().fees=o}),e.qZA(),e.YNc(3,cl,2,0,"mat-error",20),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.fees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.fees)}}function pl(n,i){if(1&n&&(e.TgZ(0,"div",34),e._UZ(1,"fa-icon",13),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.bumpFeeError)}}let ml=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.logger=o,this.dataService=s,this.snackBar=u,this.transTypes=[...l.Dr],this.selTransType="2",this.blocks=null,this.fees=null,this.outputIndex=null,this.faCopy=Z.kZ_,this.faInfoCircle=Z.sqG,this.faExclamationTriangle=Z.eHv,this.bumpFeeError="",this.unSubs=[new m.x,new m.x]}set payReq(t){t&&(this.outputIdx=t)}ngOnInit(){this.transTypes=this.transTypes.splice(1),this.bumpFeeChannel=this.data.pendingChannel;const t=this.bumpFeeChannel.channel.channel_point.split(":")||[];this.bumpFeeChannel.channel.txid_str=t[0]||(this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point:""),this.bumpFeeChannel.channel.output_index=+t[1]||null}onBumpFee(){return this.outputIndex===this.bumpFeeChannel.channel.output_index?(this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0):!this.outputIndex&&0!==this.outputIndex||!("1"!==this.selTransType||this.blocks&&0!==this.blocks)||!("2"!==this.selTransType||this.fees&&0!==this.fees)||void this.dataService.bumpFee(this.bumpFeeChannel.channel.txid_str,this.outputIndex,this.blocks,this.fees).pipe((0,d.R)(this.unSubs[0])).subscribe({next:t=>{this.dialogRef.close(!1)},error:t=>{this.logger.error(t),this.bumpFeeError=t.message?t.message:t}})}onCopyID(t){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.selTransType="2",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(j.D),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-bump-fee"]],viewQuery:function(t,a){if(1&t&&e.Gf(al,5),2&t){let o;e.iGM(o=e.CRH())&&(a.payReq=o.first)}},decls:48,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","32","fxLayoutAlign","start end"],["matInput","","placeholder","Index for Change Output","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","32"],["tabindex","2",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Bump Fee"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7),e.TgZ(10,"div",8),e.TgZ(11,"p",9),e._uU(12),e.TgZ(13,"fa-icon",10),e.NdJ("copied",function(s){return a.onCopyID(s)}),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"fa-icon",13),e.TgZ(17,"span",14),e._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. "),e.TgZ(19,"div"),e._uU(20,"Before attempting fee bump ensure the following:"),e.qZA(),e.TgZ(21,"div",15),e._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),e.qZA(),e.TgZ(23,"div",15),e._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."),e.qZA(),e.TgZ(25,"div",15),e._uU(26,"3: Find the index value of the change output via a block explorer."),e.qZA(),e.TgZ(27,"div",15),e._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),e.qZA(),e.TgZ(29,"div",15),e._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."),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",16),e.TgZ(32,"mat-form-field",17),e.TgZ(33,"input",18,19),e.NdJ("ngModelChange",function(s){return a.outputIndex=s}),e.qZA(),e.YNc(35,il,2,0,"mat-error",20),e.YNc(36,ol,2,0,"mat-error",20),e.qZA(),e.TgZ(37,"mat-form-field",21),e.TgZ(38,"mat-select",22),e.NdJ("valueChange",function(s){return a.selTransType=s})("selectionChange",function(){return a.blocks=null,a.fees=null}),e.YNc(39,sl,2,2,"mat-option",23),e.qZA(),e.qZA(),e.YNc(40,rl,4,4,"mat-form-field",24),e.YNc(41,ul,4,4,"mat-form-field",24),e.qZA(),e.YNc(42,pl,4,2,"div",25),e.qZA(),e.qZA(),e.TgZ(43,"div",26),e.TgZ(44,"button",27),e.NdJ("click",function(){return a.resetData()}),e._uU(45,"Clear"),e.qZA(),e.TgZ(46,"button",28),e.NdJ("click",function(){return a.onBumpFee()}),e._uU(47),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(34);e.xp6(12),e.hij("Bump fee for channel point: ",null==a.bumpFeeChannel||null==a.bumpFeeChannel.channel?null:a.bumpFeeChannel.channel.channel_point," "),e.xp6(1),e.Q6J("icon",a.faCopy)("payload",null==a.bumpFeeChannel||null==a.bumpFeeChannel.channel?null:a.bumpFeeChannel.channel.txid_str),e.xp6(3),e.Q6J("icon",a.faInfoCircle),e.xp6(17),e.Q6J("ngModel",a.outputIndex)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",null==o.errors?null:o.errors.required),e.xp6(1),e.Q6J("ngIf",null==o.errors?null:o.errors.pendingChannelOutputIndex),e.xp6(2),e.Q6J("value",a.selTransType),e.xp6(1),e.Q6J("ngForOf",a.transTypes),e.xp6(1),e.Q6J("ngIf","1"===a.selTransType),e.xp6(1),e.Q6J("ngIf","2"===a.selTransType),e.xp6(1),e.Q6J("ngIf",""!==a.bumpFeeError),e.xp6(5),e.Oqu(""!==a.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,c._Y,c.JL,c.F,M.BN,f.R9,se.y,X.gM,f.KE,I.Nt,c.wV,c.qQ,c.Fj,$.q,c.Q7,c.JJ,c.On,p.O5,R.gD,p.sg,f.TO,Y.ey],styles:[""]}),n})();function _l(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function dl(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function hl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",37),e._uU(1," Peer "),e.qZA())}const me=function(n){return{"max-width":n}};function gl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function fl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Commit Fee (Sats) "),e.qZA())}function Cl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.commit_fee))}}function xl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Commit Weight "),e.qZA())}function Zl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.commit_weight))}}function yl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Capacity (Sats)"),e.qZA())}function Tl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function bl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",41),e._uU(1,"Actions"),e.qZA())}function Al(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",42),e.TgZ(1,"div",43),e.TgZ(2,"mat-select",44),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",45),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onOpenClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",45),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onBumpFee(s)}),e._uU(7,"Bump Fee"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function vl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function wl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function ql(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Sl(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,vl,2,0,"p",47),e.YNc(2,wl,2,0,"p",47),e.YNc(3,ql,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Te=function(n){return{"display-none":n}};function Ll(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingOpenChannels&&(null==t.pendingOpenChannels?null:t.pendingOpenChannels.data)&&(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)>0))}}function kl(n,i){1&n&&e._UZ(0,"mat-header-row")}function Fl(n,i){1&n&&e._UZ(0,"mat-row",49)}function Ul(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function Nl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",37),e._uU(1," Peer "),e.qZA())}function Ol(n,i){if(1&n&&(e.TgZ(0,"mat-cell",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function Rl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Recovered Balance (Sats) "),e.qZA())}function Il(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.recovered_balance))}}function Ml(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Limbo Balance (Sats) "),e.qZA())}function Dl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.limbo_balance))}}function Pl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Capacity (Sats) "),e.qZA())}function Jl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function El(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function Ql(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",52),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onForceClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Yl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function Hl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function Bl(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Vl(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,Yl,2,0,"p",47),e.YNc(2,Hl,2,0,"p",47),e.YNc(3,Bl,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function Gl(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingForceClosingChannels&&(null==t.pendingForceClosingChannels?null:t.pendingForceClosingChannels.data)&&(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)>0))}}function zl(n,i){1&n&&e._UZ(0,"mat-header-row")}function Wl(n,i){1&n&&e._UZ(0,"mat-row",49)}function Xl(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function $l(n,i){1&n&&(e.TgZ(0,"mat-header-cell",53),e._uU(1," Peer "),e.qZA())}function jl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",54),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function Kl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Local Balance (Sats) "),e.qZA())}function er(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.local_balance))}}function tr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Remote Balance (Sats) "),e.qZA())}function nr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.remote_balance))}}function ar(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Capacity (Sats) "),e.qZA())}function ir(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function or(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function sr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",55),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function lr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function rr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function cr(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function ur(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,lr,2,0,"p",47),e.YNc(2,rr,2,0,"p",47),e.YNc(3,cr,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function pr(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingClosingChannels&&(null==t.pendingClosingChannels?null:t.pendingClosingChannels.data)&&(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)>0))}}function mr(n,i){1&n&&e._UZ(0,"mat-header-row")}function _r(n,i){1&n&&e._UZ(0,"mat-row",49)}function dr(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function hr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",53),e._uU(1," Peer "),e.qZA())}function gr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",54),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function fr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Limbo Balance (Sats) "),e.qZA())}function Cr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij("",e.lcZ(2,1,t.limbo_balance)," ")}}function xr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Local Balance (Sats) "),e.qZA())}function Zr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.local_balance))}}function yr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Remote Balance (Sats) "),e.qZA())}function Tr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.remote_balance))}}function br(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Capacity (Sats) "),e.qZA())}function Ar(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function vr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function wr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",56),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onWaitClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function qr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function Sr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function Lr(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function kr(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,qr,2,0,"p",47),e.YNc(2,Sr,2,0,"p",47),e.YNc(3,Lr,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Fr=function(n){return{"py-0":!0,"display-none":n}};function Ur(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Fr,t.pendingWaitClosingChannels&&(null==t.pendingWaitClosingChannels?null:t.pendingWaitClosingChannels.data)&&(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)>0))}}function Nr(n,i){1&n&&e._UZ(0,"mat-header-row")}function Or(n,i){1&n&&e._UZ(0,"mat-row",49)}const _e=function(n){return{"error-border bordered-box":n,"bordered-box":!0}},Rr=function(){return["no_pending_open"]},Ir=function(){return["no_pending_force_closing"]},Mr=function(){return["no_pending_closing"]},Dr=function(){return["no_pending_wait_closing"]};let Pr=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.commonService=o,this.selNode={},this.selectedFilter="",this.information={},this.pendingChannels={},this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.pendingOpenChannelsLength=0,this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.pendingForceClosingChannelsLength=0,this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.pendingClosingChannelsLength=0,this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"],this.pendingWaitClosingChannelsLength=0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.displayedOpenColumns=["remote_alias","actions"],this.displayedForceClosingColumns=["remote_alias","actions"],this.displayedClosingColumns=["remote_alias","actions"],this.displayedWaitClosingColumns=["remote_alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.displayedOpenColumns=["remote_alias","commit_fee","actions"],this.displayedForceClosingColumns=["remote_alias","limbo_balance","actions"],this.displayedClosingColumns=["remote_alias","remote_balance","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","actions"]):(this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.pendingChannels=t.pendingChannels,this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),this.logger.info(t)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(t){const a=JSON.parse(JSON.stringify(t,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:100,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"confirmation_height",value:s.confirmation_height,title:"Confirmation Height",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}],[{key:"fee_per_kw",value:s.fee_per_kw,title:"Fee/KW",width:25,type:l.Gi.NUMBER},{key:"commit_weight",value:s.commit_weight,title:"Commit Weight",width:25,type:l.Gi.NUMBER},{key:"commit_fee",value:s.commit_fee,title:"Commit Fee",width:50,type:l.Gi.NUMBER}]]}}}))}onBumpFee(t){this.store.dispatch((0,v.qR)({payload:{data:{pendingChannel:t,component:ml}}}))}onForceClosingClick(t){const a=JSON.parse(JSON.stringify(t,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:s.closing_txid,title:"Closing Transaction ID",width:100,type:l.Gi.STRING}],[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"limbo_balance",value:s.limbo_balance,title:"Limbo Balance",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}],[{key:"maturity_height",value:s.maturity_height,title:"Maturity Height",width:25,type:l.Gi.NUMBER},{key:"blocks_til_maturity",value:s.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:l.Gi.NUMBER},{key:"recovered_balance",value:s.recovered_balance,title:"Recovered Balance",width:50,type:l.Gi.NUMBER}]]}}}))}onClosingClick(t){const a=JSON.parse(JSON.stringify(t,["closing_txid"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:s.closing_txid,title:"Closing Transaction ID",width:50,type:l.Gi.STRING}],[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:50,type:l.Gi.NUMBER}]]}}}))}onWaitClosingClick(t){const a=JSON.parse(JSON.stringify(t,["limbo_balance"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s=JSON.parse(JSON.stringify(t.commitments,["local_txid"],2)),u={};Object.assign(u,a,o,s),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:u.local_txid,title:"Transaction ID",width:100,type:l.Gi.STRING}],[{key:"channel_point",value:u.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:u.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:u.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:u.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"limbo_balance",value:u.limbo_balance,title:"Limbo Balance",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:u.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:u.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}]]}}}))}loadOpenChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingOpenChannelsLength=t.length?t.length:0,this.pendingOpenChannels=new r.by([...t]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingOpenChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingForceClosingChannelsLength=t.length?t.length:0,this.pendingForceClosingChannels=new r.by([...t]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingForceClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingClosingChannelsLength=t.length?t.length:0,this.pendingClosingChannels=new r.by([...t]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingWaitClosingChannelsLength=t.length?t.length:0,this.pendingWaitClosingChannels=new r.by([...t]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingWaitClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingWaitClosingChannels)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-pending-table"]],viewQuery:function(t,a){if(1&t&&e.Gf(A.YE,5),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first)}},decls:121,vars:44,consts:[["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngStyle",4,"matCellDef"],["matColumnDef","commit_fee"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","commit_weight"],["matColumnDef","capacity"],["matColumnDef","actions"],["fxLayoutAlign","end center","class","pl-3 pr-4",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],[4,"matHeaderRowDef"],["fxLayoutAlign","stretch stretch",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","recovered_balance"],["matColumnDef","limbo_balance"],["fxLayoutAlign","end center","class","pl-4 pr-3",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","pl-4",4,"matCellDef"],["matColumnDef","no_pending_force_closing"],["class","pl-2","mat-sort-header","",4,"matHeaderCellDef"],["class","pl-2",3,"ngStyle",4,"matCellDef"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-sort-header",""],[3,"ngStyle"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"pl-3","pr-4"],["fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["fxLayoutAlign","stretch stretch"],["fxLayoutAlign","end center",1,"pl-4","pr-3"],["fxLayoutAlign","end center",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","2",3,"click"],["mat-sort-header","",1,"pl-2"],[1,"pl-2",3,"ngStyle"],["mat-stroked-button","","color","primary","type","button","tabindex","3",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"span",1),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"mat-accordion",2),e.YNc(5,_l,1,0,"mat-progress-bar",3),e.TgZ(6,"mat-expansion-panel",4),e.TgZ(7,"mat-expansion-panel-header"),e.TgZ(8,"mat-panel-title"),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"div",5),e.YNc(11,dl,1,0,"mat-progress-bar",3),e.TgZ(12,"table",6,7),e.ynx(14,8),e.YNc(15,hl,2,0,"mat-header-cell",9),e.YNc(16,gl,2,4,"mat-cell",10),e.BQk(),e.ynx(17,11),e.YNc(18,fl,2,0,"mat-header-cell",12),e.YNc(19,Cl,3,3,"mat-cell",13),e.BQk(),e.ynx(20,14),e.YNc(21,xl,2,0,"mat-header-cell",12),e.YNc(22,Zl,3,3,"mat-cell",13),e.BQk(),e.ynx(23,15),e.YNc(24,yl,2,0,"mat-header-cell",12),e.YNc(25,Tl,3,3,"mat-cell",13),e.BQk(),e.ynx(26,16),e.YNc(27,bl,2,0,"mat-header-cell",17),e.YNc(28,Al,8,0,"mat-cell",18),e.BQk(),e.ynx(29,19),e.YNc(30,Sl,4,3,"td",20),e.BQk(),e.YNc(31,Ll,1,3,"tr",21),e.YNc(32,kl,1,0,"mat-header-row",22),e.YNc(33,Fl,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(34,Ul,1,0,"mat-progress-bar",3),e.TgZ(35,"mat-expansion-panel",4),e.TgZ(36,"mat-expansion-panel-header"),e.TgZ(37,"mat-panel-title"),e._uU(38),e.qZA(),e.qZA(),e.TgZ(39,"div",5),e.TgZ(40,"table",24,7),e.ynx(42,8),e.YNc(43,Nl,2,0,"mat-header-cell",9),e.YNc(44,Ol,2,4,"mat-cell",10),e.BQk(),e.ynx(45,25),e.YNc(46,Rl,2,0,"mat-header-cell",12),e.YNc(47,Il,3,3,"mat-cell",13),e.BQk(),e.ynx(48,26),e.YNc(49,Ml,2,0,"mat-header-cell",12),e.YNc(50,Dl,3,3,"mat-cell",13),e.BQk(),e.ynx(51,15),e.YNc(52,Pl,2,0,"mat-header-cell",12),e.YNc(53,Jl,3,3,"mat-cell",13),e.BQk(),e.ynx(54,16),e.YNc(55,El,2,0,"mat-header-cell",27),e.YNc(56,Ql,3,0,"mat-cell",28),e.BQk(),e.ynx(57,29),e.YNc(58,Vl,4,3,"td",20),e.BQk(),e.YNc(59,Gl,1,3,"tr",21),e.YNc(60,zl,1,0,"mat-header-row",22),e.YNc(61,Wl,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(62,Xl,1,0,"mat-progress-bar",3),e.TgZ(63,"mat-expansion-panel",4),e.TgZ(64,"mat-expansion-panel-header"),e.TgZ(65,"mat-panel-title"),e._uU(66),e.qZA(),e.qZA(),e.TgZ(67,"div",5),e.TgZ(68,"table",24,7),e.ynx(70,8),e.YNc(71,$l,2,0,"mat-header-cell",30),e.YNc(72,jl,2,4,"mat-cell",31),e.BQk(),e.ynx(73,32),e.YNc(74,Kl,2,0,"mat-header-cell",12),e.YNc(75,er,3,3,"mat-cell",13),e.BQk(),e.ynx(76,33),e.YNc(77,tr,2,0,"mat-header-cell",12),e.YNc(78,nr,3,3,"mat-cell",13),e.BQk(),e.ynx(79,15),e.YNc(80,ar,2,0,"mat-header-cell",12),e.YNc(81,ir,3,3,"mat-cell",13),e.BQk(),e.ynx(82,16),e.YNc(83,or,2,0,"mat-header-cell",27),e.YNc(84,sr,3,0,"mat-cell",28),e.BQk(),e.ynx(85,34),e.YNc(86,ur,4,3,"td",20),e.BQk(),e.YNc(87,pr,1,3,"tr",21),e.YNc(88,mr,1,0,"mat-header-row",22),e.YNc(89,_r,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(90,dr,1,0,"mat-progress-bar",3),e.TgZ(91,"mat-expansion-panel",4),e.TgZ(92,"mat-expansion-panel-header"),e.TgZ(93,"mat-panel-title"),e._uU(94),e.qZA(),e.qZA(),e.TgZ(95,"div",5),e.TgZ(96,"table",24,7),e.ynx(98,8),e.YNc(99,hr,2,0,"mat-header-cell",30),e.YNc(100,gr,2,4,"mat-cell",31),e.BQk(),e.ynx(101,26),e.YNc(102,fr,2,0,"mat-header-cell",12),e.YNc(103,Cr,3,3,"mat-cell",13),e.BQk(),e.ynx(104,32),e.YNc(105,xr,2,0,"mat-header-cell",12),e.YNc(106,Zr,3,3,"mat-cell",13),e.BQk(),e.ynx(107,33),e.YNc(108,yr,2,0,"mat-header-cell",12),e.YNc(109,Tr,3,3,"mat-cell",13),e.BQk(),e.ynx(110,15),e.YNc(111,br,2,0,"mat-header-cell",12),e.YNc(112,Ar,3,3,"mat-cell",13),e.BQk(),e.ynx(113,16),e.YNc(114,vr,2,0,"mat-header-cell",27),e.YNc(115,wr,3,0,"mat-cell",28),e.BQk(),e.ynx(116,35),e.YNc(117,kr,4,3,"td",20),e.BQk(),e.YNc(118,Ur,1,3,"tr",21),e.YNc(119,Nr,1,0,"mat-header-row",22),e.YNc(120,Or,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.hij("Total Limbo Balance: ",e.lcZ(3,30,a.pendingChannels.total_limbo_balance)," Sats"),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Open (",a.pendingOpenChannelsLength,")"),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.pendingOpenChannels)("ngClass",e.VKq(32,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(34,Rr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedOpenColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedOpenColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Force Closing (",a.pendingForceClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingForceClosingChannels)("ngClass",e.VKq(35,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(37,Ir)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedForceClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedForceClosingColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Closing (",a.pendingClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingClosingChannels)("ngClass",e.VKq(38,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(40,Mr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedClosingColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Waiting Close (",a.pendingWaitClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingWaitClosingChannels)("ngClass",e.VKq(41,_e,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(43,Dr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedWaitClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedWaitClosingColumns))},directives:[_.xw,H.pp,p.O5,H.ib,H.yz,H.yK,_.Wh,_.yH,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk,L.lW],pipes:[p.JJ],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}),n})();function Jr(n,i){1&n&&e._UZ(0,"mat-progress-bar",27)}function Er(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1," Close Type "),e.qZA())}function Qr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"div",30),e.TgZ(2,"mat-icon",31),e._uU(3,"info_outline"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.xp6(2),e.Q6J("matTooltip",a.channelClosureType[t.close_type].tooltip),e.xp6(2),e.hij(" ",a.channelClosureType[t.close_type].name," ")}}function Yr(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1," Peer "),e.qZA())}const Hr=function(n){return{"max-width":n}};function Br(n,i){if(1&n&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Hr,a.screenSize===a.screenSizeEnum.XS?"10rem":"20rem")),e.xp6(1),e.hij(" ",t.remote_alias," ")}}function Vr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Capacity "),e.qZA())}function Gr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.capacity)," ")}}function zr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Close Height "),e.qZA())}function Wr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.close_height)," ")}}function Xr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Settled Balance "),e.qZA())}function $r(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.settled_balance)," ")}}function jr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",35),e.TgZ(1,"div",36),e.TgZ(2,"mat-select",37),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Kr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",39),e.TgZ(1,"span",34),e.TgZ(2,"button",40),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onClosedChannelClick(u,o)}),e._uU(3,"View Info"),e.qZA(),e.qZA(),e.qZA()}}function ec(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No closed channel available."),e.qZA())}function tc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting closed channels..."),e.qZA())}function nc(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function ac(n,i){if(1&n&&(e.TgZ(0,"td",41),e.YNc(1,ec,2,0,"p",42),e.YNc(2,tc,2,0,"p",42),e.YNc(3,nc,2,1,"p",42),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const ic=function(n){return{"display-none":n}};function oc(n,i){if(1&n&&e._UZ(0,"tr",43),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,ic,(null==t.closedChannels?null:t.closedChannels.data)&&(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)>0))}}function sc(n,i){1&n&&e._UZ(0,"tr",44)}function lc(n,i){1&n&&e._UZ(0,"tr",45)}const rc=function(n){return{"error-border":n,"overflow-auto":!0}},cc=function(){return["no_closed_channel"]};let uc=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.commonService=o,this.channelClosureType=l.HW,this.faHistory=Z.qO$,this.displayedColumns=[],this.closedChannelsData=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unsub=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["close_type","remote_alias","settled_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["close_type","remote_alias","capacity","close_height","settled_balance","actions"])}ngOnInit(){this.store.select(C.P2).pipe((0,d.R)(this.unsub[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.closedChannelsData=t.closedChannels,this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(t)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(){this.closedChannels.filter=this.selFilter.trim().toLowerCase()}onClosedChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[t.close_type].name,title:"Close Type",width:30,type:l.Gi.STRING},{key:"settled_balance",value:t.settled_balance,title:"Settled Balance",width:30,type:l.Gi.NUMBER},{key:"time_locked_balance",value:t.time_locked_balance,title:"Time Locked Balance",width:40,type:l.Gi.NUMBER}],[{key:"chan_id",value:t.chan_id,title:"Channel ID",width:30},{key:"capacity",value:t.capacity,title:"Capacity",width:30,type:l.Gi.NUMBER},{key:"close_height",value:t.close_height,title:"Close Height",width:40,type:l.Gi.NUMBER}],[{key:"remote_alias",value:t.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:t.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:t.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:t.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:l.Gi.STRING}]]}}}))}loadClosedChannelsTable(t){this.closedChannels=new r.by([...t]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.closedChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.closedChannels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unsub.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-closed-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:33,vars:14,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row","fxLayoutAlign","start center"],[1,"info-icon","info-icon-text",3,"matTooltip"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,Jr,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Er,2,0,"th",10),e.YNc(11,Qr,5,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Yr,2,0,"th",10),e.YNc(14,Br,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Vr,2,0,"th",15),e.YNc(17,Gr,4,3,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,zr,2,0,"th",15),e.YNc(20,Wr,4,3,"td",11),e.BQk(),e.ynx(21,17),e.YNc(22,Xr,2,0,"th",15),e.YNc(23,$r,4,3,"td",11),e.BQk(),e.ynx(24,18),e.YNc(25,jr,6,0,"th",19),e.YNc(26,Kr,4,0,"td",20),e.BQk(),e.ynx(27,21),e.YNc(28,ac,4,3,"td",22),e.BQk(),e.YNc(29,oc,1,3,"tr",23),e.YNc(30,sc,1,0,"tr",24),e.YNc(31,lc,1,0,"tr",25),e.qZA(),e.qZA(),e._UZ(32,"mat-paginator",26),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.closedChannels)("ngClass",e.VKq(11,rc,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(13,cc)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,K.Hw,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-close_type[_ngcontent-%COMP%]{flex:0 0 16%;min-width:5rem}.mat-column-remote_alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function pc(n,i){1&n&&e._UZ(0,"mat-progress-bar",27)}function mc(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1,"Amount (Sats)"),e.qZA())}function _c(n,i){if(1&n&&(e.TgZ(0,"span",33),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,null==t?null:t.amount)," ")}}function dc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,_c,3,3,"span",32),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function hc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",30),e._uU(2),e.qZA(),e.YNc(3,dc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" Active HTLCs: ",null==t||null==t.pending_htlcs?null:t.pending_htlcs.length," "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function gc(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1,"Alias/Incoming"),e.qZA())}function fc(n,i){if(1&n&&(e.TgZ(0,"span",30),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null!=t&&t.incoming?"Yes":"No"," ")}}function Cc(n,i){if(1&n&&(e.ynx(0),e.YNc(1,fc,2,1,"span",34),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function xc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",30),e._uU(2),e.qZA(),e.YNc(3,Cc,2,1,"ng-container",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(null==t?null:t.remote_alias),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Zc(n,i){1&n&&(e.TgZ(0,"th",35),e.TgZ(1,"span",36),e._uU(2,"Expiration Height"),e.qZA(),e.qZA())}function yc(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t?null:t.expiration_height,"1.0-0")," ")}}function Tc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,yc,3,4,"span",37),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function bc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",36),e._uU(2),e.qZA(),e.YNc(3,Tc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(" "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Ac(n,i){1&n&&(e.TgZ(0,"th",38),e.TgZ(1,"span",36),e._uU(2,"Hash Lock"),e.qZA(),e.qZA())}function vc(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.hash_lock," ")}}function wc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,vc,2,1,"span",37),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function qc(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",36),e._uU(2),e.qZA(),e.YNc(3,wc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(" "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Sc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",40),e.TgZ(1,"div",41),e.TgZ(2,"mat-select",42),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Lc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",45),e.TgZ(1,"button",48),e.NdJ("click",function(){const s=e.CHM(t).$implicit,u=e.oxw(2).$implicit;return e.oxw().onHTLCClick(s,u)}),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=i.index;e.xp6(2),e.hij("View ",t+1,"")}}function kc(n,i){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Lc,3,1,"div",47),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function Fc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"span",45),e.TgZ(2,"button",46),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return s.is_expanded=!s.is_expanded}),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,kc,2,1,"div",31),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(3),e.Oqu(t.is_expanded?"Hide":"Show"),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Uc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No active htlc available."),e.qZA())}function Nc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting active htlcs..."),e.qZA())}function Oc(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Rc(n,i){if(1&n&&(e.TgZ(0,"td",49),e.YNc(1,Uc,2,0,"p",31),e.YNc(2,Nc,2,0,"p",31),e.YNc(3,Oc,2,1,"p",31),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.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.COMPLETED),e.xp6(1),e.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),e.xp6(1),e.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 Ic=function(n){return{"display-none":n}};function Mc(n,i){if(1&n&&e._UZ(0,"tr",50),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Ic,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Dc(n,i){1&n&&e._UZ(0,"tr",51)}function Pc(n,i){1&n&&e._UZ(0,"tr",52)}const Jc=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Ec=function(){return["no_channel"]};let Qc=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","expiration_height","actions"]):(this.flgSticky=!0,this.displayedColumns=["amount","incoming","expiration_height","hash_lock","actions"])}ngOnInit(){this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsJSONArr=t.channels.filter(a=>a.pending_htlcs&&a.pending_htlcs.length>0)||[],this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:a.remote_alias,title:"Alias",width:100,type:l.Gi.STRING}],[{key:"amount",value:t.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER},{key:"incoming",value:t.incoming?"Yes":"No",title:"Incoming",width:50,type:l.Gi.STRING}],[{key:"expiration_height",value:t.expiration_height,title:"Expiration Height",width:50,type:l.Gi.NUMBER},{key:"hash_lock",value:t.hash_lock,title:"Hash Lock",width:50,type:l.Gi.STRING}]]}}}))}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!0,component:xe}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadHTLCsTable(t){this.channels=new r.by(t?[...t]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>{switch(o){case"amount":return this.commonService.sortByKey(a.pending_htlcs,o,"number",this.sort.direction),a.pending_htlcs&&a.pending_htlcs.length?a.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(a.pending_htlcs,o,"boolean",this.sort.direction),a.remote_alias?a.remote_alias:a.remote_pubkey?a.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(a.pending_htlcs,o,"number",this.sort.direction),a;default:return a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null}},this.channels.paginator=this.paginator,this.channels.filterPredicate=(a,o)=>((a.remote_alias?a.remote_alias.toLowerCase():"")+a.pending_htlcs.map(u=>JSON.stringify(u)+(u.incoming?"yes":"no"))).includes(o),this.applyFilter()}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){return JSON.parse(JSON.stringify(this.channels.data)).reduce((o,s)=>o.concat(s.pending_htlcs?s.pending_htlcs:s),[])}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("HTLCs")}])],decls:30,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","expiration_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"px-2"],["fxLayoutAlign","end center"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,pc,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,mc,2,0,"th",10),e.YNc(11,hc,4,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,gc,2,0,"th",10),e.YNc(14,xc,4,2,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,Zc,3,0,"th",14),e.YNc(17,bc,4,2,"td",11),e.BQk(),e.ynx(18,15),e.YNc(19,Ac,3,0,"th",16),e.YNc(20,qc,4,2,"td",17),e.BQk(),e.ynx(21,18),e.YNc(22,Sc,6,0,"th",19),e.YNc(23,Fc,5,2,"td",20),e.BQk(),e.ynx(24,21),e.YNc(25,Rc,4,3,"td",22),e.BQk(),e.YNc(26,Mc,1,3,"tr",23),e.YNc(27,Dc,1,0,"tr",24),e.YNc(28,Pc,1,0,"tr",25),e.qZA(),e.qZA(),e._UZ(29,"mat-paginator",26),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(11,Jc,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(13,Ec)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.sg,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-amount[_ngcontent-%COMP%], .mat-column-expiration_height[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-incoming[_ngcontent-%COMP%], .mat-column-hash_lock[_ngcontent-%COMP%]{flex:0 0 25%;width:25%;text-overflow:ellipsis}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}"]}),n})();function Yc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Wallet password is required."),e.qZA())}let Hc=(()=>{class n{constructor(t){this.store=t,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch((0,b.xG)({payload:{pwd:window.btoa(this.walletPassword)}}))}resetData(){this.walletPassword=""}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-unlock-wallet"]],decls:12,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","placeholder","Password","name","walletPassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(s){return a.walletPassword=s}),e.qZA(),e.TgZ(4,"mat-hint"),e._uU(5,"Enter Wallet Password"),e.qZA(),e.YNc(6,Yc,2,0,"mat-error",4),e.qZA(),e.TgZ(7,"div",5),e.TgZ(8,"button",6),e.NdJ("click",function(){return a.resetData()}),e._uU(9,"Clear Field"),e.qZA(),e.TgZ(10,"button",7),e.NdJ("click",function(){return a.onUnlockWallet()}),e._uU(11,"Unlock Wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.walletPassword),e.xp6(3),e.Q6J("ngIf",!a.walletPassword))},directives:[_.xw,c._Y,c.JL,c.F,_.Wh,f.KE,_.yH,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,f.bx,p.O5,L.lW,f.TO],styles:[""]}),n})();var Bc=h(1555);function Vc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",5),e._uU(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"button",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.proceed=!1,o.warnRes=!0}),e._uU(6,"Do Not Proceed"),e.qZA(),e.TgZ(7,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.proceed=!0,o.warnRes=!0}),e._uU(8,"Proceed"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Gc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e._uU(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),e.qZA(),e.TgZ(3,"div",6),e.TgZ(4,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().warnRes=!1}),e._uU(5,"Go Back"),e.qZA(),e.qZA(),e.qZA()}}function zc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Wc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password must be at least 8 characters in length."),e.qZA())}function Xc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Confirm password is required."),e.qZA())}function $c(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Confirm password must be at least 8 characters in length."),e.qZA())}function jc(n,i){1&n&&(e.TgZ(0,"div",41),e.TgZ(1,"mat-icon",42),e._uU(2,"cancel"),e.qZA(),e._uU(3,"Passwords do not match. "),e.qZA())}function Kc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Cipher seed is required."),e.qZA())}function e1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),e.qZA())}function t1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Passphrase is required."),e.qZA())}function n1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"vpn_key"),e.qZA())}function a1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"swap_calls"),e.qZA())}function i1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"fingerprint"),e.qZA())}function o1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-vertical-stepper",12,13),e.TgZ(2,"mat-step",14),e.TgZ(3,"form",15),e.TgZ(4,"mat-form-field",16),e._UZ(5,"input",17),e.TgZ(6,"mat-hint"),e._uU(7,"Enter Wallet Password"),e.qZA(),e.YNc(8,zc,2,0,"mat-error",1),e.YNc(9,Wc,2,0,"mat-error",1),e.qZA(),e.TgZ(10,"mat-form-field",16),e._UZ(11,"input",18),e.TgZ(12,"mat-hint"),e._uU(13,"Confirm Wallet Password"),e.qZA(),e.YNc(14,Xc,2,0,"mat-error",1),e.YNc(15,$c,2,0,"mat-error",1),e.qZA(),e.YNc(16,jc,4,0,"div",19),e.TgZ(17,"div",20),e.TgZ(18,"button",21),e._uU(19,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"mat-step",22),e.TgZ(21,"form",23),e.TgZ(22,"div",24),e.TgZ(23,"mat-slide-toggle",25),e._uU(24,"Existing Cipher"),e.qZA(),e.TgZ(25,"mat-form-field",26),e._UZ(26,"input",27),e.TgZ(27,"mat-hint"),e._uU(28,"Cipher Seed"),e.qZA(),e.YNc(29,Kc,2,0,"mat-error",1),e.YNc(30,e1,2,0,"mat-error",1),e.qZA(),e.qZA(),e.TgZ(31,"div",28),e.TgZ(32,"button",29),e._uU(33,"Back"),e.qZA(),e.TgZ(34,"button",30),e._uU(35,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"mat-step",31),e.TgZ(37,"form",23),e.TgZ(38,"div",24),e.TgZ(39,"mat-slide-toggle",32),e._uU(40,"Existing Passphrase"),e.qZA(),e.TgZ(41,"mat-form-field",33),e._UZ(42,"input",34),e.TgZ(43,"mat-hint"),e._uU(44,"Enter Passphrase"),e.qZA(),e.YNc(45,t1,2,0,"mat-error",1),e.qZA(),e.qZA(),e.TgZ(46,"div",28),e.TgZ(47,"button",35),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(48,"Clear"),e.qZA(),e.TgZ(49,"button",36),e._uU(50,"Back"),e.qZA(),e.TgZ(51,"button",37),e.NdJ("click",function(){return e.CHM(t),e.oxw().onInitWallet()}),e._uU(52,"Initialize Wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(53,n1,2,0,"ng-template",38),e.YNc(54,a1,2,0,"ng-template",39),e.YNc(55,i1,2,0,"ng-template",40),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",t.passwordFormGroup),e.xp6(1),e.Q6J("formGroup",t.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletPassword.errors?null:t.passwordFormGroup.controls.initWalletPassword.errors.required),e.xp6(1),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletPassword.errors?null:t.passwordFormGroup.controls.initWalletPassword.errors.minlength),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:t.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),e.xp6(1),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:t.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),e.xp6(1),e.Q6J("ngIf",(null==t.passwordFormGroup.errors?null:t.passwordFormGroup.errors.unmatchedPasswords)&&(t.passwordFormGroup.controls.initWalletPassword.touched||t.passwordFormGroup.controls.initWalletPassword.dirty)&&(t.passwordFormGroup.controls.initWalletConfirmPassword.touched||t.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),e.xp6(4),e.Q6J("stepControl",t.cipherFormGroup),e.xp6(1),e.Q6J("formGroup",t.cipherFormGroup),e.xp6(2),e.Q6J("labelPosition","before"),e.xp6(6),e.Q6J("ngIf",null==t.cipherFormGroup.controls.cipherSeed.errors?null:t.cipherFormGroup.controls.cipherSeed.errors.required),e.xp6(1),e.Q6J("ngIf",!(null!=t.cipherFormGroup.controls.cipherSeed.errors&&t.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==t.cipherFormGroup.controls.cipherSeed.errors?null:t.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),e.xp6(6),e.Q6J("stepControl",t.passphraseFormGroup),e.xp6(1),e.Q6J("formGroup",t.passphraseFormGroup),e.xp6(2),e.Q6J("labelPosition","before"),e.xp6(6),e.Q6J("ngIf",null==t.passphraseFormGroup.controls.passphrase.errors?null:t.passphraseFormGroup.controls.passphrase.errors.required)}}function s1(n,i){if(1&n&&(e.TgZ(0,"span",48),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function l1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",43),e._uU(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),e.qZA(),e.TgZ(4,"div",44),e.YNc(5,s1,2,1,"span",45),e.qZA(),e.TgZ(6,"div",46),e._uU(7,"Wallet initialization is done."),e.qZA(),e.TgZ(8,"div",46),e._uU(9,"The node will be usable only after LND has synced completely with the network."),e.qZA(),e.TgZ(10,"div",46),e._uU(11,"Click continue only after writing down the seed."),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"button",47),e.NdJ("click",function(){return e.CHM(t),e.oxw().onGoToHome()}),e._uU(14,"Go To Home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(5),e.Q6J("ngForOf",t.genSeedResponse)}}function r1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",46),e._uU(3,"Something went wrong! Unable to initialize wallet!"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"button",49),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(6,"Restart"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function c1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",46),e._uU(3,"Wallet recovery is done."),e.qZA(),e.TgZ(4,"div",46),e._uU(5,"The node will be usable only after LND has synced completely with the network."),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"button",50),e.NdJ("click",function(){return e.CHM(t),e.oxw().onGoToHome()}),e._uU(8,"Go To Home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function u1(n){const i=n.get("initWalletPassword"),t=n.get("initWalletConfirmPassword");return i&&t&&i.value!==t.value?{unmatchedPasswords:!0}:null}function p1(n){const i=n.value.toString().trim().split(",")||[];return i&&24!==i.length?{invalidCipher:!0}:null}let m1=(()=>{class n{constructor(t,a,o){this.store=t,this.formBuilder=a,this.lndEffects=o,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[c.kI.required,c.kI.minLength(8)]],initWalletConfirmPassword:["",[c.kI.required,c.kI.minLength(8)]]},{validators:u1}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[p1]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,d.R)(this.unsubs[0])).subscribe(t=>{t?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe((0,d.R)(this.unsubs[1])).subscribe(t=>{t?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe((0,d.R)(this.unsubs[2])).subscribe(t=>{this.initWalletResponse=t}),this.lndEffects.genSeedResponse.pipe((0,d.R)(this.unsubs[3])).subscribe(t=>{this.genSeedResponse=t,this.store.dispatch((0,b.y2)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.cipherFormGroup.controls.existingCipher.value){const t=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch((0,b.y2)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:t,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:t}}))}else this.store.dispatch((0,b.fu)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{payload:""}))}onGoToHome(){setTimeout(()=>{this.store.dispatch((0,v.tw)()),this.store.dispatch((0,b.sQ)({payload:{loadPage:"HOME"}}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(c.qu),e.Y36(ee.l))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-initialize-wallet"]],viewQuery:function(t,a){if(1&t&&e.Gf(B.Vq,5),2&t){let o;e.iGM(o=e.CRH())&&(a.stepper=o.first)}},features:[e._Bn([{provide:Bc.gx,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["stepper",""],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","placeholder","Confirm Password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","placeholder","Comma separated array of 24 words cipher seed","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Passphrase","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Vc,9,0,"div",1),e.YNc(2,Gc,6,0,"div",2),e.YNc(3,o1,56,17,"mat-vertical-stepper",3),e.YNc(4,l1,15,1,"div",1),e.YNc(5,r1,7,0,"div",1),e.YNc(6,c1,9,0,"div",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.insecureLND&&!a.warnRes),e.xp6(1),e.Q6J("ngIf",a.warnRes&&!a.proceed),e.xp6(1),e.Q6J("ngIf",(!a.insecureLND||a.warnRes&&a.proceed)&&a.genSeedResponse.length<=0&&""===a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length>0&&""!==a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length>0&&""===a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length<=0&&""!==a.initWalletResponse))},directives:[_.xw,p.O5,c._Y,c.JL,c.F,_.Wh,_.yH,L.lW,B.Vq,B.C0,c.sg,f.KE,I.Nt,c.Fj,c.JJ,c.u,c.Q7,f.bx,B.Ic,ue.Rr,B.fd,B.z9,f.TO,K.Hw,p.sg],styles:[""]}),n})(),_1=(()=>{class n{constructor(){this.faWallet=Z.X5K}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-wallet"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Unlock"],["label","Initialize"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Wallet"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"mat-tab-group"),e.TgZ(8,"mat-tab",5),e._UZ(9,"rtl-unlock-wallet"),e.qZA(),e.TgZ(10,"mat-tab",6),e._UZ(11,"rtl-initialize-wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faWallet))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.SP,D.uX,Hc,m1],styles:[""]}),n})();var d1=h(1365);function h1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let g1=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,this.faExchangeAlt=Z.Ssp,this.faChartPie=Z.OS1,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"lookuptransactions",name:"Lookup"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1]),(0,d1.M)(this.store.select(C.$k))).subscribe(([a,o])=>{this.currencyUnits=o.currencyUnits,this.balances=o.userPersona===l.ol.OPERATOR?[{title:"Local Capacity",dataValue:a.lightningBalance.local,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:a.lightningBalance.remote,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:a.lightningBalance.local,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:a.lightningBalance.remote,tooltip:"Amount you can receive"}],this.logger.info(a)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Lightning Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"Lightning Transactions"),e.qZA(),e.qZA(),e.TgZ(12,"div",7),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"nav",8),e.YNc(16,h1,2,3,"div",9),e.qZA(),e.TgZ(17,"div",10),e._UZ(18,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faExchangeAlt),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function f1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let C1=(()=>{class n{constructor(t){this.router=t,this.faSearch=Z.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-graph"]],decls:11,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Graph Lookups"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,f1,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faSearch),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function x1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Destination pubkey is required."),e.qZA())}function Z1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function y1(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function T1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Hop "),e.qZA())}function b1(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.hop_sequence," ")}}function A1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Peer "),e.qZA())}const v1=function(n){return{"max-width":n}};function w1(n,i){if(1&n&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,v1,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.hij(" ",null==t?null:t.pubkey_alias," ")}}function q1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Channel "),e.qZA())}function S1(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.chan_id," ")}}function L1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Capacity (Sats) "),e.qZA())}function k1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.chan_capacity),"")}}function F1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Amount To Fwd (Sats) "),e.qZA())}function U1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.amt_to_forward)," ")}}function N1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Fee (mSats) "),e.qZA())}function O1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.fee_msat)," ")}}function R1(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function I1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"button",45),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onHopClick(u,o)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function M1(n,i){1&n&&e._UZ(0,"tr",46)}function D1(n,i){1&n&&e._UZ(0,"tr",47)}const P1=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}};let J1=(()=>{class n{constructor(t,a,o){this.store=t,this.lndEffects=a,this.commonService=o,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=Z.FpQ,this.faExclamationTriangle=Z.eHv,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["pubkey_alias","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","fee_msat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"])}ngOnInit(){this.lndEffects.setQueryRoutes.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.qrHops=new r.by([]),t.routes&&t.routes.length&&t.routes.length>0&&t.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new r.by([...t.routes[0].hops]),this.qrHops.data=t.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new r.by([]),this.flgLoading[0]=!0,this.store.dispatch((0,b.WO)({payload:{destPubkey:this.destinationPubkey,amount:this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:t.hop_sequence,title:"Sequence",width:33,type:l.Gi.NUMBER},{key:"amt_to_forward",value:t.amt_to_forward,title:"Amount To Forward (Sats)",width:33,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:34,type:l.Gi.NUMBER}],[{key:"chan_capacity",value:t.chan_capacity,title:"Channel Capacity (Sats)",width:50,type:l.Gi.NUMBER},{key:"expiry",value:t.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER}],[{key:"pubkey_alias",value:t.pubkey_alias,title:"Peer Alias",width:50,type:l.Gi.STRING},{key:"chan_id",value:t.chan_id,title:"Channel ID",width:50,type:l.Gi.STRING}],[{key:"pub_key",value:t.pub_key,title:"Peer Pubkey",width:100,type:l.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-query-routes"]],viewQuery:function(t,a){if(1&t&&e.Gf(A.YE,5),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first)}},decls:51,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","chan_id"],["matColumnDef","chan_capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,a){if(1&t){const o=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.NdJ("ngSubmit",function(){return e.CHM(o),e.MAs(2).form.valid&&a.onQueryRoutes()}),e.TgZ(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span"),e._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",5),e.TgZ(8,"input",6,7),e.NdJ("ngModelChange",function(u){return a.destinationPubkey=u}),e.qZA(),e.YNc(10,x1,2,0,"mat-error",8),e.qZA(),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(u){return a.amount=u}),e.qZA(),e.YNc(13,Z1,2,0,"mat-error",8),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"button",12),e.NdJ("click",function(){return a.resetData()}),e._uU(16,"Clear"),e.qZA(),e.TgZ(17,"button",13),e._uU(18,"Query Route"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",14),e.TgZ(20,"div",15),e._UZ(21,"fa-icon",16),e.TgZ(22,"span",17),e._uU(23,"Transaction Route"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",18),e.YNc(25,y1,1,0,"mat-progress-bar",19),e.TgZ(26,"table",20,21),e.ynx(28,22),e.YNc(29,T1,2,0,"th",23),e.YNc(30,b1,2,1,"td",24),e.BQk(),e.ynx(31,25),e.YNc(32,A1,2,0,"th",23),e.YNc(33,w1,2,4,"td",26),e.BQk(),e.ynx(34,27),e.YNc(35,q1,2,0,"th",23),e.YNc(36,S1,2,1,"td",24),e.BQk(),e.ynx(37,28),e.YNc(38,L1,2,0,"th",29),e.YNc(39,k1,4,3,"td",24),e.BQk(),e.ynx(40,30),e.YNc(41,F1,2,0,"th",29),e.YNc(42,U1,4,3,"td",24),e.BQk(),e.ynx(43,31),e.YNc(44,N1,2,0,"th",29),e.YNc(45,O1,4,3,"td",24),e.BQk(),e.ynx(46,32),e.YNc(47,R1,3,0,"th",33),e.YNc(48,I1,3,0,"td",34),e.BQk(),e.YNc(49,M1,1,0,"tr",35),e.YNc(50,D1,1,0,"tr",36),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.xp6(4),e.Q6J("icon",a.faExclamationTriangle),e.xp6(4),e.Q6J("ngModel",a.destinationPubkey),e.xp6(2),e.Q6J("ngIf",!a.destinationPubkey),e.xp6(2),e.Q6J("ngModel",a.amount)("step",1e3)("min",0),e.xp6(1),e.Q6J("ngIf",!a.amount),e.xp6(8),e.Q6J("icon",a.faRoute),e.xp6(4),e.Q6J("ngIf",!0===a.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",a.qrHops)("ngClass",e.VKq(14,P1,"error"===a.flgLoading[0])),e.xp6(23),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns))},directives:[_.xw,_.yH,c._Y,c.JL,c.F,_.Wh,M.BN,f.KE,I.Nt,c.Fj,c.Q7,c.JJ,c.On,p.O5,c.wV,c.qQ,$.q,L.lW,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.as,r.nj,f.TO,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var ie=h(9814);function E1(n,i){if(1&n&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.AsE("",a.nodeFeaturesEnum[t.value.name]||t.value.name,": ",t.value.is_required?"Mandatory":"Optional","")}}function Q1(n,i){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Network"),e.qZA())}function Y1(n,i){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.network," ")}}function H1(n,i){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Address"),e.qZA())}function B1(n,i){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.addr," ")}}function V1(n,i){1&n&&(e.TgZ(0,"th",29),e.TgZ(1,"span",30),e._uU(2,"Actions"),e.qZA(),e.qZA())}function G1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",31),e.TgZ(1,"span",30),e.TgZ(2,"button",32),e.NdJ("copied",function(o){return e.CHM(t),e.oxw(2).onCopyNodeURI(o)}),e._uU(3,"Copy Node URI"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(2),e.Q6J("payload",a.lookupResult.node.pub_key+"@"+t.addr)}}function z1(n,i){1&n&&e._UZ(0,"tr",33)}function W1(n,i){1&n&&e._UZ(0,"tr",34)}const X1=function(n){return{"background-color":n}};function $1(n,i){if(1&n&&(e.TgZ(0,"div",1),e._UZ(1,"mat-divider",2),e.TgZ(2,"div",3),e.TgZ(3,"div",4),e.TgZ(4,"h4",5),e._uU(5,"Alias"),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.TgZ(8,"span",7),e._uU(9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",8),e.TgZ(11,"h4",5),e._uU(12,"Pub Key"),e.qZA(),e.TgZ(13,"span",9),e._uU(14),e.qZA(),e.qZA(),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"div",3),e.TgZ(17,"div",4),e.TgZ(18,"h4",5),e._uU(19,"Last Update"),e.qZA(),e.TgZ(20,"span",6),e._uU(21),e.ALo(22,"date"),e.qZA(),e.qZA(),e.TgZ(23,"div",8),e.TgZ(24,"h4",5),e._uU(25,"Total Capacity (Sats)"),e.qZA(),e.TgZ(26,"span",6),e._uU(27),e.ALo(28,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(29,"mat-divider",10),e.TgZ(30,"div",3),e.TgZ(31,"div",4),e.TgZ(32,"h4",5),e._uU(33,"Number of Channels"),e.qZA(),e.TgZ(34,"span",6),e._uU(35),e.ALo(36,"number"),e.qZA(),e.qZA(),e.TgZ(37,"div",11),e.TgZ(38,"h4",5),e._uU(39,"Features"),e.qZA(),e.YNc(40,E1,2,2,"span",12),e.ALo(41,"keyvalue"),e.qZA(),e.qZA(),e._UZ(42,"mat-divider",10),e.TgZ(43,"div",13),e.TgZ(44,"h4",14),e._uU(45,"Addresses"),e.qZA(),e.TgZ(46,"div",15),e.TgZ(47,"table",16,17),e.ynx(49,18),e.YNc(50,Q1,2,0,"th",19),e.YNc(51,Y1,2,1,"td",20),e.BQk(),e.ynx(52,21),e.YNc(53,H1,2,0,"th",19),e.YNc(54,B1,2,1,"td",20),e.BQk(),e.ynx(55,22),e.YNc(56,V1,3,0,"th",23),e.YNc(57,G1,4,1,"td",24),e.BQk(),e.YNc(58,z1,1,0,"tr",25),e.YNc(59,W1,1,0,"tr",26),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(t.lookupResult.node.alias),e.xp6(1),e.Q6J("ngStyle",e.VKq(24,X1,null==t.lookupResult.node?null:t.lookupResult.node.color)),e.xp6(1),e.Oqu(null==t.lookupResult.node?null:t.lookupResult.node.color),e.xp6(5),e.Oqu(t.lookupResult.node.pub_key),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(22,15,1e3*t.lookupResult.node.last_update,"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(e.lcZ(28,18,t.lookupResult.total_capacity)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(36,20,t.lookupResult.num_channels)),e.xp6(5),e.Q6J("ngForOf",e.lcZ(41,22,t.lookupResult.node.features)),e.xp6(2),e.Q6J("inset",!0),e.xp6(5),e.Q6J("dataSource",t.lookupResult.node.addresses),e.xp6(11),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}let j1=(()=>{class n{constructor(t,a){this.logger=t,this.snackBar=a,this.nodeFeaturesEnum=l.hZ,this.displayedColumns=["network","addr","actions"]}onCopyNodeURI(t){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+t)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start",1,"my-1"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxLayout","column"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&e.YNc(0,$1,60,26,"div",0),2&t&&e.Q6J("ngIf",a.lookupResult)},directives:[p.O5,_.xw,z.d,_.yH,_.Wh,p.PC,q.Zl,p.sg,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,A.nU,r.ev,L.lW,se.y,r.XQ,r.Gk],pipes:[p.uU,p.JJ,p.Nd],styles:[""]}),n})();function K1(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 1"),e.qZA())}function eu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 1 (Your Node)"),e.qZA())}function tu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 2"),e.qZA())}function nu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 2 (Your Node)"),e.qZA())}function au(n,i){if(1&n&&(e.TgZ(0,"div",1),e._UZ(1,"mat-divider",2),e.TgZ(2,"div",3),e.TgZ(3,"div",4),e.TgZ(4,"h4",5),e._uU(5,"Channel Id"),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"h4",5),e._uU(10,"Channel Point"),e.qZA(),e.TgZ(11,"span",6),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e._UZ(13,"mat-divider",8),e.TgZ(14,"div",3),e.TgZ(15,"div",4),e.TgZ(16,"h4",5),e._uU(17,"Last Update"),e.qZA(),e.TgZ(18,"span",6),e._uU(19),e.ALo(20,"date"),e.qZA(),e.qZA(),e.TgZ(21,"div",7),e.TgZ(22,"h4",5),e._uU(23,"Capacity (Sats)"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(27,"mat-divider",8),e.TgZ(28,"div",9),e.TgZ(29,"div",10),e.TgZ(30,"div",11),e.YNc(31,K1,2,0,"h3",12),e.YNc(32,eu,2,0,"h3",12),e.qZA(),e._UZ(33,"mat-divider",8),e.TgZ(34,"div",13),e.TgZ(35,"h4",5),e._uU(36,"Pubkey"),e.qZA(),e.TgZ(37,"span",6),e._uU(38),e.qZA(),e.qZA(),e._UZ(39,"mat-divider",8),e.TgZ(40,"div",14),e.TgZ(41,"h4",5),e._uU(42,"Time Lock Delta"),e.qZA(),e.TgZ(43,"span",6),e._uU(44),e.qZA(),e.qZA(),e._UZ(45,"mat-divider",8),e.TgZ(46,"div",14),e.TgZ(47,"h4",5),e._uU(48,"Min HTLC"),e.qZA(),e.TgZ(49,"span",6),e._uU(50),e.qZA(),e.qZA(),e._UZ(51,"mat-divider",8),e.TgZ(52,"div",14),e.TgZ(53,"h4",5),e._uU(54,"Fee Base Msat"),e.qZA(),e.TgZ(55,"span",6),e._uU(56),e.qZA(),e.qZA(),e._UZ(57,"mat-divider",8),e.TgZ(58,"div",14),e.TgZ(59,"h4",5),e._uU(60,"Fee Rate Milli Msat"),e.qZA(),e.TgZ(61,"span",6),e._uU(62),e.qZA(),e.qZA(),e._UZ(63,"mat-divider",8),e.TgZ(64,"div",14),e.TgZ(65,"h4",5),e._uU(66,"Disabled"),e.qZA(),e.TgZ(67,"span",6),e._uU(68),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",10),e.TgZ(70,"div"),e.YNc(71,tu,2,0,"h3",12),e.YNc(72,nu,2,0,"h3",12),e.qZA(),e._UZ(73,"mat-divider",8),e.TgZ(74,"div",13),e.TgZ(75,"h4",5),e._uU(76,"Pubkey"),e.qZA(),e.TgZ(77,"span",6),e._uU(78),e.qZA(),e.qZA(),e._UZ(79,"mat-divider",8),e.TgZ(80,"div",14),e.TgZ(81,"h4",5),e._uU(82,"Time Lock Delta"),e.qZA(),e.TgZ(83,"span",6),e._uU(84),e.qZA(),e.qZA(),e._UZ(85,"mat-divider",8),e.TgZ(86,"div",14),e.TgZ(87,"h4",5),e._uU(88,"Min HTLC"),e.qZA(),e.TgZ(89,"span",6),e._uU(90),e.qZA(),e.qZA(),e._UZ(91,"mat-divider",8),e.TgZ(92,"div",14),e.TgZ(93,"h4",5),e._uU(94,"Fee Base Msat"),e.qZA(),e.TgZ(95,"span",6),e._uU(96),e.qZA(),e.qZA(),e._UZ(97,"mat-divider",8),e.TgZ(98,"div",14),e.TgZ(99,"h4",5),e._uU(100,"Fee Rate Milli Msat"),e.qZA(),e.TgZ(101,"span",6),e._uU(102),e.qZA(),e.qZA(),e._UZ(103,"mat-divider",8),e.TgZ(104,"div",14),e.TgZ(105,"h4",5),e._uU(106,"Disabled"),e.qZA(),e.TgZ(107,"span",6),e._uU(108),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(t.lookupResult.channel_id),e.xp6(5),e.Oqu(t.lookupResult.chan_point),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(20,35,1e3*t.lookupResult.last_update,"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(e.lcZ(26,38,t.lookupResult.capacity)),e.xp6(2),e.Q6J("inset",!0),e.xp6(4),e.Q6J("ngIf",!t.node1_match),e.xp6(1),e.Q6J("ngIf",t.node1_match),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(t.lookupResult.node1_pub),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.time_lock_delta),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.min_htlc),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.fee_base_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.fee_rate_milli_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null!=t.lookupResult.node1_policy&&t.lookupResult.node1_policy.disabled?"Yes":"No"),e.xp6(3),e.Q6J("ngIf",!t.node2_match),e.xp6(1),e.Q6J("ngIf",t.node2_match),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(t.lookupResult.node2_pub),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.time_lock_delta),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.min_htlc),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.fee_base_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.fee_rate_milli_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null!=t.lookupResult.node2_policy&&t.lookupResult.node2_policy.disabled?"Yes":"No")}}let iu=(()=>{class n{constructor(t){this.store=t,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.lookupResult.node1_pub===t.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===t.identity_pubkey&&(this.node2_match=!0)})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","30","fxLayoutAlign","end start"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start"],[1,"my-1",3,"inset"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],["fxLayout","column","fxFlex","20"],["fxLayout","column","fxFlex","10"],[1,"page-title","font-bold-500"]],template:function(t,a){1&t&&e.YNc(0,au,109,40,"div",0),2&t&&e.Q6J("ngIf",a.lookupResult)},directives:[p.O5,_.xw,z.d,_.yH,_.Wh],pipes:[p.uU,p.JJ],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),n})();function ou(n,i){if(1&n&&(e.TgZ(0,"mat-radio-button",17),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("value",t.id)("checked",a.selectedFieldId===t.id),e.xp6(1),e.hij(" ",t.name," ")}}function su(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function lu(n,i){1&n&&e._UZ(0,"mat-progress-bar",20)}const ru=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function cu(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,lu,1,0,"mat-progress-bar",19),e._uU(2),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(3,ru,""!==t.errorMessage&&"Getting lookup details..."!==t.errorMessage)),e.xp6(1),e.Q6J("ngIf","Getting lookup details..."===t.errorMessage),e.xp6(1),e.hij(" ",t.errorMessage," ")}}function uu(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-node-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("lookupResult",t.lookupValue)}}function pu(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-channel-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("lookupResult",t.lookupValue)}}function mu(n,i){1&n&&(e.TgZ(0,"span",27),e.TgZ(1,"h3"),e._uU(2,"Error! Unable to find details!"),e.qZA(),e.qZA())}function _u(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"div",22),e.TgZ(2,"span",23),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"div",24),e.YNc(5,uu,2,1,"span",25),e.YNc(6,pu,2,1,"span",25),e.YNc(7,mu,3,0,"span",26),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.hij("",t.lookupFields[t.selectedFieldId].name," Details"),e.xp6(1),e.Q6J("ngSwitch",t.selectedFieldId),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1)}}const du=function(n){return{"mt-1":!0,"mt-2":n}};let He=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.actions=s,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.faSearch=Z.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.SET_LOOKUP_LND&&(this.errorMessage=0===this.selectedFieldId&&t.payload.hasOwnProperty("node")||1===this.selectedFieldId&&t.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(t.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!t.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!t.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&"Lookup"===t.payload.action&&(this.errorMessage="",t.payload.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof t.payload.message?JSON.stringify(t.payload.message):t.payload.message),t.payload.status===l.Bn.INITIATED&&(this.errorMessage=l.m6.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,b.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,b.$A)({payload:{uiMessage:l.m6.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lookups"]],decls:19,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-content",2),e.TgZ(3,"form",3,4),e.TgZ(5,"div",5),e.TgZ(6,"mat-radio-group",6),e.NdJ("ngModelChange",function(s){return a.selectedFieldId=s})("change",function(s){return a.onSelectChange(s)}),e.YNc(7,ou,2,3,"mat-radio-button",7),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",8),e.TgZ(9,"input",9,10),e.NdJ("change",function(){return a.clearLookupValue()})("ngModelChange",function(s){return a.lookupKey=s}),e.qZA(),e.YNc(11,su,2,1,"mat-error",11),e.qZA(),e.TgZ(12,"div",12),e.TgZ(13,"button",13),e.NdJ("click",function(){return a.resetData()}),e._uU(14,"Clear"),e.qZA(),e.TgZ(15,"button",14),e.NdJ("click",function(){return a.onLookup()}),e._uU(16,"Lookup"),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,cu,3,5,"div",15),e.YNc(18,_u,8,4,"div",16),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",a.selectedFieldId),e.xp6(1),e.Q6J("ngForOf",a.lookupFields),e.xp6(1),e.Q6J("ngClass",e.VKq(8,du,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("placeholder",(null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key")("ngModel",a.lookupKey),e.xp6(2),e.Q6J("ngIf",!a.lookupKey),e.xp6(6),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},directives:[_.xw,_.yH,_.Wh,T.dn,c._Y,c.JL,c.F,ie.VQ,c.JJ,c.On,p.sg,f.KE,p.mk,q.oO,I.Nt,c.Fj,c.Q7,p.O5,L.lW,ie.U0,f.TO,P.pW,p.RF,p.n9,p.ED,j1,iu],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})();var be=h(6856);function hu(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid date format."),e.qZA())}function gu(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid date format."),e.qZA())}function fu(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",27),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let Cu=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,this.faMapSigns=Z.SuH,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"},{link:"nonroutingprs",name:"Non Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.onEventsFetch();const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}onEventsFetch(){this.store.dispatch((0,b.QJ)({payload:{forwarding_events:[]}})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch((0,b.u0)({payload:{end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch((0,b.QJ)({payload:{forwarding_events:[]}})),this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing"]],decls:35,vars:15,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["routingForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","placeholder","Start Date","name","startDate","tabindex","1",3,"matDatepicker","max","ngModel","ngModelChange"],["strtDate","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],["startDatepicker",""],[4,"ngIf"],["matInput","","placeholder","End Date","name","endDate","tabindex","2",3,"matDatepicker","min","max","ngModel","ngModelChange"],["enDate","ngModel"],["endDatepicker",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Routing"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-card-content",6),e.TgZ(8,"form",7,8),e.NdJ("ngSubmit",function(){return a.onEventsFetch()}),e.TgZ(10,"div",9),e.TgZ(11,"mat-form-field",10),e.TgZ(12,"input",11,12),e.NdJ("ngModelChange",function(s){return a.startDate=s}),e.qZA(),e._UZ(14,"mat-datepicker-toggle",13),e._UZ(15,"mat-datepicker",14,15),e.YNc(17,hu,2,0,"mat-error",16),e.qZA(),e.TgZ(18,"mat-form-field",10),e.TgZ(19,"input",17,18),e.NdJ("ngModelChange",function(s){return a.endDate=s}),e.qZA(),e._UZ(21,"mat-datepicker-toggle",13),e._UZ(22,"mat-datepicker",14,19),e.YNc(24,gu,2,0,"mat-error",16),e.qZA(),e.qZA(),e.TgZ(25,"div",20),e.TgZ(26,"button",21),e.NdJ("click",function(){return a.resetData()}),e._uU(27,"Clear"),e.qZA(),e.TgZ(28,"button",22),e._uU(29,"Fetch Events"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",23),e.TgZ(31,"nav",24),e.YNc(32,fu,2,3,"div",25),e.qZA(),e.qZA(),e.TgZ(33,"div",26),e._UZ(34,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(13),s=e.MAs(16),u=e.MAs(20),g=e.MAs(23);e.xp6(2),e.Q6J("icon",a.faMapSigns),e.xp6(10),e.Q6J("matDatepicker",s)("max",a.today)("ngModel",a.startDate),e.xp6(2),e.Q6J("for",s),e.xp6(1),e.Q6J("startAt",a.startDate),e.xp6(2),e.Q6J("ngIf",o.errors),e.xp6(2),e.Q6J("matDatepicker",g)("min",a.startDate)("max",a.today)("ngModel",a.endDate),e.xp6(2),e.Q6J("for",g),e.xp6(1),e.Q6J("startAt",a.endDate),e.xp6(2),e.Q6J("ngIf",u.errors),e.xp6(8),e.Q6J("ngForOf",a.links)}},directives:[_.xw,_.Wh,M.BN,_.yH,T.a8,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,be.hl,Ee.F,c.Fj,c.JJ,c.On,be.nW,f.R9,be.Mq,p.O5,$.q,L.lW,D.BU,p.sg,y.lC,f.TO,D.Nj,y.rH],styles:[""]}),n})();function xu(n,i){if(1&n&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function Zu(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e._UZ(1,"div",7),e.TgZ(2,"mat-form-field",8),e.TgZ(3,"input",9),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().filterValue=o})("input",function(){return e.CHM(t),e.oxw().applyFilter()})("keyup",function(){return e.CHM(t),e.oxw().applyFilter()}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.filterValue)}}function yu(n,i){1&n&&e._UZ(0,"mat-progress-bar",31)}function Tu(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Timestamp"),e.qZA())}function bu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,1e3*t.timestamp,"dd/MMM/y HH:mm"))}}function Au(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Inbound Channel"),e.qZA())}function vu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t.alias_in)}}function wu(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Outbound Channel"),e.qZA())}function qu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t.alias_out)}}function Su(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Inbound Amount (Sats)"),e.qZA())}function Lu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amt_in))}}function ku(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Outbound Amount (Sats)"),e.qZA())}function Fu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amt_out))}}function Uu(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Fee (mSats)"),e.qZA())}function Nu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.fee_msat))}}function Ou(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",36),e.TgZ(1,"div",37),e.TgZ(2,"mat-select",38),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",39),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Ru(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",40),e.TgZ(1,"button",41),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onForwardingEventClick(u,o)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Iu(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No forwarding history available."),e.qZA())}function Mu(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting forwarding history..."),e.qZA())}function Du(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function Pu(n,i){if(1&n&&(e.TgZ(0,"td",42),e.YNc(1,Iu,2,0,"p",43),e.YNc(2,Mu,2,0,"p",43),e.YNc(3,Du,2,1,"p",43),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ju=function(n){return{"display-none":n}};function Eu(n,i){if(1&n&&e._UZ(0,"tr",44),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ju,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function Qu(n,i){1&n&&e._UZ(0,"tr",45)}function Yu(n,i){1&n&&e._UZ(0,"tr",46)}const Hu=function(){return["no_event"]};function Bu(n,i){if(1&n&&(e.TgZ(0,"div",10),e.YNc(1,yu,1,0,"mat-progress-bar",11),e.TgZ(2,"table",12,13),e.ynx(4,14),e.YNc(5,Tu,2,0,"th",15),e.YNc(6,bu,3,4,"td",16),e.BQk(),e.ynx(7,17),e.YNc(8,Au,2,0,"th",15),e.YNc(9,vu,2,1,"td",16),e.BQk(),e.ynx(10,18),e.YNc(11,wu,2,0,"th",15),e.YNc(12,qu,2,1,"td",16),e.BQk(),e.ynx(13,19),e.YNc(14,Su,2,0,"th",20),e.YNc(15,Lu,4,3,"td",16),e.BQk(),e.ynx(16,21),e.YNc(17,ku,2,0,"th",20),e.YNc(18,Fu,4,3,"td",16),e.BQk(),e.ynx(19,22),e.YNc(20,Uu,2,0,"th",20),e.YNc(21,Nu,4,3,"td",16),e.BQk(),e.ynx(22,23),e.YNc(23,Ou,6,0,"th",24),e.YNc(24,Ru,3,0,"td",25),e.BQk(),e.ynx(25,26),e.YNc(26,Pu,4,3,"td",27),e.BQk(),e.YNc(27,Eu,1,3,"tr",28),e.YNc(28,Qu,1,0,"tr",29),e.YNc(29,Yu,1,0,"tr",30),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.forwardingHistoryEvents),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(6,Hu)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function Vu(n,i){if(1&n&&e._UZ(0,"mat-paginator",47),2&n){const t=e.oxw();e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Be=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.datePipe=s,this.eventsData=[],this.filterValue="",this.forwardingHistoryData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","fee_msat","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amt_in","amt_out","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat","actions"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.forwardingHistoryData=t.forwardingHistory.forwarding_events||[],this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory))})}ngAfterViewInit(){this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:l.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,t.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:t.timestamp,title:"Timestamp",width:25,type:l.Gi.DATE_TIME},{key:"amt_in",value:t.amt_in,title:"Inbound Amount (Sats)",width:25,type:l.Gi.NUMBER},{key:"amt_out",value:t.amt_out,title:"Outbound Amount (Sats)",width:25,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:25,type:l.Gi.NUMBER}],[{key:"alias_in",value:t.alias_in,title:"Inbound Peer Alias",width:25,type:l.Gi.STRING},{key:"chan_id_in",value:t.chan_id_in,title:"Inbound Channel ID",width:25,type:l.Gi.STRING},{key:"alias_out",value:t.alias_out,title:"Outbound Peer Alias",width:25,type:l.Gi.STRING},{key:"chan_id_out",value:t.chan_id_out,title:"Outbound Channel ID",width:25,type:l.Gi.STRING}]]}}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new r.by(t?[...t]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.forwardingHistoryEvents.filterPredicate=(a,o)=>((a.timestamp?this.datePipe.transform(new Date(1e3*a.timestamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-forwarding-history"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Events")}]),e.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","alias_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,xu,2,1,"div",1),e.YNc(2,Zu,4,1,"div",2),e.YNc(3,Bu,30,7,"div",3),e.YNc(4,Vu,1,3,"mat-paginator",4),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.Wh,p.O5,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,p.mk,q.oO,r.XQ,r.Gk,S.NW],pipes:[p.uU,p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const Gu=["tableIn"],zu=["tableOut"],Wu=["paginatorIn"],Xu=["paginatorOut"];function $u(n,i){if(1&n&&(e.TgZ(0,"div",3),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function ju(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function Ku(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Channel ID"),e.qZA())}const de=function(n){return{"max-width":n}};function ep(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function tp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Peer Alias"),e.qZA())}function np(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.alias)}}function ap(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Events"),e.qZA())}function ip(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.events))}}function op(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Total Amount (Sats)"),e.qZA())}function sp(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_amount))}}function lp(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function rp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"button",45),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onRoutingPeerClick(u,o,"in")}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function cp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No incoming routing peer available."),e.qZA())}function up(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting incoming routing peers..."),e.qZA())}function pp(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function mp(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,cp,2,0,"p",47),e.YNc(2,up,2,0,"p",47),e.YNc(3,pp,2,1,"p",47),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ve=function(n){return{"display-none":n}};function _p(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ve,(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function dp(n,i){1&n&&e._UZ(0,"tr",49)}function hp(n,i){1&n&&e._UZ(0,"tr",50)}function gp(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function fp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Channel ID"),e.qZA())}function Cp(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function xp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Peer Alias"),e.qZA())}function Zp(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.alias)}}function yp(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Events"),e.qZA())}function Tp(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.events))}}function bp(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Total Amount (Sats)"),e.qZA())}function Ap(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_amount))}}function vp(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function wp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",51),e.TgZ(1,"button",52),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onRoutingPeerClick(u,o,"out")}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function qp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No outgoing routing peer available."),e.qZA())}function Sp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting outgoing routing peers..."),e.qZA())}function Lp(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function kp(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,qp,2,0,"p",47),e.YNc(2,Sp,2,0,"p",47),e.YNc(3,Lp,2,1,"p",47),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function Fp(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ve,(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function Up(n,i){1&n&&e._UZ(0,"tr",49)}function Np(n,i){1&n&&e._UZ(0,"tr",50)}const Op=function(n,i){return{"mt-2":n,"mt-1":i}},Rp=function(){return["no_incoming_event"]},Ip=function(n){return{"mt-2":n}},Mp=function(){return["no_outgoing_event"]};function Dp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",4),e.TgZ(1,"div",5),e.TgZ(2,"div",6),e.TgZ(3,"div",7),e._uU(4,"Incoming"),e.qZA(),e.TgZ(5,"mat-form-field",8),e.TgZ(6,"input",9),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyIncomingFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().filterIn=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",10),e.YNc(8,ju,1,0,"mat-progress-bar",11),e.TgZ(9,"table",12,13),e.ynx(11,14),e.YNc(12,Ku,2,0,"th",15),e.YNc(13,ep,2,4,"td",16),e.BQk(),e.ynx(14,17),e.YNc(15,tp,2,0,"th",15),e.YNc(16,np,2,4,"td",16),e.BQk(),e.ynx(17,18),e.YNc(18,ap,2,0,"th",19),e.YNc(19,ip,4,3,"td",20),e.BQk(),e.ynx(20,21),e.YNc(21,op,2,0,"th",19),e.YNc(22,sp,4,3,"td",20),e.BQk(),e.ynx(23,22),e.YNc(24,lp,3,0,"th",23),e.YNc(25,rp,3,0,"td",24),e.BQk(),e.ynx(26,25),e.YNc(27,mp,4,3,"td",26),e.BQk(),e.YNc(28,_p,1,3,"tr",27),e.YNc(29,dp,1,0,"tr",28),e.YNc(30,hp,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(31,"mat-paginator",30,31),e.qZA(),e.TgZ(33,"div",5),e.TgZ(34,"div",6),e.TgZ(35,"div",7),e._uU(36,"Outgoing"),e.qZA(),e.TgZ(37,"mat-form-field",8),e.TgZ(38,"input",9),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyOutgoingFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().filterOut=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",10),e.YNc(40,gp,1,0,"mat-progress-bar",11),e.TgZ(41,"table",32,33),e.ynx(43,14),e.YNc(44,fp,2,0,"th",15),e.YNc(45,Cp,2,4,"td",16),e.BQk(),e.ynx(46,17),e.YNc(47,xp,2,0,"th",15),e.YNc(48,Zp,2,4,"td",16),e.BQk(),e.ynx(49,18),e.YNc(50,yp,2,0,"th",19),e.YNc(51,Tp,4,3,"td",20),e.BQk(),e.ynx(52,21),e.YNc(53,bp,2,0,"th",19),e.YNc(54,Ap,4,3,"td",20),e.BQk(),e.ynx(55,22),e.YNc(56,vp,3,0,"th",23),e.YNc(57,wp,3,0,"td",34),e.BQk(),e.ynx(58,35),e.YNc(59,kp,4,3,"td",26),e.BQk(),e.YNc(60,Fp,1,3,"tr",27),e.YNc(61,Up,1,0,"tr",28),e.YNc(62,Np,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(63,"mat-paginator",30,36),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngClass",e.WLB(22,Op,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),e.xp6(4),e.Q6J("ngModel",t.filterIn),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.RoutingPeersIncoming),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(25,Rp)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS),e.xp6(3),e.Q6J("ngClass",e.VKq(26,Ip,t.screenSize!==t.screenSizeEnum.LG)),e.xp6(4),e.Q6J("ngModel",t.filterOut),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.RoutingPeersOutgoing),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(28,Mp)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Pp=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.routingPeersData=[],this.displayedColumns=[],this.RoutingPeersIncoming=new r.by([]),this.RoutingPeersOutgoing=new r.by([]),this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["chan_id","events","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","alias","events","total_amount"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","alias","events","total_amount"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.routingPeersData=t.forwardingHistory.forwarding_events?t.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadRoutingPeersTable(this.routingPeersData)}onRoutingPeerClick(t,a,o){let s=" Routing Information";s="in"===o?"Incoming"+s:"Outgoing"+s,this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:s,message:[[{key:"chan_id",value:t.chan_id,title:"Channel ID",width:50,type:l.Gi.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:l.Gi.STRING}],[{key:"events",value:t.events,title:"Events",width:50,type:l.Gi.NUMBER},{key:"total_amount",value:t.total_amount,title:"Total Amount (Sats)",width:50,type:l.Gi.NUMBER}]]}}}))}loadRoutingPeersTable(t){if(t.length>0){const a=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new r.by(a[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new r.by(a[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new r.by([]),this.RoutingPeersOutgoing=new r.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter()}groupRoutingPeers(t){const a=[],o=[];return t.forEach(s=>{const u=a.find(N=>N.chan_id===s.chan_id_in),g=o.find(N=>N.chan_id===s.chan_id_out);u?(u.events++,u.total_amount=+u.total_amount+ +s.amt_in):a.push({chan_id:s.chan_id_in,alias:s.alias_in,events:1,total_amount:+s.amt_in}),g?(g.events++,g.total_amount=+g.total_amount+ +s.amt_out):o.push({chan_id:s.chan_id_out,alias:s.alias_out,events:1,total_amount:+s.amt_out})}),[this.commonService.sortDescByKey(a,"total_amount"),this.commonService.sortDescByKey(o,"total_amount")]}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 n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Gu,5,A.YE),e.Gf(zu,5,A.YE),e.Gf(Wu,5),e.Gf(Xu,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sortIn=o.first),e.iGM(o=e.CRH())&&(a.sortOut=o.first),e.iGM(o=e.CRH())&&(a.paginatorIn=o.first),e.iGM(o=e.CRH())&&(a.paginatorOut=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Routing peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-cell","",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","5",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,$u,2,1,"div",1),e.YNc(2,Dp,65,29,"div",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.Wh,p.O5,_.yH,p.mk,q.oO,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Jp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",7),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let Ep=(()=>{class n{constructor(t){this.router=t,this.faChartBar=Z.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Reports"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,Jp,2,3,"div",6),e.qZA(),e._UZ(9,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartBar),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,y.lC,D.Nj,y.rH],styles:[""]}),n})();var Ge=h(7671),ze=h(6046);function Qp(n,i){1&n&&e._UZ(0,"mat-progress-bar",16)}function Yp(n,i){if(1&n&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw();e.Q6J("@fadeIn",t.events.total_fee_msat),e.xp6(1),e.AsE("",e.xi3(2,3,t.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",e.lcZ(3,6,(null==t.events||null==t.events.forwarding_events?null:t.events.forwarding_events.length)||0)," Events")}}function Hp(n,i){1&n&&(e.TgZ(0,"div",18),e._uU(1,"No routing report for the selected period"),e.qZA())}const Bp=function(n){return{"error-border":n}};function Vp(n,i){if(1&n&&(e.TgZ(0,"div",19),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(2,Bp,"Getting Forwarding History..."!==t.errorMessage&&""!==t.errorMessage)),e.xp6(1),e.Oqu(t.errorMessage)}}function Gp(n,i){if(1&n&&(e.TgZ(0,"span"),e.TgZ(1,"span",22),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"span",22),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA()),2&n){const t=i.model,a=e.oxw(2);e.xp6(2),e.hij("Events: ",e.lcZ(3,2,(a.selReportBy===a.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),e.xp6(3),e.hij("Fee: ",e.xi3(6,4,(a.selReportBy===a.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function zp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"ngx-charts-bar-vertical",20),e.NdJ("select",function(o){return e.CHM(t),e.oxw().onChartBarSelected(o)})("mouseup",function(o){return e.CHM(t),e.oxw().onChartMouseUp(o)}),e.YNc(1,Gp,7,7,"ng-template",null,21,e.W1O),e.qZA()}if(2&n){const t=e.oxw();e.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 Wp(n,i){if(1&n&&e._UZ(0,"rtl-forwarding-history",23),2&n){const t=e.oxw();e.Q6J("eventsData",null==t.events?null:t.events.forwarding_events)("filterValue",t.eventFilterValue)}}let Xp=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.dataService=a,this.commonService=o,this.store=s,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.reportBy=l.Xr,this.selReportBy=l.Xr.FEES,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.identity_pubkey&&setTimeout(()=>{this.fetchEvents(this.startDate,this.endDate)},10)}),this.commonService.containerSizeUpdated.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=t.width/10;break;case l.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))})}fetchEvents(t,a){this.errorMessage=l.m6.GET_FORWARDING_HISTORY;const o=Math.round(t.getTime()/1e3).toString(),s=Math.round(a.getTime()/1e3).toString();this.dataService.getForwardingHistory("LND",o,s).pipe((0,d.R)(this.unSubs[2])).subscribe({next:u=>{this.errorMessage="",u.forwarding_events&&u.forwarding_events.length?(u.forwarding_events=u.forwarding_events.reverse(),this.events=u,this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(t):this.prepareFeeReport(t)):(this.events={forwarding_events:[],total_fee_msat:0},this.routingReportData=[])},error:u=>{this.errorMessage=u}})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===l.op[1]?t.name+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(t){const a=Math.round(t.getTime()/1e3),o=[];if(this.events.total_fee_msat=0,this.reportPeriod===l.op[1]){for(let s=0;s<12;s++)o.push({name:l.gg[s].name,value:0,extra:{totalEvents:0}});this.events.forwarding_events.map(s=>{const u=new Date(1e3*+s.timestamp).getMonth();return o[u].value=o[u].value+ +s.fee_msat/1e3,o[u].extra.totalEvents=o[u].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}else{for(let s=0;s{const u=Math.floor((+s.timestamp-a)/this.secondsInADay);return o[u].value=o[u].value+ +s.fee_msat/1e3,o[u].extra.totalEvents=o[u].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}return o}prepareEventsReport(t){const a=Math.round(t.getTime()/1e3),o=[];if(this.events.total_fee_msat=0,this.reportPeriod===l.op[1]){for(let s=0;s<12;s++)o.push({name:l.gg[s].name,value:0,extra:{totalFees:0}});this.events.forwarding_events.map(s=>{const u=new Date(1e3*+s.timestamp).getMonth();return o[u].value=o[u].value+1,o[u].extra.totalFees=o[u].extra.totalFees+ +s.fee_msat/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}else{for(let s=0;s{const u=Math.floor((+s.timestamp-a)/this.secondsInADay);return o[u].value=o[u].value+1,o[u].extra.totalFees=o[u].extra.totalFees+ +s.fee_msat/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}return o}onSelectionChange(t){const a=t.selDate.getMonth(),o=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,a,1,0,0,0),this.endDate=new Date(o,a,this.getMonthDays(a,o),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,a){return 1===t&&a%4==0?l.gg[t].days+1:l.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 n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(j.D),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing-report"]],hostBindings:function(t,a){1&t&&e.NdJ("mouseup",function(s){return a.onChartMouseUp(s)})},decls:20,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["mode","indeterminate","class","mt-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x","my-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",3,"ngClass",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],[3,"eventsData","filterValue",4,"ngIf"],["mode","indeterminate",1,"mt-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1",3,"ngClass"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"rtl-horizontal-scroller",1),e.NdJ("stepChanged",function(s){return a.onSelectionChange(s)}),e.qZA(),e.TgZ(2,"div",2),e.TgZ(3,"mat-radio-group",3),e.NdJ("ngModelChange",function(s){return a.selReportBy=s})("change",function(){return a.onSelReportByChange()}),e.TgZ(4,"span",4),e._uU(5,"Report By: "),e.qZA(),e.TgZ(6,"mat-radio-button",5),e._uU(7,"Fees"),e.qZA(),e.TgZ(8,"mat-radio-button",6),e._uU(9,"Events"),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,Qp,1,0,"mat-progress-bar",7),e.TgZ(11,"div",8),e.YNc(12,Yp,4,8,"div",9),e.YNc(13,Hp,2,0,"div",10),e.YNc(14,Vp,2,4,"div",11),e.TgZ(15,"div",12),e.YNc(16,zp,3,11,"ngx-charts-bar-vertical",13),e.qZA(),e.qZA(),e.TgZ(17,"div",14),e.TgZ(18,"div",12),e.YNc(19,Wp,1,2,"rtl-forwarding-history",15),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selReportBy),e.xp6(3),e.s9C("value",a.reportBy.FEES),e.xp6(2),e.s9C("value",a.reportBy.EVENTS),e.xp6(2),e.Q6J("ngIf","Getting Forwarding History..."===a.errorMessage),e.xp6(2),e.Q6J("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.xp6(1),e.Q6J("ngIf",(a.routingReportData.length<=0||a.events.forwarding_events.length<=0)&&""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(2),e.Q6J("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.xp6(3),e.Q6J("ngIf",a.events&&(null==a.events?null:a.events.forwarding_events)&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0))},directives:[_.xw,_.Wh,_.yH,Ge.D,ie.VQ,c.JJ,c.On,ie.U0,p.O5,P.pW,p.mk,q.oO,ze.K$,Be],pipes:[p.JJ],styles:[""],data:{animation:[ye.J]}}),n})();var $p=h(165);function jp(n,i){1&n&&(e.TgZ(0,"div",11),e._UZ(1,"mat-progress-bar",12),e.TgZ(2,"span"),e._uU(3,"Getting transactions data..."),e.qZA(),e.qZA())}function Kp(n,i){if(1&n&&(e.TgZ(0,"div",13),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function em(n,i){if(1&n&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE(" Paid ",e.xi3(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.lcZ(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function tm(n,i){if(1&n&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE(" Received ",e.xi3(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.lcZ(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function nm(n,i){if(1&n&&(e.TgZ(0,"div",14),e.YNc(1,em,4,7,"div",15),e.YNc(2,tm,4,7,"div",15),e.qZA()),2&n){const t=e.oxw();e.Q6J("@fadeIn",t.transactionsReportSummary),e.xp6(1),e.Q6J("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod>0),e.xp6(1),e.Q6J("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function am(n,i){1&n&&(e.TgZ(0,"div",17),e._uU(1,"No transactions report for the selected period"),e.qZA())}function im(n,i){if(1&n&&(e.TgZ(0,"span",21),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=i.model;e.xp6(1),e.HOy("",t.name,": ",e.xi3(2,4,t.value||0,"1.0-2"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",e.lcZ(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function om(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"ngx-charts-bar-vertical-2d",19),e.NdJ("select",function(o){return e.CHM(t),e.oxw(2).onChartBarSelected(o)})("mouseup",function(o){return e.CHM(t),e.oxw(2).onChartMouseUp(o)}),e.YNc(1,im,4,9,"ng-template",null,20,e.W1O),e.qZA()}if(2&n){const t=e.oxw(2);e.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:8)}}function sm(n,i){if(1&n&&(e.TgZ(0,"div",9),e.YNc(1,om,3,13,"ngx-charts-bar-vertical-2d",18),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.transactionsReportData.length>0&&t.transactionsNonZeroReportData.length>0)}}function lm(n,i){if(1&n&&e._UZ(0,"rtl-transactions-report-table",22),2&n){const t=e.oxw();e.Q6J("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let rm=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.scrollRanges=l.op,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[{date:"",name:"1",series:[{extra:{total:0},name:"Paid",value:0},{extra:{total:0},name:"Received",value:0}]}],this.transactionsNonZeroReportData=[{amount_paid:0,amount_received:0,date:"",num_invoices:0,num_payments:0}],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.l5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.apiCallStatus.status===l.Bn.UN_INITIATED&&this.store.dispatch((0,b.Jo)()),this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.payments=t.allLightningTransactions.listPaymentsAll.payments||[],this.invoices=t.allLightningTransactions.listInvoicesAll.invoices||[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()),this.logger.info(t)}),this.commonService.containerSizeUpdated.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=t.width/10;break;case l.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===l.op[1]?t.series+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,a){const o=Math.round(t.getTime()/1e3),s=Math.round(a.getTime()/1e3),u=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const g=this.payments.filter(x=>"SUCCEEDED"===x.status&&x.creation_date>=o&&x.creation_datex.settled&&+x.creation_date>=o&&+x.creation_date{const U=new Date(1e3*+x.creation_date).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +x.value_msat+ +x.fee_msat,u[U].series[0].value=u[U].series[0].value+(+x.value_msat+ +x.fee_msat)/1e3,u[U].series[0].extra.total=u[U].series[0].extra.total+1,this.transactionsReportSummary}),N.map(x=>{const U=new Date(1e3*+x.creation_date).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +x.amt_paid_msat,u[U].series[1].value=u[U].series[1].value+ +x.amt_paid_msat/1e3,u[U].series[1].extra.total=u[U].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let x=0;x{const U=Math.floor((+x.creation_date-o)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +x.value_msat+ +x.fee_msat,u[U].series[0].value=u[U].series[0].value+(+x.value_msat+ +x.fee_msat)/1e3,u[U].series[0].extra.total=u[U].series[0].extra.total+1,this.transactionsReportSummary}),N.map(x=>{const U=Math.floor((+x.creation_date-o)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +x.amt_paid_msat,u[U].series[1].value=u[U].series[1].value+ +x.amt_paid_msat/1e3,u[U].series[1].extra.total=u[U].series[1].extra.total+1,this.transactionsReportSummary})}return u}prepareTableData(){return this.transactionsReportData.reduce((t,a)=>a.series[0].extra.total>0||a.series[1].extra.total>0?t.concat({date:a.date,amount_paid:a.series[0].value,num_payments:a.series[0].extra.total,amount_received:a.series[1].value,num_invoices:a.series[1].extra.total}):t,[])}onSelectionChange(t){const a=t.selDate.getMonth(),o=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,a,1,0,0,0),this.endDate=new Date(o,a,this.getMonthDays(a,o),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,a){return 1===t&&a%4==0?l.gg[t].days+1:l.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-transactions-report"]],hostBindings:function(t,a){1&t&&e.NdJ("mouseup",function(s){return a.onChartMouseUp(s)})},decls:11,vars:6,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],[3,"stepChanged"],["class","p-2",4,"ngIf"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"dataList","dataRange","filterValue",4,"ngIf"],[1,"p-2"],["mode","indeterminate"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"rtl-horizontal-scroller",3),e.NdJ("stepChanged",function(s){return a.onSelectionChange(s)}),e.qZA(),e.YNc(4,jp,4,0,"div",4),e.YNc(5,Kp,2,1,"div",5),e.YNc(6,nm,3,3,"div",6),e.YNc(7,am,2,0,"div",7),e.YNc(8,sm,2,1,"div",8),e.TgZ(9,"div",9),e.YNc(10,lm,1,3,"rtl-transactions-report-table",10),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.ERROR),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length<=0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(2),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED))},directives:[_.xw,_.Wh,_.yH,Ge.D,p.O5,P.pW,ze.H5,$p.g],pipes:[p.JJ],styles:[""],data:{animation:[ye.J]}}),n})();const cm=["form"];function um(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"UTXO Label is required."),e.qZA())}function pm(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.labelError)}}function mm(n,i){if(1&n&&(e.TgZ(0,"div",16),e._UZ(1,"fa-icon",17),e.YNc(2,pm,2,1,"span",11),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.labelError)}}let _m=(()=>{class n{constructor(t,a,o,s,u,g){this.dialogRef=t,this.data=a,this.dataService=o,this.store=s,this.snackBar=u,this.commonService=g,this.faExclamationTriangle=Z.eHv,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.utxo=this.data.utxo,this.label=this.utxo.label}onLabelUTXO(){if(!this.label||""===this.label)return!0;this.labelError="",this.dataService.labelUTXO(this.utxo.outpoint.txid_bytes,this.label,!0).pipe((0,d.R)(this.unSubs[0])).subscribe({next:t=>{this.store.dispatch((0,b.mC)()),this.store.dispatch((0,b.Ly)()),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:t=>{this.labelError=t}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(j.D),e.Y36(w.yh),e.Y36(te.ux),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(t,a){if(1&t&&e.Gf(cm,7),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first)}},decls:20,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","100"],["autoFocus","","matInput","","placeholder","UTXO Label","name","label","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Label UTXO"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.NdJ("submit",function(){return a.onLabelUTXO()})("reset",function(){return a.resetData()}),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(s){return a.label=s}),e.qZA(),e.YNc(13,um,2,0,"mat-error",11),e.qZA(),e.YNc(14,mm,3,2,"div",12),e.TgZ(15,"div",13),e.TgZ(16,"button",14),e._uU(17,"Clear"),e.qZA(),e.TgZ(18,"button",15),e._uU(19,"Label UTXO"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.label),e.xp6(1),e.Q6J("ngIf",!a.label),e.xp6(1),e.Q6J("ngIf",""!==a.labelError))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,f.TO,M.BN],styles:[""]}),n})();function dm(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function hm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Transaction ID "),e.qZA())}function gm(n,i){1&n&&(e.TgZ(0,"span",35),e.TgZ(1,"mat-icon",36),e._uU(2,"warning"),e.qZA(),e.qZA())}function fm(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,gm,3,0,"span",34),e.qZA()),2&n){const t=e.oxw().$implicit;e.oxw();const a=e.MAs(34);e.xp6(1),e.Q6J("ngIf",t.amount_sat<1e3)("ngIfElse",a)}}const We=function(n){return{"max-width":n}};function Cm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",31),e.YNc(2,fm,2,2,"span",32),e.TgZ(3,"span",33),e._uU(4),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(3,We,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(2),e.Q6J("ngIf",a.utxos.length>0&&a.dustUtxos.length>0&&!a.isDustUTXO),e.xp6(2),e.Oqu(t.outpoint.txid_str)}}function xm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Output "),e.qZA())}function Zm(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(t.outpoint.output_index)}}function ym(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Label "),e.qZA())}function Tm(n,i){if(1&n&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,We,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.label," ")}}function bm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Amount (Sats) "),e.qZA())}function Am(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amount_sat||0))}}function vm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Confirmations "),e.qZA())}function wm(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.confirmations||0))}}function qm(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",40),e.TgZ(1,"div",41),e.TgZ(2,"mat-select",42),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Sm(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"div",45),e.TgZ(2,"mat-select",46),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onUTXOClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onLabelUTXO(s)}),e._uU(7,"Label"),e.qZA(),e.TgZ(8,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onLeaseUTXO(s)}),e._uU(9,"Lease"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Lm(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No UTXO available."),e.qZA())}function km(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting UTXOs..."),e.qZA())}function Fm(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Um(n,i){if(1&n&&(e.TgZ(0,"td",47),e.YNc(1,Lm,2,0,"p",32),e.YNc(2,km,2,0,"p",32),e.YNc(3,Fm,2,1,"p",32),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Nm=function(n){return{"display-none":n}};function Om(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Nm,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function Rm(n,i){1&n&&e._UZ(0,"tr",49)}function Im(n,i){1&n&&e._UZ(0,"tr",50)}function Mm(n,i){1&n&&e._UZ(0,"mat-icon",36)}const Dm=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Pm=function(){return["no_utxo"]};let Jm=(()=>{class n{constructor(t,a,o,s,u,g){this.logger=t,this.commonService=a,this.dataService=o,this.store=s,this.rtlEffects=u,this.decimalPipe=g,this.isDustUTXO=!1,this.addressType=l.x$,this.faMoneyBillWave=Z.aj4,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount_sat","confirmations","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"])}ngOnInit(){this.store.select(C.T4).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),t.utxos&&t.utxos.length>0&&(this.dustUtxos=t.utxos.filter(a=>+a.amount_sat<1e3),this.utxos=t.utxos,this.loadUTXOsTable(this.isDustUTXO?this.dustUtxos:this.utxos)),this.logger.info(t)})}ngOnChanges(){!this.isDustUTXO&&this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos),this.isDustUTXO&&this.dustUtxos&&this.dustUtxos.length>0&&this.loadUTXOsTable(this.dustUtxos)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(t){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:t.outpoint.txid_str,title:"Transaction ID",width:100,type:l.Gi.STRING}],[{key:"label",value:t.label,title:"Label",width:100,type:l.Gi.STRING}],[{key:"output_index",value:t.outpoint.output_index,title:"Output Index",width:34,type:l.Gi.NUMBER},{key:"amount_sat",value:t.amount_sat,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER},{key:"confirmations",value:t.confirmations,title:"Confirmations",width:33,type:l.Gi.NUMBER}],[{key:"address_type",value:this.addressType[t.address_type].name,title:"Address Type",width:34},{key:"address",value:t.address,title:"Address",width:66}],[{key:"pk_script",value:t.pk_script,title:"PK Script",width:100,type:l.Gi.STRING}]]}}}))}loadUTXOsTable(t){this.listUTXOs=new r.by([...t]),this.listUTXOs.filterPredicate=(a,o)=>((a.label?a.label.toLowerCase():"")+(a.outpoint.txid_str?a.outpoint.txid_str.toLowerCase():"")+(a.outpoint.output_index?a.outpoint.output_index:"")+(a.outpoint.txid_bytes?a.outpoint.txid_bytes.toLowerCase():"")+(a.address?a.address.toLowerCase():"")+(a.address_type?a.address_type.toLowerCase():"")+(a.amount_sat?a.amount_sat:"")+(a.confirmations?a.confirmations:"")+(a.pk_script?a.pk_script.toLowerCase():"")).includes(o),this.listUTXOs.sortingDataAccessor=(a,o)=>{switch(o){case"tx_id":return a.outpoint.txid_str.toLocaleLowerCase();case"output":return+a.outpoint.output_index;default:return a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null}},this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onLabelUTXO(t){this.store.dispatch((0,v.qR)({payload:{data:{utxo:t,component:_m}}}))}onLeaseUTXO(t){const a=[[{key:"txid_str",value:t.outpoint.txid_str,title:"Transaction ID",width:100}],[{key:"amount_sat",value:this.decimalPipe.transform(t.amount_sat),title:"Amount (Sats)",width:100}]];t.label&&a.splice(1,0,[{key:"label",value:t.label,title:"Label",width:100}]),this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Lease UTXO",informationMessage:"The UTXO will be leased for 10 minutes.",message:a,noBtnText:"Cancel",yesBtnText:"Lease UTXO"}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{o&&this.dataService.leaseUTXO(t.outpoint.txid_bytes,t.outpoint.output_index)})}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 n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(j.D),e.Y36(w.yh),e.Y36(oe.V),e.Y36(p.JJ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{isDustUTXO:"isDustUTXO"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("UTXOs")}]),e.TTD],decls:35,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-3",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["fxLayout","row"],[4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"small-icon"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"div",5),e.YNc(6,dm,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,hm,2,0,"th",10),e.YNc(11,Cm,5,5,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,xm,2,0,"th",13),e.YNc(14,Zm,3,1,"td",14),e.BQk(),e.ynx(15,15),e.YNc(16,ym,2,0,"th",10),e.YNc(17,Tm,2,4,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,bm,2,0,"th",13),e.YNc(20,Am,4,3,"td",14),e.BQk(),e.ynx(21,17),e.YNc(22,vm,2,0,"th",13),e.YNc(23,wm,4,3,"td",14),e.BQk(),e.ynx(24,18),e.YNc(25,qm,6,0,"th",19),e.YNc(26,Sm,10,0,"td",20),e.BQk(),e.ynx(27,21),e.YNc(28,Um,4,3,"td",22),e.BQk(),e.YNc(29,Om,1,3,"tr",23),e.YNc(30,Rm,1,0,"tr",24),e.YNc(31,Im,1,0,"tr",25),e.qZA(),e._UZ(32,"mat-paginator",26),e.qZA(),e.qZA(),e.qZA(),e.YNc(33,Mm,1,0,"ng-template",null,27,e.W1O)),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selFilter),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.listUTXOs)("ngClass",e.VKq(11,Dm,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(13,Pm)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,X.gM,K.Hw,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{padding-left:1rem;flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-tx_id[_ngcontent-%COMP%]{flex:1 1 15%}.mat-column-tx_id[_ngcontent-%COMP%] .ellipsis-child[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function Em(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Qm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Date/Time "),e.qZA())}function Ym(n,i){if(1&n&&(e.TgZ(0,"td",30),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,1e3*t.time_stamp,"dd/MMM/y HH:mm"))}}function Hm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Label "),e.qZA())}const Bm=function(n){return{"max-width":n}};function Vm(n,i){if(1&n&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Bm,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.label," ")}}function Gm(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Amount (Sats) "),e.qZA())}function zm(n,i){if(1&n&&(e.TgZ(0,"span",35),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.amount))}}function Wm(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij("(",e.lcZ(2,1,-1*t.amount),")")}}function Xm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.YNc(1,zm,3,3,"span",33),e.YNc(2,Wm,3,3,"span",34),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf",t.amount>0||0===t.amount),e.xp6(1),e.Q6J("ngIf",t.amount<0)}}function $m(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Fees (Sats) "),e.qZA())}function jm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_fees))}}function Km(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Block Height "),e.qZA())}function e_(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.block_height))}}function t_(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Confirmations "),e.qZA())}function n_(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.num_confirmations)," ")}}function a_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",37),e.TgZ(1,"div",38),e.TgZ(2,"mat-select",39),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function i_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",41),e.TgZ(1,"button",42),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onTransactionClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function o_(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No transaction available."),e.qZA())}function s_(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting transactions..."),e.qZA())}function l_(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function r_(n,i){if(1&n&&(e.TgZ(0,"td",43),e.YNc(1,o_,2,0,"p",44),e.YNc(2,s_,2,0,"p",44),e.YNc(3,l_,2,1,"p",44),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const c_=function(n){return{"display-none":n}};function u_(n,i){if(1&n&&e._UZ(0,"tr",45),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,c_,(null==t.listTransactions?null:t.listTransactions.data)&&(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)>0))}}function p_(n,i){1&n&&e._UZ(0,"tr",46)}function m_(n,i){1&n&&e._UZ(0,"tr",47)}const __=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},d_=function(){return["no_transaction"]};let h_=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.datePipe=s,this.faHistory=Z.qO$,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","num_confirmations","total_fees","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["time_stamp","label","amount","total_fees","num_confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["time_stamp","label","amount","total_fees","block_height","num_confirmations","actions"])}ngOnInit(){this.store.select(C.dx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),t.transactions&&t.transactions.length>0&&(this.transactions=t.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(t)})}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}onTransactionClick(t){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:t.block_hash,title:"Block Hash",width:100}],[{key:"tx_hash",value:t.tx_hash,title:"Transaction Hash",width:100}],[{key:"label",value:t.label,title:"Label",width:100,type:l.Gi.STRING}],[{key:"time_stamp",value:t.time_stamp,title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"block_height",value:t.block_height,title:"Block Height",width:50,type:l.Gi.NUMBER}],[{key:"num_confirmations",value:t.num_confirmations,title:"Number of Confirmations",width:34,type:l.Gi.NUMBER},{key:"total_fees",value:t.total_fees,title:"Total Fees (Sats)",width:33,type:l.Gi.NUMBER},{key:"amount",value:t.amount,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER}],[{key:"dest_addresses",value:t.dest_addresses,title:"Destination Addresses",width:100,type:l.Gi.ARRAY}]],scrollable:t.dest_addresses&&t.dest_addresses.length>5}}}))}loadTransactionsTable(t){this.listTransactions=new r.by([...t]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.listTransactions.filterPredicate=(a,o)=>((a.time_stamp?this.datePipe.transform(new Date(1e3*a.time_stamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.listTransactions.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Transactions")}]),e.TTD],decls:36,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"div",5),e.YNc(6,Em,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Qm,2,0,"th",10),e.YNc(11,Ym,3,4,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Hm,2,0,"th",10),e.YNc(14,Vm,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Gm,2,0,"th",15),e.YNc(17,Xm,3,2,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,$m,2,0,"th",15),e.YNc(20,jm,4,3,"td",11),e.BQk(),e.ynx(21,17),e.YNc(22,Km,2,0,"th",15),e.YNc(23,e_,4,3,"td",11),e.BQk(),e.ynx(24,18),e.YNc(25,t_,2,0,"th",15),e.YNc(26,n_,4,3,"td",11),e.BQk(),e.ynx(27,19),e.YNc(28,a_,6,0,"th",20),e.YNc(29,i_,3,0,"td",21),e.BQk(),e.ynx(30,22),e.YNc(31,r_,4,3,"td",23),e.BQk(),e.YNc(32,u_,1,3,"tr",24),e.YNc(33,p_,1,0,"tr",25),e.YNc(34,m_,1,0,"tr",26),e.qZA(),e._UZ(35,"mat-paginator",27),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selFilter),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.listTransactions)("ngClass",e.VKq(11,__,""!==a.errorMessage)),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(13,d_)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.uU,p.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function g_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"UTXOs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numUtxos)}}function f_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"Transactions"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numTransactions)}}function C_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"Dust UTXOs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numDustUtxos)}}let x_=(()=>{class n{constructor(t,a){this.logger=t,this.store=a,this.selectedTableIndex=0,this.selectedTableIndexChange=new e.vpe,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.store.dispatch((0,b.mC)()),this.store.dispatch((0,b.Ly)()),this.store.select(C.T4).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.utxos&&t.utxos.length>0&&(this.numUtxos=t.utxos.length,this.numDustUtxos=t.utxos.filter(a=>+a.amount_sat<1e3).length),this.logger.info(t)}),this.store.select(C.dx).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{t.transactions&&t.transactions.length>0&&(this.numTransactions=t.transactions.length),this.logger.info(t)})}onSelectedIndexChanged(t){this.selectedTableIndexChange.emit(t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:11,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-tab-group",1),e.NdJ("selectedIndexChange",function(s){return a.onSelectedIndexChanged(s)}),e.TgZ(2,"mat-tab"),e.YNc(3,g_,2,1,"ng-template",2),e._UZ(4,"rtl-on-chain-utxos",3),e.qZA(),e.TgZ(5,"mat-tab"),e.YNc(6,f_,2,1,"ng-template",2),e._UZ(7,"rtl-on-chain-transaction-history",4),e.qZA(),e.TgZ(8,"mat-tab"),e.YNc(9,C_,2,1,"ng-template",2),e._UZ(10,"rtl-on-chain-utxos",3),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("selectedIndex",a.selectedTableIndex),e.xp6(3),e.Q6J("isDustUTXO",!1),e.xp6(6),e.Q6J("isDustUTXO",!0))},directives:[_.xw,_.yH,_.Wh,D.SP,D.uX,D.uD,Jm,h_,fe.k],styles:[""]}),n})();const Z_=function(n,i){return[n,i]};function y_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=null==s?null:s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.Q6J("active",a.activeLink===(null==t?null:t.link))("routerLink",e.WLB(3,Z_,null==t?null:t.link,null==a.selectedTable?null:a.selectedTable.name)),e.xp6(1),e.Oqu(null==t?null:t.name)}}let T_=(()=>{class n{constructor(t,a,o){this.store=t,this.router=a,this.activatedRoute=o,this.selNode={},this.faExchangeAlt=Z.Ssp,this.faChartPie=Z.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"},{id:2,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(a=>a.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link,this.selectedTable=this.tables.find(s=>s.name===a.urlAfterRedirects.substring(a.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[1])).subscribe(a=>{this.selNode=a}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[2])).subscribe(a=>{this.balances=[{title:"Total Balance",dataValue:a.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:a.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:a.blockchainBalance.unconfirmed_balance}]})}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(a=>a.id===t),this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(y.F0),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain"]],decls:21,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"On-chain Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"On-chain Transactions"),e.qZA(),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"nav",7),e.YNc(16,y_,2,6,"div",8),e.qZA(),e.TgZ(17,"div",9),e._UZ(18,"router-outlet"),e.qZA(),e.TgZ(19,"div",10),e.TgZ(20,"rtl-utxo-tables",11),e.NdJ("selectedTableIndexChange",function(s){return a.onSelectedTableIndexChanged(s)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faExchangeAlt),e.xp6(7),e.Q6J("ngForOf",a.links),e.xp6(4),e.Q6J("selectedTableIndex",null==a.selectedTable?null:a.selectedTable.id))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.BU,p.sg,_.yH,y.lC,x_,D.Nj,y.rH],styles:[""]}),n})();var b_=h(9122);function A_(n,i){if(1&n&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.addressTp," ")}}let v_=(()=>{class n{constructor(t,a){this.store=t,this.lndEffects=a,this.addressTypes=l._t,this.selectedAddressType=l._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,b._E)({payload:this.selectedAddressType})),this.lndEffects.setNewAddress.pipe((0,V.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,v.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:b_.n}}}))},0)})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(ee.l))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"mat-select",3),e.NdJ("ngModelChange",function(s){return a.selectedAddressType=s}),e.YNc(4,A_,2,2,"mat-option",4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"button",6),e.NdJ("click",function(){return a.onGenerateAddress()}),e._uU(7,"Generate Address"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selectedAddressType),e.xp6(1),e.Q6J("ngForOf",a.addressTypes))},directives:[_.xw,_.Wh,f.KE,_.yH,R.gD,c.JJ,c.On,p.sg,L.lW,Y.ey],styles:[""]}),n})();var w_=h(8012),Xe=h(8377);const q_=["form"],S_=["formSweepAll"],L_=["stepper"];function k_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Bitcoin address is required."),e.qZA())}function F_(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.amountError)}}function U_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t)}}function N_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function O_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function R_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",23),e.TgZ(1,"input",32,33),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).transactionBlocks=o}),e.qZA(),e.YNc(3,O_,2,0,"mat-error",14),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.transactionBlocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.transactionBlocks)}}function I_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function M_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",23),e.TgZ(1,"input",34,35),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).transactionFees=o}),e.qZA(),e.YNc(3,I_,2,0,"mat-error",14),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.transactionFees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.transactionFees)}}function D_(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.sendFundError)}}function P_(n,i){if(1&n&&(e.TgZ(0,"div",36),e._UZ(1,"fa-icon",37),e.YNc(2,D_,2,1,"span",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.sendFundError)}}function J_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",9,10),e.NdJ("submit",function(){return e.CHM(t),e.oxw().onSendFunds()})("reset",function(){return e.CHM(t),e.oxw().resetData()}),e.TgZ(2,"mat-form-field",11),e.TgZ(3,"input",12,13),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().transactionAddress=o}),e.qZA(),e.YNc(5,k_,2,0,"mat-error",14),e.qZA(),e.TgZ(6,"mat-form-field",15),e.TgZ(7,"input",16,17),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().transactionAmount=o}),e.qZA(),e.TgZ(9,"span",18),e._uU(10),e.qZA(),e.YNc(11,F_,2,1,"mat-error",14),e.qZA(),e.TgZ(12,"mat-form-field",19),e.TgZ(13,"mat-select",20),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().onAmountUnitChange(o)}),e.YNc(14,U_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.TgZ(15,"div",22),e.TgZ(16,"mat-form-field",23),e.TgZ(17,"mat-select",24),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().selTransType=o}),e.YNc(18,N_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.YNc(19,R_,4,4,"mat-form-field",25),e.YNc(20,M_,4,4,"mat-form-field",25),e.qZA(),e._UZ(21,"div",26),e.YNc(22,P_,3,2,"div",27),e.TgZ(23,"div",28),e.TgZ(24,"button",29),e._uU(25,"Clear Fields"),e.qZA(),e.TgZ(26,"button",30),e._uU(27,"Send Funds"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.transactionAddress),e.xp6(2),e.Q6J("ngIf",!t.transactionAddress),e.xp6(2),e.Q6J("ngModel",t.transactionAmount)("step",100)("min",0),e.xp6(3),e.hij(" ",t.selAmountUnit," "),e.xp6(1),e.Q6J("ngIf",!t.transactionAmount),e.xp6(2),e.Q6J("value",t.selAmountUnit),e.xp6(1),e.Q6J("ngForOf",t.amountUnits),e.xp6(3),e.Q6J("value",t.selTransType),e.xp6(1),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","1"===t.selTransType),e.xp6(1),e.Q6J("ngIf","2"===t.selTransType),e.xp6(2),e.Q6J("ngIf",""!==t.sendFundError)}}function E_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(3);e.Oqu(t.passwordFormLabel)}}function Q_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Y_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-step",42),e.TgZ(1,"form",61),e.YNc(2,E_,1,1,"ng-template",55),e.TgZ(3,"div",0),e.TgZ(4,"mat-form-field",1),e._UZ(5,"input",62),e.YNc(6,Q_,2,0,"mat-error",14),e.qZA(),e.qZA(),e.TgZ(7,"div",63),e.TgZ(8,"button",64),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onAuthenticate()}),e._uU(9,"Confirm"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("stepControl",t.passwordFormGroup)("editable",t.flgEditable),e.xp6(1),e.Q6J("formGroup",t.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.password.errors?null:t.passwordFormGroup.controls.password.errors.required)}}function H_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.sendFundFormLabel)}}function B_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Bitcoin address is required."),e.qZA())}function V_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function G_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function z_(n,i){if(1&n&&(e.TgZ(0,"mat-form-field",65),e._UZ(1,"input",66),e.YNc(2,G_,2,0,"mat-error",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("step",1)("min",0),e.xp6(1),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionBlocks.errors?null:t.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function W_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function X_(n,i){if(1&n&&(e.TgZ(0,"mat-form-field",65),e._UZ(1,"input",67),e.YNc(2,W_,2,0,"mat-error",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("step",1)("min",0),e.xp6(1),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionFees.errors?null:t.sendFundFormGroup.controls.transactionFees.errors.required)}}function $_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.confirmFormLabel)}}function j_(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.sendFundError)}}function K_(n,i){if(1&n&&(e.TgZ(0,"div",36),e._UZ(1,"fa-icon",37),e.YNc(2,j_,2,1,"span",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.sendFundError)}}function ed(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",38),e.TgZ(1,"mat-vertical-stepper",39,40),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().stepSelectionChanged(o)}),e.YNc(3,Y_,10,4,"mat-step",41),e.TgZ(4,"mat-step",42),e.TgZ(5,"form",43),e.YNc(6,H_,1,1,"ng-template",44),e.TgZ(7,"div",45),e.TgZ(8,"mat-form-field",46),e._UZ(9,"input",47),e.YNc(10,B_,2,0,"mat-error",14),e.qZA(),e.TgZ(11,"mat-form-field",48),e.TgZ(12,"mat-select",49),e.YNc(13,V_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.YNc(14,z_,3,3,"mat-form-field",50),e.YNc(15,X_,3,3,"mat-form-field",50),e.qZA(),e.TgZ(16,"div",51),e.TgZ(17,"button",52),e._uU(18,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"mat-step",53),e.TgZ(20,"form",54),e.YNc(21,$_,1,1,"ng-template",55),e.TgZ(22,"div",38),e.TgZ(23,"div",56),e._UZ(24,"fa-icon",57),e.TgZ(25,"span"),e._uU(26,"You are about to sweep all funds from RTL. Are you sure?"),e.qZA(),e.qZA(),e.YNc(27,K_,3,2,"div",27),e.TgZ(28,"div",51),e.TgZ(29,"button",58),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSendFunds()}),e._uU(30,"Sweep All Funds"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",59),e.TgZ(32,"button",60),e._uU(33),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("linear",!0),e.xp6(2),e.Q6J("ngIf",!t.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("stepControl",t.sendFundFormGroup)("editable",t.flgEditable),e.xp6(1),e.Q6J("formGroup",t.sendFundFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionAddress.errors?null:t.sendFundFormGroup.controls.transactionAddress.errors.required),e.xp6(3),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","1"===t.sendFundFormGroup.controls.selTransType.value),e.xp6(1),e.Q6J("ngIf","2"===t.sendFundFormGroup.controls.selTransType.value),e.xp6(4),e.Q6J("stepControl",t.confirmFormGroup),e.xp6(1),e.Q6J("formGroup",t.confirmFormGroup),e.xp6(4),e.Q6J("icon",t.faExclamationTriangle),e.xp6(3),e.Q6J("ngIf",""!==t.sendFundError),e.xp6(5),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(t.flgValidated?"Close":"Cancel")}}let td=(()=>{class n{constructor(t,a,o,s,u,g,N,x,U,re){this.dialogRef=t,this.data=a,this.logger=o,this.store=s,this.rtlEffects=u,this.commonService=g,this.decimalPipe=N,this.snackBar=x,this.actions=U,this.formBuilder=re,this.faExclamationTriangle=Z.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=l.uA,this.selAmountUnit=l.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=l.Xz,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[c.kI.required]],password:["",[c.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",c.kI.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",c.kI.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{"1"===t?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([c.kI.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([c.kI.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select(Xe.Yj).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.appConfig=t}),this.store.select(Xe.dT).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[3]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND||t.type===l.uR.SET_CHANNEL_TRANSACTION_RES_LND)).subscribe(t=>{t.type===l.uR.SET_CHANNEL_TRANSACTION_RES_LND&&(this.store.dispatch((0,v.jW)({payload:this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!"})),this.dialogRef.close()),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.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,v.QO)({payload:w_(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,V.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.invalidValues)return!0;this.sendFundError="";const t={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(t.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(t.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(t.fees=this.sendFundFormGroup.controls.transactionFees.value)):(t.address=this.transactionAddress,"1"===this.selTransType&&(t.blocks=this.transactionBlocks),"2"===this.selTransType&&(t.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==l.NT.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit,l.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:a=>{this.selAmountUnit=l.NT.SATS,t.amount=+this.decimalPipe.transform(a[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]]).replace(/,/g,""),this.store.dispatch((0,b.Wi)({payload:t}))},error:a=>{this.transactionAmount=null,this.selAmountUnit=l.NT.SATS,this.amountError="Conversion Error: "+a}}):this.store.dispatch((0,b.Wi)({payload:t}))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(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.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" (Sats/vByte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value)}t.selectedIndex{this.selAmountUnit=t.value,a.transactionAmount=+a.decimalPipe.transform(g[s],a.currencyUnitFormats[s]).replace(/,/g,"")},error:g=>{a.transactionAmount=null,this.amountError="Conversion Error: "+g,this.selAmountUnit=o,s=o}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(w.yh),e.Y36(oe.V),e.Y36(O.v),e.Y36(p.JJ),e.Y36(te.ux),e.Y36(G.eX),e.Y36(c.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(t,a){if(1&t&&(e.Gf(q_,7),e.Gf(S_,5),e.Gf(L_,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.formSweepAll=o.first),e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","55"],["autoFocus","","matInput","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex.gt-sm","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","48"],["tabindex","4",3,"value","valueChange"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","5",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","6",3,"ngModel","step","min","ngModelChange"],["fees","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxFlex.gt-sm","25"],["formControlName","selTransType","tabindex","5"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","6",3,"step","min"],["matInput","","formControlName","transactionFees","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","7",3,"step","min"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.YNc(9,J_,28,14,"form",7),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,ed,34,15,"ng-template",null,8,e.W1O)),2&t){const o=e.MAs(11);e.xp6(5),e.Oqu(a.sweepAll?"Sweep All Funds":"Send Funds"),e.xp6(1),e.Q6J("mat-dialog-close",!1),e.xp6(3),e.Q6J("ngIf",!a.sweepAll)("ngIfElse",o)}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,R.gD,p.sg,f.TO,Y.ey,M.BN,B.Vq,B.C0,c.sg,B.VY,c.u,B.Ic],styles:[""]}),n})(),$e=(()=>{class n{constructor(t,a){this.store=t,this.activatedRoute=a,this.sweepAll=!1,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.activatedRoute.data.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.sweepAll=t.sweepAll})}openSendFundsModal(){this.store.dispatch((0,v.qR)({payload:{data:{sweepAll:this.sweepAll,component:td}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.openSendFundsModal()}),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Oqu(a.sweepAll?"Sweep All":"Send Funds"))},directives:[_.xw,_.yH,_.Wh,L.lW],styles:[""]}),n})();function nd(n,i){1&n&&e._UZ(0,"mat-progress-bar",26)}function ad(n,i){if(1&n&&e._UZ(0,"rtl-node-info",27),2&n){const t=e.oxw(3);e.Q6J("information",t.information)("showColorFieldSeparately",!0)}}function id(n,i){if(1&n&&e._UZ(0,"rtl-channel-status-info",28),2&n){const t=e.oxw(3);e.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[4])}}function od(n,i){if(1&n&&e._UZ(0,"rtl-fee-info",29),2&n){const t=e.oxw(3);e.Q6J("fees",t.fees)("errorMessage",t.errorMessages[2])}}const je=function(n){return{"dashboard-card-content":!0,"error-border":n}};function sd(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",13),e.TgZ(1,"div",14),e.TgZ(2,"div",15),e.TgZ(3,"div",16),e._UZ(4,"fa-icon",17),e.TgZ(5,"span"),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",18),e.TgZ(8,"mat-card",19),e.TgZ(9,"mat-card-content",20),e.YNc(10,nd,1,0,"mat-progress-bar",21),e.TgZ(11,"div",22),e.YNc(12,ad,1,2,"rtl-node-info",23),e.YNc(13,id,1,2,"rtl-channel-status-info",24),e.YNc(14,od,1,2,"rtl-fee-info",25),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(4),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(3),e.Q6J("ngClass",e.VKq(10,je,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.ERROR)||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.INITIATED)||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","status"),e.xp6(1),e.Q6J("ngSwitchCase","fee")}}function ld(n,i){if(1&n&&(e.TgZ(0,"mat-grid-list",11),e.YNc(1,sd,15,12,"mat-grid-tile",12),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.nodeCards)}}function rd(n,i){1&n&&e._UZ(0,"mat-progress-bar",26)}function cd(n,i){1&n&&e.GkF(0)}function ud(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,cd,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function pd(n,i){1&n&&e.GkF(0)}function md(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,pd,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(13);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function _d(n,i){1&n&&e.GkF(0)}function dd(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,_d,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(15);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function hd(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",30),e.TgZ(1,"mat-card",31),e.TgZ(2,"mat-card-content",20),e.YNc(3,rd,1,0,"mat-progress-bar",21),e.TgZ(4,"div",22),e.YNc(5,ud,2,1,"div",32),e.YNc(6,md,2,1,"div",32),e.YNc(7,dd,2,1,"div",32),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(2),e.Q6J("ngClass",e.VKq(8,je,a.apiCallStatusNetwork.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf",a.apiCallStatusNetwork.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","general"),e.xp6(1),e.Q6J("ngSwitchCase","channels"),e.xp6(1),e.Q6J("ngSwitchCase","degrees")}}function gd(n,i){if(1&n&&(e.TgZ(0,"div",35),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessages[1])}}function fd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Network Capacity"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Number of Nodes"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",37),e._uU(15,"Number of Channels"),e.qZA(),e.TgZ(16,"span",38),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.hij("",e.lcZ(6,3,t.networkInfo.total_network_capacity)," Sats"),e.xp6(6),e.Oqu(e.lcZ(12,5,t.networkInfo.num_nodes)),e.xp6(6),e.Oqu(e.lcZ(18,7,t.networkInfo.num_channels))}}function Cd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Max Channel Size"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Avg Channel Size"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",37),e._uU(15,"Min Channel Size"),e.qZA(),e.TgZ(16,"span",38),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.Oqu(e.lcZ(6,3,t.networkInfo.max_channel_size)),e.xp6(6),e.Oqu(e.lcZ(12,5,t.networkInfo.avg_channel_size)),e.xp6(6),e.Oqu(e.lcZ(18,7,t.networkInfo.min_channel_size))}}function xd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Max Out Degree"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Avg Out Degree"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div",39),e._UZ(14,"h4",37),e._UZ(15,"span",38),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.Oqu(e.lcZ(6,2,t.networkInfo.max_out_degree)),e.xp6(6),e.Oqu(e.xi3(12,4,t.networkInfo.avg_out_degree,"1.0-2"))}}const Zd=function(n){return{"mt-1":n}};let yd=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.faProjectDiagram=Z.o4t,this.faBolt=Z.BDt,this.faServer=Z.xf3,this.faNetworkWired=Z.kXW,this.selNode={},this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=l.cu,this.userPersonaEnum=l.ol,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusNetwork=null,this.apiCallStatusFees=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select(C.bx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apiCallStatus,this.apiCallStatusNodeInfo.status===l.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.store.select(C.N7).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusNetwork=t.apiCallStatus,this.apiCallStatusNetwork.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusNetwork.message?JSON.stringify(this.apiCallStatusNetwork.message):this.apiCallStatusNetwork.message),this.networkInfo=t.networkInfo}),this.store.select(C.JG).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[2]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=t.apiCallStatus,this.apiCallStatusPendingChannels.status===l.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message),this.channelsStatus.pending={num_channels:t.pendingChannelsSummary.open.num_channels,capacity:t.pendingChannelsSummary.open.limbo_balance},this.channelsStatus.closing={num_channels:t.pendingChannelsSummary.closing.num_channels+t.pendingChannelsSummary.force_closing.num_channels+t.pendingChannelsSummary.waiting_close.num_channels,capacity:t.pendingChannelsSummary.total_limbo_balance}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[3]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message),this.channelsStatus.active=t.channelsSummary.active,this.channelsStatus.inactive=t.channelsSummary.inactive,this.logger.info(t)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-network-info"]],decls:16,vars:6,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,ld,2,1,"mat-grid-list",1),e.TgZ(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5,"Network"),e.qZA(),e.qZA(),e.TgZ(6,"mat-grid-list",5),e.YNc(7,hd,8,10,"mat-grid-tile",6),e.qZA(),e.qZA(),e.YNc(8,gd,3,1,"ng-template",null,7,e.W1O),e.YNc(10,fd,19,9,"ng-template",null,8,e.W1O),e.YNc(12,Cd,19,9,"ng-template",null,9,e.W1O),e.YNc(14,xd,16,7,"ng-template",null,10,e.W1O)),2&t&&(e.xp6(1),e.Q6J("ngIf",a.selNode.userPersona!==a.userPersonaEnum.OPERATOR),e.xp6(1),e.Q6J("ngClass",e.VKq(4,Zd,a.screenSize!==a.screenSizeEnum.XS)),e.xp6(1),e.Q6J("icon",a.faProjectDiagram),e.xp6(4),e.Q6J("ngForOf",a.networkCards))},directives:[_.xw,_.Wh,p.O5,p.mk,q.oO,M.BN,ce.Il,p.sg,ce.DX,_.yH,T.a8,T.dn,p.RF,p.n9,P.pW,Fe,Ne,Ue,p.tP],pipes:[p.JJ],styles:[""]}),n})();function Td(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let bd=(()=>{class n{constructor(t){this.router=t,this.faDownload=Z.q7m,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-backup"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Channels Backup"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,Td,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faDownload),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function Ad(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",23),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.TgZ(3,"div",25),e.TgZ(4,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().onRestoreChannels({})}),e._uU(5,"Restore All"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function vd(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.TgZ(3,"h4",28),e._uU(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function wd(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function qd(n,i){1&n&&e._UZ(0,"mat-progress-bar",29)}function Sd(n,i){1&n&&(e.TgZ(0,"th",30),e._uU(1," Channel Point "),e.qZA())}const Ld=function(n){return{"max-width":n}};function kd(n,i){if(1&n&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ld,a.screenSize===a.screenSizeEnum.XS?"10rem":"45rem")),e.xp6(1),e.Oqu(null==t?null:t.channel_point)}}function Fd(n,i){1&n&&(e.TgZ(0,"th",32),e.TgZ(1,"span",33),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Ud(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",34),e.TgZ(1,"span",33),e.TgZ(2,"button",35),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onRestoreChannels(s)}),e._uU(3,"Restore"),e.qZA(),e.qZA(),e.qZA()}}function Nd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No singular channel backups available."),e.qZA())}function Od(n,i){if(1&n&&(e.TgZ(0,"td",36),e.YNc(1,Nd,2,0,"p",37),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.channels||!t.channels.data||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)}}const Rd=function(n){return{"display-none":n}};function Id(n,i){if(1&n&&e._UZ(0,"tr",38),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Rd,t.channels&&t.channels.data&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Md(n,i){1&n&&e._UZ(0,"tr",39)}function Dd(n,i){1&n&&e._UZ(0,"tr",40)}const Pd=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Jd=function(){return["no_channel"]};let Ed=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.lndEffects=o,this.commonService=s,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.allRestoreExists=!1,this.flgLoading=[!0],this.flgSticky=!1,this.selFilter="",this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,b.tb)()),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.lndEffects.setRestoreChannelList.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.allRestoreExists=t.all_restore_exists,this.channelsData=t.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||t&&t.files)&&(this.flgLoading[0]=!1),this.logger.info(t)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(t){this.store.dispatch((0,b.vV)({payload:{channelPoint:t.channel_point?t.channel_point:"ALL"}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadRestoreTable(t){this.channels=new r.by([...t]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.channels.paginator=this.paginator,this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-restore-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:24,vars:17,consts:[["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell",""],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Ad,6,1,"div",1),e.YNc(2,vd,5,1,"div",2),e.YNc(3,wd,3,1,"div",2),e.TgZ(4,"div",3),e._UZ(5,"div",4),e.TgZ(6,"mat-form-field",5),e.TgZ(7,"input",6),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.YNc(9,qd,1,0,"mat-progress-bar",8),e.TgZ(10,"table",9,10),e.ynx(12,11),e.YNc(13,Sd,2,0,"th",12),e.YNc(14,kd,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Fd,3,0,"th",15),e.YNc(17,Ud,4,0,"td",16),e.BQk(),e.ynx(18,17),e.YNc(19,Od,2,1,"td",18),e.BQk(),e.YNc(20,Id,1,3,"tr",19),e.YNc(21,Md,1,0,"tr",20),e.YNc(22,Dd,1,0,"tr",21),e.qZA(),e.qZA(),e._UZ(23,"mat-paginator",22),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.allRestoreExists),e.xp6(1),e.Q6J("ngIf",!a.allRestoreExists&&(!a.channels||(null==a.channels||null==a.channels.data?null:a.channels.data.length)<=0)),e.xp6(1),e.Q6J("ngIf",!a.allRestoreExists&&a.channels&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)>0),e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",!0===a.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(14,Pd,"error"===a.flgLoading[0])),e.xp6(10),e.Q6J("matFooterRowDef",e.DdM(16,Jd)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,p.O5,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,L.lW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,r.yh,r.Q2,r.XQ,r.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Qd(n,i){1&n&&e._UZ(0,"mat-progress-bar",31)}function Yd(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Channel Point "),e.qZA())}const Hd=function(n){return{"max-width":n}};function Bd(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Hd,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(null==t?null:t.channel_point)}}function Vd(n,i){1&n&&(e.TgZ(0,"th",34),e.TgZ(1,"span",35),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Gd(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",36),e.TgZ(1,"div",37),e.TgZ(2,"mat-select",38),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",39),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onChannelClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onBackupChannels(s)}),e._uU(7,"Backup"),e.qZA(),e.TgZ(8,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onDownloadBackup(s)}),e._uU(9,"Download Backup"),e.qZA(),e.TgZ(10,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onVerifyChannels(s)}),e._uU(11,"Verify"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function zd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No channel available."),e.qZA())}function Wd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting channels..."),e.qZA())}function Xd(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function $d(n,i){if(1&n&&(e.TgZ(0,"td",40),e.YNc(1,zd,2,0,"p",41),e.YNc(2,Wd,2,0,"p",41),e.YNc(3,Xd,2,1,"p",41),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.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.COMPLETED),e.xp6(1),e.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),e.xp6(1),e.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 jd=function(n){return{"display-none":n}};function Kd(n,i){if(1&n&&e._UZ(0,"tr",42),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,jd,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function eh(n,i){1&n&&e._UZ(0,"tr",43)}function th(n,i){1&n&&e._UZ(0,"tr",44)}const nh=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},ah=function(){return["no_channel"]};let ih=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.actions=o,this.commonService=s,this.faInfoCircle=Z.sqG,this.faExclamationTriangle=Z.eHv,this.faArchive=Z.N2j,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=t.channels,this.channelsData.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(t=>t.type===l.uR.SET_CHANNELS_LND||t.type===l.pg.SHOW_FILE)).subscribe(t=>{t.type===l.uR.SET_CHANNELS_LND&&(this.selectedChannel=null),t.type===l.pg.SHOW_FILE&&(this.commonService.downloadFile(t.payload,"channel-"+(this.selectedChannel.channel_point?this.selectedChannel.channel_point:"all"),".bak",".bak"),this.selectedChannel=null)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(t){this.store.dispatch((0,b.Vv)({payload:{uiMessage:l.m6.BACKUP_CHANNEL,channelPoint:t.channel_point?t.channel_point:"ALL",showMessage:""}}))}onVerifyChannels(t){this.store.dispatch((0,b.Cp)({payload:{channelPoint:t.channel_point?t.channel_point:"ALL"}}))}onDownloadBackup(t){this.selectedChannel=t,this.store.dispatch((0,v.dc)({payload:{channelPoint:t.channel_point?t.channel_point:"all"}}))}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!1,component:xe}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadBackupTable(t){this.channels=new r.by(t?[...t]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(a,o)=>((a.active?"active":"inactive")+(a.channel_point?a.channel_point.toLowerCase():"")+(a.chan_id?a.chan_id.toLowerCase():"")+(a.remote_pubkey?a.remote_pubkey.toLowerCase():"")+(a.remote_alias?a.remote_alias.toLowerCase():"")+(a.capacity?a.capacity:"")+(a.local_balance?a.local_balance:"")+(a.remote_balance?a.remote_balance:"")+(a.total_satoshis_sent?a.total_satoshis_sent:"")+(a.total_satoshis_received?a.total_satoshis_received:"")+(a.commit_fee?a.commit_fee:"")+(a.private?"private":"public")).includes(o),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-backup-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:42,vars:18,consts:[["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell","","fxLayoutAlign","end center"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5,"Save your backup files in a redundant location."),e.qZA(),e.qZA(),e.TgZ(6,"div",4),e._UZ(7,"fa-icon",3),e.TgZ(8,"span"),e.TgZ(9,"strong"),e._uU(10,"Backup Folder Location: "),e.qZA(),e._uU(11),e.qZA(),e.qZA(),e.TgZ(12,"div",5),e.TgZ(13,"button",6),e.NdJ("click",function(){return a.onVerifyChannels({})}),e._uU(14,"Verify All"),e.qZA(),e.TgZ(15,"button",7),e.NdJ("click",function(){return a.onBackupChannels({})}),e._uU(16,"Backup All"),e.qZA(),e.TgZ(17,"button",8),e.NdJ("click",function(){return a.onDownloadBackup({})}),e._uU(18,"Download Backup"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",9),e.TgZ(20,"div",10),e._UZ(21,"fa-icon",11),e.TgZ(22,"span",12),e._uU(23,"Backups"),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",13),e.TgZ(25,"input",14),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",15),e.YNc(27,Qd,1,0,"mat-progress-bar",16),e.TgZ(28,"table",17,18),e.ynx(30,19),e.YNc(31,Yd,2,0,"th",20),e.YNc(32,Bd,2,4,"td",21),e.BQk(),e.ynx(33,22),e.YNc(34,Vd,3,0,"th",23),e.YNc(35,Gd,12,0,"td",24),e.BQk(),e.ynx(36,25),e.YNc(37,$d,4,3,"td",26),e.BQk(),e.YNc(38,Kd,1,3,"tr",27),e.YNc(39,eh,1,0,"tr",28),e.YNc(40,th,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(41,"mat-paginator",30),e.qZA()),2&t&&(e.xp6(3),e.Q6J("icon",a.faExclamationTriangle),e.xp6(4),e.Q6J("icon",a.faInfoCircle),e.xp6(4),e.hij("",a.selNode.channelBackupPath,"."),e.xp6(10),e.Q6J("icon",a.faArchive),e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(15,nh,""!==a.errorMessage)),e.xp6(10),e.Q6J("matFooterRowDef",e.DdM(17,ah)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,M.BN,L.lW,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function oh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let sh=(()=>{class n{constructor(t){this.router=t,this.faUserCheck=Z.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Sign/Verify Message"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,oh,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faUserCheck),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function lh(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Message is required."),e.qZA())}let rh=(()=>{class n{constructor(t,a,o){this.dataService=t,this.snackBar=a,this.logger=o,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new m.x,new m.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.signedMessage=this.message,this.signature=t.signature})}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 n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D),e.Y36(te.ux),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"textarea",4),e.NdJ("ngModelChange",function(s){return a.message=s})("keyup",function(){return a.onMessageChange()}),e.qZA(),e.YNc(5,lh,2,0,"mat-error",5),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"button",7),e.NdJ("click",function(){return a.resetData()}),e._uU(8,"Clear Field"),e.qZA(),e.TgZ(9,"button",8),e.NdJ("click",function(){return a.onSign()}),e._uU(10,"Sign"),e.qZA(),e.qZA(),e._UZ(11,"mat-divider",9),e.TgZ(12,"div",10),e.TgZ(13,"p"),e._uU(14,"Generated Signature"),e.qZA(),e.qZA(),e.TgZ(15,"div",11),e._uU(16),e.qZA(),e.TgZ(17,"div",12),e.TgZ(18,"button",13),e.NdJ("copied",function(s){return a.onCopyField(s)}),e._uU(19,"Copy Signature"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.message),e.xp6(1),e.Q6J("ngIf",!a.message),e.xp6(6),e.Q6J("inset",!0),e.xp6(5),e.Oqu(a.signature),e.xp6(2),e.Q6J("payload",a.signature))},directives:[_.xw,_.yH,_.Wh,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,L.lW,z.d,se.y,f.TO],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function ch(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Message is required."),e.qZA())}function uh(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Signature is required."),e.qZA())}function ph(n,i){1&n&&(e.TgZ(0,"p",13),e.TgZ(1,"mat-icon",14),e._uU(2,"close"),e.qZA(),e._uU(3,"Verification failed, please double check message and signature"),e.qZA())}function mh(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Pubkey Used"),e.qZA())}function _h(n,i){if(1&n&&(e.TgZ(0,"div",20),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(2),e.Oqu(null==t.verifyRes?null:t.verifyRes.pubkey)}}function dh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",21),e.TgZ(1,"button",22),e.NdJ("copied",function(o){return e.CHM(t),e.oxw(2).onCopyField(o)}),e._uU(2,"Copy Pubkey"),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function hh(n,i){if(1&n&&(e.TgZ(0,"div",15),e._UZ(1,"mat-divider",16),e.TgZ(2,"div",17),e.YNc(3,mh,2,0,"p",5),e.qZA(),e.YNc(4,_h,3,1,"div",18),e.YNc(5,dh,3,1,"div",19),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(2),e.Q6J("ngIf",t.verifyRes.valid),e.xp6(1),e.Q6J("ngIf",t.verifyRes.valid),e.xp6(1),e.Q6J("ngIf",t.verifyRes.valid)}}let gh=(()=>{class n{constructor(t,a,o){this.dataService=t,this.snackBar=a,this.logger=o,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new m.x,new m.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,d.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:"",valid: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 n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D),e.Y36(te.ux),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"textarea",4),e.NdJ("ngModelChange",function(s){return a.message=s})("keyup",function(){return a.onChange()}),e.qZA(),e.YNc(5,ch,2,0,"mat-error",5),e.qZA(),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"input",6,7),e.NdJ("ngModelChange",function(s){return a.signature=s})("keyup",function(){return a.onChange()}),e.qZA(),e.YNc(9,uh,2,0,"mat-error",5),e.qZA(),e.YNc(10,ph,4,0,"p",8),e.TgZ(11,"div",9),e.TgZ(12,"button",10),e.NdJ("click",function(){return a.resetData()}),e._uU(13,"Clear Fields"),e.qZA(),e.TgZ(14,"button",11),e.NdJ("click",function(){return a.onVerify()}),e._uU(15,"Verify"),e.qZA(),e.qZA(),e.YNc(16,hh,6,4,"div",12),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.message),e.xp6(1),e.Q6J("ngIf",!a.message),e.xp6(2),e.Q6J("ngModel",a.signature),e.xp6(2),e.Q6J("ngIf",!a.signature),e.xp6(1),e.Q6J("ngIf",a.showVerifyStatus&&!a.verifyRes.valid),e.xp6(6),e.Q6J("ngIf",a.showVerifyStatus&&a.verifyRes.valid))},directives:[_.xw,_.yH,_.Wh,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,L.lW,f.TO,K.Hw,z.d,se.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var fh=h(9442),k=h(1643);function Ch(n,i){if(1&n&&(e.TgZ(0,"div",3),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function xh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e._uU(2,"Non Routing Peers"),e.qZA(),e.TgZ(3,"mat-form-field",11),e.TgZ(4,"input",12),e.NdJ("keyup",function(){return e.CHM(t),e.oxw(2).applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw(2).filter=o}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(4),e.Q6J("ngModel",t.filter)}}function Zh(n,i){1&n&&e._UZ(0,"mat-progress-bar",35)}function yh(n,i){1&n&&(e.TgZ(0,"th",36),e._uU(1,"Channel ID"),e.qZA())}const Ke=function(n){return{"max-width":n}};function Th(n,i){if(1&n&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.Q6J("ngStyle",e.VKq(2,Ke,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function bh(n,i){1&n&&(e.TgZ(0,"th",36),e._uU(1,"Peer Alias"),e.qZA())}function Ah(n,i){if(1&n&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.Q6J("ngStyle",e.VKq(2,Ke,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.remote_alias)}}function vh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Sats Sent"),e.qZA())}function wh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_satoshis_sent))}}function qh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Sats Received"),e.qZA())}function Sh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_satoshis_received))}}function Lh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Local Balance (Sats)"),e.qZA())}function kh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.local_balance))}}function Fh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Remote Balance (Sats)"),e.qZA())}function Uh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.remote_balance))}}function Nh(n,i){1&n&&(e.TgZ(0,"th",41),e.TgZ(1,"span",40),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Oh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",42),e.TgZ(1,"button",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(3).onManagePeer(s)}),e._uU(2,"Manage"),e.qZA(),e.qZA()}}function Rh(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"All peers are routing."),e.qZA())}function Ih(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting non routing peers..."),e.qZA())}function Mh(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.Oqu(t.errorMessage)}}function Dh(n,i){if(1&n&&(e.TgZ(0,"td",44),e.YNc(1,Rh,2,0,"p",45),e.YNc(2,Ih,2,0,"p",45),e.YNc(3,Mh,2,1,"p",45),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ph=function(n){return{"display-none":n}};function Jh(n,i){if(1&n&&e._UZ(0,"tr",46),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ph,(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)>0))}}function Eh(n,i){1&n&&e._UZ(0,"tr",47)}function Qh(n,i){1&n&&e._UZ(0,"tr",48)}const Yh=function(){return["no_non_routing_event"]};function Hh(n,i){if(1&n&&(e.TgZ(0,"div",13),e.YNc(1,Zh,1,0,"mat-progress-bar",14),e.TgZ(2,"table",15,16),e.ynx(4,17),e.YNc(5,yh,2,0,"th",18),e.YNc(6,Th,2,4,"td",19),e.BQk(),e.ynx(7,20),e.YNc(8,bh,2,0,"th",18),e.YNc(9,Ah,2,4,"td",19),e.BQk(),e.ynx(10,21),e.YNc(11,vh,2,0,"th",22),e.YNc(12,wh,4,3,"td",23),e.BQk(),e.ynx(13,24),e.YNc(14,qh,2,0,"th",22),e.YNc(15,Sh,4,3,"td",23),e.BQk(),e.ynx(16,25),e.YNc(17,Lh,2,0,"th",22),e.YNc(18,kh,4,3,"td",23),e.BQk(),e.ynx(19,26),e.YNc(20,Fh,2,0,"th",22),e.YNc(21,Uh,4,3,"td",23),e.BQk(),e.ynx(22,27),e.YNc(23,Nh,3,0,"th",28),e.YNc(24,Oh,3,0,"td",29),e.BQk(),e.ynx(25,30),e.YNc(26,Dh,4,3,"td",31),e.BQk(),e.YNc(27,Jh,1,3,"tr",32),e.YNc(28,Eh,1,0,"tr",33),e.YNc(29,Qh,1,0,"tr",34),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.NonRoutingPeers),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(6,Yh)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function Bh(n,i){if(1&n&&(e.TgZ(0,"div",4),e.YNc(1,xh,5,1,"div",5),e.YNc(2,Hh,30,7,"div",6),e._UZ(3,"mat-paginator",7,8),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",""===t.errorMessage),e.xp6(1),e.Q6J("ngIf",""===t.errorMessage),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Vh=(()=>{class n{constructor(t,a,o,s,u){this.logger=t,this.commonService=a,this.store=o,this.router=s,this.activatedRoute=u,this.routingPeersData=[],this.displayedColumns=[],this.NonRoutingPeers=new r.by([]),this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filter="",this.activeChannels=[],this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","remote_alias","local_balance","remote_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.routingPeersData=t.forwardingHistory.forwarding_events?t.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sort&&this.paginator&&this.loadNonRoutingPeersTable(this.routingPeersData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory)}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.activeChannels=t.channels,this.logger.info(t)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData)}onManagePeer(t){this.router.navigate(["../../","connections","channels","open"],{relativeTo:this.activatedRoute,state:{filter:t.chan_id}})}loadNonRoutingPeersTable(t){if(t.length>0){const a=this.activeChannels.filter(o=>t.findIndex(s=>s.chan_id_in===o.chan_id||s.chan_id_out===o.chan_id)<0);this.NonRoutingPeers=new r.by(a),this.NonRoutingPeers.sort=this.sort,this.NonRoutingPeers.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.NonRoutingPeers.paginator=this.paginator,this.logger.info(this.NonRoutingPeers)}else this.NonRoutingPeers=new r.by([]);this.applyFilter()}applyFilter(){this.NonRoutingPeers.filter=this.filter.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(y.F0),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-non-routing-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Non routing peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginator",""],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","total_satoshis_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_non_routing_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Ch,2,1,"div",1),e.YNc(2,Bh,5,5,"div",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.yH,_.Wh,p.O5,S.NW,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,L.lW,r.yh,r.Q2,p.mk,q.oO,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})(),Gh=(()=>{class n{constructor(t){this.dataService=t,this.paths="",this.unSubs=[new m.x,new m.x]}ngOnInit(){if(this.payment.htlcs&&this.payment.htlcs[0]&&this.payment.htlcs[0].route&&this.payment.htlcs[0].route.hops&&this.payment.htlcs[0].route.hops.length>0){const t=this.payment.htlcs[0].route.hops.reduce((a,o)=>""===a?o.pub_key:a+","+o.pub_key,"");this.dataService.getAliasesFromPubkeys(t,!0).pipe((0,d.R)(this.unSubs[0])).subscribe(a=>{this.paths=a.reduce((o,s)=>""===o?s:o+"\n"+s,"")})}this.payment.payment_request&&""!==this.payment.payment_request.trim()&&this.dataService.decodePayment(this.payment.payment_request,!1).pipe((0,V.q)(1)).subscribe(t=>{t&&t.description&&""!==t.description&&(this.payment.description=t.description)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-payment-lookup"]],inputs:{payment:"payment"},decls:66,vars:20,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","50"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-card-content",1),e.TgZ(2,"div",2),e.TgZ(3,"h4",3),e._uU(4,"Payment Hash"),e.qZA(),e.TgZ(5,"span",4),e._uU(6),e.qZA(),e.qZA(),e._UZ(7,"mat-divider",5),e.TgZ(8,"div",2),e.TgZ(9,"h4",3),e._uU(10,"Payment Preimage"),e.qZA(),e.TgZ(11,"span",4),e.TgZ(12,"div"),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e._UZ(14,"mat-divider",5),e.TgZ(15,"div",2),e.TgZ(16,"h4",3),e._uU(17,"Payment Request"),e.qZA(),e.TgZ(18,"span",4),e.TgZ(19,"div"),e._uU(20),e.qZA(),e.qZA(),e.qZA(),e._UZ(21,"mat-divider",5),e.TgZ(22,"div",2),e.TgZ(23,"h4",3),e._uU(24,"Description"),e.qZA(),e.TgZ(25,"span",4),e.TgZ(26,"div"),e._uU(27),e.qZA(),e.qZA(),e.qZA(),e._UZ(28,"mat-divider",5),e.TgZ(29,"div",6),e.TgZ(30,"div",7),e.TgZ(31,"h4",3),e._uU(32,"Status"),e.qZA(),e.TgZ(33,"span",4),e.TgZ(34,"div"),e._uU(35),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",7),e.TgZ(37,"h4",3),e._uU(38,"Creation Date"),e.qZA(),e.TgZ(39,"span",4),e.TgZ(40,"div"),e._uU(41),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(42,"mat-divider",5),e.TgZ(43,"div",6),e.TgZ(44,"div",7),e.TgZ(45,"h4",3),e._uU(46,"Value (mSats)"),e.qZA(),e.TgZ(47,"span",4),e.TgZ(48,"div"),e._uU(49),e.ALo(50,"number"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",7),e.TgZ(52,"h4",3),e._uU(53,"Fee (mSats)"),e.qZA(),e.TgZ(54,"span",4),e.TgZ(55,"div"),e._uU(56),e.ALo(57,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(58,"mat-divider",5),e.TgZ(59,"div",2),e.TgZ(60,"h4",3),e._uU(61,"Path"),e.qZA(),e.TgZ(62,"span",4),e.TgZ(63,"div"),e._uU(64),e.qZA(),e.qZA(),e.qZA(),e._UZ(65,"mat-divider",5),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_hash),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_preimage),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_request),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.description),e.xp6(1),e.Q6J("inset",!0),e.xp6(7),e.Oqu(null==a.payment?null:a.payment.status),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.creation_date),e.xp6(1),e.Q6J("inset",!0),e.xp6(7),e.Oqu(e.lcZ(50,16,null==a.payment?null:a.payment.value_msat)),e.xp6(7),e.Oqu(e.lcZ(57,18,null==a.payment?null:a.payment.fee_msat)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.paths),e.xp6(1),e.Q6J("inset",!0))},directives:[_.xw,_.yH,_.Wh,T.dn,z.d],pipes:[p.JJ],styles:[""]}),n})();var zh=h(159);function Wh(n,i){if(1&n&&e._UZ(0,"qr-code",22),2&n){const t=e.oxw();e.Q6J("value",null==t.invoice?null:t.invoice.payment_request)("size",t.qrWidth)("errorCorrectionLevel","L")}}function Xh(n,i){1&n&&(e.TgZ(0,"span",23),e._uU(1,"N/A"),e.qZA())}function $h(n,i){if(1&n&&e._UZ(0,"qr-code",22),2&n){const t=e.oxw();e.Q6J("value",null==t.invoice?null:t.invoice.payment_request)("size",t.qrWidth)("errorCorrectionLevel","L")}}function jh(n,i){1&n&&(e.TgZ(0,"span",24),e._uU(1,"QR Code Not Applicable"),e.qZA())}function Kh(n,i){1&n&&e._UZ(0,"mat-divider",16),2&n&&e.Q6J("inset",!0)}function eg(n,i){1&n&&(e.ynx(0),e._uU(1," (zero amount) "),e.BQk())}const Ae=function(n){return{"mr-0":n}};function tg(n,i){if(1&n&&e._UZ(0,"span",38),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ng(n,i){if(1&n&&e._UZ(0,"span",39),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ag(n,i){if(1&n&&e._UZ(0,"span",40),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ig(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"div",32),e.TgZ(2,"span",33),e.YNc(3,tg,1,3,"span",34),e.YNc(4,ng,1,3,"span",35),e.YNc(5,ag,1,3,"span",36),e._uU(6),e.qZA(),e.TgZ(7,"span",37),e._uU(8),e.ALo(9,"number"),e.qZA(),e.qZA(),e._UZ(10,"mat-divider",16),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SETTLED"===t.state),e.xp6(1),e.Q6J("ngIf","ACCEPTED"===t.state),e.xp6(1),e.Q6J("ngIf","CANCELED"===t.state),e.xp6(1),e.hij(" ",t.chan_id," "),e.xp6(2),e.Oqu(e.xi3(9,6,+t.amt_msat/1e3||0,a.getDecimalFormat(t))),e.xp6(2),e.Q6J("inset",!0)}}function og(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",11),e.TgZ(1,"mat-expansion-panel",25),e.NdJ("opened",function(){return e.CHM(t),e.oxw().flgOpened=!0})("closed",function(){return e.CHM(t),e.oxw().onExpansionClosed()}),e.TgZ(2,"mat-expansion-panel-header"),e.TgZ(3,"mat-panel-title"),e.TgZ(4,"h4",26),e._uU(5,"HTLCs"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",27),e.TgZ(7,"div",28),e.TgZ(8,"span",29),e._uU(9,"Channel ID"),e.qZA(),e.TgZ(10,"span",30),e._uU(11,"Amount (Sats)"),e.qZA(),e.qZA(),e._UZ(12,"mat-divider",16),e.YNc(13,ig,11,9,"div",31),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(12),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngForOf",null==t.invoice?null:t.invoice.htlcs)}}function sg(n,i){1&n&&e._UZ(0,"mat-divider",16),2&n&&e.Q6J("inset",!0)}const et=function(n){return{"display-none":n}};let lg=(()=>{class n{constructor(t){this.commonService=t,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS&&(this.qrWidth=220)}getDecimalFormat(t){return t.amt_msat<1e3?"1.0-4":"1.0-0"}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-invoice-lookup"]],inputs:{invoice:"invoice"},decls:90,vars:45,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","20",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","80"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.YNc(2,Wh,1,3,"qr-code",2),e.YNc(3,Xh,2,0,"span",3),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"mat-card-content",5),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.YNc(8,$h,1,3,"qr-code",2),e.YNc(9,jh,2,0,"span",8),e.qZA(),e.YNc(10,Kh,1,1,"mat-divider",9),e.TgZ(11,"div",10),e.TgZ(12,"div",11),e.TgZ(13,"div",12),e.TgZ(14,"h4",13),e._uU(15),e.qZA(),e.TgZ(16,"span",14),e._uU(17),e.ALo(18,"number"),e.YNc(19,eg,2,0,"ng-container",15),e.qZA(),e.qZA(),e.TgZ(20,"div",12),e.TgZ(21,"h4",13),e._uU(22,"Amount Settled"),e.qZA(),e.TgZ(23,"span",14),e.TgZ(24,"div"),e._uU(25),e.ALo(26,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(27,"mat-divider",16),e.TgZ(28,"div",11),e.TgZ(29,"div",12),e.TgZ(30,"h4",13),e._uU(31,"Date Created"),e.qZA(),e.TgZ(32,"span",14),e._uU(33),e.ALo(34,"date"),e.qZA(),e.qZA(),e.TgZ(35,"div",12),e.TgZ(36,"h4",13),e._uU(37,"Date Settled"),e.qZA(),e.TgZ(38,"span",14),e._uU(39),e.ALo(40,"date"),e.qZA(),e.qZA(),e.qZA(),e._UZ(41,"mat-divider",16),e.TgZ(42,"div",11),e.TgZ(43,"div",17),e.TgZ(44,"h4",13),e._uU(45,"Memo"),e.qZA(),e.TgZ(46,"span",14),e._uU(47),e.qZA(),e.qZA(),e.qZA(),e._UZ(48,"mat-divider",16),e.TgZ(49,"div",11),e.TgZ(50,"div",17),e.TgZ(51,"h4",13),e._uU(52,"Payment Request"),e.qZA(),e.TgZ(53,"span",18),e._uU(54),e.qZA(),e.qZA(),e.qZA(),e._UZ(55,"mat-divider",16),e.TgZ(56,"div",11),e.TgZ(57,"div",17),e.TgZ(58,"h4",13),e._uU(59,"Payment Hash"),e.qZA(),e.TgZ(60,"span",18),e._uU(61),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div"),e._UZ(63,"mat-divider",16),e.TgZ(64,"div",11),e.TgZ(65,"div",17),e.TgZ(66,"h4",13),e._uU(67,"Preimage"),e.qZA(),e.TgZ(68,"span",18),e._uU(69),e.qZA(),e.qZA(),e.qZA(),e._UZ(70,"mat-divider",16),e.TgZ(71,"div",11),e.TgZ(72,"div",19),e.TgZ(73,"h4",13),e._uU(74,"State"),e.qZA(),e.TgZ(75,"span",18),e._uU(76),e.qZA(),e.qZA(),e.TgZ(77,"div",20),e.TgZ(78,"h4",13),e._uU(79,"Expiry"),e.qZA(),e.TgZ(80,"span",18),e._uU(81),e.qZA(),e.qZA(),e.TgZ(82,"div",20),e.TgZ(83,"h4",13),e._uU(84,"Private Routing Hints"),e.qZA(),e.TgZ(85,"span",18),e._uU(86),e.qZA(),e.qZA(),e.qZA(),e._UZ(87,"mat-divider",16),e.YNc(88,og,14,2,"div",21),e.YNc(89,sg,1,1,"mat-divider",9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.VKq(41,et,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.xp6(4),e.Q6J("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.VKq(43,et,a.screenSize!==a.screenSizeEnum.XS&&a.screenSize!==a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM),e.xp6(5),e.Oqu(a.screenSize===a.screenSizeEnum.XS?"Amount":"Amount Requested"),e.xp6(2),e.hij("",e.lcZ(18,31,(null==a.invoice?null:a.invoice.value)||0)," Sats"),e.xp6(2),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.value)||"0"===(null==a.invoice?null:a.invoice.value)),e.xp6(6),e.hij("",e.lcZ(26,33,null==a.invoice?null:a.invoice.amt_paid_sat)," Sats"),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(34,35,1e3*(null==a.invoice?null:a.invoice.creation_date),"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(0!=+(null==a.invoice?null:a.invoice.settle_date)?e.xi3(40,38,1e3*+(null==a.invoice?null:a.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.invoice?null:a.invoice.memo),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.payment_request)||"N/A"),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.r_hash)||""),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.r_preimage)||"-"),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.invoice?null:a.invoice.state),e.xp6(5),e.Oqu(null==a.invoice?null:a.invoice.expiry),e.xp6(5),e.Oqu(null!=a.invoice&&a.invoice.private?"Yes":"No"),e.xp6(1),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0))},directives:[_.xw,_.Wh,_.yH,p.mk,q.oO,p.O5,T.dn,Q.$V,z.d,zh.uU,H.ib,H.yz,H.yK,p.sg,X.gM],pipes:[p.JJ,p.uU],styles:[""]}),n})();function rg(n,i){if(1&n&&(e.TgZ(0,"mat-radio-button",17),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("value",t.id)("checked",a.selectedFieldId===t.id),e.xp6(1),e.hij(" ",t.name," ")}}function cg(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function ug(n,i){1&n&&e._UZ(0,"mat-progress-bar",20)}const pg=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function mg(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,ug,1,0,"mat-progress-bar",19),e._uU(2),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(3,pg,""!==t.errorMessage&&"Getting lookup details..."!==t.errorMessage)),e.xp6(1),e.Q6J("ngIf","Getting lookup details..."===t.errorMessage),e.xp6(1),e.hij(" ",t.errorMessage," ")}}function _g(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-payment-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("payment",t.lookupValue)}}function dg(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-invoice-lookup",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("invoice",t.lookupValue)}}function hg(n,i){1&n&&(e.TgZ(0,"span",27),e.TgZ(1,"h3"),e._uU(2,"Error! Unable to find details!"),e.qZA(),e.qZA())}function gg(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"div",22),e.TgZ(2,"span",23),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"div",24),e.YNc(5,_g,2,1,"span",25),e.YNc(6,dg,2,1,"span",25),e.YNc(7,hg,3,0,"span",26),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.hij("",t.lookupFields[t.selectedFieldId].name," Details"),e.xp6(1),e.Q6J("ngSwitch",t.selectedFieldId),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1)}}const fg=function(n){return{"mt-1":!0,"mt-2":n}},Zg=y.Bz.forChild([{path:"",component:Se,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:si,canActivate:[k.QM]},{path:"wallet",component:_1,canActivate:[k.a1]},{path:"onchain",component:T_,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:v_,canActivate:[k.QM]},{path:"send/:selTab",component:$e,data:{sweepAll:!1},canActivate:[k.QM]},{path:"sweep/:selTab",component:$e,data:{sweepAll:!0},canActivate:[k.QM]}]},{path:"connections",component:ci,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:po,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:nl,canActivate:[k.QM]},{path:"pending",component:Pr,canActivate:[k.QM]},{path:"closed",component:uc,canActivate:[k.QM]},{path:"activehtlcs",component:Qc,canActivate:[k.QM]}]},{path:"peers",component:so,data:{sweepAll:!1},canActivate:[k.QM]}]},{path:"transactions",component:g1,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:De,canActivate:[k.QM]},{path:"invoices",component:Ie,canActivate:[k.QM]},{path:"lookuptransactions",component:(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.actions=s,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Payment",placeholder:"Payment Hash"},{id:1,name:"Invoice",placeholder:"Payment Hash"}],this.faSearch=Z.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND)).subscribe(t=>{this.flgSetLookupValue=!t.payload.error,this.lookupValue=JSON.parse(JSON.stringify(t.payload)),this.errorMessage=t.payload.error?this.commonService.extractErrorMessage(t.payload.error):"",this.logger.info(this.lookupValue)})}onLookup(){if(!this.lookupKey)return!0;switch(this.errorMessage="",this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,b.yZ)({payload:Buffer.from(this.lookupKey.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}));break;case 1:this.store.dispatch((0,b.n7)({payload:{openSnackBar:!1,paymentHash:Buffer.from(this.lookupKey.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lookup-transactions"]],decls:19,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mb-2"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"payment"],[3,"invoice"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-content",2),e.TgZ(3,"form",3,4),e.TgZ(5,"div",5),e.TgZ(6,"mat-radio-group",6),e.NdJ("ngModelChange",function(s){return a.selectedFieldId=s})("change",function(s){return a.onSelectChange(s)}),e.YNc(7,rg,2,3,"mat-radio-button",7),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",8),e.TgZ(9,"input",9,10),e.NdJ("change",function(){return a.clearLookupValue()})("ngModelChange",function(s){return a.lookupKey=s}),e.qZA(),e.YNc(11,cg,2,1,"mat-error",11),e.qZA(),e.TgZ(12,"div",12),e.TgZ(13,"button",13),e.NdJ("click",function(){return a.resetData()}),e._uU(14,"Clear"),e.qZA(),e.TgZ(15,"button",14),e.NdJ("click",function(){return a.onLookup()}),e._uU(16,"Lookup"),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,mg,3,5,"div",15),e.YNc(18,gg,8,4,"div",16),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",a.selectedFieldId),e.xp6(1),e.Q6J("ngForOf",a.lookupFields),e.xp6(1),e.Q6J("ngClass",e.VKq(8,fg,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("placeholder",(null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key")("ngModel",a.lookupKey),e.xp6(2),e.Q6J("ngIf",!a.lookupKey),e.xp6(6),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},directives:[_.xw,_.yH,_.Wh,T.dn,c._Y,c.JL,c.F,ie.VQ,c.JJ,c.On,p.sg,f.KE,p.mk,q.oO,I.Nt,c.Fj,c.Q7,p.O5,L.lW,ie.U0,f.TO,P.pW,p.RF,p.n9,p.ED,Gh,lg],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})(),canActivate:[k.QM]}]},{path:"messages",component:sh,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:rh,canActivate:[k.QM]},{path:"verify",component:gh,canActivate:[k.QM]}]},{path:"channelbackup",component:bd,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:ih,canActivate:[k.QM]},{path:"restore",component:Ed,canActivate:[k.QM]}]},{path:"routing",component:Cu,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Be,canActivate:[k.QM]},{path:"peers",component:Pp,canActivate:[k.QM]},{path:"nonroutingprs",component:Vh,canActivate:[k.QM]}]},{path:"reports",component:Ep,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Xp,canActivate:[k.QM]},{path:"transactions",component:rm,canActivate:[k.QM]}]},{path:"graph",component:C1,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:He,canActivate:[k.QM]},{path:"queryroutes",component:J1,canActivate:[k.QM]}]},{path:"lookups",component:He,canActivate:[k.QM]},{path:"network",component:yd,canActivate:[k.QM]},{path:"**",component:fh.w},{path:"rates",redirectTo:"network"}]}]);var yg=h(8750);let Tg=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n,bootstrap:[Se]}),n.\u0275inj=e.cJS({providers:[k.QM],imports:[[p.ez,yg.m,Zg]]}),n})()}}]); \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index 8c30ca33..c2ea1381 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/frontend/main.bbbd52fc863f3256.js b/frontend/main.bbbd52fc863f3256.js deleted file mode 100644 index 1eb7f8e5..00000000 --- a/frontend/main.bbbd52fc863f3256.js +++ /dev/null @@ -1 +0,0 @@ -var M5=Object.defineProperty,w5=Object.defineProperties,A5=Object.getOwnPropertyDescriptors,m8=Object.getOwnPropertySymbols,E5=Object.prototype.hasOwnProperty,T5=Object.prototype.propertyIsEnumerable,g8=(Ge,Q,m)=>Q in Ge?M5(Ge,Q,{enumerable:!0,configurable:!0,writable:!0,value:m}):Ge[Q]=m,to=(Ge,Q)=>{for(var m in Q||(Q={}))E5.call(Q,m)&&g8(Ge,m,Q[m]);if(m8)for(var m of m8(Q))T5.call(Q,m)&&g8(Ge,m,Q[m]);return Ge},_8=(Ge,Q)=>w5(Ge,A5(Q));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(Ge,Q,m)=>{"use strict";m.d(Q,{Sbq:()=>w,Vfw:()=>W,N2j:()=>ye,DL8:()=>$,BDt:()=>at,Acd:()=>gt,koM:()=>Vr,OS1:()=>pr,dT$:()=>Qt,mh3:()=>Xt,b7W:()=>Ti,kZ_:()=>wr,q7m:()=>ii,FlN:()=>ao,KOR:()=>Ea,Ssp:()=>bo,eHv:()=>Yr,Mdf:()=>a1,Aq:()=>aa,qO$:()=>Ph,vqe:()=>os,sqG:()=>C1,Krp:()=>pl,uli:()=>z0,nNP:()=>E1,byT:()=>Z0,SuH:()=>I1,co4:()=>X0,aj4:()=>Pc,kXW:()=>Ja,XsY:()=>vl,USL:()=>Fc,r8p:()=>bd,o4t:()=>Td,Psp:()=>Y1,dLy:()=>_2,FpQ:()=>x2,wn1:()=>vr,xf3:()=>Ud,HLz:()=>J1,NBC:()=>Z2,CgH:()=>$a,B$L:()=>qr,hkK:()=>$2,hnx:()=>Pu,gNZ:()=>jc,FJU:()=>s0,FVb:()=>qc,X5K:()=>nh,wyP:()=>sh});var w={prefix:"fas",iconName:"angle-double-down",icon:[320,512,[],"f103","M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]},W={prefix:"fas",iconName:"angle-double-up",icon:[320,512,[],"f102","M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]},ye={prefix:"fas",iconName:"archive",icon:[512,512,[],"f187","M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]},$={prefix:"fas",iconName:"balance-scale",icon:[640,512,[],"f24e","M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},at={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},gt={prefix:"fas",iconName:"bullhorn",icon:[576,512,[],"f0a1","M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"]},Vr={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},pr={prefix:"fas",iconName:"chart-pie",icon:[544,512,[],"f200","M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]},Qt={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"]},Xt={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},Ti={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},wr={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},ii={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},ao={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]},Ea={prefix:"fas",iconName:"eject",icon:[448,512,[],"f052","M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]},bo={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},Yr={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},a1={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},aa={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},Ph={prefix:"fas",iconName:"history",icon:[512,512,[],"f1da","M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]},os={prefix:"fas",iconName:"infinity",icon:[640,512,[],"f534","M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]},C1={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},pl={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]},z0={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]},E1={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},Z0={prefix:"fas",iconName:"lock",icon:[448,512,[],"f023","M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]},I1={prefix:"fas",iconName:"map-signs",icon:[512,512,[],"f277","M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]},X0={prefix:"fas",iconName:"money-bill-alt",icon:[640,512,[],"f3d1","M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]},Pc={prefix:"fas",iconName:"money-bill-wave",icon:[640,512,[],"f53a","M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]},Ja={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},vl={prefix:"fas",iconName:"paint-brush",icon:[512,512,[],"f1fc","M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]},Fc={prefix:"fas",iconName:"percentage",icon:[384,512,[],"f541","M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]},bd={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},Td={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},Y1={prefix:"fas",iconName:"question",icon:[384,512,[],"f128","M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]},_2={prefix:"fas",iconName:"receipt",icon:[384,512,[],"f543","M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]},x2={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},vr={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},Ud={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]},J1={prefix:"fas",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},Z2={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},$a={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},qr={prefix:"fas",iconName:"unlock-alt",icon:[448,512,[],"f13e","M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]},$2={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},Pu={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},jc={prefix:"fas",iconName:"user-cog",icon:[640,512,[],"f4fe","M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]},s0={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},qc={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]},nh={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},sh={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]}},429:(Ge,Q,m)=>{"use strict";m.d(Q,{Ni:()=>y,xH:()=>C,oo:()=>o,CN:()=>M,CX:()=>l,SN:()=>R,RX:()=>s,HJ:()=>L,I8:()=>I,EG:()=>A,Lu:()=>E,g3:()=>P,xS:()=>w,_E:()=>V,$W:()=>W,Z8:()=>te,El:()=>ee,X3:()=>le,z:()=>re,EK:()=>de,cQ:()=>se,HI:()=>ye,oV:()=>v,TM:()=>i,WO:()=>a,kL:()=>p,UR:()=>u,as:()=>_,pW:()=>D,YX:()=>O,BL:()=>x,OG:()=>r,Sf:()=>b,$A:()=>Z,n7:()=>N,v_:()=>U,u0:()=>ve,QJ:()=>be,WM:()=>Re,Nr:()=>ze,Rd:()=>Oe,YP:()=>K,aL:()=>Me,g6:()=>we,Wi:()=>z,Ly:()=>vt,UH:()=>Fe,eM:()=>Ne,VD:()=>ce,yl:()=>Le,Zu:()=>Pe,dh:()=>q,ZH:()=>$,i9:()=>oe,JK:()=>Ce,uT:()=>Ue,d7:()=>lt,e9:()=>nt,_9:()=>ft,en:()=>it});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.AB.UPDATE_API_CALL_STATUS_CLN,(0,e.Ky)()),C=(0,e.PH)(t.AB.RESET_CLN_STORE,(0,e.Ky)()),o=(0,e.PH)(t.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,e.Ky)()),M=(0,e.PH)(t.AB.FETCH_INFO_CLN,(0,e.Ky)()),l=(0,e.PH)(t.AB.SET_INFO_CLN,(0,e.Ky)()),R=(0,e.PH)(t.AB.FETCH_FEES_CLN),s=(0,e.PH)(t.AB.SET_FEES_CLN,(0,e.Ky)()),L=(0,e.PH)(t.AB.FETCH_FEE_RATES_CLN,(0,e.Ky)()),I=(0,e.PH)(t.AB.SET_FEE_RATES_CLN,(0,e.Ky)()),A=(0,e.PH)(t.AB.FETCH_BALANCE_CLN),E=(0,e.PH)(t.AB.SET_BALANCE_CLN,(0,e.Ky)()),P=(0,e.PH)(t.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),w=(0,e.PH)(t.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,e.Ky)()),V=(0,e.PH)(t.AB.GET_NEW_ADDRESS_CLN,(0,e.Ky)()),W=((0,e.PH)(t.AB.SET_NEW_ADDRESS_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_PEERS_CLN)),te=(0,e.PH)(t.AB.SET_PEERS_CLN,(0,e.Ky)()),ee=(0,e.PH)(t.AB.SAVE_NEW_PEER_CLN,(0,e.Ky)()),le=((0,e.PH)(t.AB.NEWLY_ADDED_PEER_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.ADD_PEER_CLN,(0,e.Ky)())),re=(0,e.PH)(t.AB.DETACH_PEER_CLN,(0,e.Ky)()),de=(0,e.PH)(t.AB.REMOVE_PEER_CLN,(0,e.Ky)()),se=(0,e.PH)(t.AB.FETCH_PAYMENTS_CLN),ye=(0,e.PH)(t.AB.SET_PAYMENTS_CLN,(0,e.Ky)()),v=(0,e.PH)(t.AB.SEND_PAYMENT_CLN,(0,e.Ky)()),i=(0,e.PH)(t.AB.SEND_PAYMENT_STATUS_CLN,(0,e.Ky)()),a=(0,e.PH)(t.AB.GET_QUERY_ROUTES_CLN,(0,e.Ky)()),p=(0,e.PH)(t.AB.SET_QUERY_ROUTES_CLN,(0,e.Ky)()),u=(0,e.PH)(t.AB.FETCH_CHANNELS_CLN),_=(0,e.PH)(t.AB.SET_CHANNELS_CLN,(0,e.Ky)()),D=(0,e.PH)(t.AB.UPDATE_CHANNEL_CLN,(0,e.Ky)()),O=(0,e.PH)(t.AB.SAVE_NEW_CHANNEL_CLN,(0,e.Ky)()),x=(0,e.PH)(t.AB.CLOSE_CHANNEL_CLN,(0,e.Ky)()),r=(0,e.PH)(t.AB.REMOVE_CHANNEL_CLN,(0,e.Ky)()),b=(0,e.PH)(t.AB.PEER_LOOKUP_CLN,(0,e.Ky)()),Z=(0,e.PH)(t.AB.CHANNEL_LOOKUP_CLN,(0,e.Ky)()),N=(0,e.PH)(t.AB.INVOICE_LOOKUP_CLN,(0,e.Ky)()),U=(0,e.PH)(t.AB.SET_LOOKUP_CLN,(0,e.Ky)()),ve=(0,e.PH)(t.AB.GET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),be=(0,e.PH)(t.AB.SET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),Re=(0,e.PH)(t.AB.FETCH_INVOICES_CLN,(0,e.Ky)()),ze=(0,e.PH)(t.AB.SET_INVOICES_CLN,(0,e.Ky)()),Oe=(0,e.PH)(t.AB.SAVE_NEW_INVOICE_CLN,(0,e.Ky)()),K=(0,e.PH)(t.AB.ADD_INVOICE_CLN,(0,e.Ky)()),Me=(0,e.PH)(t.AB.UPDATE_INVOICE_CLN,(0,e.Ky)()),we=(0,e.PH)(t.AB.DELETE_EXPIRED_INVOICE_CLN,(0,e.Ky)()),z=(0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_CLN,(0,e.Ky)()),vt=((0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_UTXOS_CLN)),Fe=(0,e.PH)(t.AB.SET_UTXOS_CLN,(0,e.Ky)()),Ne=(0,e.PH)(t.AB.FETCH_OFFER_INVOICE_CLN,(0,e.Ky)()),ce=(0,e.PH)(t.AB.SET_OFFER_INVOICE_CLN,(0,e.Ky)()),Le=(0,e.PH)(t.AB.FETCH_OFFERS_CLN),Pe=(0,e.PH)(t.AB.SET_OFFERS_CLN,(0,e.Ky)()),q=(0,e.PH)(t.AB.SAVE_NEW_OFFER_CLN,(0,e.Ky)()),$=(0,e.PH)(t.AB.ADD_OFFER_CLN,(0,e.Ky)()),oe=(0,e.PH)(t.AB.DISABLE_OFFER_CLN,(0,e.Ky)()),Ce=(0,e.PH)(t.AB.UPDATE_OFFER_CLN,(0,e.Ky)()),Ue=(0,e.PH)(t.AB.FETCH_OFFER_BOOKMARKS_CLN),lt=(0,e.PH)(t.AB.SET_OFFER_BOOKMARKS_CLN,(0,e.Ky)()),nt=(0,e.PH)(t.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),ft=(0,e.PH)(t.AB.DELETE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),it=(0,e.PH)(t.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,e.Ky)())},4947:(Ge,Q,m)=>{"use strict";m.d(Q,{J:()=>ye});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),R=m(1365),s=m(2340),L=m(1786),I=m(5566),A=m(7731),E=m(7861),P=m(429),w=m(9828),V=m(1462),j=m(5e3),W=m(8138),te=m(5620),ee=m(5986),ge=m(62),le=m(5043),re=m(1402),de=m(7998),se=m(9808);let ye=(()=>{class v{constructor(a,p,u,_,D,O,x,r,b){this.actions=a,this.httpClient=p,this.store=u,this.sessionService=_,this.commonService=D,this.logger=O,this.router=x,this.wsService=r,this.location=b,this.CHILD_API_URL=s.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INFO_CLN),(0,C.z)(Z=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,P.Ni)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+s.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,M.U)(N=>(this.logger.info(N),N.chains&&N.chains.length&&N.chains[0]&&"object"==typeof N.chains[0]&&N.chains[0].hasOwnProperty("chain")&&N.chains[0].chain.toLowerCase().indexOf("bitcoin")<0?(this.store.dispatch((0,P.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,E.ts)()),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:A.pg.LOGOUT}):(this.initializeRemainingData(N,Z.payload.loadPage),this.store.dispatch((0,P.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_INFO})),{type:A.AB.SET_INFO_CLN,payload:N||{}}))),(0,l.K)(N=>{const U=this.commonService.extractErrorCode(N),ve="ETIMEDOUT"===U?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(N);return this.router.navigate(["/error"],{state:{errorCode:U,errorMessage:ve}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:U,error:ve}),(0,y.of)({type:A.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEES_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.FEES_API))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEES_CLN,payload:Z||{}})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEE_RATES_CLN),(0,C.z)(Z=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchFeeRates"+Z.payload,status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/feeRates/"+Z.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"FetchFeeRates"+Z.payload,status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEE_RATES_CLN,payload:N||{}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchFeeRates"+Z.payload,A.m6.NO_SPINNER,"Fetching Fee Rates Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.BALANCE_API))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_BALANCE_CLN,payload:Z||{}})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:Z||{}})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_NEW_ADDRESS_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+s.NZ.ON_CHAIN_API+"?type="+Z.payload.addressCode).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.AB.SET_NEW_ADDRESS_CLN,payload:N&&N.address?N.address:{}})),(0,l.K)(N=>(this.handleErrorWithAlert("GenerateNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+s.NZ.ON_CHAIN_API+"?type="+Z.payload.addressId,N),(0,y.of)({type:A.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_NEW_ADDRESS_CLN),(0,M.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PEERS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PEERS_API).pipe((0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PEERS_CLN,payload:Z||[]})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",Z),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_PEER_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PEERS_API,{id:Z.payload.id}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.Z8)({payload:N||[]})),{type:A.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:N.find(U=>0===Z.payload.id.indexOf(U.id))}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DETACH_PEER_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.PEERS_API+"/"+Z.payload.id+"?force="+Z.payload.force).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully!"})),{type:A.AB.REMOVE_PEER_CLN,payload:{id:Z.payload.id}})),(0,l.K)(N=>(this.handleErrorWithAlert("PeerDisconnect",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+s.NZ.PEERS_API+"/"+Z.payload.id,N),(0,y.of)({type:A.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_CHANNELS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listChannels"))),(0,M.U)(Z=>{this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.u0)({payload:{status:A.OO.SETTLED,maxLen:10,offset:0}}));const N={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return Z.forEach(U=>{"CHANNELD_NORMAL"===U.state?U.connected?N.activeChannels.push(U):N.inactiveChannels.push(U):N.pendingChannels.push(U)}),{type:A.AB.SET_CHANNELS_CLN,payload:N}}),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_CHANNEL_CLN),(0,C.z)(Z=>{this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}}));const N={id:Z.payload.peerId,satoshis:Z.payload.satoshis,feeRate:Z.payload.feeRate,announce:Z.payload.announce};return Z.payload.minconf&&(N.minconf=Z.payload.minconf),Z.payload.utxos&&(N.utxos=Z.payload.utxos),Z.payload.requestAmount&&(N.request_amt=Z.payload.requestAmount),Z.payload.compactLease&&(N.compact_lease=Z.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API,N).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.Ly)()),{type:A.AB.FETCH_CHANNELS_CLN})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,y.of)({type:A.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.UPDATE_CHANNEL_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/setChannelFee",{id:Z.payload.channelId,base:Z.payload.baseFeeMsat,ppm:Z.payload.feeRate}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===Z.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:A.AB.FETCH_CHANNELS_CLN})),(0,l.K)(N=>(this.handleErrorWithAlert("UpdateChannel",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API,N),(0,y.of)({type:A.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CLOSE_CHANNEL_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:Z.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+Z.payload.channelId+(Z.payload.force?"?force="+Z.payload.force:"")).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:Z.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.g3)()),this.store.dispatch((0,E.jW)({payload:"Channel Closed Successfully!"})),{type:A.AB.REMOVE_CHANNEL_CLN,payload:Z.payload})),(0,l.K)(U=>(this.handleErrorWithAlert("CloseChannel",Z.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_API,U),(0,y.of)({type:A.pg.VOID})))))))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PAYMENTS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PAYMENTS_CLN,payload:Z||[]})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_INVOICE_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.OFFERS_API+"/fetchOfferInvoice",Z.payload).pipe((0,M.U)(N=>{this.logger.info(N),setTimeout(()=>{this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,P.VD)({payload:N||{}}))},500)}),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchOfferInvoice",A.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",N),(0,y.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_OFFER_INVOICE_CLN),(0,M.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SEND_PAYMENT_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:Z.payload.uiMessage})),this.store.dispatch((0,P.Ni)({payload:{action:"SendPayment",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PAYMENTS_API,Z.payload).pipe((0,M.U)(N=>{this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}}));let U="Payment Sent Successfully!";N.saveToDBError&&(U="Payment Sent Successfully but Offer Saving to Database Failed."),N.saveToDBResponse&&"NA"!==N.saveToDBResponse&&(this.store.dispatch((0,P.e9)({payload:N.saveToDBResponse})),U="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.cQ)()),this.store.dispatch((0,E.uO)({payload:Z.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:U})),this.store.dispatch((0,P.TM)({payload:N.paymentResponse}))},1e3)}),(0,l.K)(N=>(this.logger.error("Error: "+JSON.stringify(N)),Z.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",Z.payload.uiMessage,"Send Payment Failed.",N):this.handleErrorWithAlert("SendPayment",Z.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.PAYMENTS_API,N),(0,y.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_QUERY_ROUTES_CLN),(0,C.z)(Z=>(this.store.dispatch((0,P.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/getRoute/"+Z.payload.destPubkey+"/"+Z.payload.amount).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.COMPLETED}})),{type:A.AB.SET_QUERY_ROUTES_CLN,payload:N})),(0,l.K)(N=>(this.store.dispatch((0,P.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/getRoute/"+Z.payload.destPubkey+"/"+Z.payload.amount,N),(0,y.of)({type:A.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_QUERY_ROUTES_CLN),(0,M.U)(Z=>Z.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.PEER_LOOKUP_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/listNode/"+Z.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),{type:A.AB.SET_LOOKUP_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/listNode/"+Z.payload,N),(0,y.of)({type:A.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CHANNEL_LOOKUP_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:Z.payload.uiMessage})),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/listChannel/"+Z.payload.shortChannelID).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:Z.payload.uiMessage})),{type:A.AB.SET_LOOKUP_CLN,payload:N})),(0,l.K)(N=>(Z.payload.showError?this.handleErrorWithAlert("Lookup",Z.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/listChannel/"+Z.payload.shortChannelID,N):this.store.dispatch((0,E.uO)({payload:Z.payload.uiMessage})),this.store.dispatch((0,P.v_)({payload:[]})),(0,y.of)({type:A.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.INVOICE_LOOKUP_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.INVOICES_API+"?label="+Z.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),N.invoices&&N.invoices.length&&N.invoices.length>0&&this.store.dispatch((0,P.aL)({payload:N.invoices[0]})),{type:A.AB.SET_LOOKUP_CLN,payload:N.invoices&&N.invoices.length&&N.invoices.length>0?N.invoices[0]:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",N),this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:A.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_LOOKUP_CLN),(0,M.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_FORWARDING_HISTORY_CLN),(0,R.M)(this.store.select(w.ey)),(0,C.z)(([Z,N])=>{const U=Z.payload.status?Z.payload.status:"settled",ve=Z.payload.maxLen?Z.payload.maxLen:10,be=Z.payload.offset?Z.payload.offset:0,Re=U.charAt(0).toUpperCase();this.store.dispatch((0,P.Ni)({payload:{action:"FetchForwardingHistory"+Re,status:A.Bn.INITIATED}}));const ze=!!N.api_version&&this.commonService.isVersionCompatible(N.api_version,"0.7.3");let Oe="";return Oe=ze?this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwardsPaginated?status="+U+"&maxLen="+ve+"&offset="+be+"&sortBy=received_time&sortOrder=DESC":this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwards?status="+U,this.httpClient.get(Oe).pipe((0,M.U)(K=>{if(this.logger.info(K),this.store.dispatch((0,P.Ni)({payload:{action:"FetchForwardingHistory"+Re,status:A.Bn.COMPLETED}})),ze)return{type:A.AB.SET_FORWARDING_HISTORY_CLN,payload:K};{const Me=[],we=[],z=[];return K.forEach(Ze=>{Ze.status===A.OO.SETTLED?z.push(Ze):Ze.status===A.OO.FAILED?we.push(Ze):Ze.status===A.OO.LOCAL_FAILED&&Me.push(Ze)}),Z.payload.status===A.OO.FAILED?this.store.dispatch((0,P.QJ)({payload:{status:A.OO.FAILED,offset:be,maxLen:ve,totalForwards:we.length,listForwards:we}})):Z.payload.status===A.OO.LOCAL_FAILED?this.store.dispatch((0,P.QJ)({payload:{status:A.OO.LOCAL_FAILED,offset:be,maxLen:ve,totalForwards:Me.length,listForwards:Me}})):Z.payload.status===A.OO.SETTLED&&this.store.dispatch((0,P.QJ)({payload:{status:A.OO.SETTLED,offset:be,maxLen:ve,totalForwards:z.length,listForwards:z}})),{type:A.pg.VOID}}}),(0,l.K)(K=>(this.handleErrorWithAlert("FetchForwardingHistory"+Re,A.m6.NO_SPINNER,"Get "+U+" Forwarding History Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwardsPaginated?status="+U,K),(0,y.of)({type:A.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_EXPIRED_INVOICE_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.INVOICES_API+(Z.payload?"?maxexpiry="+Z.payload:"")).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.DELETE_INVOICE})),this.store.dispatch((0,E.jW)({payload:"Invoices Deleted Successfully!"})),{type:A.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,l.K)(U=>(this.handleErrorWithAlert("DeleteInvoices",A.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+s.NZ.INVOICES_API,U),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_INVOICE_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.ADD_INVOICE})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.INVOICES_API,{label:Z.payload.label,amount:Z.payload.amount,description:Z.payload.description,expiry:Z.payload.expiry,private:Z.payload.private}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.ADD_INVOICE})),N.msatoshi=Z.payload.amount,N.label=Z.payload.label,N.expires_at=Math.round((new Date).getTime()/1e3+Z.payload.expiry),N.description=Z.payload.description,N.status="unpaid",setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:N,newlyAdded:!0,component:I.y}}}))},100),{type:A.AB.ADD_INVOICE_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SaveNewInvoice",A.m6.ADD_INVOICE,"Add Invoice Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_OFFER_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.CREATE_OFFER})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.OFFERS_API,{amount:Z.payload.amount,description:Z.payload.description,vendor:Z.payload.vendor}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{offer:N,newlyAdded:!0,component:V.k}}}))},100),{type:A.AB.ADD_OFFER_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SaveNewOffer",A.m6.CREATE_OFFER,"Create Offer Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INVOICES_CLN),(0,C.z)(Z=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.INVOICES_API+"?num_max_invoices="+(Z.payload.num_max_invoices?Z.payload.num_max_invoices:1e6)+"&index_offset="+(Z.payload.index_offset?Z.payload.index_offset:0)+"&reversed="+(!Z.payload.reversed||Z.payload.reversed)).pipe((0,M.U)(be=>(this.logger.info(be),this.store.dispatch((0,P.Ni)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),{type:A.AB.SET_INVOICES_CLN,payload:be})),(0,l.K)(be=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",be),(0,y.of)({type:A.pg.VOID})))))))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFERS_CLN),(0,C.z)(Z=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchOffers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.OFFERS_API).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"FetchOffers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFERS_CLN,payload:N.offers?N.offers:[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchOffers",A.m6.NO_SPINNER,"Fetching Offers Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DISABLE_OFFER_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,P.Ni)({payload:{action:"DisableOffer",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.OFFERS_API+"/"+Z.payload.offer_id).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"DisableOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,E.jW)({payload:"Offer Disabled Successfully!"})),{type:A.AB.UPDATE_OFFER_CLN,payload:{offer:N}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("DisableOffer",A.m6.DISABLE_OFFER,"Disabling Offer Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,C.z)(Z=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.OFFERS_API+"/offerbookmarks").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFER_BOOKMARKS_CLN,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",A.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_OFFER_BOOKMARK_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,P.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.OFFERS_API+"/offerbookmark/"+Z.payload.bolt12).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,E.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:A.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:Z.payload.bolt12}})),(0,l.K)(N=>(this.handleErrorWithAlert("DeleteOfferBookmark",A.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+s.NZ.OFFERS_API+"/offerbookmark/"+Z.payload.bolt12,N),(0,y.of)({type:A.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_CHANNEL_TRANSACTION_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.ON_CHAIN_API,Z.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.Ly)()),{type:A.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_UTXOS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.ON_CHAIN_API+"/utxos"))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.AB.SET_UTXOS_CLN,payload:Z.outputs||[]})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.store.select(w.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(Z=>{Z.FetchInfo.status!==A.Bn.COMPLETED&&Z.FetchInfo.status!==A.Bn.ERROR||Z.FetchFees.status!==A.Bn.COMPLETED&&Z.FetchFees.status!==A.Bn.ERROR||Z.FetchChannels.status!==A.Bn.COMPLETED&&Z.FetchChannels.status!==A.Bn.ERROR||Z.FetchBalance.status!==A.Bn.COMPLETED&&Z.FetchBalance.status!==A.Bn.ERROR||Z.FetchLocalRemoteBalance.status!==A.Bn.COMPLETED&&Z.FetchLocalRemoteBalance.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(Z=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(Z)),Z)switch(Z.event){case A.nM.INVOICE:this.logger.info(Z),Z&&Z.data&&Z.data.label&&this.store.dispatch((0,P.aL)({payload:Z.data}));break;case A.nM.SEND_PAYMENT:case A.nM.BLOCK_HEIGHT:this.logger.info(Z);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(Z))}})}initializeRemainingData(a,p){this.sessionService.setItem("clUnlocked","true");const u={identity_pubkey:a.id,alias:a.alias,testnet:"testnet"===a.network.toLowerCase(),chains:a.chains,uris:a.uris,version:a.version,api_version:a.api_version,numberOfPendingChannels:a.num_pending_channels};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:u}));let _=this.location.path();_.includes("/lnd/")?_=_.replace("/lnd/","/cln/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/cln/")),(_.includes("/login")||_.includes("/error")||""===_||"HOME"===p||_.includes("?access-key="))&&(_="/cln/home"),this.router.navigate([_]),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,P.SN)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.g3)()),this.store.dispatch((0,P.HJ)({payload:"perkw"})),this.store.dispatch((0,P.HJ)({payload:"perkb"})),this.store.dispatch((0,P.$W)()),this.store.dispatch((0,P.Ly)()),this.store.dispatch((0,P.cQ)())}handleErrorWithoutAlert(a,p,u,_){if(this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const D=this.commonService.extractErrorMessage(_,u);this.store.dispatch((0,P.Ni)({payload:{action:a,status:A.Bn.ERROR,statusCode:_.status.toString(),message:D}}))}}handleErrorWithAlert(a,p,u,_,D){if(this.logger.error(D),401===D.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const O=this.commonService.extractErrorMessage(D);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:D.status,message:O,URL:_},component:L.H}}})),this.store.dispatch((0,P.Ni)({payload:{action:a,status:A.Bn.ERROR,statusCode:D.status.toString(),message:O,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return v.\u0275fac=function(a){return new(a||v)(j.LFG(e.eX),j.LFG(W.eN),j.LFG(te.yh),j.LFG(ee.m),j.LFG(ge.v),j.LFG(le.mQ),j.LFG(re.F0),j.LFG(de.d),j.LFG(se.Ye))},v.\u0275prov=j.Yz7({token:v,factory:v.\u0275fac}),v})()},9828:(Ge,Q,m)=>{"use strict";m.d(Q,{lw:()=>y,ey:()=>C,yA:()=>M,PP:()=>l,Wi:()=>R,JG:()=>s,zm:()=>L,hx:()=>I,gc:()=>A,T4:()=>E,ZW:()=>P,Rn:()=>w,Wj:()=>V,Bo:()=>j,xQ:()=>W,lK:()=>te,OL:()=>ee,jK:()=>ge,Ao:()=>le,Hz:()=>re,Y_:()=>de,EQ:()=>se});var e=m(5620);const t=(0,e.ZF)("cln"),y=(0,e.P1)(t,v=>v.nodeSettings),C=(0,e.P1)(t,v=>v.information),M=((0,e.P1)(t,v=>v.apisCallStatus.FetchInfo),(0,e.P1)(t,v=>v.apisCallStatus)),l=(0,e.P1)(t,v=>({payments:v.payments,apiCallStatus:v.apisCallStatus.FetchPayments})),R=(0,e.P1)(t,v=>({peers:v.peers,apiCallStatus:v.apisCallStatus.FetchPeers})),s=(0,e.P1)(t,v=>({fees:v.fees,apiCallStatus:v.apisCallStatus.FetchFees})),L=(0,e.P1)(t,v=>({feeRatesPerKB:v.feeRatesPerKB,apiCallStatus:v.apisCallStatus.FetchFeeRatesperkb})),I=(0,e.P1)(t,v=>({feeRatesPerKW:v.feeRatesPerKW,apiCallStatus:v.apisCallStatus.FetchFeeRatesperkw})),A=(0,e.P1)(t,v=>({listInvoices:v.invoices,apiCallStatus:v.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,v=>({utxos:v.utxos,apiCallStatus:v.apisCallStatus.FetchUTXOs})),P=(0,e.P1)(t,v=>({activeChannels:v.activeChannels,pendingChannels:v.pendingChannels,inactiveChannels:v.inactiveChannels,apiCallStatus:v.apisCallStatus.FetchChannels})),w=(0,e.P1)(t,v=>({balance:v.balance,apiCallStatus:v.apisCallStatus.FetchBalance})),V=(0,e.P1)(t,v=>({localRemoteBalance:v.localRemoteBalance,apiCallStatus:v.apisCallStatus.FetchLocalRemoteBalance})),j=(0,e.P1)(t,v=>({forwardingHistory:v.forwardingHistory,apiCallStatus:v.apisCallStatus.FetchForwardingHistoryS})),W=(0,e.P1)(t,v=>({failedForwardingHistory:v.failedForwardingHistory,apiCallStatus:v.apisCallStatus.FetchForwardingHistoryF})),te=(0,e.P1)(t,v=>({localFailedForwardingHistory:v.localFailedForwardingHistory,apiCallStatus:v.apisCallStatus.FetchForwardingHistoryL})),ee=(0,e.P1)(t,v=>({information:v.information,nodeSettings:v.nodeSettings,balance:v.balance})),ge=(0,e.P1)(t,v=>({information:v.information,balance:v.balance,numPeers:v.peers.length})),le=(0,e.P1)(t,v=>({information:v.information,balance:v.balance})),re=(0,e.P1)(t,v=>({information:v.information,nodeSettings:v.nodeSettings,apisCallStatus:[v.apisCallStatus.FetchInfo,v.apisCallStatus.FetchForwardingHistoryS]})),de=(0,e.P1)(t,v=>({offers:v.offers,apiCallStatus:v.apisCallStatus.FetchOffers})),se=(0,e.P1)(t,v=>({offersBookmarks:v.offersBookmarks,apiCallStatus:v.apisCallStatus.FetchOfferBookmarks}))},5566:(Ge,Q,m)=>{"use strict";m.d(Q,{y:()=>vt});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(9828),l=m(5e3),R=m(5043),s=m(62),L=m(7261),I=m(5620),A=m(7093),E=m(9808),P=m(3322),w=m(9224),V=m(9444),j=m(7423),W=m(4834),te=m(159),ee=m(7238),ge=m(773),le=m(3390),re=m(6895);function de(Fe,Ne){if(1&Fe&&l._UZ(0,"qr-code",33),2&Fe){const ce=l.oxw();l.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function se(Fe,Ne){1&Fe&&(l.TgZ(0,"span",34),l._uU(1,"N/A"),l.qZA())}const ye=function(Fe){return{"mr-0":Fe}};function v(Fe,Ne){if(1&Fe&&l._UZ(0,"span",35),2&Fe){const ce=l.oxw();l.Q6J("ngClass",l.VKq(1,ye,ce.screenSize===ce.screenSizeEnum.XS))}}function i(Fe,Ne){if(1&Fe&&l._UZ(0,"span",36),2&Fe){const ce=l.oxw();l.Q6J("ngClass",l.VKq(1,ye,ce.screenSize===ce.screenSizeEnum.XS))}}function a(Fe,Ne){if(1&Fe&&l._UZ(0,"span",37),2&Fe){const ce=l.oxw();l.Q6J("ngClass",l.VKq(1,ye,ce.screenSize===ce.screenSizeEnum.XS))}}function p(Fe,Ne){if(1&Fe&&l._UZ(0,"qr-code",33),2&Fe){const ce=l.oxw();l.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function u(Fe,Ne){1&Fe&&(l.TgZ(0,"span",38),l._uU(1,"QR Code Not Applicable"),l.qZA())}function _(Fe,Ne){1&Fe&&l._UZ(0,"mat-divider",39),2&Fe&&l.Q6J("inset",!0)}function D(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div",19),l.TgZ(1,"div",40),l._UZ(2,"fa-icon",41),l.TgZ(3,"span"),l._uU(4),l.qZA(),l.qZA(),l.qZA()),2&Fe){const ce=l.oxw();l.xp6(2),l.Q6J("icon",ce.faExclamationTriangle),l.xp6(2),l.Oqu(null==ce.invoice?null:ce.invoice.warning_capacity)}}function O(Fe,Ne){1&Fe&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function x(Fe,Ne){1&Fe&&l._UZ(0,"span",47)}const r=function(){return[]};function b(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div",43),l.TgZ(1,"div",44),l.TgZ(2,"span",45),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,x,1,0,"span",46),l.qZA(),l.qZA()),2&Fe){const ce=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,r).constructor(35))}}function Z(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&Fe){const ce=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats")}}function N(Fe,Ne){if(1&Fe&&(l.ynx(0),l.YNc(1,b,6,5,"div",42),l.YNc(2,Z,3,3,"div",23),l.BQk()),2&Fe){const ce=l.oxw();l.xp6(1),l.Q6J("ngIf",ce.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!ce.flgInvoicePaid)}}function U(Fe,Ne){1&Fe&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function ve(Fe,Ne){1&Fe&&l._UZ(0,"mat-spinner",49),2&Fe&&l.Q6J("diameter",20)}function be(Fe,Ne){if(1&Fe&&(l.ynx(0),l.YNc(1,U,2,0,"span",23),l.YNc(2,ve,1,1,"mat-spinner",48),l.BQk()),2&Fe){const ce=l.oxw();l.xp6(1),l.Q6J("ngIf","unpaid"!==(null==ce.invoice?null:ce.invoice.status)||!ce.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==ce.invoice?null:ce.invoice.status)&&ce.flgVersionCompatible)}}function Re(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",25),l.TgZ(2,"div",19),l.TgZ(3,"div",26),l.TgZ(4,"h4",21),l._uU(5,"Payment Hash"),l.qZA(),l.TgZ(6,"span",24),l._uU(7),l.qZA(),l.qZA(),l.qZA(),l._UZ(8,"mat-divider",25),l.TgZ(9,"div",19),l.TgZ(10,"div",26),l.TgZ(11,"h4",21),l._uU(12,"Label"),l.qZA(),l.TgZ(13,"span",24),l._uU(14),l.qZA(),l.qZA(),l.qZA(),l._UZ(15,"mat-divider",25),l.qZA()),2&Fe){const ce=l.oxw();l.xp6(7),l.Oqu(null==ce.invoice?null:ce.invoice.payment_hash),l.xp6(7),l.Oqu(null==ce.invoice?null:ce.invoice.label)}}function ze(Fe,Ne){1&Fe&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function Oe(Fe,Ne){1&Fe&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function K(Fe,Ne){if(1&Fe){const ce=l.EpF();l.TgZ(0,"button",50),l.NdJ("copied",function(Pe){return l.CHM(ce),l.oxw().onCopyPayment(Pe)}),l._uU(1,"Copy Invoice"),l.qZA()}if(2&Fe){const ce=l.oxw();l.Q6J("payload",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))}}function Me(Fe,Ne){if(1&Fe){const ce=l.EpF();l.TgZ(0,"button",51),l.NdJ("click",function(){return l.CHM(ce),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const we=function(Fe){return{"display-none":Fe}},z=function(Fe){return{"xs-scroll-y":Fe}},Ze=function(Fe,Ne){return{"mt-2":Fe,"mt-1":Ne}};let vt=(()=>{class Fe{constructor(ce,Le,Pe,q,$,oe){this.dialogRef=ce,this.data=Le,this.logger=Pe,this.commonService=q,this.snackBar=$,this.store=oe,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(ce=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ce.api_version,"0.6.0")}),this.store.select(M.gc).pipe((0,C.R)(this.unSubs[1])).subscribe(ce=>{const Le=this.invoice.status;this.invoice=(ce.listInvoices.invoices||[]).find(q=>q.payment_hash===this.invoice.payment_hash),Le!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ce)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ce){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ce)}ngOnDestroy(){this.unSubs.forEach(ce=>{ce.next(null),ce.complete()})}}return Fe.\u0275fac=function(ce){return new(ce||Fe)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(I.yh))},Fe.\u0275cmp=l.Xpm({type:Fe,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ce,Le){if(1&ce&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,de,1,3,"qr-code",2),l.YNc(3,se,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.YNc(10,v,1,3,"span",9),l.YNc(11,i,1,3,"span",10),l.YNc(12,a,1,3,"span",11),l.qZA(),l.qZA(),l.TgZ(13,"button",12),l.NdJ("click",function(){return Le.onClose()}),l._uU(14,"X"),l.qZA(),l.qZA(),l.TgZ(15,"mat-card-content",13),l.TgZ(16,"div",14),l.TgZ(17,"div",15),l.YNc(18,p,1,3,"qr-code",2),l.YNc(19,u,2,0,"span",16),l.qZA(),l.YNc(20,_,1,1,"mat-divider",17),l.YNc(21,D,5,2,"div",18),l.TgZ(22,"div",19),l.TgZ(23,"div",20),l.TgZ(24,"h4",21),l._uU(25),l.qZA(),l.TgZ(26,"span",22),l._uU(27),l.ALo(28,"number"),l.YNc(29,O,2,0,"ng-container",23),l.qZA(),l.qZA(),l.TgZ(30,"div",20),l.TgZ(31,"h4",21),l._uU(32,"Amount Received"),l.qZA(),l.TgZ(33,"span",24),l.YNc(34,N,3,2,"ng-container",23),l.YNc(35,be,3,2,"ng-container",23),l.qZA(),l.qZA(),l.qZA(),l._UZ(36,"mat-divider",25),l.TgZ(37,"div",19),l.TgZ(38,"div",20),l.TgZ(39,"h4",21),l._uU(40,"Date Expiry"),l.qZA(),l.TgZ(41,"span",22),l._uU(42),l.ALo(43,"date"),l.qZA(),l.qZA(),l.TgZ(44,"div",20),l.TgZ(45,"h4",21),l._uU(46,"Date Settled"),l.qZA(),l.TgZ(47,"span",22),l._uU(48),l.ALo(49,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(50,"mat-divider",25),l.TgZ(51,"div",19),l.TgZ(52,"div",26),l.TgZ(53,"h4",21),l._uU(54,"Description"),l.qZA(),l.TgZ(55,"span",22),l._uU(56),l.qZA(),l.qZA(),l.qZA(),l._UZ(57,"mat-divider",25),l.TgZ(58,"div",19),l.TgZ(59,"div",26),l.TgZ(60,"h4",21),l._uU(61),l.qZA(),l.TgZ(62,"span",24),l._uU(63),l.qZA(),l.qZA(),l.qZA(),l.YNc(64,Re,16,2,"div",23),l.TgZ(65,"div",27),l.TgZ(66,"button",28),l.NdJ("click",function(){return Le.onShowAdvanced()}),l.YNc(67,ze,2,0,"p",29),l.YNc(68,Oe,2,0,"ng-template",null,30,l.W1O),l.qZA(),l.YNc(70,K,2,1,"button",31),l.YNc(71,Me,2,0,"button",32),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&ce){const Pe=l.MAs(69);l.xp6(1),l.Q6J("fxLayoutAlign",null!=Le.invoice&&Le.invoice.bolt11&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||null!=Le.invoice&&Le.invoice.bolt12&&""!==(null==Le.invoice?null:Le.invoice.bolt12)?"center start":"center center")("ngClass",l.VKq(40,we,Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12)),l.xp6(4),l.Q6J("icon",Le.faReceipt),l.xp6(2),l.hij(" ",Le.screenSize===Le.screenSizeEnum.XS?Le.newlyAdded?"Created":"Invoice":Le.newlyAdded?"Invoice Created":"Invoice Information"," "),l.xp6(1),l.Q6J("ngIf","paid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","expired"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(3),l.Q6J("ngClass",l.VKq(42,z,Le.screenSize===Le.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=Le.invoice&&Le.invoice.bolt11&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||null!=Le.invoice&&Le.invoice.bolt12&&""!==(null==Le.invoice?null:Le.invoice.bolt12)?"center start":"center center")("ngClass",l.VKq(44,we,Le.screenSize!==Le.screenSizeEnum.XS&&Le.screenSize!==Le.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM),l.xp6(1),l.Q6J("ngIf",null==Le.invoice?null:Le.invoice.warning_capacity),l.xp6(4),l.Oqu(Le.screenSize===Le.screenSizeEnum.XS?"Amount":"Amount Requested"),l.xp6(2),l.hij(" ",l.lcZ(28,32,(null==Le.invoice?null:Le.invoice.msatoshi)/1e3||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.msatoshi)||"0"===(null==Le.invoice?null:Le.invoice.msatoshi)),l.xp6(5),l.Q6J("ngIf","paid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","paid"!==(null==Le.invoice?null:Le.invoice.status)),l.xp6(7),l.Oqu(l.xi3(43,34,1e3*(null==Le.invoice?null:Le.invoice.expires_at),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.xi3(49,37,1e3*(null==Le.invoice?null:Le.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),l.xp6(8),l.Oqu((null==Le.invoice?null:Le.invoice.description)||"-"),l.xp6(5),l.hij("",null!=Le.invoice&&Le.invoice.bolt12?"Bolt12":null!=Le.invoice&&Le.invoice.bolt11&&!Le.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),l.xp6(2),l.Oqu((null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",Le.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(46,Ze,!Le.showAdvanced,Le.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!Le.showAdvanced)("ngIfElse",Pe),l.xp6(3),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12))}},directives:[A.xw,A.Wh,A.yH,E.mk,P.oO,E.O5,w.dk,V.BN,j.lW,w.dn,W.d,te.uU,ee.gM,E.sg,ge.$g,le.h,re.y],pipes:[E.JJ,E.uU],styles:[""]}),Fe})()},1462:(Ge,Q,m)=>{"use strict";m.d(Q,{k:()=>U});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(9828),l=m(5e3),R=m(5043),s=m(62),L=m(7261),I=m(5620),A=m(8104),E=m(7093),P=m(9808),w=m(3322),V=m(9224),j=m(9444),W=m(7423),te=m(4834),ee=m(159),ge=m(3390),le=m(6895);function re(ve,be){if(1&ve&&l._UZ(0,"qr-code",28),2&ve){const Re=l.oxw();l.Q6J("value",null==Re.offer?null:Re.offer.bolt12)("size",Re.qrWidth)("errorCorrectionLevel","L")}}function de(ve,be){1&ve&&(l.TgZ(0,"span",29),l._uU(1,"N/A"),l.qZA())}function se(ve,be){if(1&ve&&l._UZ(0,"qr-code",28),2&ve){const Re=l.oxw();l.Q6J("value",null==Re.offer?null:Re.offer.bolt12)("size",Re.qrWidth)("errorCorrectionLevel","L")}}function ye(ve,be){1&ve&&(l.TgZ(0,"span",30),l._uU(1,"QR Code Not Applicable"),l.qZA())}function v(ve,be){1&ve&&l._UZ(0,"mat-divider",31),2&ve&&l.Q6J("inset",!0)}function i(ve,be){1&ve&&l._UZ(0,"mat-divider",19)}function a(ve,be){if(1&ve&&(l.TgZ(0,"div",15),l.TgZ(1,"div",16),l.TgZ(2,"h4",17),l._uU(3,"Used"),l.qZA(),l.TgZ(4,"span",18),l._uU(5),l.qZA(),l.qZA(),l.TgZ(6,"div",16),l.TgZ(7,"h4",17),l._uU(8,"Single Use"),l.qZA(),l.TgZ(9,"span",18),l._uU(10),l.qZA(),l.qZA(),l.qZA()),2&ve){const Re=l.oxw(2);l.xp6(5),l.hij(" ",null!=Re.offer&&Re.offer.used?null!=Re.offer&&Re.offer.used?"Yes":"No":"N/K"," "),l.xp6(5),l.hij(" ",null!=Re.offer&&Re.offer.single_use?null!=Re.offer&&Re.offer.single_use?"Yes":"No":"N/K"," ")}}function p(ve,be){1&ve&&l._UZ(0,"mat-divider",19)}function u(ve,be){if(1&ve&&(l.TgZ(0,"div",15),l.TgZ(1,"div",20),l.TgZ(2,"h4",17),l._uU(3,"Vendor"),l.qZA(),l.TgZ(4,"span",34),l._uU(5),l.qZA(),l.qZA(),l.qZA()),2&ve){const Re=l.oxw(2);l.xp6(5),l.Oqu((null==Re.offerDecoded?null:Re.offerDecoded.vendor)||(null==Re.offerDecoded?null:Re.offerDecoded.issuer))}}function _(ve,be){if(1&ve&&(l.TgZ(0,"div"),l.YNc(1,i,1,0,"mat-divider",32),l.YNc(2,a,11,2,"div",33),l.YNc(3,p,1,0,"mat-divider",32),l.YNc(4,u,6,1,"div",33),l._UZ(5,"mat-divider",19),l.TgZ(6,"div",15),l.TgZ(7,"div",20),l.TgZ(8,"h4",17),l._uU(9,"Offer ID"),l.qZA(),l.TgZ(10,"span",18),l._uU(11),l.qZA(),l.qZA(),l.qZA(),l._UZ(12,"mat-divider",19),l.qZA()),2&ve){const Re=l.oxw();l.xp6(1),l.Q6J("ngIf",(null==Re.offer?null:Re.offer.used)||(null==Re.offer?null:Re.offer.single_use)),l.xp6(1),l.Q6J("ngIf",(null==Re.offer?null:Re.offer.used)||(null==Re.offer?null:Re.offer.single_use)),l.xp6(1),l.Q6J("ngIf",(null==Re.offerDecoded?null:Re.offerDecoded.vendor)||(null==Re.offerDecoded?null:Re.offerDecoded.issuer)),l.xp6(1),l.Q6J("ngIf",(null==Re.offerDecoded?null:Re.offerDecoded.vendor)||(null==Re.offerDecoded?null:Re.offerDecoded.issuer)),l.xp6(7),l.Oqu(Re.offerDecoded.offer_id)}}function D(ve,be){1&ve&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function O(ve,be){1&ve&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function x(ve,be){if(1&ve){const Re=l.EpF();l.TgZ(0,"button",35),l.NdJ("copied",function(Oe){return l.CHM(Re),l.oxw().onCopyOffer(Oe)}),l._uU(1,"Copy Offer"),l.qZA()}if(2&ve){const Re=l.oxw();l.Q6J("payload",null==Re.offer?null:Re.offer.bolt12)}}function r(ve,be){if(1&ve){const Re=l.EpF();l.TgZ(0,"button",36),l.NdJ("click",function(){return l.CHM(Re),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const b=function(ve){return{"display-none":ve}},Z=function(ve){return{"xs-scroll-y":ve}},N=function(ve,be){return{"mt-2":ve,"mt-1":be}};let U=(()=>{class ve{constructor(Re,ze,Oe,K,Me,we,z){this.dialogRef=Re,this.data=ze,this.logger=Oe,this.commonService=K,this.snackBar=Me,this.store=we,this.dataService=z,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(Re=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Re.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,C.R)(this.unSubs[1])).subscribe(Re=>{this.offerDecoded=Re,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(Re){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+Re)}ngOnDestroy(){this.unSubs.forEach(Re=>{Re.next(null),Re.complete()})}}return ve.\u0275fac=function(Re){return new(Re||ve)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(I.yh),l.Y36(A.D))},ve.\u0275cmp=l.Xpm({type:ve,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(Re,ze){if(1&Re&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,re,1,3,"qr-code",2),l.YNc(3,de,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return ze.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,se,1,3,"qr-code",2),l.YNc(16,ye,2,0,"span",13),l.qZA(),l.YNc(17,v,1,1,"mat-divider",14),l.TgZ(18,"div",15),l.TgZ(19,"div",16),l.TgZ(20,"h4",17),l._uU(21,"Amount Requested (Sats)"),l.qZA(),l.TgZ(22,"span",18),l._uU(23),l.ALo(24,"number"),l.qZA(),l.qZA(),l.TgZ(25,"div",16),l.TgZ(26,"h4",17),l._uU(27,"Active"),l.qZA(),l.TgZ(28,"span",18),l._uU(29),l.qZA(),l.qZA(),l.qZA(),l._UZ(30,"mat-divider",19),l.TgZ(31,"div",15),l.TgZ(32,"div",20),l.TgZ(33,"h4",17),l._uU(34,"Description"),l.qZA(),l.TgZ(35,"span",18),l._uU(36),l.qZA(),l.qZA(),l.qZA(),l._UZ(37,"mat-divider",19),l.TgZ(38,"div",15),l.TgZ(39,"div",20),l.TgZ(40,"h4",17),l._uU(41,"Offer Request"),l.qZA(),l.TgZ(42,"span",18),l._uU(43),l.qZA(),l.qZA(),l.qZA(),l.YNc(44,_,13,5,"div",21),l.TgZ(45,"div",22),l.TgZ(46,"button",23),l.NdJ("click",function(){return ze.onShowAdvanced()}),l.YNc(47,D,2,0,"p",24),l.YNc(48,O,2,0,"ng-template",null,25,l.W1O),l.qZA(),l.YNc(50,x,2,1,"button",26),l.YNc(51,r,2,0,"button",27),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&Re){const Oe=l.MAs(49);l.xp6(1),l.Q6J("fxLayoutAlign",null!=ze.offer&&ze.offer.bolt12&&""!==(null==ze.offer?null:ze.offer.bolt12)?"center start":"center center")("ngClass",l.VKq(24,b,ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12)),l.xp6(4),l.Q6J("icon",ze.faReceipt),l.xp6(2),l.Oqu(ze.screenSize===ze.screenSizeEnum.XS?ze.newlyAdded?"Created":"Offer":ze.newlyAdded?"Offer Created":"Offer Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(26,Z,ze.screenSize===ze.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=ze.offer&&ze.offer.bolt12&&""!==(null==ze.offer?null:ze.offer.bolt12)?"center start":"center center")("ngClass",l.VKq(28,b,ze.screenSize!==ze.screenSizeEnum.XS&&ze.screenSize!==ze.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM),l.xp6(6),l.hij(" ",null!=ze.offerDecoded&&ze.offerDecoded.amount_msat&&0!==(null==ze.offerDecoded?null:ze.offerDecoded.amount)?l.lcZ(24,22,(null==ze.offerDecoded?null:ze.offerDecoded.amount)/1e3):"Open Offer"," "),l.xp6(6),l.hij(" ",null!=ze.offer&&ze.offer.active?null!=ze.offer&&ze.offer.active?"Active":"Inactive":"N/K"," "),l.xp6(7),l.hij(" ",null==ze.offerDecoded?null:ze.offerDecoded.description," "),l.xp6(7),l.Oqu(null==ze.offer?null:ze.offer.bolt12),l.xp6(1),l.Q6J("ngIf",ze.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(30,N,!ze.showAdvanced,ze.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!ze.showAdvanced)("ngIfElse",Oe),l.xp6(3),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12))}},directives:[E.xw,E.Wh,E.yH,P.mk,w.oO,P.O5,V.dk,j.BN,W.lW,V.dn,te.d,ee.uU,ge.h,le.y],pipes:[P.JJ],styles:[""]}),ve})()},2994:(Ge,Q,m)=>{"use strict";m.d(Q,{QZ:()=>y,Fd:()=>C,Zr:()=>o,iz:()=>M,CX:()=>l,SN:()=>R,RX:()=>s,UR:()=>L,eN:()=>I,TW:()=>A,i:()=>E,iL:()=>P,Bw:()=>w,On:()=>V,HG:()=>j,$W:()=>W,Z8:()=>te,El:()=>ee,GD:()=>re,EK:()=>de,_E:()=>se,YX:()=>v,pW:()=>i,BL:()=>a,OG:()=>p,cQ:()=>u,HI:()=>_,WO:()=>D,kL:()=>O,oV:()=>x,TM:()=>r,mC:()=>b,Lf:()=>Z,Iy:()=>N,WM:()=>ve,Nr:()=>be,Z$:()=>Re,YP:()=>ze,aL:()=>Oe,Sf:()=>K,n7:()=>Me,DJ:()=>z,ti:()=>Ze});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),C=(0,e.PH)(t.lr.RESET_ECL_STORE,(0,e.Ky)()),o=(0,e.PH)(t.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,e.Ky)()),M=(0,e.PH)(t.lr.FETCH_INFO_ECL,(0,e.Ky)()),l=(0,e.PH)(t.lr.SET_INFO_ECL,(0,e.Ky)()),R=(0,e.PH)(t.lr.FETCH_FEES_ECL),s=(0,e.PH)(t.lr.SET_FEES_ECL,(0,e.Ky)()),L=(0,e.PH)(t.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),I=(0,e.PH)(t.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),A=(0,e.PH)(t.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),E=(0,e.PH)(t.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),P=(0,e.PH)(t.lr.FETCH_ONCHAIN_BALANCE_ECL),w=(0,e.PH)(t.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),V=(0,e.PH)(t.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),j=(0,e.PH)(t.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),W=(0,e.PH)(t.lr.FETCH_PEERS_ECL),te=(0,e.PH)(t.lr.SET_PEERS_ECL,(0,e.Ky)()),ee=(0,e.PH)(t.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),re=((0,e.PH)(t.lr.NEWLY_ADDED_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.ADD_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.DETACH_PEER_ECL,(0,e.Ky)())),de=(0,e.PH)(t.lr.REMOVE_PEER_ECL,(0,e.Ky)()),se=(0,e.PH)(t.lr.GET_NEW_ADDRESS_ECL),v=((0,e.PH)(t.lr.SET_NEW_ADDRESS_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.SAVE_NEW_CHANNEL_ECL,(0,e.Ky)())),i=(0,e.PH)(t.lr.UPDATE_CHANNEL_ECL,(0,e.Ky)()),a=(0,e.PH)(t.lr.CLOSE_CHANNEL_ECL,(0,e.Ky)()),p=(0,e.PH)(t.lr.REMOVE_CHANNEL_ECL,(0,e.Ky)()),u=(0,e.PH)(t.lr.FETCH_PAYMENTS_ECL),_=(0,e.PH)(t.lr.SET_PAYMENTS_ECL,(0,e.Ky)()),D=(0,e.PH)(t.lr.GET_QUERY_ROUTES_ECL,(0,e.Ky)()),O=(0,e.PH)(t.lr.SET_QUERY_ROUTES_ECL,(0,e.Ky)()),x=(0,e.PH)(t.lr.SEND_PAYMENT_ECL,(0,e.Ky)()),r=(0,e.PH)(t.lr.SEND_PAYMENT_STATUS_ECL,(0,e.Ky)()),b=(0,e.PH)(t.lr.FETCH_TRANSACTIONS_ECL),Z=(0,e.PH)(t.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),N=(0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),ve=((0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.FETCH_INVOICES_ECL)),be=(0,e.PH)(t.lr.SET_INVOICES_ECL,(0,e.Ky)()),Re=(0,e.PH)(t.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),ze=(0,e.PH)(t.lr.ADD_INVOICE_ECL,(0,e.Ky)()),Oe=(0,e.PH)(t.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),K=(0,e.PH)(t.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),Me=(0,e.PH)(t.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),z=((0,e.PH)(t.lr.SET_LOOKUP_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.UPDATE_CHANNEL_STATE_ECL,(0,e.Ky)())),Ze=(0,e.PH)(t.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,e.Ky)())},3289:(Ge,Q,m)=>{"use strict";m.d(Q,{o:()=>de});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),R=m(2340),s=m(1786),L=m(7731),I=m(7861),A=m(7766),E=m(2994),P=m(2501),w=m(5e3),V=m(8138),j=m(5620),W=m(5986),te=m(62),ee=m(5043),ge=m(1402),le=m(7998),re=m(9808);let de=(()=>{class se{constructor(v,i,a,p,u,_,D,O,x){this.actions=v,this.httpClient=i,this.store=a,this.sessionService=p,this.commonService=u,this.logger=_,this.router=D,this.wsService=O,this.location=x,this.CHILD_API_URL=R.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchECL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_INFO_ECL),(0,C.z)(r=>(this.flgInitialized=!1,this.store.dispatch((0,I.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,I.ac)({payload:L.m6.GET_NODE_INFO})),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(L.pg.SET_SELECTED_NODE))),(0,M.U)(b=>(this.logger.info(b),this.initializeRemainingData(b,r.payload.loadPage),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.GET_NODE_INFO})),{type:L.lr.SET_INFO_ECL,payload:b||{}})),(0,l.K)(b=>{const Z=this.commonService.extractErrorCode(b),N=503===Z?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(b);return this.router.navigate(["/error"],{state:{errorCode:Z,errorMessage:N}}),this.handleErrorWithoutAlert("FetchInfo",L.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:Z,error:N}),(0,y.of)({type:L.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_FEES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/fees").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:L.Bn.COMPLETED}})),{type:L.lr.SET_FEES_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchFees",L.m6.NO_SPINNER,"Fetching Fees Failed.",r),(0,y.of)({type:L.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_PAYMENTS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/payments").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PAYMENTS_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchPayments",L.m6.NO_SPINNER,"Fetching Payments Failed.",r),(0,y.of)({type:L.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_CHANNELS_ECL),(0,C.z)(r=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API).pipe((0,M.U)(b=>(this.logger.info(b),this.rawChannelsList=b,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:L.Bn.COMPLETED}})),r.payload&&r.payload.fetchPayments&&this.store.dispatch((0,E.cQ)()),{type:L.pg.VOID})),(0,l.K)(b=>(this.handleErrorWithoutAlert("FetchChannels",L.m6.NO_SPINNER,"Fetching Channels Failed.",b),(0,y.of)({type:L.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/balance"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.COMPLETED}})),{type:L.lr.SET_ONCHAIN_BALANCE_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchOnchainBalance",L.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",r),(0,y.of)({type:L.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_PEERS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PEERS_ECL,payload:r||[]})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchPeers",L.m6.NO_SPINNER,"Fetching Peers Failed.",r),(0,y.of)({type:L.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.GET_NEW_ADDRESS_ECL),(0,C.z)(()=>(this.store.dispatch((0,I.ac)({payload:L.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,I.uO)({payload:L.m6.GENERATE_NEW_ADDRESS})),{type:L.lr.SET_NEW_ADDRESS_ECL,payload:r})),(0,l.K)(r=>(this.handleErrorWithAlert("GetNewAddress",L.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API,r),(0,y.of)({type:L.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_NEW_ADDRESS_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SAVE_NEW_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API+(r.payload.id.includes("@")?"?uri=":"?nodeId=")+r.payload.id,{}).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.COMPLETED}})),b=b||[],this.store.dispatch((0,I.uO)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:b})),{type:L.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:b.find(Z=>Z.nodeId===(r.payload.id.includes("@")?r.payload.id.substring(0,r.payload.id.indexOf("@")):r.payload.id))}})),(0,l.K)(b=>(this.handleErrorWithoutAlert("SaveNewPeer",L.m6.CONNECT_PEER,"Peer Connection Failed.",b),(0,y.of)({type:L.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.DETACH_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+r.payload.nodeId).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,I.uO)({payload:L.m6.DISCONNECT_PEER})),this.store.dispatch((0,I.jW)({payload:"Disconnecting Peer!"})),{type:L.lr.REMOVE_PEER_ECL,payload:{nodeId:r.payload.nodeId}})),(0,l.K)(b=>(this.handleErrorWithAlert("DisconnectPeer",L.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+r.payload.nodeId,b),(0,y.of)({type:L.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SAVE_NEW_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,r.payload.feeRate&&r.payload.feeRate>0?{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private,fundingFeerateSatByte:r.payload.feeRate}:{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private}).pipe((0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.COMPLETED}})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,I.uO)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,I.jW)({payload:"Channel Added Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("SaveNewChannel",L.m6.OPEN_CHANNEL,"Opening Channel Failed.",Z),(0,y.of)({type:L.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.UPDATE_CHANNEL_ECL),(0,C.z)(r=>{this.store.dispatch((0,I.ac)({payload:L.m6.UPDATE_CHAN_POLICY}));let b="?feeBaseMsat="+r.payload.baseFeeMsat+"&feeProportionalMillionths="+r.payload.feeRate;return b=r.payload.nodeIds?b+"&nodeIds="+r.payload.nodeIds:r.payload.nodeId?b+"&nodeId="+r.payload.nodeId:r.payload.channelIds?b+"&channelIds="+r.payload.channelIds:b+"&channelId="+r.payload.channelId,this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/updateRelayFee"+b,{}).pipe((0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,I.uO)({payload:L.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,I.jW)(r.payload.nodeIds||r.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,l.K)(Z=>(this.handleErrorWithAlert("UpdateChannels",L.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,Z),(0,y.of)({type:L.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.CLOSE_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"?channelId="+r.payload.channelId+"&force="+r.payload.force).pipe((0,M.U)(b=>(this.logger.info(b),setTimeout(()=>{this.store.dispatch((0,I.uO)({payload:r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,I.jW)({payload:r.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:L.pg.VOID})),(0,l.K)(b=>(this.handleErrorWithAlert("CloseChannel",r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,b),(0,y.of)({type:L.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.GET_QUERY_ROUTES_ECL),(0,C.z)(r=>this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount).pipe((0,M.U)(b=>(this.logger.info(b),{type:L.lr.SET_QUERY_ROUTES_ECL,payload:b})),(0,l.K)(b=>(this.store.dispatch((0,E.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",L.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount,b),(0,y.of)({type:L.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_QUERY_ROUTES_ECL),(0,M.U)(r=>r.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SEND_PAYMENT_ECL),(0,C.z)(r=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,I.ac)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.latestPaymentRes=b,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:L.pg.VOID})),(0,l.K)(b=>(this.logger.error("Error: "+JSON.stringify(b)),r.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed.",b):this.handleErrorWithAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,b),(0,y.of)({type:L.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_TRANSACTIONS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:L.Bn.COMPLETED}})),{type:L.lr.SET_TRANSACTIONS_ECL,payload:r||[]})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchTransactions",L.m6.NO_SPINNER,"Fetching Transactions Failed.",r),(0,y.of)({type:L.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SEND_ONCHAIN_FUNDS_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,E.iL)()),{type:L.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithoutAlert("SendOnchainFunds",L.m6.SEND_FUNDS,"Sending Fund Failed.",b),(0,y.of)({type:L.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.CREATE_INVOICE_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.CREATE_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.CREATE_INVOICE})),b.timestamp=Math.round((new Date).getTime()/1e3),b.expiresAt=Math.round(b.timestamp+r.payload.expireIn),b.description=r.payload.description,b.status="unpaid",setTimeout(()=>{this.store.dispatch((0,I.qR)({payload:{data:{invoice:b,newlyAdded:!0,component:A.R}}}))},100),{type:L.lr.ADD_INVOICE_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithoutAlert("CreateInvoice",L.m6.CREATE_INVOICE,"Create Invoice Failed.",b),(0,y.of)({type:L.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_INVOICES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:L.Bn.COMPLETED}})),{type:L.lr.SET_INVOICES_ECL,payload:r})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchInvoices",L.m6.NO_SPINNER,"Fetching Invoices Failed.",r),(0,y.of)({type:L.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.PEER_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.SEARCHING_NODE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.SEARCHING_NODE})),{type:L.lr.SET_LOOKUP_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithAlert("Lookup",L.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+r.payload,b),(0,y.of)({type:L.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.INVOICE_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"/"+r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.aL)({payload:b})),{type:L.lr.SET_LOOKUP_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithoutAlert("Lookup",L.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",b),this.store.dispatch((0,I.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:L.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_LOOKUP_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.handleSendPaymentStatus=r=>{this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,E.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,I.jW)({payload:r}))},this.store.select(P.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(r=>{r.FetchInfo.status!==L.Bn.COMPLETED&&r.FetchInfo.status!==L.Bn.ERROR||r.FetchFees.status!==L.Bn.COMPLETED&&r.FetchFees.status!==L.Bn.ERROR||r.FetchOnchainBalance.status!==L.Bn.COMPLETED&&r.FetchOnchainBalance.status!==L.Bn.ERROR||r.FetchChannels.status!==L.Bn.COMPLETED&&r.FetchChannels.status!==L.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,I.uO)({payload:L.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(r=>{this.logger.info("Received new message from the service: "+JSON.stringify(r));let b="";if(r)switch(r.type){case L.$v.PAYMENT_SENT:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,b="Payment Sent: "+(r.paymentHash?"with payment hash "+r.paymentHash:JSON.stringify(r)),this.handleSendPaymentStatus(b));break;case L.$v.PAYMENT_FAILED:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,b="Payment Failed: "+(r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].t?r.failures[0].t:r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].e&&r.failures[0].e.failureMessage?r.failures[0].e.failureMessage:JSON.stringify(r)),this.handleSendPaymentStatus(b));break;case L.$v.PAYMENT_RECEIVED:this.store.dispatch((0,E.aL)({payload:r}));break;case L.$v.PAYMENT_RELAYED:delete r.source,this.store.dispatch((0,E.ti)({payload:r}));break;case L.$v.CHANNEL_STATE_CHANGED:"NORMAL"===r.currentState||"CLOSED"===r.currentState?(this.rawChannelsList=this.rawChannelsList.map(Z=>(Z.channelId===r.channelId&&Z.nodeId===r.remoteNodeId&&(Z.state=r.currentState),Z)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,E.DJ)({payload:r}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(r))}})}setChannelsAndStatusAndBalances(){let v=0,i=0,a=0,p={localBalance:0,remoteBalance:0},u=[];const _=[],D=[],O={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((x,r)=>{"NORMAL"===x.state?(v=x.toLocal+x.toRemote,i+=x.toLocal,a+=x.toRemote,x.balancedness=0===v?1:+(1-Math.abs((x.toLocal-x.toRemote)/v)).toFixed(3),u.push(x),O.active.channels=O.active.channels+1,O.active.capacity=O.active.capacity+x.toLocal):x.state.includes("WAIT")||x.state.includes("CLOSING")||x.state.includes("SYNCING")?(x.state=x.state.replace(/_/g," "),_.push(x),O.pending.channels=O.pending.channels+1,O.pending.capacity=O.pending.capacity+x.toLocal):(x.state=x.state.replace(/_/g," "),D.push(x),O.inactive.channels=O.inactive.channels+1,O.inactive.capacity=O.inactive.capacity+x.toLocal)}),p={localBalance:i,remoteBalance:a},u=this.commonService.sortDescByKey(u,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(u)),this.logger.info("Pending Channels: "+JSON.stringify(_)),this.logger.info("Inactive Channels: "+JSON.stringify(D)),this.logger.info("Lightning Balances: "+JSON.stringify(p)),this.logger.info("Channels Status: "+JSON.stringify(O)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:u,pending:_,inactive:D,balances:p,status:O})),this.store.dispatch((0,E.eN)({payload:u})),this.store.dispatch((0,E.TW)({payload:_})),this.store.dispatch((0,E.i)({payload:D})),this.store.dispatch((0,E.On)({payload:p})),this.store.dispatch((0,E.HG)({payload:O}))}initializeRemainingData(v,i){this.sessionService.setItem("eclUnlocked","true");const a={identity_pubkey:v.nodeId,alias:v.alias,testnet:"testnet"===v.network,chains:v.publicAddresses,uris:v.uris,version:v.version,numberOfPendingChannels:0};this.store.dispatch((0,I.ac)({payload:L.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,I._V)({payload:a}));let p=this.location.path();p.includes("/lnd/")?p=p.replace("/lnd/","/ecl/"):p.includes("/cln/")&&(p=p.replace("/cln/","/ecl/")),(p.includes("/login")||p.includes("/error")||""===p||"HOME"===i||p.includes("?access-key="))&&(p="/ecl/home"),this.router.navigate([p]),this.store.dispatch((0,E.WM)()),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,E.$W)())}handleErrorWithoutAlert(v,i,a,p){this.logger.error("ERROR IN: "+v+"\n"+JSON.stringify(p)),401===p.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,I.ts)()),this.store.dispatch((0,I.kS)()),this.store.dispatch((0,I.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,I.uO)({payload:i})),this.store.dispatch((0,E.QZ)({payload:{action:v,status:L.Bn.ERROR,statusCode:p.status.toString(),message:this.commonService.extractErrorMessage(p,a)}})))}handleErrorWithAlert(v,i,a,p,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,I.ts)()),this.store.dispatch((0,I.kS)()),this.store.dispatch((0,I.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,I.uO)({payload:i}));const _=this.commonService.extractErrorMessage(u);this.store.dispatch((0,I.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:u.status,message:_,URL:p},component:s.H}}})),this.store.dispatch((0,E.QZ)({payload:{action:v,status:L.Bn.ERROR,statusCode:u.status.toString(),message:_,URL:p}}))}}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return se.\u0275fac=function(v){return new(v||se)(w.LFG(e.eX),w.LFG(V.eN),w.LFG(j.yh),w.LFG(W.m),w.LFG(te.v),w.LFG(ee.mQ),w.LFG(ge.F0),w.LFG(le.d),w.LFG(re.Ye))},se.\u0275prov=w.Yz7({token:se,factory:se.\u0275fac}),se})()},2501:(Ge,Q,m)=>{"use strict";m.d(Q,{pg:()=>y,yD:()=>C,T$:()=>o,yA:()=>l,PP:()=>R,JG:()=>s,Xz:()=>L,dx:()=>I,Ef:()=>A,Bo:()=>E,kY:()=>P});var e=m(5620);const t=(0,e.ZF)("ecl"),y=(0,e.P1)(t,w=>w.nodeSettings),C=(0,e.P1)(t,w=>w.information),o=(0,e.P1)(t,w=>({information:w.information,apiCallStatus:w.apisCallStatus.FetchInfo})),l=((0,e.P1)(t,w=>w.apisCallStatus.FetchInfo),(0,e.P1)(t,w=>w.apisCallStatus)),R=(0,e.P1)(t,w=>({payments:w.payments,apiCallStatus:w.apisCallStatus.FetchPayments})),s=(0,e.P1)(t,w=>({fees:w.fees,apiCallStatus:w.apisCallStatus.FetchFees})),L=(0,e.P1)(t,w=>({activeChannels:w.activeChannels,pendingChannels:w.pendingChannels,inactiveChannels:w.inactiveChannels,lightningBalance:w.lightningBalance,channelsStatus:w.channelsStatus,apiCallStatus:w.apisCallStatus.FetchChannels})),I=(0,e.P1)(t,w=>({transactions:w.transactions,apiCallStatus:w.apisCallStatus.FetchTransactions})),A=(0,e.P1)(t,w=>({invoices:w.invoices,apiCallStatus:w.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,w=>({peers:w.peers,apiCallStatus:w.apisCallStatus.FetchPeers})),P=(0,e.P1)(t,w=>({onchainBalance:w.onchainBalance,apiCallStatus:w.apisCallStatus.FetchOnchainBalance}))},7766:(Ge,Q,m)=>{"use strict";m.d(Q,{R:()=>Oe});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(2501),l=m(5e3),R=m(5043),s=m(62),L=m(7261),I=m(5620),A=m(7093),E=m(9808),P=m(3322),w=m(9224),V=m(9444),j=m(7423),W=m(4834),te=m(159),ee=m(773),ge=m(3390),le=m(6895);function re(K,Me){if(1&K&&l._UZ(0,"qr-code",29),2&K){const we=l.oxw();l.Q6J("value",null==we.invoice?null:we.invoice.serialized)("size",we.qrWidth)("errorCorrectionLevel","L")}}function de(K,Me){1&K&&(l.TgZ(0,"span",30),l._uU(1,"N/A"),l.qZA())}function se(K,Me){if(1&K&&l._UZ(0,"qr-code",29),2&K){const we=l.oxw();l.Q6J("value",null==we.invoice?null:we.invoice.serialized)("size",we.qrWidth)("errorCorrectionLevel","L")}}function ye(K,Me){1&K&&(l.TgZ(0,"span",31),l._uU(1,"QR Code Not Applicable"),l.qZA())}function v(K,Me){1&K&&l._UZ(0,"mat-divider",32),2&K&&l.Q6J("inset",!0)}function i(K,Me){1&K&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function a(K,Me){1&K&&l._UZ(0,"span",38)}const p=function(){return[]};function u(K,Me){if(1&K&&(l.TgZ(0,"div",34),l.TgZ(1,"div",35),l.TgZ(2,"span",36),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,a,1,0,"span",37),l.qZA(),l.qZA()),2&K){const we=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,null==we.invoice?null:we.invoice.amountSettled)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,p).constructor(35))}}function _(K,Me){if(1&K&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&K){const we=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,null==we.invoice?null:we.invoice.amountSettled)," Sats")}}function D(K,Me){if(1&K&&(l.ynx(0),l.YNc(1,u,6,5,"div",33),l.YNc(2,_,3,3,"div",19),l.BQk()),2&K){const we=l.oxw();l.xp6(1),l.Q6J("ngIf",we.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!we.flgInvoicePaid)}}function O(K,Me){1&K&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function x(K,Me){1&K&&l._UZ(0,"mat-spinner",40),2&K&&l.Q6J("diameter",20)}function r(K,Me){if(1&K&&(l.ynx(0),l.YNc(1,O,2,0,"span",19),l.YNc(2,x,1,1,"mat-spinner",39),l.BQk()),2&K){const we=l.oxw();l.xp6(1),l.Q6J("ngIf","unpaid"!==(null==we.invoice?null:we.invoice.status)||!we.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==we.invoice?null:we.invoice.status)&&we.flgVersionCompatible)}}function b(K,Me){if(1&K&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",20),l.TgZ(2,"div",15),l.TgZ(3,"div",41),l.TgZ(4,"h4",17),l._uU(5,"Date Expiry"),l.qZA(),l.TgZ(6,"span",18),l._uU(7),l.ALo(8,"date"),l.qZA(),l.qZA(),l.TgZ(9,"div",42),l.TgZ(10,"h4",17),l._uU(11,"Date Settled"),l.qZA(),l.TgZ(12,"span",21),l._uU(13),l.ALo(14,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(15,"mat-divider",20),l.TgZ(16,"div",15),l.TgZ(17,"div",22),l.TgZ(18,"h4",17),l._uU(19,"Payment Hash"),l.qZA(),l.TgZ(20,"span",21),l._uU(21),l.qZA(),l.qZA(),l.qZA(),l._UZ(22,"mat-divider",20),l.TgZ(23,"div",15),l.TgZ(24,"div",22),l.TgZ(25,"h4",17),l._uU(26,"Node Id"),l.qZA(),l.TgZ(27,"span",21),l._uU(28),l.qZA(),l.qZA(),l.qZA(),l._UZ(29,"mat-divider",20),l.qZA()),2&K){const we=l.oxw();l.xp6(7),l.Oqu(l.xi3(8,4,1e3*(null==we.invoice?null:we.invoice.expiresAt),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.xi3(14,7,1e3*(null==we.invoice?null:we.invoice.receivedAt),"dd/MMM/y HH:mm")),l.xp6(8),l.Oqu(null==we.invoice?null:we.invoice.paymentHash),l.xp6(7),l.Oqu(null==we.invoice?null:we.invoice.nodeId)}}function Z(K,Me){1&K&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function N(K,Me){1&K&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function U(K,Me){if(1&K){const we=l.EpF();l.TgZ(0,"button",43),l.NdJ("copied",function(Ze){return l.CHM(we),l.oxw().onCopyPayment(Ze)}),l._uU(1,"Copy Invoice"),l.qZA()}if(2&K){const we=l.oxw();l.Q6J("payload",null==we.invoice?null:we.invoice.serialized)}}function ve(K,Me){if(1&K){const we=l.EpF();l.TgZ(0,"button",44),l.NdJ("click",function(){return l.CHM(we),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const be=function(K){return{"display-none":K}},Re=function(K){return{"xs-scroll-y":K}},ze=function(K,Me){return{"mt-2":K,"mt-1":Me}};let Oe=(()=>{class K{constructor(we,z,Ze,vt,Fe,Ne){this.dialogRef=we,this.data=z,this.logger=Ze,this.commonService=vt,this.snackBar=Fe,this.store=Ne,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.yD).pipe((0,C.R)(this.unSubs[0])).subscribe(we=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(we.version,"0.5.0")}),this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(we=>{const z=this.invoice.status;this.invoice=(we.invoices&&we.invoices.length>0?we.invoices:[]).find(vt=>vt.paymentHash===this.invoice.paymentHash),z!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(we)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(we){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+we)}ngOnDestroy(){this.unSubs.forEach(we=>{we.next(null),we.complete()})}}return K.\u0275fac=function(we){return new(we||K)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(I.yh))},K.\u0275cmp=l.Xpm({type:K,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(we,z){if(1&we&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,re,1,3,"qr-code",2),l.YNc(3,de,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return z.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,se,1,3,"qr-code",2),l.YNc(16,ye,2,0,"span",13),l.qZA(),l.YNc(17,v,1,1,"mat-divider",14),l.TgZ(18,"div",15),l.TgZ(19,"div",16),l.TgZ(20,"h4",17),l._uU(21,"Amount Requested"),l.qZA(),l.TgZ(22,"span",18),l._uU(23),l.ALo(24,"number"),l.YNc(25,i,2,0,"ng-container",19),l.qZA(),l.qZA(),l.TgZ(26,"div",16),l.TgZ(27,"h4",17),l._uU(28,"Amount Settled"),l.qZA(),l.TgZ(29,"span",18),l.YNc(30,D,3,2,"ng-container",19),l.YNc(31,r,3,2,"ng-container",19),l.qZA(),l.qZA(),l.qZA(),l._UZ(32,"mat-divider",20),l.TgZ(33,"div",15),l.TgZ(34,"div",16),l.TgZ(35,"h4",17),l._uU(36,"Date Created"),l.qZA(),l.TgZ(37,"span",21),l._uU(38),l.ALo(39,"date"),l.qZA(),l.qZA(),l.TgZ(40,"div",16),l.TgZ(41,"h4",17),l._uU(42,"Status"),l.qZA(),l.TgZ(43,"span",21),l._uU(44),l.ALo(45,"titlecase"),l.qZA(),l.qZA(),l.qZA(),l._UZ(46,"mat-divider",20),l.TgZ(47,"div",15),l.TgZ(48,"div",22),l.TgZ(49,"h4",17),l._uU(50,"Description"),l.qZA(),l.TgZ(51,"span",18),l._uU(52),l.qZA(),l.qZA(),l.qZA(),l._UZ(53,"mat-divider",20),l.TgZ(54,"div",15),l.TgZ(55,"div",22),l.TgZ(56,"h4",17),l._uU(57,"Invoice"),l.qZA(),l.TgZ(58,"span",21),l._uU(59),l.qZA(),l.qZA(),l.qZA(),l.YNc(60,b,30,10,"div",19),l.TgZ(61,"div",23),l.TgZ(62,"button",24),l.NdJ("click",function(){return z.onShowAdvanced()}),l.YNc(63,Z,2,0,"p",25),l.YNc(64,N,2,0,"ng-template",null,26,l.W1O),l.qZA(),l.YNc(66,U,2,1,"button",27),l.YNc(67,ve,2,0,"button",28),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&we){const Ze=l.MAs(65);l.xp6(1),l.Q6J("fxLayoutAlign",null!=z.invoice&&z.invoice.serialized&&""!==(null==z.invoice?null:z.invoice.serialized)?"center start":"center center")("ngClass",l.VKq(33,be,z.screenSize===z.screenSizeEnum.XS||z.screenSize===z.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized)),l.xp6(4),l.Q6J("icon",z.faReceipt),l.xp6(2),l.Oqu(z.screenSize===z.screenSizeEnum.XS?z.newlyAdded?"Created":"Invoice":z.newlyAdded?"Invoice Created":"Invoice Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(35,Re,z.screenSize===z.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=z.invoice&&z.invoice.serialized&&""!==(null==z.invoice?null:z.invoice.serialized)?"center start":"center center")("ngClass",l.VKq(37,be,z.screenSize!==z.screenSizeEnum.XS&&z.screenSize!==z.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",z.screenSize===z.screenSizeEnum.XS||z.screenSize===z.screenSizeEnum.SM),l.xp6(6),l.hij("",l.lcZ(24,26,(null==z.invoice?null:z.invoice.amount)||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.amount)||"0"===(null==z.invoice?null:z.invoice.amount)),l.xp6(5),l.Q6J("ngIf",null==z.invoice?null:z.invoice.amountSettled),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.amountSettled)),l.xp6(7),l.Oqu(l.xi3(39,28,1e3*(null==z.invoice?null:z.invoice.timestamp),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.lcZ(45,31,null==z.invoice?null:z.invoice.status)),l.xp6(8),l.Oqu((null==z.invoice?null:z.invoice.description)||"-"),l.xp6(7),l.Oqu((null==z.invoice?null:z.invoice.serialized)||"N/A"),l.xp6(1),l.Q6J("ngIf",z.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(39,ze,!z.showAdvanced,z.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!z.showAdvanced)("ngIfElse",Ze),l.xp6(3),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized))}},directives:[A.xw,A.Wh,A.yH,E.mk,P.oO,E.O5,w.dk,V.BN,j.lW,w.dn,W.d,te.uU,E.sg,ee.$g,ge.h,le.y],pipes:[E.JJ,E.uU,E.rS],styles:[""]}),K})()},6523:(Ge,Q,m)=>{"use strict";m.d(Q,{PC:()=>y,Ll:()=>C,JT:()=>o,sQ:()=>M,CX:()=>l,$W:()=>R,Z8:()=>s,El:()=>L,z:()=>A,EK:()=>E,Rd:()=>P,YP:()=>V,SN:()=>j,RX:()=>W,Bl:()=>te,Jl:()=>ee,Rv:()=>ge,ks:()=>le,UR:()=>re,as:()=>de,Z7:()=>se,TW:()=>ye,Zh:()=>v,_L:()=>i,pW:()=>a,YX:()=>p,BL:()=>u,OG:()=>_,Vv:()=>D,Cp:()=>O,tb:()=>b,B_:()=>Z,vV:()=>N,WM:()=>ve,Nr:()=>be,aL:()=>Re,qY:()=>ze,mC:()=>Oe,Lf:()=>K,Ly:()=>Me,UH:()=>we,cQ:()=>z,HI:()=>Ze,oV:()=>vt,dV:()=>Ne,_E:()=>Le,Wi:()=>q,fu:()=>oe,y2:()=>Ue,xG:()=>nt,Sf:()=>ft,$A:()=>it,n7:()=>rt,yZ:()=>Mt,u0:()=>Ft,QJ:()=>Vt,WO:()=>Ii,kL:()=>jt,Jo:()=>ei,Fr:()=>ki});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.uR.UPDATE_API_CALL_STATUS_LND,(0,e.Ky)()),C=(0,e.PH)(t.uR.RESET_LND_STORE,(0,e.Ky)()),o=(0,e.PH)(t.uR.SET_CHILD_NODE_SETTINGS_LND,(0,e.Ky)()),M=(0,e.PH)(t.uR.FETCH_INFO_LND,(0,e.Ky)()),l=(0,e.PH)(t.uR.SET_INFO_LND,(0,e.Ky)()),R=(0,e.PH)(t.uR.FETCH_PEERS_LND),s=(0,e.PH)(t.uR.SET_PEERS_LND,(0,e.Ky)()),L=(0,e.PH)(t.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),A=((0,e.PH)(t.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(t.uR.DETACH_PEER_LND,(0,e.Ky)())),E=(0,e.PH)(t.uR.REMOVE_PEER_LND,(0,e.Ky)()),P=(0,e.PH)(t.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),V=((0,e.PH)(t.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.ADD_INVOICE_LND,(0,e.Ky)())),j=(0,e.PH)(t.uR.FETCH_FEES_LND),W=(0,e.PH)(t.uR.SET_FEES_LND,(0,e.Ky)()),te=(0,e.PH)(t.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ee=(0,e.PH)(t.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),ge=(0,e.PH)(t.uR.FETCH_NETWORK_LND),le=(0,e.PH)(t.uR.SET_NETWORK_LND,(0,e.Ky)()),re=(0,e.PH)(t.uR.FETCH_CHANNELS_LND),de=(0,e.PH)(t.uR.SET_CHANNELS_LND,(0,e.Ky)()),se=(0,e.PH)(t.uR.FETCH_PENDING_CHANNELS_LND),ye=(0,e.PH)(t.uR.SET_PENDING_CHANNELS_LND,(0,e.Ky)()),v=(0,e.PH)(t.uR.FETCH_CLOSED_CHANNELS_LND),i=(0,e.PH)(t.uR.SET_CLOSED_CHANNELS_LND,(0,e.Ky)()),a=(0,e.PH)(t.uR.UPDATE_CHANNEL_LND,(0,e.Ky)()),p=(0,e.PH)(t.uR.SAVE_NEW_CHANNEL_LND,(0,e.Ky)()),u=(0,e.PH)(t.uR.CLOSE_CHANNEL_LND,(0,e.Ky)()),_=(0,e.PH)(t.uR.REMOVE_CHANNEL_LND,(0,e.Ky)()),D=(0,e.PH)(t.uR.BACKUP_CHANNELS_LND,(0,e.Ky)()),O=(0,e.PH)(t.uR.VERIFY_CHANNEL_LND,(0,e.Ky)()),b=((0,e.PH)(t.uR.BACKUP_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.VERIFY_CHANNEL_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.RESTORE_CHANNELS_LIST_LND)),Z=(0,e.PH)(t.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),N=(0,e.PH)(t.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),ve=((0,e.PH)(t.uR.RESTORE_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_INVOICES_LND,(0,e.Ky)())),be=(0,e.PH)(t.uR.SET_INVOICES_LND,(0,e.Ky)()),Re=(0,e.PH)(t.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),ze=(0,e.PH)(t.uR.UPDATE_PAYMENT_LND,(0,e.Ky)()),Oe=(0,e.PH)(t.uR.FETCH_TRANSACTIONS_LND),K=(0,e.PH)(t.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),Me=(0,e.PH)(t.uR.FETCH_UTXOS_LND),we=(0,e.PH)(t.uR.SET_UTXOS_LND,(0,e.Ky)()),z=(0,e.PH)(t.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),Ze=(0,e.PH)(t.uR.SET_PAYMENTS_LND,(0,e.Ky)()),vt=(0,e.PH)(t.uR.SEND_PAYMENT_LND,(0,e.Ky)()),Ne=((0,e.PH)(t.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),Le=((0,e.PH)(t.uR.SET_GRAPH_NODE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_NEW_ADDRESS_LND,(0,e.Ky)())),q=((0,e.PH)(t.uR.SET_NEW_ADDRESS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_LND,(0,e.Ky)())),oe=((0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GEN_SEED_LND,(0,e.Ky)())),Ue=((0,e.PH)(t.uR.GEN_SEED_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.INIT_WALLET_LND,(0,e.Ky)())),nt=((0,e.PH)(t.uR.INIT_WALLET_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.UNLOCK_WALLET_LND,(0,e.Ky)())),ft=(0,e.PH)(t.uR.PEER_LOOKUP_LND,(0,e.Ky)()),it=(0,e.PH)(t.uR.CHANNEL_LOOKUP_LND,(0,e.Ky)()),rt=(0,e.PH)(t.uR.INVOICE_LOOKUP_LND,(0,e.Ky)()),Mt=(0,e.PH)(t.uR.PAYMENT_LOOKUP_LND,(0,e.Ky)()),Ft=((0,e.PH)(t.uR.SET_LOOKUP_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_FORWARDING_HISTORY_LND,(0,e.Ky)())),Vt=(0,e.PH)(t.uR.SET_FORWARDING_HISTORY_LND,(0,e.Ky)()),Ii=(0,e.PH)(t.uR.GET_QUERY_ROUTES_LND,(0,e.Ky)()),jt=(0,e.PH)(t.uR.SET_QUERY_ROUTES_LND,(0,e.Ky)()),ei=(0,e.PH)(t.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),ki=(0,e.PH)(t.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,e.Ky)())},711:(Ge,Q,m)=>{"use strict";m.d(Q,{l:()=>ye});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),R=m(1365),s=m(2340),L=m(8627),I=m(1786),A=m(7731),E=m(7861),P=m(6523),w=m(6529),V=m(5e3),j=m(8138),W=m(5620),te=m(5043),ee=m(62),ge=m(5986),le=m(8966),re=m(1402),de=m(7998),se=m(9808);let ye=(()=>{class v{constructor(a,p,u,_,D,O,x,r,b,Z){this.actions=a,this.httpClient=p,this.store=u,this.logger=_,this.commonService=D,this.sessionService=O,this.dialog=x,this.router=r,this.wsService=b,this.location=Z,this.CHILD_API_URL=s.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x],this.infoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INFO_LND),(0,C.z)(N=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,M.U)(U=>(this.logger.info(U),U.chains&&U.chains.length&&U.chains[0]&&("string"==typeof U.chains[0]&&U.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof U.chains[0]&&U.chains[0].hasOwnProperty("chain")&&U.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):U.identity_pubkey?(U.lnImplementation="LND",this.initializeRemainingData(U,N.payload.loadPage),this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),{type:A.uR.SET_INFO_LND,payload:U||{}}):(this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:A.uR.SET_INFO_LND,payload:{}}))),(0,l.K)(U=>{if("string"==typeof U.error.error&&U.error.error.includes("Not Found")||"string"==typeof U.error.error&&U.error.error.includes("wallet locked")||502===U.status&&!U.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",U);else if("string"==typeof U.error.error&&U.error.error.includes("starting up")&&500===U.status)setTimeout(()=>{this.store.dispatch((0,P.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const ve=this.commonService.extractErrorCode(U),be=503===ve?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(U);this.router.navigate(["/error"],{state:{errorCode:ve,errorMessage:be}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:ve,error:be})}return(0,y.of)({type:A.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PEERS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PEERS_API).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PEERS_LND,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_PEER_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PEERS_API,{pubkey:N.payload.pubkey,host:N.payload.host,perm:N.payload.perm}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.Z8)({payload:U||[]})),{type:A.uR.NEWLY_ADDED_PEER_LND,payload:{peer:U[0]}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",U),(0,y.of)({type:A.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.DETACH_PEER_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.PEERS_API+"/"+N.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully."})),{type:A.uR.REMOVE_PEER_LND,payload:{pubkey:N.payload.pubkey}})),(0,l.K)(U=>(this.handleErrorWithAlert("DetachPeer",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+s.NZ.PEERS_API+"/"+N.payload.pubkey,U),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_INVOICE_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.INVOICES_API,{memo:N.payload.memo,amount:N.payload.invoiceValue,private:N.payload.private,expiry:N.payload.expiry}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:N.payload.pageSize,reversed:!0}})),N.payload.openModal?(U.memo=N.payload.memo,U.value=N.payload.invoiceValue,U.expiry=N.payload.expiry,U.cltv_expiry="144",U.private=N.payload.private,U.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:U,newlyAdded:!0,component:L.v}}}))},100),{type:A.pg.CLOSE_SPINNER,payload:N.payload.uiMessage}):{type:A.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:U.payment_request}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewInvoice",N.payload.uiMessage,"Add Invoice Failed.",U),(0,y.of)({type:A.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_CHANNEL_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.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,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:A.uR.FETCH_PENDING_CHANNELS_LND})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,y.of)({type:A.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UPDATE_CHANNEL_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:N.payload.baseFeeMsat,feeRate:N.payload.feeRate,timeLockDelta:N.payload.timeLockDelta,chanPoint:N.payload.chanPoint}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===N.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:A.uR.FETCH_CHANNELS_LND})),(0,l.K)(U=>(this.handleErrorWithAlert("UpdateChannels",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/chanPolicy",U),(0,y.of)({type:A.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CLOSE_CHANNEL_LND),(0,C.z)(N=>{this.store.dispatch((0,E.ac)({payload:N.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL}));let U=this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly;return N.payload.targetConf&&(U=U+"&target_conf="+N.payload.targetConf),N.payload.satPerByte&&(U=U+"&sat_per_byte="+N.payload.satPerByte),this.httpClient.delete(U).pipe((0,M.U)(ve=>(this.logger.info(ve),this.store.dispatch((0,E.uO)({payload:N.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Z7)()),this.store.dispatch((0,P.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:ve.message}})),{type:A.pg.VOID})),(0,l.K)(ve=>(this.handleErrorWithAlert("CloseChannel",N.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly,ve),(0,y.of)({type:A.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.BACKUP_CHANNELS_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"BackupChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"BackupChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:N.payload.showMessage+" "+U.message})),{type:A.uR.BACKUP_CHANNELS_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("BackupChannels",N.payload.uiMessage,N.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint,U),(0,y.of)({type:A.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.VERIFY_CHANNEL_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"VerifyChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"VerifyChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,E.jW)({payload:U.message})),{type:A.uR.VERIFY_CHANNEL_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("VerifyChannel",A.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,U),(0,y.of)({type:A.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannels",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,E.jW)({payload:U.message})),this.store.dispatch((0,P.B_)({payload:U.list})),{type:A.uR.RESTORE_CHANNELS_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("RestoreChannels",A.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,U),(0,y.of)({type:A.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_FEES_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.FEES_API))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),N.forwarding_events_history&&(this.store.dispatch((0,P.QJ)({payload:N.forwarding_events_history})),delete N.forwarding_events_history),{type:A.uR.SET_FEES_LND,payload:N||{}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",N),(0,y.of)({type:A.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.BALANCE_API))),(0,M.U)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),this.logger.info(N),{type:A.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:N||{total_balance:""}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",N),(0,y.of)({type:A.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_NETWORK_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchNetwork",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/info"))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchNetwork",status:A.Bn.COMPLETED}})),{type:A.uR.SET_NETWORK_LND,payload:N||{}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchNetwork",A.m6.NO_SPINNER,"Fetching Network Failed.",N),(0,y.of)({type:A.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CHANNELS_LND,payload:N.channels||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PENDING_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/pending").pipe((0,M.U)(N=>{this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.COMPLETED}}));const U={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&&(U.total_limbo_balance=N.total_limbo_balance,N.pending_closing_channels&&(U.closing.num_channels=N.pending_closing_channels.length,U.total_channels=U.total_channels+N.pending_closing_channels.length,N.pending_closing_channels.forEach(ve=>{U.closing.limbo_balance=+U.closing.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)})),N.pending_force_closing_channels&&(U.force_closing.num_channels=N.pending_force_closing_channels.length,U.total_channels=U.total_channels+N.pending_force_closing_channels.length,N.pending_force_closing_channels.forEach(ve=>{U.force_closing.limbo_balance=+U.force_closing.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)})),N.pending_open_channels&&(U.open.num_channels=N.pending_open_channels.length,U.total_channels=U.total_channels+N.pending_open_channels.length,N.pending_open_channels.forEach(ve=>{U.open.limbo_balance=+U.open.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)})),N.waiting_close_channels&&(U.waiting_close.num_channels=N.waiting_close_channels.length,U.total_channels=U.total_channels+N.waiting_close_channels.length,N.waiting_close_channels.forEach(ve=>{U.waiting_close.limbo_balance=+U.waiting_close.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)}))),{type:A.uR.SET_PENDING_CHANNELS_LND,payload:N?{pendingChannels:N,pendingChannelsSummary:U}:{pendingChannels:{},pendingChannelsSummary:U}}}),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchPendingChannels",A.m6.NO_SPINNER,"Fetching Pending Channels Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CLOSED_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/closed").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CLOSED_CHANNELS_LND,payload:N.channels||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchClosedChannels",A.m6.NO_SPINNER,"Fetching Closed Channels Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INVOICES_LND),(0,C.z)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.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,M.U)(Re=>(this.logger.info(Re),this.store.dispatch((0,P.PC)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),N.payload.reversed&&!N.payload.index_offset&&(Re.total_invoices=+Re.last_index_offset),{type:A.uR.SET_INVOICES_LND,payload:Re})),(0,l.K)(Re=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",Re),(0,y.of)({type:A.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_TRANSACTIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.TRANSACTIONS_API))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_TRANSACTIONS_LND,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchTransactions",A.m6.NO_SPINNER,"Fetching Transactions Failed.",N),(0,y.of)({type:A.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_UTXOS_LND),(0,R.M)(this.store.select(w.Q5)),(0,C.z)(([N,U])=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/getUTXOs?max_confs="+(U&&U.block_height?U.block_height:1e9)))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.uR.SET_UTXOS_LND,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",N),(0,y.of)({type:A.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PAYMENTS_LND),(0,C.z)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.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,M.U)(Re=>(this.logger.info(Re),this.store.dispatch((0,P.PC)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PAYMENTS_LND,payload:Re})),(0,l.K)(Re=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",Re),(0,y.of)({type:A.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SEND_PAYMENT_LND),(0,C.z)(N=>{this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:A.Bn.INITIATED}}));const U={};return U.paymentReq=N.payload.paymentReq,N.payload.paymentAmount&&(U.paymentAmount=N.payload.paymentAmount),N.payload.outgoingChannel&&(U.outgoingChannel=N.payload.outgoingChannel.chan_id),N.payload.allowSelfPayment&&(U.allowSelfPayment=N.payload.allowSelfPayment),N.payload.lastHopPubkey&&(U.lastHopPubkey=N.payload.lastHopPubkey),N.payload.feeLimitType&&N.payload.feeLimitType!==A.Vc[0].id&&(U.feeLimit={},U.feeLimit[N.payload.feeLimitType]=N.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",U).pipe((0,M.U)(ve=>{if(this.logger.info(ve),this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),ve.payment_error)return N.payload.allowSelfPayment?(this.store.dispatch((0,P.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:ve}):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",ve.payment_error):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",ve.payment_error),{type:A.pg.VOID});if(this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.cQ)({payload:{max_payments:A.IV,reversed:!0}})),N.payload.allowSelfPayment)this.store.dispatch((0,P.WM)({payload:{num_max_invoices:A.IV,reversed:!0}}));else{let be="Payment Sent Successfully.";ve.payment_route&&ve.payment_route.total_fees_msat&&(be="Payment sent successfully with the total fee "+ve.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,E.jW)({payload:be}))}return{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:ve}}),(0,l.K)(ve=>(this.logger.error("Error: "+JSON.stringify(ve)),N.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",ve),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),(0,y.of)({type:A.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(ve)}})):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",ve):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",ve),(0,y.of)({type:A.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_GRAPH_NODE_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,P.PC)({payload:{action:"FetchGraphNode",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+N.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,P.PC)({payload:{action:"FetchGraphNode",status:A.Bn.COMPLETED}})),{type:A.uR.SET_GRAPH_NODE_LND,payload:U&&U.node?{node:U.node}:{node:null}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchGraphNode",A.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",U),(0,y.of)({type:A.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_GRAPH_NODE_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_NEW_ADDRESS_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.uR.SET_NEW_ADDRESS_LND,payload:U&&U.address?U.address:{}})),(0,l.K)(U=>(this.handleErrorWithAlert("GetNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+s.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId,U),(0,y.of)({type:A.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_NEW_ADDRESS_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_CHANNEL_TRANSACTION_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.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,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.mC)()),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),{type:A.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",U),(0,y.of)({type:A.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_FORWARDING_HISTORY_LND),(0,C.z)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.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,M.U)(ve=>(this.logger.info(ve),this.store.dispatch((0,P.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.uR.SET_FORWARDING_HISTORY_LND,payload:ve})),(0,l.K)(ve=>(this.handleErrorWithAlert("FetchForwardingHistory",A.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+s.NZ.SWITCH_API,ve),(0,y.of)({type:A.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_QUERY_ROUTES_LND),(0,C.z)(N=>{let U=this.CHILD_API_URL+s.NZ.NETWORK_API+"/routes/"+N.payload.destPubkey+"/"+N.payload.amount;return N.payload.outgoingChanId&&(U=U+"?outgoing_chan_id="+N.payload.outgoingChanId),this.httpClient.get(U).pipe((0,M.U)(ve=>(this.logger.info(ve),{type:A.uR.SET_QUERY_ROUTES_LND,payload:ve})),(0,l.K)(ve=>(this.store.dispatch((0,P.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+s.NZ.NETWORK_API,ve),(0,y.of)({type:A.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_QUERY_ROUTES_LND),(0,M.U)(N=>N.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/genseed/"+N.payload).pipe((0,M.U)(U=>(this.logger.info("Generated GenSeed!"),this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.GEN_SEED})),{type:A.uR.GEN_SEED_RESPONSE_LND,payload:U.cipher_seed_mnemonic})),(0,l.K)(U=>(this.handleErrorWithAlert("GenSeed",A.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/genseed/"+N.payload,U),(0,y.of)({type:A.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,C.z)(()=>this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,M.U)(N=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(N),{type:A.pg.VOID})),(0,l.K)(N=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",A.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",N),(0,y.of)({type:A.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_RESPONSE_LND),(0,M.U)(N=>N.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_RESPONSE_LND),(0,M.U)(N=>N.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+s.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,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.INITIALIZE_WALLET})),{type:A.uR.INIT_WALLET_RESPONSE_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("InitWallet",A.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/initwallet",U),(0,y.of)({type:A.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UNLOCK_WALLET_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+s.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:N.payload.pwd}).pipe((0,M.U)(U=>(this.logger.info(U),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,E.uO)({payload:A.m6.UNLOCK_WALLET})),this.store.dispatch((0,E.ac)({payload:A.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,E.uO)({payload:A.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,P.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:A.pg.VOID})),(0,l.K)(U=>(this.handleErrorWithAlert("UnlockWallet",A.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/unlockwallet",U),(0,y.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PEER_LOOKUP_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+N.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+N.payload,U),(0,y.of)({type:A.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CHANNEL_LOOKUP_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/edge/"+N.payload.channelID).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("Lookup",N.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/edge/"+N.payload.channelID,U),(0,y.of)({type:A.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INVOICE_LOOKUP_LND),(0,C.z)(N=>{this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}}));let U=this.CHILD_API_URL+s.NZ.INVOICES_API+"/lookup";return U=N.payload.paymentAddress&&""!==N.payload.paymentAddress?U+"?payment_addr="+N.payload.paymentAddress:U+"?payment_hash="+N.payload.paymentHash,this.httpClient.get(U).pipe((0,M.U)(ve=>(this.logger.info(ve),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.aL)({payload:ve})),{type:A.uR.SET_LOOKUP_LND,payload:ve})),(0,l.K)(ve=>(this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",ve),N.payload.openSnackBar&&this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:ve}}))))}))),this.paymentLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PAYMENT_LOOKUP_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"/lookup/"+N.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.qY)({payload:U})),{type:A.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",U),(0,y.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:U}})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_LOOKUP_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LIST_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.COMPLETED}})),{type:A.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:N||{all_restore_exists:!1,files:[]}})),(0,l.K)(N=>(this.handleErrorWithAlert("RestoreChannelsList",A.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API,N),(0,y.of)({type:A.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"/alltransactions").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchLightningTransactions",A.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.store.select(w.yA).pipe((0,o.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.FetchBalanceBlockchain.status!==A.Bn.COMPLETED&&N.FetchBalanceBlockchain.status!==A.Bn.ERROR||N.FetchAllChannels.status!==A.Bn.COMPLETED&&N.FetchAllChannels.status!==A.Bn.ERROR||N.FetchPendingChannels.status!==A.Bn.COMPLETED&&N.FetchPendingChannels.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(N=>{this.logger.info("Received new message from the service: "+JSON.stringify(N)),N&&(N.type===A.g8.INVOICE?(this.logger.info(N),N&&N.result&&N.result.payment_request&&this.store.dispatch((0,P.aL)({payload:N.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(N)))})}initializeRemainingData(a,p){this.sessionService.setItem("lndUnlocked","true");const u={identity_pubkey:a.identity_pubkey,alias:a.alias,testnet:a.testnet,chains:a.chains,uris:a.uris,version:a.version?a.version.split(" ")[0]:""};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:u}));let _=this.location.path();_.includes("/cln/")?_=_.replace("/cln/","/lnd/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===p||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Z7)()),this.store.dispatch((0,P.Zh)()),this.store.dispatch((0,P.$W)()),this.store.dispatch((0,P.Rv)()),this.store.dispatch((0,P.SN)()),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,P.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(a,p,u,_){this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:p})),this.store.dispatch((0,P.PC)({payload:{action:a,status:A.Bn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,u)}})))}handleErrorWithAlert(a,p,u,_,D){if(this.logger.error(D),401===D.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const O=this.commonService.extractErrorMessage(D);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:D.status,message:O,URL:_},component:I.H}}})),this.store.dispatch((0,P.PC)({payload:{action:a,status:A.Bn.ERROR,statusCode:D.status.toString(),message:O,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return v.\u0275fac=function(a){return new(a||v)(V.LFG(e.eX),V.LFG(j.eN),V.LFG(W.yh),V.LFG(te.mQ),V.LFG(ee.v),V.LFG(ge.m),V.LFG(le.uw),V.LFG(re.F0),V.LFG(de.d),V.LFG(se.Ye))},v.\u0275prov=V.Yz7({token:v,factory:v.\u0275fac}),v})()},6529:(Ge,Q,m)=>{"use strict";m.d(Q,{$k:()=>y,Q5:()=>C,yA:()=>M,Bo:()=>l,PP:()=>R,JG:()=>s,Wi:()=>L,dx:()=>I,Ef:()=>A,ZW:()=>E,ni:()=>w,P2:()=>V,qU:()=>j,T4:()=>te,N7:()=>ee,l5:()=>ge,_f:()=>le,bx:()=>re});var e=m(5620);const t=(0,e.ZF)("lnd"),y=(0,e.P1)(t,de=>de.nodeSettings),C=(0,e.P1)(t,de=>de.information),M=((0,e.P1)(t,de=>({information:de.information,apiCallStatus:de.apisCallStatus.FetchInfo})),(0,e.P1)(t,de=>de.apisCallStatus)),l=(0,e.P1)(t,de=>({forwardingHistory:de.forwardingHistory,apiCallStatus:de.apisCallStatus.FetchForwardingHistory})),R=(0,e.P1)(t,de=>({listPayments:de.listPayments,apiCallStatus:de.apisCallStatus.FetchPayments})),s=(0,e.P1)(t,de=>({fees:de.fees,apiCallStatus:de.apisCallStatus.FetchFees})),L=(0,e.P1)(t,de=>({peers:de.peers,apiCallStatus:de.apisCallStatus.FetchPeers})),I=(0,e.P1)(t,de=>({transactions:de.transactions,apiCallStatus:de.apisCallStatus.FetchTransactions})),A=(0,e.P1)(t,de=>({listInvoices:de.listInvoices,apiCallStatus:de.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,de=>({channels:de.channels,channelsSummary:de.channelsSummary,lightningBalance:de.lightningBalance,apiCallStatus:de.apisCallStatus.FetchAllChannels})),w=((0,e.P1)(t,de=>({channelsSummary:de.channelsSummary,pendingChannels:de.pendingChannels,closedChannels:de.closedChannels,apiCallStatus:de.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,de=>({pendingChannels:de.pendingChannels,pendingChannelsSummary:de.pendingChannelsSummary,apiCallStatus:de.apisCallStatus.FetchPendingChannels}))),V=(0,e.P1)(t,de=>({closedChannels:de.closedChannels,apiCallStatus:de.apisCallStatus.FetchClosedChannels})),j=(0,e.P1)(t,de=>({blockchainBalance:de.blockchainBalance,apiCallStatus:de.apisCallStatus.FetchBalanceBlockchain})),te=((0,e.P1)(t,de=>({lightningBalance:de.lightningBalance,apiCallStatus:de.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,de=>({utxos:de.utxos,apiCallStatus:de.apisCallStatus.FetchUTXOs}))),ee=(0,e.P1)(t,de=>({networkInfo:de.networkInfo,apiCallStatus:de.apisCallStatus.FetchNetwork})),ge=(0,e.P1)(t,de=>({allLightningTransactions:de.allLightningTransactions,apiCallStatus:de.apisCallStatus.FetchLightningTransactions})),le=(0,e.P1)(t,de=>({channels:de.channels,pendingChannels:de.pendingChannels,closedChannels:de.closedChannels})),re=(0,e.P1)(t,de=>({information:de.information,nodeSettings:de.nodeSettings,apiCallStatus:de.apisCallStatus.FetchInfo}))},8627:(Ge,Q,m)=>{"use strict";m.d(Q,{v:()=>$});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(6529),l=m(5e3),R=m(5043),s=m(62),L=m(7261),I=m(5620),A=m(7093),E=m(9808),P=m(3322),w=m(9224),V=m(9444),j=m(7423),W=m(644),te=m(4834),ee=m(159),ge=m(773),le=m(1125),re=m(7238),de=m(5245),se=m(3390),ye=m(6895);const v=["scrollContainer"];function i(oe,Ce){if(1&oe&&l._UZ(0,"qr-code",32),2&oe){const Ue=l.oxw();l.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function a(oe,Ce){1&oe&&(l.TgZ(0,"span",33),l._uU(1,"N/A"),l.qZA())}function p(oe,Ce){if(1&oe&&l._UZ(0,"qr-code",32),2&oe){const Ue=l.oxw();l.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function u(oe,Ce){1&oe&&(l.TgZ(0,"span",34),l._uU(1,"QR Code Not Applicable"),l.qZA())}function _(oe,Ce){1&oe&&l._UZ(0,"mat-divider",22),2&oe&&l.Q6J("inset",!0)}function D(oe,Ce){1&oe&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function O(oe,Ce){1&oe&&l._UZ(0,"span",40)}const x=function(){return[]};function r(oe,Ce){if(1&oe&&(l.TgZ(0,"div",36),l.TgZ(1,"div",37),l.TgZ(2,"span",38),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,O,1,0,"span",39),l.qZA(),l.qZA()),2&oe){const Ue=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,x).constructor(35))}}function b(oe,Ce){if(1&oe&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&oe){const Ue=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats")}}function Z(oe,Ce){if(1&oe&&(l.ynx(0),l.YNc(1,r,6,5,"div",35),l.YNc(2,b,3,3,"div",21),l.BQk()),2&oe){const Ue=l.oxw();l.xp6(1),l.Q6J("ngIf",Ue.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!Ue.flgInvoicePaid)}}function N(oe,Ce){1&oe&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function U(oe,Ce){1&oe&&l._UZ(0,"mat-spinner",42),2&oe&&l.Q6J("diameter",20)}function ve(oe,Ce){if(1&oe&&(l.ynx(0),l.YNc(1,N,2,0,"span",21),l.YNc(2,U,1,1,"mat-spinner",41),l.BQk()),2&oe){const Ue=l.oxw();l.xp6(1),l.Q6J("ngIf","OPEN"!==(null==Ue.invoice?null:Ue.invoice.state)||!Ue.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","OPEN"===(null==Ue.invoice?null:Ue.invoice.state)&&Ue.flgVersionCompatible)}}const be=function(oe){return{"mr-0":oe}};function Re(oe,Ce){if(1&oe&&l._UZ(0,"span",59),2&oe){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,be,Ue.screenSize===Ue.screenSizeEnum.XS))}}function ze(oe,Ce){if(1&oe&&l._UZ(0,"span",60),2&oe){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,be,Ue.screenSize===Ue.screenSizeEnum.XS))}}function Oe(oe,Ce){if(1&oe&&l._UZ(0,"span",61),2&oe){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,be,Ue.screenSize===Ue.screenSizeEnum.XS))}}function K(oe,Ce){if(1&oe&&(l.TgZ(0,"div",48),l.TgZ(1,"div",53),l.TgZ(2,"span",54),l.YNc(3,Re,1,3,"span",55),l.YNc(4,ze,1,3,"span",56),l.YNc(5,Oe,1,3,"span",57),l._uU(6),l.qZA(),l.TgZ(7,"span",58),l._uU(8),l.ALo(9,"number"),l.qZA(),l.qZA(),l._UZ(10,"mat-divider",22),l.qZA()),2&oe){const Ue=Ce.$implicit,lt=l.oxw(3);l.xp6(3),l.Q6J("ngIf","SETTLED"===Ue.state),l.xp6(1),l.Q6J("ngIf","ACCEPTED"===Ue.state),l.xp6(1),l.Q6J("ngIf","CANCELED"===Ue.state),l.xp6(1),l.hij(" ",Ue.chan_id," "),l.xp6(2),l.Oqu(l.xi3(9,6,+Ue.amt_msat/1e3||0,lt.getDecimalFormat(Ue))),l.xp6(2),l.Q6J("inset",!0)}}function Me(oe,Ce){if(1&oe){const Ue=l.EpF();l.TgZ(0,"div",17),l.TgZ(1,"mat-expansion-panel",46),l.NdJ("opened",function(){return l.CHM(Ue),l.oxw(2).flgOpened=!0})("closed",function(){return l.CHM(Ue),l.oxw(2).onExpansionClosed()}),l.TgZ(2,"mat-expansion-panel-header"),l.TgZ(3,"mat-panel-title"),l.TgZ(4,"h4",47),l._uU(5,"HTLCs"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(6,"div",48),l.TgZ(7,"div",49),l.TgZ(8,"span",50),l._uU(9,"Channel ID"),l.qZA(),l.TgZ(10,"span",51),l._uU(11,"Amount (Sats)"),l.qZA(),l.qZA(),l._UZ(12,"mat-divider",22),l.YNc(13,K,11,9,"div",52),l.qZA(),l.qZA(),l.qZA()}if(2&oe){const Ue=l.oxw(2);l.xp6(12),l.Q6J("inset",!0),l.xp6(1),l.Q6J("ngForOf",null==Ue.invoice?null:Ue.invoice.htlcs)}}function we(oe,Ce){1&oe&&l._UZ(0,"mat-divider",22),2&oe&&l.Q6J("inset",!0)}function z(oe,Ce){if(1&oe&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",22),l.TgZ(2,"div",17),l.TgZ(3,"div",23),l.TgZ(4,"h4",19),l._uU(5,"Preimage"),l.qZA(),l.TgZ(6,"span",24),l._uU(7),l.qZA(),l.qZA(),l.qZA(),l._UZ(8,"mat-divider",22),l.TgZ(9,"div",17),l.TgZ(10,"div",43),l.TgZ(11,"h4",19),l._uU(12,"State"),l.qZA(),l.TgZ(13,"span",24),l._uU(14),l.qZA(),l.qZA(),l.TgZ(15,"div",44),l.TgZ(16,"h4",19),l._uU(17,"Expiry"),l.qZA(),l.TgZ(18,"span",24),l._uU(19),l.qZA(),l.qZA(),l.TgZ(20,"div",44),l.TgZ(21,"h4",19),l._uU(22,"Private Routing Hints"),l.qZA(),l.TgZ(23,"span",24),l._uU(24),l.qZA(),l.qZA(),l.qZA(),l._UZ(25,"mat-divider",22),l.YNc(26,Me,14,2,"div",45),l.YNc(27,we,1,1,"mat-divider",14),l.qZA()),2&oe){const Ue=l.oxw();l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==Ue.invoice?null:Ue.invoice.r_preimage)||"-"),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu(null==Ue.invoice?null:Ue.invoice.state),l.xp6(5),l.Oqu(null==Ue.invoice?null:Ue.invoice.expiry),l.xp6(5),l.Oqu(null!=Ue.invoice&&Ue.invoice.private?"Yes":"No"),l.xp6(1),l.Q6J("inset",!0),l.xp6(1),l.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0),l.xp6(1),l.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0)}}function Ze(oe,Ce){if(1&oe){const Ue=l.EpF();l.TgZ(0,"div",62),l.TgZ(1,"button",63),l.NdJ("click",function(){return l.CHM(Ue),l.oxw().onScrollDown()}),l.TgZ(2,"mat-icon",64),l._uU(3,"arrow_downward"),l.qZA(),l.qZA(),l.qZA()}}function vt(oe,Ce){1&oe&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function Fe(oe,Ce){1&oe&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function Ne(oe,Ce){if(1&oe){const Ue=l.EpF();l.TgZ(0,"button",65),l.NdJ("copied",function(nt){return l.CHM(Ue),l.oxw().onCopyPayment(nt)}),l._uU(1),l.qZA()}if(2&oe){const Ue=l.oxw();l.Q6J("payload",null==Ue.invoice?null:Ue.invoice.payment_request),l.xp6(1),l.Oqu(Ue.screenSize===Ue.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function ce(oe,Ce){if(1&oe){const Ue=l.EpF();l.TgZ(0,"button",66),l.NdJ("click",function(){return l.CHM(Ue),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const Le=function(oe){return{"display-none":oe}},Pe=function(oe){return{"xs-scroll-y":oe}},q=function(oe){return{"h-50":oe}};let $=(()=>{class oe{constructor(Ue,lt,nt,ft,it,rt){this.dialogRef=Ue,this.data=lt,this.logger=nt,this.commonService=ft,this.snackBar=it,this.store=rt,this.faReceipt=t.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}set container(Ue){Ue&&(this.scrollContainer=Ue)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.Q5).pipe((0,C.R)(this.unSubs[0])).subscribe(lt=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(lt.version,"0.11.0")});const Ue=JSON.parse(JSON.stringify(this.invoice));this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(lt=>{const nt=this.invoice.state,it=(lt.listInvoices.invoices||[]).find(rt=>rt.r_hash===Ue.r_hash);this.invoice=it,nt!==this.invoice.state&&"SETTLED"===this.invoice.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(lt)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(Ue){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+Ue)}getDecimalFormat(Ue){return Ue.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(Ue=>{Ue.next(null),Ue.complete()})}}return oe.\u0275fac=function(Ue){return new(Ue||oe)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(I.yh))},oe.\u0275cmp=l.Xpm({type:oe,selectors:[["rtl-invoice-information"]],viewQuery:function(Ue,lt){if(1&Ue&&l.Gf(v,5),2&Ue){let nt;l.iGM(nt=l.CRH())&&(lt.container=nt.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(Ue,lt){if(1&Ue&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,i,1,3,"qr-code",2),l.YNc(3,a,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return lt.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,p,1,3,"qr-code",2),l.YNc(16,u,2,0,"span",13),l.qZA(),l.YNc(17,_,1,1,"mat-divider",14),l.TgZ(18,"div",15,16),l.TgZ(20,"div",17),l.TgZ(21,"div",18),l.TgZ(22,"h4",19),l._uU(23),l.qZA(),l.TgZ(24,"span",20),l._uU(25),l.ALo(26,"number"),l.YNc(27,D,2,0,"ng-container",21),l.qZA(),l.qZA(),l.TgZ(28,"div",18),l.TgZ(29,"h4",19),l._uU(30,"Amount Settled"),l.qZA(),l.TgZ(31,"span",20),l.YNc(32,Z,3,2,"ng-container",21),l.YNc(33,ve,3,2,"ng-container",21),l.qZA(),l.qZA(),l.qZA(),l._UZ(34,"mat-divider",22),l.TgZ(35,"div",17),l.TgZ(36,"div",18),l.TgZ(37,"h4",19),l._uU(38,"Date Created"),l.qZA(),l.TgZ(39,"span",20),l._uU(40),l.ALo(41,"date"),l.qZA(),l.qZA(),l.TgZ(42,"div",18),l.TgZ(43,"h4",19),l._uU(44,"Date Settled"),l.qZA(),l.TgZ(45,"span",20),l._uU(46),l.ALo(47,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(48,"mat-divider",22),l.TgZ(49,"div",17),l.TgZ(50,"div",23),l.TgZ(51,"h4",19),l._uU(52,"Memo"),l.qZA(),l.TgZ(53,"span",20),l._uU(54),l.qZA(),l.qZA(),l.qZA(),l._UZ(55,"mat-divider",22),l.TgZ(56,"div",17),l.TgZ(57,"div",23),l.TgZ(58,"h4",19),l._uU(59,"Payment Request"),l.qZA(),l.TgZ(60,"span",24),l._uU(61),l.qZA(),l.qZA(),l.qZA(),l._UZ(62,"mat-divider",22),l.TgZ(63,"div",17),l.TgZ(64,"div",23),l.TgZ(65,"h4",19),l._uU(66,"Payment Hash"),l.qZA(),l.TgZ(67,"span",24),l._uU(68),l.qZA(),l.qZA(),l.qZA(),l.YNc(69,z,28,9,"div",21),l.qZA(),l.qZA(),l.qZA(),l.YNc(70,Ze,4,0,"div",25),l.TgZ(71,"div",26),l.TgZ(72,"button",27),l.NdJ("click",function(){return lt.onShowAdvanced()}),l.YNc(73,vt,2,0,"p",28),l.YNc(74,Fe,2,0,"ng-template",null,29,l.W1O),l.qZA(),l.YNc(76,Ne,2,2,"button",30),l.YNc(77,ce,2,0,"button",31),l.qZA(),l.qZA(),l.qZA()),2&Ue){const nt=l.MAs(75);l.xp6(1),l.Q6J("fxLayoutAlign",null!=lt.invoice&<.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",l.VKq(41,Le,lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(4),l.Q6J("icon",lt.faReceipt),l.xp6(2),l.Oqu(lt.screenSize===lt.screenSizeEnum.XS?lt.newlyAdded?"Created":"Invoice":lt.newlyAdded?"Invoice Created":"Invoice Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(43,Pe,lt.screenSize===lt.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=lt.invoice&<.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",l.VKq(45,Le,lt.screenSize!==lt.screenSizeEnum.XS&<.screenSize!==lt.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM),l.xp6(1),l.Q6J("ngClass",l.VKq(47,q,(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&<.showAdvanced)),l.xp6(5),l.Oqu(lt.screenSize===lt.screenSizeEnum.XS?"Amount":"Amount Requested"),l.xp6(2),l.hij("",l.lcZ(26,33,(null==lt.invoice?null:lt.invoice.value)||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.value)||"0"===(null==lt.invoice?null:lt.invoice.value)),l.xp6(5),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.amt_paid_sat)&&"OPEN"!==(null==lt.invoice?null:lt.invoice.state)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.amt_paid_sat)||"0"===(null==lt.invoice?null:lt.invoice.amt_paid_sat)),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu(l.xi3(41,35,1e3*(null==lt.invoice?null:lt.invoice.creation_date),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(0!=+(null==lt.invoice?null:lt.invoice.settle_date)?l.xi3(47,38,1e3*+(null==lt.invoice?null:lt.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),l.xp6(2),l.Q6J("inset",!0),l.xp6(6),l.Oqu(null==lt.invoice?null:lt.invoice.memo),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==lt.invoice?null:lt.invoice.payment_request)||"N/A"),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==lt.invoice?null:lt.invoice.r_hash)||""),l.xp6(1),l.Q6J("ngIf",lt.showAdvanced),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&<.showAdvanced&<.flgOpened),l.xp6(3),l.Q6J("ngIf",!lt.showAdvanced)("ngIfElse",nt),l.xp6(3),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request))}},directives:[A.xw,A.Wh,A.yH,E.mk,P.oO,E.O5,w.dk,V.BN,j.lW,w.dn,W.$V,te.d,ee.uU,E.sg,ge.$g,le.ib,le.yz,le.yK,re.gM,de.Hw,se.h,ye.y],pipes:[E.JJ,E.uU],styles:[""]}),oe})()},7772:(Ge,Q,m)=>{"use strict";m.d(Q,{_:()=>t,J:()=>y});var e=m(1777);const t=[(0,e.X$)("opacityAnimation",[(0,e.eR)(":enter",[(0,e.oB)({opacity:0}),(0,e.jt)("1000ms ease-in",(0,e.oB)({opacity:1}))]),(0,e.eR)(":leave",[(0,e.jt)("0ms",(0,e.oB)({opacity:0}))])])],y=[(0,e.X$)("fadeIn",[(0,e.eR)("void => *",[]),(0,e.eR)("* => void",[]),(0,e.eR)("* => *",[(0,e.jt)(800,(0,e.F4)([(0,e.oB)({opacity:0,transform:"translateY(100%)"}),(0,e.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Ge,Q,m)=>{"use strict";m.d(Q,{g:()=>t});var e=m(1777);const t=(0,e.X$)("routeAnimation",[(0,e.eR)("* => *",[(0,e.IO)(":enter, :leave",(0,e.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Ge,Q,m)=>{"use strict";m.d(Q,{l:()=>t});var e=m(1777);const t=[(0,e.X$)("sliderAnimation",[(0,e.SB)("*",(0,e.oB)({transform:"translateX(0)"})),(0,e.eR)("void => backward",[(0,e.oB)({transform:"translateX(-100%"}),(0,e.jt)("800ms")]),(0,e.eR)("backward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(100%)"}))]),(0,e.eR)("void => forward",[(0,e.oB)({transform:"translateX(100%"}),(0,e.jt)("800ms")]),(0,e.eR)("forward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(-100%)"}))])])]},1786:(Ge,Q,m)=>{"use strict";m.d(Q,{H:()=>I});var e=m(8966),t=m(5e3),y=m(5043),C=m(7093),o=m(9224),M=m(7423),l=m(9808),R=m(4834),s=m(3390);function L(A,E){if(1&A&&(t.TgZ(0,"p",14),t._uU(1),t.qZA()),2&A){const P=t.oxw();t.xp6(1),t.Oqu(P.data.titleMessage)}}let I=(()=>{class A{constructor(P,w,V){this.dialogRef=P,this.data=w,this.logger=V,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 A.\u0275fac=function(P){return new(P||A)(t.Y36(e.so),t.Y36(e.WI),t.Y36(y.mQ))},A.\u0275cmp=t.Xpm({type:A,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(P,w){1&P&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return w.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.YNc(10,L,2,1,"p",8),t.TgZ(11,"h4",9),t._uU(12,"Error Code"),t.qZA(),t.TgZ(13,"span"),t._uU(14),t.qZA(),t._UZ(15,"mat-divider",10),t.TgZ(16,"h4",9),t._uU(17,"Error Message"),t.qZA(),t.TgZ(18,"span",11),t._uU(19),t.qZA(),t._UZ(20,"mat-divider",10),t.TgZ(21,"h4",9),t._uU(22,"API URL"),t.qZA(),t.TgZ(23,"span",11),t._uU(24),t.qZA(),t._UZ(25,"mat-divider",10),t.TgZ(26,"div",12),t.TgZ(27,"button",13),t._uU(28,"OK"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&P&&(t.xp6(5),t.Oqu(w.data.alertTitle||"ERROR"),t.xp6(5),t.Q6J("ngIf",w.data.titleMessage),t.xp6(4),t.Oqu(w.data.message.code),t.xp6(5),t.Oqu(w.errorMessage),t.xp6(5),t.Oqu(w.data.message.URL),t.xp6(3),t.Q6J("mat-dialog-close",!1))},directives:[C.xw,C.yH,o.dk,C.Wh,M.lW,o.dn,l.O5,R.d,s.h,e.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),A})()},9442:(Ge,Q,m)=>{"use strict";m.d(Q,{w:()=>R});var e=m(801),t=m(5e3),y=m(1402),C=m(7093),o=m(9444),M=m(9224),l=m(7423);let R=(()=>{class s{constructor(I){this.router=I,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}}return s.\u0275fac=function(I){return new(I||s)(t.Y36(y.F0))},s.\u0275cmp=t.Xpm({type:s,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(I,A){1&I&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Page Not Found"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"div",5),t.TgZ(8,"div",6),t._uU(9,"This page does not exist!"),t.qZA(),t.TgZ(10,"span",7),t.TgZ(11,"button",8),t.NdJ("click",function(){return A.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&I&&(t.xp6(1),t.Q6J("icon",A.faTimes))},directives:[C.xw,C.Wh,o.BN,M.a8,M.dn,C.yH,l.lW],encapsulation:2}),s})()},8213:(Ge,Q,m)=>{"use strict";m.d(Q,{a:()=>Xi});var e=m(3075),t=m(7579),y=m(2722),C=m(8966),o=m(801),M=m(7772),l=m(7731),R=m(6529),s=m(5e3),L=m(5620),I=m(9107),A=m(9808),E=m(5043),P=m(1402),w=m(62),V=m(7093),j=m(9224),W=m(7423),te=m(5615),ee=m(1125),ge=m(3322),le=m(5245),re=m(7238),de=m(4834);function se(Ke,_t){1&Ke&&s.GkF(0)}function ye(Ke,_t){1&Ke&&s.GkF(0)}const v=function(Ke){return{"h-5":Ke}};function i(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-expansion-panel",3),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"span",4),s._uU(4),s.ALo(5,"number"),s.qZA(),s.qZA(),s.qZA(),s.YNc(6,ye,1,0,"ng-container",0),s.qZA()),2&Ke){const _e=s.oxw(),qe=s.MAs(4);s.Q6J("expanded",_e.panelExpanded)("ngClass",s.VKq(7,v,!_e.flgShowPanel)),s.xp6(4),s.AsE("Quote for ",_e.termCaption," amount (",s.lcZ(5,5,_e.quote.amount)," Sats)"),s.xp6(2),s.Q6J("ngTemplateOutlet",qe)}}function a(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",19),s.TgZ(1,"h4",8),s._uU(2," Prepay Amount (Sats) "),s.TgZ(3,"mat-icon",20),s._uU(4,"info_outline"),s.qZA(),s.qZA(),s.TgZ(5,"span",10),s._uU(6),s.ALo(7,"number"),s.qZA(),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(6),s.Oqu(s.lcZ(7,1,null==_e.quote?null:_e.quote.prepay_amt_sat))}}function p(Ke,_t){1&Ke&&s._UZ(0,"mat-divider",13)}function u(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",6),s.TgZ(1,"div",21),s.TgZ(2,"h4",8),s._uU(3," Swap Server Node Pubkey "),s.TgZ(4,"mat-icon",22),s._uU(5,"info_outline"),s.qZA(),s.qZA(),s.TgZ(6,"span",10),s._uU(7),s.qZA(),s.qZA(),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(7),s.Oqu(null==_e.quote?null:_e.quote.swap_payment_dest)}}function _(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",5),s.TgZ(1,"div",6),s.TgZ(2,"div",7),s.TgZ(3,"h4",8),s._uU(4," Swap Fee (Sats) "),s.TgZ(5,"mat-icon",9),s._uU(6,"info_outline"),s.qZA(),s.qZA(),s.TgZ(7,"span",10),s._uU(8),s.ALo(9,"number"),s.qZA(),s.qZA(),s.TgZ(10,"div",7),s.TgZ(11,"h4",8),s._uU(12),s.TgZ(13,"mat-icon",11),s._uU(14,"info_outline"),s.qZA(),s.qZA(),s.TgZ(15,"span",10),s._uU(16),s.ALo(17,"number"),s.qZA(),s.qZA(),s.YNc(18,a,8,3,"div",12),s.qZA(),s._UZ(19,"mat-divider",13),s.TgZ(20,"div",6),s.TgZ(21,"div",14),s.TgZ(22,"h4",8),s._uU(23," Max Off-chain Swap Routing Fee (Sats) "),s.TgZ(24,"mat-icon",15),s._uU(25,"info_outline"),s.qZA(),s.qZA(),s.TgZ(26,"span",10),s._uU(27),s.ALo(28,"number"),s.qZA(),s.qZA(),s.TgZ(29,"div",14),s.TgZ(30,"h4",8),s._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),s.TgZ(32,"mat-icon",16),s._uU(33,"info_outline"),s.qZA(),s.qZA(),s.TgZ(34,"span",10),s._uU(35,"36"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,p,1,0,"mat-divider",17),s.YNc(37,u,8,1,"div",18),s.qZA()),2&Ke){const _e=s.oxw();s.xp6(2),s.Q6J("fxFlex",null!=_e.quote&&_e.quote.prepay_amt_sat?"30":"50"),s.xp6(6),s.Oqu(s.lcZ(9,9,null==_e.quote?null:_e.quote.swap_fee_sat)),s.xp6(2),s.Q6J("fxFlex",null!=_e.quote&&_e.quote.prepay_amt_sat?"35":"50"),s.xp6(2),s.hij(" ",null!=_e.quote&&_e.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=_e.quote&&_e.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),s.xp6(4),s.Oqu(s.lcZ(17,11,null!=_e.quote&&_e.quote.htlc_sweep_fee_sat?_e.quote.htlc_sweep_fee_sat:null!=_e.quote&&_e.quote.htlc_publish_fee_sat?_e.quote.htlc_publish_fee_sat:0)),s.xp6(2),s.Q6J("ngIf",null==_e.quote?null:_e.quote.prepay_amt_sat),s.xp6(9),s.Oqu(s.lcZ(28,13,(null==_e.quote?null:_e.quote.amount)*((null!=_e.quote&&_e.quote.off_chain_swap_routing_fee_percentage?null==_e.quote?null:_e.quote.off_chain_swap_routing_fee_percentage:2)/100))),s.xp6(9),s.Q6J("ngIf",""!==(null==_e.quote?null:_e.quote.swap_payment_dest)),s.xp6(1),s.Q6J("ngIf",""!==(null==_e.quote?null:_e.quote.swap_payment_dest))}}let D=(()=>{class Ke{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],[3,"fxFlex"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50"],["matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(_e,qe){if(1&_e&&(s.YNc(0,se,1,0,"ng-container",0),s.YNc(1,i,7,9,"ng-template",null,1,s.W1O),s.YNc(3,_,38,15,"ng-template",null,2,s.W1O)),2&_e){const yt=s.MAs(2),ue=s.MAs(4);s.Q6J("ngTemplateOutlet",qe.showPanel?yt:ue)}},directives:[A.tP,ee.ib,V.yH,A.mk,ge.oO,ee.yz,ee.yK,V.Wh,V.xw,le.Hw,re.gM,A.O5,de.d],pipes:[A.JJ],styles:[""]}),Ke})();var O=m(7322),x=m(7531),r=m(3390),b=m(2368),Z=m(9814),N=m(5899);function U(Ke,_t){1&Ke&&s.GkF(0)}function ve(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",3),s.TgZ(1,"span",4),s._uU(2),s.qZA(),s.qZA()),2&Ke){const _e=s.oxw();s.xp6(2),s.Oqu(null!=_e.loopStatus&&_e.loopStatus.error?null==_e.loopStatus?null:_e.loopStatus.error:"Unknown Error.")}}function be(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",3),s.TgZ(1,"div",5),s.TgZ(2,"div",6),s.TgZ(3,"h4",7),s._uU(4,"ID"),s.qZA(),s.TgZ(5,"span",4),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s._UZ(7,"mat-divider",8),s.TgZ(8,"div",5),s.TgZ(9,"div",6),s.TgZ(10,"h4",7),s._uU(11,"HTLC Address"),s.qZA(),s.TgZ(12,"span",4),s._uU(13),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&Ke){const _e=s.oxw();s.xp6(6),s.Oqu(null==_e.loopStatus?null:_e.loopStatus.id_bytes),s.xp6(7),s.Oqu(null==_e.loopStatus?null:_e.loopStatus.htlc_address)}}let Re=(()=>{class Ke{constructor(){}}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(_e,qe){if(1&_e&&(s.YNc(0,U,1,0,"ng-container",0),s.YNc(1,ve,3,1,"ng-template",null,1,s.W1O),s.YNc(3,be,14,2,"ng-template",null,2,s.W1O)),2&_e){const yt=s.MAs(2),ue=s.MAs(4);s.Q6J("ngTemplateOutlet",null!=qe.loopStatus&&qe.loopStatus.error?yt:ue)}},directives:[A.tP,V.xw,V.yH,V.Wh,de.d],styles:[""]}),Ke})();var ze=m(113);function Oe(Ke,_t){1&Ke&&s.GkF(0)}const K=function(Ke,_t){return{"small-svg":Ke,"large-svg":_t}};function Me(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",7),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",9),s.TgZ(6,"g",10),s.TgZ(7,"g",11),s._UZ(8,"circle",12),s._UZ(9,"path",13),s.qZA(),s.TgZ(10,"g",14),s._UZ(11,"ellipse",15),s._UZ(12,"ellipse",16),s._UZ(13,"rect",17),s._UZ(14,"rect",18),s._UZ(15,"rect",19),s._UZ(16,"rect",20),s._UZ(17,"rect",21),s._UZ(18,"rect",22),s._UZ(19,"rect",23),s._UZ(20,"rect",24),s._UZ(21,"rect",25),s._UZ(22,"rect",26),s._UZ(23,"rect",27),s._UZ(24,"rect",28),s._UZ(25,"rect",29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(26,"div",30),s.TgZ(27,"mat-card-title"),s._uU(28,"Loop Out explained."),s.qZA(),s.qZA(),s.TgZ(29,"div",31),s.TgZ(30,"mat-card-subtitle",32),s._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function we(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",33),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",38),s.TgZ(11,"g",39),s.TgZ(12,"g",40),s.TgZ(13,"g",41),s.TgZ(14,"g",42),s._UZ(15,"rect",43),s._UZ(16,"rect",44),s._UZ(17,"rect",45),s._UZ(18,"circle",46),s._UZ(19,"rect",47),s._UZ(20,"rect",48),s._UZ(21,"circle",49),s._UZ(22,"rect",50),s._UZ(23,"rect",51),s._UZ(24,"rect",52),s._UZ(25,"rect",53),s._UZ(26,"circle",54),s._UZ(27,"circle",55),s.qZA(),s.TgZ(28,"g",56),s._UZ(29,"path",57),s._UZ(30,"rect",58),s._UZ(31,"polygon",59),s._UZ(32,"circle",60),s._UZ(33,"path",61),s._UZ(34,"rect",62),s._UZ(35,"rect",63),s._UZ(36,"rect",64),s._UZ(37,"rect",65),s._UZ(38,"rect",66),s._UZ(39,"rect",67),s._UZ(40,"rect",68),s._UZ(41,"path",69),s._UZ(42,"path",70),s.qZA(),s._UZ(43,"path",71),s.qZA(),s.qZA(),s._UZ(44,"circle",72),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(45,"div",30),s.TgZ(46,"mat-card-title"),s._uU(47,"Step 1: Deciding to Loop Out"),s.qZA(),s.qZA(),s.TgZ(48,"div",31),s.TgZ(49,"mat-card-subtitle",32),s._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function z(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",73),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",74),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",75),s.TgZ(11,"g",76),s._UZ(12,"circle",77),s._UZ(13,"path",78),s.TgZ(14,"g",79),s._UZ(15,"polygon",80),s._UZ(16,"polygon",81),s._UZ(17,"path",82),s.qZA(),s.TgZ(18,"g",83),s._UZ(19,"polygon",84),s._UZ(20,"path",85),s._UZ(21,"rect",86),s._UZ(22,"path",87),s._UZ(23,"rect",88),s._UZ(24,"rect",89),s._UZ(25,"rect",90),s._UZ(26,"rect",91),s._UZ(27,"circle",92),s._UZ(28,"path",93),s.TgZ(29,"g",94),s.TgZ(30,"g",95),s._UZ(31,"g",96),s.qZA(),s._UZ(32,"g",97),s.qZA(),s._UZ(33,"path",98),s.qZA(),s.TgZ(34,"g",99),s.TgZ(35,"g",41),s.TgZ(36,"g",42),s._UZ(37,"rect",43),s._UZ(38,"rect",44),s._UZ(39,"rect",45),s._UZ(40,"circle",46),s._UZ(41,"rect",47),s._UZ(42,"rect",48),s._UZ(43,"circle",49),s._UZ(44,"rect",50),s._UZ(45,"rect",51),s._UZ(46,"rect",52),s._UZ(47,"rect",53),s._UZ(48,"circle",100),s._UZ(49,"circle",54),s._UZ(50,"circle",55),s._UZ(51,"circle",101),s.qZA(),s.TgZ(52,"g",56),s._UZ(53,"path",57),s._UZ(54,"rect",102),s._UZ(55,"polygon",103),s._UZ(56,"circle",104),s._UZ(57,"path",61),s._UZ(58,"rect",105),s._UZ(59,"rect",106),s._UZ(60,"rect",107),s._UZ(61,"rect",108),s._UZ(62,"rect",109),s._UZ(63,"rect",110),s._UZ(64,"rect",68),s._UZ(65,"path",69),s._UZ(66,"path",70),s.qZA(),s._UZ(67,"path",111),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(68,"div",30),s.TgZ(69,"mat-card-title"),s._uU(70,"Step 2: Send lightning payment"),s.qZA(),s.qZA(),s.TgZ(71,"div",31),s.TgZ(72,"mat-card-subtitle",32),s._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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Ze(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",112),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",113),s.TgZ(6,"g",114),s.TgZ(7,"g",115),s.TgZ(8,"g",116),s._UZ(9,"circle",12),s._UZ(10,"path",117),s.qZA(),s.TgZ(11,"g",14),s._UZ(12,"ellipse",118),s._UZ(13,"ellipse",16),s._UZ(14,"rect",17),s._UZ(15,"rect",18),s._UZ(16,"rect",19),s._UZ(17,"rect",20),s._UZ(18,"rect",21),s._UZ(19,"rect",22),s._UZ(20,"rect",23),s._UZ(21,"rect",24),s._UZ(22,"rect",25),s._UZ(23,"rect",26),s._UZ(24,"rect",27),s._UZ(25,"rect",28),s._UZ(26,"rect",29),s.qZA(),s.qZA(),s.TgZ(27,"g",119),s._UZ(28,"polygon",80),s._UZ(29,"polygon",120),s._UZ(30,"path",82),s.qZA(),s.TgZ(31,"g",121),s._UZ(32,"polygon",84),s._UZ(33,"path",85),s._UZ(34,"rect",86),s._UZ(35,"path",87),s._UZ(36,"rect",88),s._UZ(37,"rect",89),s._UZ(38,"rect",90),s._UZ(39,"rect",91),s._UZ(40,"circle",122),s._UZ(41,"path",93),s.TgZ(42,"g",94),s.TgZ(43,"g",95),s._UZ(44,"g",96),s.qZA(),s._UZ(45,"g",97),s.qZA(),s._UZ(46,"path",123),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(47,"div",30),s.TgZ(48,"mat-card-title"),s._uU(49,"Step 3: Receive funds back"),s.qZA(),s.qZA(),s.TgZ(50,"div",31),s.TgZ(51,"mat-card-subtitle",32),s._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function vt(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",124),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",125),s.TgZ(11,"g",126),s.TgZ(12,"g",42),s._UZ(13,"rect",127),s._UZ(14,"rect",128),s._UZ(15,"rect",129),s._UZ(16,"circle",130),s._UZ(17,"rect",131),s._UZ(18,"rect",132),s._UZ(19,"circle",133),s._UZ(20,"rect",134),s._UZ(21,"rect",135),s._UZ(22,"rect",136),s._UZ(23,"rect",137),s._UZ(24,"rect",138),s._UZ(25,"circle",139),s._UZ(26,"circle",140),s._UZ(27,"circle",141),s.qZA(),s.TgZ(28,"g",142),s.TgZ(29,"g",143),s.TgZ(30,"g",144),s._UZ(31,"path",145),s._UZ(32,"rect",146),s._UZ(33,"polygon",147),s.TgZ(34,"g",148),s._UZ(35,"path",149),s.qZA(),s._UZ(36,"rect",150),s._UZ(37,"rect",151),s._UZ(38,"rect",152),s._UZ(39,"rect",153),s._UZ(40,"rect",154),s._UZ(41,"rect",155),s._UZ(42,"rect",156),s._UZ(43,"path",157),s._UZ(44,"path",158),s.qZA(),s.TgZ(45,"g",159),s._UZ(46,"path",160),s._UZ(47,"path",161),s._UZ(48,"path",162),s._UZ(49,"path",163),s._UZ(50,"path",164),s._UZ(51,"path",165),s._UZ(52,"path",166),s._UZ(53,"path",167),s._UZ(54,"path",168),s._UZ(55,"path",169),s._UZ(56,"path",170),s._UZ(57,"circle",171),s._UZ(58,"circle",172),s.qZA(),s._UZ(59,"path",173),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(60,"div",30),s.TgZ(61,"mat-card-title"),s._uU(62,"Done!"),s.qZA(),s.qZA(),s.TgZ(63,"div",31),s.TgZ(64,"mat-card-subtitle",32),s._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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}let Fe=(()=>{class Ke{constructor(_e){this.commonService=_e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new s.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(_e){2===_e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===_e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(_e,qe){if(1&_e&&(s.YNc(0,Oe,1,0,"ng-container",0),s.YNc(1,Me,32,5,"ng-template",null,1,s.W1O),s.YNc(3,we,51,5,"ng-template",null,2,s.W1O),s.YNc(5,z,74,5,"ng-template",null,3,s.W1O),s.YNc(7,Ze,53,5,"ng-template",null,4,s.W1O),s.YNc(9,vt,66,5,"ng-template",null,5,s.W1O)),2&_e){const yt=s.MAs(2),ue=s.MAs(4),Je=s.MAs(6),St=s.MAs(8),kt=s.MAs(10);s.Q6J("ngTemplateOutlet",1===qe.stepNumber?yt:2===qe.stepNumber?ue:3===qe.stepNumber?Je:4===qe.stepNumber?St:kt)}},directives:[A.tP,V.xw,V.yH,V.Wh,A.mk,ge.oO,j.n5,j.$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:[ze.l]}}),Ke})();function Ne(Ke,_t){1&Ke&&s.GkF(0)}const ce=function(Ke,_t){return{"small-svg":Ke,"large-svg":_t}};function Le(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",7),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",9),s.TgZ(6,"g",10),s.TgZ(7,"g",11),s._UZ(8,"circle",12),s._UZ(9,"path",13),s.qZA(),s.TgZ(10,"g",14),s._UZ(11,"ellipse",15),s._UZ(12,"ellipse",16),s._UZ(13,"rect",17),s._UZ(14,"rect",18),s._UZ(15,"rect",19),s._UZ(16,"rect",20),s._UZ(17,"rect",21),s._UZ(18,"rect",22),s._UZ(19,"rect",23),s._UZ(20,"rect",24),s._UZ(21,"rect",25),s._UZ(22,"rect",26),s._UZ(23,"rect",27),s._UZ(24,"rect",28),s._UZ(25,"rect",29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(26,"div",30),s.TgZ(27,"mat-card-title"),s._uU(28,"Loop In explained."),s.qZA(),s.qZA(),s.TgZ(29,"div",31),s.TgZ(30,"mat-card-subtitle",32),s._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ce,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Pe(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",33),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",38),s.TgZ(11,"g",39),s.TgZ(12,"g",40),s._UZ(13,"rect",41),s._UZ(14,"rect",42),s._UZ(15,"rect",43),s._UZ(16,"circle",44),s._UZ(17,"rect",45),s._UZ(18,"rect",46),s._UZ(19,"circle",47),s._UZ(20,"rect",48),s._UZ(21,"rect",49),s._UZ(22,"rect",50),s._UZ(23,"rect",51),s._UZ(24,"rect",52),s._UZ(25,"circle",53),s._UZ(26,"circle",54),s._UZ(27,"circle",55),s.qZA(),s.TgZ(28,"g",56),s.TgZ(29,"g",57),s.TgZ(30,"g",58),s._UZ(31,"path",59),s._UZ(32,"rect",60),s._UZ(33,"polygon",61),s.TgZ(34,"g",62),s._UZ(35,"path",63),s.qZA(),s._UZ(36,"rect",64),s._UZ(37,"rect",65),s._UZ(38,"rect",66),s._UZ(39,"rect",67),s._UZ(40,"rect",68),s._UZ(41,"rect",69),s._UZ(42,"rect",70),s._UZ(43,"path",71),s._UZ(44,"path",72),s.qZA(),s.TgZ(45,"g",73),s._UZ(46,"path",74),s._UZ(47,"path",75),s._UZ(48,"path",76),s._UZ(49,"path",77),s._UZ(50,"path",78),s._UZ(51,"path",79),s._UZ(52,"path",80),s._UZ(53,"path",81),s._UZ(54,"path",82),s._UZ(55,"path",83),s._UZ(56,"path",84),s._UZ(57,"circle",85),s._UZ(58,"circle",86),s.qZA(),s._UZ(59,"path",87),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(60,"div",30),s.TgZ(61,"mat-card-title"),s._uU(62,"Step 1: Deciding to Loop In"),s.qZA(),s.qZA(),s.TgZ(63,"div",31),s.TgZ(64,"mat-card-subtitle",32),s._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ce,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function q(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",88),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",89),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",90),s.TgZ(10,"g",91),s.TgZ(11,"g",92),s.TgZ(12,"g",93),s.TgZ(13,"g",94),s._UZ(14,"circle",95),s._UZ(15,"path",96),s.TgZ(16,"g",97),s._UZ(17,"polygon",98),s._UZ(18,"polygon",99),s._UZ(19,"path",100),s.qZA(),s.TgZ(20,"g",101),s._UZ(21,"polygon",102),s._UZ(22,"path",103),s._UZ(23,"rect",104),s._UZ(24,"path",105),s._UZ(25,"rect",106),s._UZ(26,"rect",107),s._UZ(27,"rect",108),s._UZ(28,"rect",109),s._UZ(29,"circle",110),s._UZ(30,"path",111),s.TgZ(31,"g",112),s.TgZ(32,"g",113),s._UZ(33,"g",114),s.qZA(),s._UZ(34,"g",115),s.qZA(),s.qZA(),s.qZA(),s.TgZ(35,"g",116),s.TgZ(36,"g",40),s._UZ(37,"rect",117),s._UZ(38,"rect",42),s._UZ(39,"rect",43),s._UZ(40,"circle",118),s._UZ(41,"rect",45),s._UZ(42,"rect",46),s._UZ(43,"circle",119),s._UZ(44,"rect",48),s._UZ(45,"rect",49),s._UZ(46,"rect",50),s._UZ(47,"rect",51),s._UZ(48,"rect",52),s._UZ(49,"circle",120),s._UZ(50,"circle",54),s._UZ(51,"circle",55),s._UZ(52,"circle",121),s.qZA(),s.TgZ(53,"g",56),s.TgZ(54,"g",57),s.TgZ(55,"g",58),s._UZ(56,"path",59),s._UZ(57,"rect",60),s._UZ(58,"polygon",61),s.TgZ(59,"g",122),s._UZ(60,"path",63),s.qZA(),s._UZ(61,"rect",123),s._UZ(62,"rect",124),s._UZ(63,"rect",125),s._UZ(64,"rect",126),s._UZ(65,"rect",127),s._UZ(66,"rect",128),s._UZ(67,"rect",129),s._UZ(68,"path",130),s._UZ(69,"path",72),s.qZA(),s.TgZ(70,"g",73),s._UZ(71,"path",131),s._UZ(72,"path",132),s._UZ(73,"path",133),s._UZ(74,"path",134),s._UZ(75,"path",135),s._UZ(76,"path",136),s._UZ(77,"path",80),s._UZ(78,"path",81),s._UZ(79,"path",137),s._UZ(80,"path",83),s._UZ(81,"path",138),s._UZ(82,"circle",85),s._UZ(83,"circle",86),s.qZA(),s._UZ(84,"path",139),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s._UZ(85,"path",140),s._UZ(86,"path",141),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(87,"div",30),s.TgZ(88,"mat-card-title"),s._uU(89,"Step 2: Send payment out"),s.qZA(),s.qZA(),s.TgZ(90,"div",31),s.TgZ(91,"mat-card-subtitle",32),s._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ce,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function $(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",142),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",90),s.TgZ(5,"g",143),s.TgZ(6,"g",144),s.TgZ(7,"g"),s.TgZ(8,"g",145),s.TgZ(9,"g",146),s._UZ(10,"circle",12),s._UZ(11,"path",147),s.qZA(),s.TgZ(12,"g",14),s._UZ(13,"ellipse",148),s._UZ(14,"ellipse",16),s._UZ(15,"rect",17),s._UZ(16,"rect",18),s._UZ(17,"rect",19),s._UZ(18,"rect",20),s._UZ(19,"rect",21),s._UZ(20,"rect",22),s._UZ(21,"rect",23),s._UZ(22,"rect",24),s._UZ(23,"rect",25),s._UZ(24,"rect",26),s._UZ(25,"rect",27),s._UZ(26,"rect",28),s._UZ(27,"rect",29),s.qZA(),s.qZA(),s.TgZ(28,"g",149),s._UZ(29,"polygon",150),s._UZ(30,"polygon",99),s._UZ(31,"path",151),s.qZA(),s.TgZ(32,"g",152),s._UZ(33,"polygon",102),s._UZ(34,"path",103),s._UZ(35,"rect",104),s._UZ(36,"path",105),s._UZ(37,"rect",106),s._UZ(38,"rect",107),s._UZ(39,"rect",108),s._UZ(40,"rect",109),s._UZ(41,"circle",110),s._UZ(42,"path",111),s.TgZ(43,"g",112),s.TgZ(44,"g",113),s._UZ(45,"g",114),s.qZA(),s._UZ(46,"g",115),s.qZA(),s.qZA(),s.qZA(),s._UZ(47,"path",153),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(48,"div",30),s.TgZ(49,"mat-card-title"),s._uU(50,"Step 3: Recieve Funds Off-chain"),s.qZA(),s.qZA(),s.TgZ(51,"div",31),s.TgZ(52,"mat-card-subtitle",32),s._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ce,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function oe(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",154),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",90),s.TgZ(10,"g",155),s.TgZ(11,"g",156),s.TgZ(12,"g",157),s.TgZ(13,"g",158),s.TgZ(14,"g",40),s._UZ(15,"rect",159),s._UZ(16,"rect",160),s._UZ(17,"rect",161),s._UZ(18,"circle",162),s._UZ(19,"rect",163),s._UZ(20,"rect",164),s._UZ(21,"circle",165),s._UZ(22,"rect",166),s._UZ(23,"rect",167),s._UZ(24,"rect",168),s._UZ(25,"rect",169),s._UZ(26,"circle",170),s._UZ(27,"circle",171),s.qZA(),s.TgZ(28,"g",172),s._UZ(29,"path",173),s._UZ(30,"rect",174),s._UZ(31,"polygon",175),s._UZ(32,"circle",176),s._UZ(33,"path",177),s._UZ(34,"rect",178),s._UZ(35,"rect",179),s._UZ(36,"rect",180),s._UZ(37,"rect",181),s._UZ(38,"rect",182),s._UZ(39,"rect",183),s._UZ(40,"rect",184),s._UZ(41,"path",185),s._UZ(42,"path",186),s.qZA(),s._UZ(43,"path",187),s.qZA(),s.qZA(),s._UZ(44,"circle",188),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(45,"div",30),s.TgZ(46,"mat-card-title"),s._uU(47,"Done!"),s.qZA(),s.qZA(),s.TgZ(48,"div",31),s.TgZ(49,"mat-card-subtitle",32),s._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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ce,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}let Ce=(()=>{class Ke{constructor(_e){this.commonService=_e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new s.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(_e){2===_e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===_e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(_e,qe){if(1&_e&&(s.YNc(0,Ne,1,0,"ng-container",0),s.YNc(1,Le,32,5,"ng-template",null,1,s.W1O),s.YNc(3,Pe,66,5,"ng-template",null,2,s.W1O),s.YNc(5,q,93,5,"ng-template",null,3,s.W1O),s.YNc(7,$,54,5,"ng-template",null,4,s.W1O),s.YNc(9,oe,51,5,"ng-template",null,5,s.W1O)),2&_e){const yt=s.MAs(2),ue=s.MAs(4),Je=s.MAs(6),St=s.MAs(8),kt=s.MAs(10);s.Q6J("ngTemplateOutlet",1===qe.stepNumber?yt:2===qe.stepNumber?ue:3===qe.stepNumber?Je:4===qe.stepNumber?St:kt)}},directives:[A.tP,V.xw,V.yH,V.Wh,A.mk,ge.oO,j.n5,j.$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:[ze.l]}}),Ke})();const Ue=["stepper"];function lt(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",48),s.TgZ(1,"p",49),s.TgZ(2,"strong"),s._uU(3,"Channel Peer:\xa0"),s.qZA(),s._uU(4),s.ALo(5,"titlecase"),s.qZA(),s.TgZ(6,"p",50),s.TgZ(7,"strong"),s._uU(8,"Channel ID:\xa0"),s.qZA(),s._uU(9),s.qZA(),s._UZ(10,"p",50),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(4),s.Oqu(s.lcZ(5,2,_e.channel.remote_alias)),s.xp6(5),s.Oqu(_e.channel.chan_id)}}function nt(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const _e=s.oxw(2);s.Oqu(_e.inputFormLabel)}}function ft(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Amount is required."),s.qZA())}function it(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"number"),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(1),s.hij("Amount must be greater than or equal to ",s.lcZ(2,1,_e.minQuote.amount),".")}}function rt(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"number"),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(1),s.hij("Amount must be less than or equal to ",s.lcZ(2,1,_e.maxQuote.amount),".")}}function Mt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Confirmation target is required."),s.qZA())}function Zt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Confirmation target must be a positive number."),s.qZA())}function Ft(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Percentage is required."),s.qZA())}function Vt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Percentage must be a positive number."),s.qZA())}function Ii(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-form-field",50),s._UZ(1,"input",51),s.YNc(2,Ft,2,0,"mat-error",25),s.YNc(3,Vt,2,0,"mat-error",25),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(1),s.Q6J("step",1),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.routingFeePercent.errors?null:_e.inputFormGroup.controls.routingFeePercent.errors.required),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.routingFeePercent.errors?null:_e.inputFormGroup.controls.routingFeePercent.errors.min)}}function jt(Ke,_t){1&Ke&&(s.TgZ(0,"div",52),s.TgZ(1,"mat-slide-toggle",53),s._uU(2,"Fast"),s.qZA(),s.TgZ(3,"mat-icon",54),s._uU(4,"info_outline"),s.qZA(),s.qZA())}function ei(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const _e=s.oxw(2);s.Oqu(_e.quoteFormLabel)}}function ki(Ke,_t){1&Ke&&(s.TgZ(0,"p",55),s.TgZ(1,"mat-icon",56),s._uU(2,"close"),s.qZA(),s._uU(3,"Local balance amount is insufficient for swap."),s.qZA())}function ai(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",57),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onValidateAmount()}),s._uU(1,"Next"),s.qZA()}}function hi(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",58),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onLoop()}),s._uU(1),s.qZA()}if(2&Ke){const _e=s.oxw(2);s.xp6(1),s.hij("Initiate ",_e.loopDirectionCaption,"")}}function Ve(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const _e=s.oxw(3);s.Oqu(_e.addressFormLabel)}}function Ee(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Address is required."),s.qZA())}function Y(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"mat-step",16),s.TgZ(1,"form",17),s.YNc(2,Ve,1,1,"ng-template",18),s.TgZ(3,"div",59),s.TgZ(4,"mat-radio-group",60),s.NdJ("change",function(yt){return s.CHM(_e),s.oxw(2).onAddressTypeChange(yt)}),s.TgZ(5,"mat-radio-button",61),s._uU(6,"Node Local Address"),s.qZA(),s.TgZ(7,"mat-radio-button",62),s._uU(8,"External Address"),s.qZA(),s.qZA(),s.TgZ(9,"mat-form-field",63),s._UZ(10,"input",64),s.YNc(11,Ee,2,0,"mat-error",25),s.qZA(),s.qZA(),s.TgZ(12,"div",29),s.TgZ(13,"button",65),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onLoop()}),s._uU(14),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw(2);s.Q6J("stepControl",_e.addressFormGroup)("editable",_e.flgEditable),s.xp6(1),s.Q6J("formGroup",_e.addressFormGroup),s.xp6(9),s.Q6J("required","external"===_e.addressFormGroup.controls.addressType.value),s.xp6(1),s.Q6J("ngIf",null==_e.addressFormGroup.controls.address.errors?null:_e.addressFormGroup.controls.address.errors.required),s.xp6(3),s.hij("Initiate ",_e.loopDirectionCaption,"")}}function pe(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const _e=s.oxw(2);s.hij("",_e.loopDirectionCaption," Status")}}function De(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-icon",66),s._uU(1),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(1),s.Oqu(_e.loopStatus&&null!=_e.loopStatus&&_e.loopStatus.id_bytes?"check":"close")}}function et(Ke,_t){1&Ke&&s._UZ(0,"div")}function $t(Ke,_t){1&Ke&&s._UZ(0,"mat-progress-bar",67)}function Nt(Ke,_t){if(1&Ke&&(s.TgZ(0,"h4",68),s._uU(1),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(1),s.Oqu(_e.loopStatus&&_e.loopStatus.error?_e.loopDirectionCaption+" failed.":_e.loopStatus&&_e.loopStatus.id_bytes&&_e.channel?_e.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":_e.loopDirectionCaption+" request placed successfully.")}}function Jt(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",69),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).goToLoop()}),s._uU(1,"Check Status"),s.qZA()}}function ct(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",70),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onRestart()}),s._uU(1,"Start Again"),s.qZA()}}function ke(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",3),s.TgZ(1,"div",4),s.TgZ(2,"mat-card-header",5),s.TgZ(3,"div",6),s.TgZ(4,"span",7),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"div",8),s.TgZ(7,"button",9),s.NdJ("click",function(){return s.CHM(_e),s.oxw().showInfo()}),s._uU(8,"?"),s.qZA(),s.TgZ(9,"button",10),s.NdJ("click",function(){return s.CHM(_e),s.oxw().onClose()}),s._uU(10,"X"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"mat-card-content",11),s.TgZ(12,"div",12),s.YNc(13,lt,11,4,"div",13),s.TgZ(14,"mat-vertical-stepper",14,15),s.NdJ("selectionChange",function(yt){return s.CHM(_e),s.oxw().stepSelectionChanged(yt)}),s.TgZ(16,"mat-step",16),s.TgZ(17,"form",17),s.YNc(18,nt,1,1,"ng-template",18),s.TgZ(19,"div",19),s._UZ(20,"rtl-loop-quote",20),s._UZ(21,"rtl-loop-quote",20),s.qZA(),s.TgZ(22,"div",21),s.TgZ(23,"mat-form-field",22),s._UZ(24,"input",23),s.TgZ(25,"mat-hint"),s._uU(26),s.ALo(27,"number"),s.ALo(28,"number"),s.qZA(),s.TgZ(29,"span",24),s._uU(30,"Sats"),s.qZA(),s.YNc(31,ft,2,0,"mat-error",25),s.YNc(32,it,3,3,"mat-error",25),s.YNc(33,rt,3,3,"mat-error",25),s.qZA(),s.TgZ(34,"mat-form-field",22),s._UZ(35,"input",26),s.YNc(36,Mt,2,0,"mat-error",25),s.YNc(37,Zt,2,0,"mat-error",25),s.qZA(),s.YNc(38,Ii,4,3,"mat-form-field",27),s.qZA(),s.YNc(39,jt,5,0,"div",28),s.TgZ(40,"div",29),s.TgZ(41,"button",30),s.NdJ("click",function(){return s.CHM(_e),s.oxw().onEstimateQuote()}),s._uU(42,"Estimate Quote"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(43,"mat-step",16),s.TgZ(44,"form",17),s.YNc(45,ei,1,1,"ng-template",18),s._UZ(46,"rtl-loop-quote",31),s.YNc(47,ki,4,0,"p",32),s.TgZ(48,"div",29),s.YNc(49,ai,2,0,"button",33),s.YNc(50,hi,2,1,"button",34),s.qZA(),s.qZA(),s.qZA(),s.YNc(51,Y,15,6,"mat-step",35),s.TgZ(52,"mat-step",36),s.TgZ(53,"form",17),s.YNc(54,pe,1,1,"ng-template",18),s.TgZ(55,"div",37),s.TgZ(56,"mat-expansion-panel",38),s.TgZ(57,"mat-expansion-panel-header"),s.TgZ(58,"mat-panel-title"),s.TgZ(59,"span",39),s._uU(60),s.YNc(61,De,2,1,"mat-icon",40),s.qZA(),s.qZA(),s.qZA(),s.YNc(62,et,1,0,"div",41),s.qZA(),s.YNc(63,$t,1,0,"mat-progress-bar",42),s.qZA(),s.YNc(64,Nt,2,1,"h4",43),s.TgZ(65,"div",29),s.YNc(66,Jt,2,0,"button",44),s.YNc(67,ct,2,0,"button",45),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(68,"div",46),s.TgZ(69,"button",47),s._uU(70,"Close"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw(),qe=s.MAs(2);s.Q6J("@opacityAnimation",void 0),s.xp6(3),s.Q6J("fxFlex",_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM?"83":"91"),s.xp6(2),s.Oqu(_e.channel?"Channel "+_e.loopDirectionCaption:_e.loopDirectionCaption),s.xp6(1),s.Q6J("fxFlex",_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM?"17":"9"),s.xp6(7),s.Q6J("ngIf",_e.channel),s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("stepControl",_e.inputFormGroup)("editable",_e.flgEditable),s.xp6(1),s.Q6J("formGroup",_e.inputFormGroup),s.xp6(3),s.Q6J("quote",_e.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),s.xp6(1),s.Q6J("quote",_e.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),s.xp6(2),s.Q6J("fxFlex",_e.direction===_e.LoopTypeEnum.LOOP_OUT?"35":"48"),s.xp6(1),s.Q6J("step",1e3),s.xp6(2),s.AsE("Range: ",s.lcZ(27,51,_e.minQuote.amount),"-",s.lcZ(28,53,_e.maxQuote.amount),""),s.xp6(5),s.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.required),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.min),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.max),s.xp6(1),s.Q6J("fxFlex",_e.direction===_e.LoopTypeEnum.LOOP_OUT?"30":"48"),s.xp6(1),s.Q6J("step",1),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.sweepConfTarget.errors?null:_e.inputFormGroup.controls.sweepConfTarget.errors.required),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.sweepConfTarget.errors?null:_e.inputFormGroup.controls.sweepConfTarget.errors.min),s.xp6(1),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),s.xp6(4),s.Q6J("stepControl",_e.quoteFormGroup)("editable",_e.flgEditable),s.xp6(1),s.Q6J("formGroup",_e.quoteFormGroup),s.xp6(2),s.Q6J("quote",_e.quote)("showPanel",!1),s.xp6(1),s.Q6J("ngIf",_e.inputFormGroup.controls.amount.value>_e.localBalanceToCompare),s.xp6(2),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_IN),s.xp6(1),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("stepControl",_e.statusFormGroup),s.xp6(1),s.Q6J("formGroup",_e.statusFormGroup),s.xp6(3),s.Q6J("expanded",!!_e.loopStatus),s.xp6(4),s.Oqu(_e.loopStatus?_e.loopStatus.id_bytes?_e.loopDirectionCaption+" request details":_e.loopDirectionCaption+" error details":"Waiting for "+_e.loopDirectionCaption+" request..."),s.xp6(1),s.Q6J("ngIf",_e.loopStatus),s.xp6(1),s.Q6J("ngIf",!_e.loopStatus)("ngIfElse",qe),s.xp6(1),s.Q6J("ngIf",!_e.loopStatus),s.xp6(1),s.Q6J("ngIf",_e.loopStatus),s.xp6(2),s.Q6J("ngIf",_e.loopStatus&&_e.loopStatus.id_bytes&&_e.channel),s.xp6(1),s.Q6J("ngIf",_e.loopStatus&&(_e.loopStatus.error||!_e.loopStatus.id_bytes)),s.xp6(2),s.Q6J("mat-dialog-close",!1)}}function Be(Ke,_t){if(1&Ke&&s._UZ(0,"rtl-loop-status",71),2&Ke){const _e=s.oxw();s.Q6J("loopStatus",_e.loopStatus)}}function at(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"rtl-loop-out-info-graphics",88),s.NdJ("stepNumberChange",function(yt){return s.CHM(_e),s.oxw(2).stepNumber=yt}),s.qZA()}if(2&Ke){const _e=s.oxw(2);s.Q6J("stepNumber",_e.stepNumber)("animationDirection",_e.animationDirection)}}function st(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"rtl-loop-in-info-graphics",88),s.NdJ("stepNumberChange",function(yt){return s.CHM(_e),s.oxw(2).stepNumber=yt}),s.qZA()}if(2&Ke){const _e=s.oxw(2);s.Q6J("stepNumber",_e.stepNumber)("animationDirection",_e.animationDirection)}}const At=function(Ke,_t){return{"dot-primary":Ke,"dot-primary-lighter":_t}};function li(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"span",89),s.NdJ("click",function(){const ue=s.CHM(_e).$implicit;return s.oxw(2).onStepChanged(ue)}),s._UZ(1,"p",90),s.qZA()}if(2&Ke){const _e=_t.$implicit,qe=s.oxw(2);s.xp6(1),s.Q6J("ngClass",s.WLB(1,At,qe.stepNumber===_e,qe.stepNumber!==_e))}}function Bt(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",91),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onReadMore()}),s._uU(1,"Read More"),s.qZA()}}function Rt(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",92),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onStepChanged(4)}),s._uU(1,"Back"),s.qZA()}}function Li(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",93),s.NdJ("click",function(){s.CHM(_e);const yt=s.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(1,"Close"),s.qZA()}}function si(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",94),s.NdJ("click",function(){s.CHM(_e);const yt=s.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(1,"Close"),s.qZA()}}function ci(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",95),s.NdJ("click",function(){s.CHM(_e);const yt=s.oxw(2);return yt.onStepChanged(yt.stepNumber-1)}),s._uU(1,"Back"),s.qZA()}}function sn(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",96),s.NdJ("click",function(){s.CHM(_e);const yt=s.oxw(2);return yt.onStepChanged(yt.stepNumber+1)}),s._uU(1,"Next"),s.qZA()}}const Ui=function(){return[1,2,3,4,5]};function Di(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",72),s.TgZ(1,"div",19),s.TgZ(2,"mat-card-header",73),s.TgZ(3,"div",74),s._UZ(4,"span",7),s.qZA(),s.TgZ(5,"div",75),s.TgZ(6,"button",76),s.NdJ("click",function(){s.CHM(_e);const yt=s.oxw();return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(7,"X"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(8,"mat-card-content",77),s.YNc(9,at,1,2,"rtl-loop-out-info-graphics",78),s.YNc(10,st,1,2,"rtl-loop-in-info-graphics",78),s.qZA(),s.TgZ(11,"div",79),s.YNc(12,li,2,4,"span",80),s.qZA(),s.TgZ(13,"div",81),s.YNc(14,Bt,2,0,"button",82),s.YNc(15,Rt,2,0,"button",83),s.YNc(16,Li,2,0,"button",84),s.YNc(17,si,2,0,"button",85),s.YNc(18,ci,2,0,"button",86),s.YNc(19,sn,2,0,"button",87),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@opacityAnimation",void 0),s.xp6(9),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_IN),s.xp6(2),s.Q6J("ngForOf",s.DdM(10,Ui)),s.xp6(2),s.Q6J("ngIf",5===_e.stepNumber),s.xp6(1),s.Q6J("ngIf",5===_e.stepNumber),s.xp6(1),s.Q6J("ngIf",5===_e.stepNumber),s.xp6(1),s.Q6J("ngIf",_e.stepNumber<5),s.xp6(1),s.Q6J("ngIf",_e.stepNumber>1&&_e.stepNumber<5),s.xp6(1),s.Q6J("ngIf",_e.stepNumber<5)}}let Xi=(()=>{class Ke{constructor(_e,qe,yt,ue,Je,St,kt,yi,Ni){this.dialogRef=_e,this.data=qe,this.store=yt,this.loopService=ue,this.formBuilder=Je,this.decimalPipe=St,this.logger=kt,this.router=yi,this.commonService=Ni,this.faInfoCircle=o.sqG,this.LoopTypeEnum=l.$I,this.direction=l.$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=l.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.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===l.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[e.kI.required,e.kI.min(this.minQuote.amount),e.kI.max(this.maxQuote.amount)]],sweepConfTarget:[6,[e.kI.required,e.kI.min(1)]],routingFeePercent:[2,[e.kI.required,e.kI.min(0)]],fast:[!1,[e.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[e.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(R.ZW).pipe((0,y.R)(this.unSubs[6])).subscribe(_e=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+_e.lightningBalance.local})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===l.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[4])).subscribe(_e=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===l.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[5])).subscribe(_e=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(_e){"external"===_e.value?(this.addressFormGroup.controls.address.setValidators([e.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===l.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===l.$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===l.$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,y.R)(this.unSubs[0])).subscribe({next:_e=>{this.loopStatus=_e,this.loopService.listSwaps(),this.flgEditable=!0},error:_e=>{this.loopStatus={error:_e},this.flgEditable=!0,this.logger.error(_e)}});else{const _e=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),qe="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",yt=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,_e,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,yt,qe).pipe((0,y.R)(this.unSubs[1])).subscribe({next:ue=>{this.loopStatus=ue,this.loopService.listSwaps(),this.flgEditable=!0},error:ue=>{this.loopStatus={error:ue},this.flgEditable=!0,this.logger.error(ue)}})}}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 _e=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===l.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,_e).pipe((0,y.R)(this.unSubs[2])).subscribe(qe=>{this.quote=qe,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,_e).pipe((0,y.R)(this.unSubs[3])).subscribe(qe=>{this.quote=qe,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(_e){switch(_e.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===l.$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===l.$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===l.$I.LOOP_OUT&&1!==_e.selectedIndex&&_e.selectedIndex<_e.previouslySelectedIndex||this.direction===l.$I.LOOP_IN&&_e.selectedIndex<_e.previouslySelectedIndex)&&_e.selectedStep.stepControl.setErrors({Invalid:!0})}goToLoop(){this.dialogRef.close(!0),this.router.navigateByUrl("/services/loop")}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===l.$I.LOOP_IN?window.open("https://blog.lightning.engineering/announcement/2019/06/25/loop-in.html","_blank"):window.open("https://blog.lightning.engineering/technical/posts/2019/04/15/loop-out-in-depth.html","_blank"),this.onClose()}onStepChanged(_e){this.animationDirection=_e{_e.next(null),_e.complete()})}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(s.Y36(C.so),s.Y36(C.WI),s.Y36(L.yh),s.Y36(I.W),s.Y36(e.qu),s.Y36(A.JJ),s.Y36(E.mQ),s.Y36(P.F0),s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-modal"]],viewQuery:function(_e,qe){if(1&_e&&s.Gf(Ue,5),2&_e){let yt;s.iGM(yt=s.CRH())&&(qe.stepper=yt.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(_e,qe){1&_e&&(s.YNc(0,ke,71,55,"div",0),s.YNc(1,Be,1,1,"ng-template",null,1,s.W1O),s.YNc(3,Di,20,11,"div",2)),2&_e&&(s.Q6J("ngIf",!qe.flgShowInfo),s.xp6(3),s.Q6J("ngIf",qe.flgShowInfo))},directives:[A.O5,V.xw,V.yH,V.Wh,j.dk,W.lW,j.dn,te.Vq,te.C0,e._Y,e.JL,e.sg,te.VY,D,O.KE,x.Nt,e.wV,e.Fj,r.h,e.JJ,e.u,e.Q7,O.bx,O.R9,ee.ib,ee.yz,ee.yK,C.ZT,O.TO,b.Rr,le.Hw,re.gM,Z.VQ,Z.U0,N.pW,Re,A.sg,Fe,Ce,A.mk,ge.oO],pipes:[A.JJ,A.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[M._]}}),Ke})()},3390:(Ge,Q,m)=>{"use strict";m.d(Q,{h:()=>t});var e=m(5e3);let t=(()=>{class y{constructor(o){this.el=o}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return y.\u0275fac=function(o){return new(o||y)(e.Y36(e.SBq))},y.\u0275dir=e.lG2({type:y,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),y})()},6895:(Ge,Q,m)=>{"use strict";m.d(Q,{y:()=>t});var e=m(5e3);let t=(()=>{class y{constructor(){this.copied=new e.vpe}onClick(o){o.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},M=>{this.copied.emit("Error could not copy text: "+JSON.stringify(M))})}}return y.\u0275fac=function(o){return new(o||y)},y.\u0275dir=e.lG2({type:y,selectors:[["","rtlClipboard",""]],hostBindings:function(o,M){1&o&&e.NdJ("click",function(R){return M.onClick(R)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),y})()},9843:(Ge,Q,m)=>{"use strict";m.d(Q,{F:()=>y});var e=m(3075),t=m(5e3);let y=(()=>{class C{validate(M){return this.max?e.kI.max(+this.max)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","max",""]],inputs:{max:"max"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},6534:(Ge,Q,m)=>{"use strict";m.d(Q,{q:()=>y});var e=m(3075),t=m(5e3);let y=(()=>{class C{validate(M){return this.min?e.kI.min(+this.min)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","min",""]],inputs:{min:"min"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},1643:(Ge,Q,m)=>{"use strict";m.d(Q,{a1:()=>o,QM:()=>M,eQ:()=>l,fY:()=>R});var e=m(4004),t=m(5e3),y=m(1402),C=m(5986);let o=(()=>{class s{constructor(I,A){this.router=I,this.sessionService=A}canActivate(I){return!(!this.sessionService.getItem("token")||"settings"!==I.url[0].path&&"auth"!==I.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return s.\u0275fac=function(I){return new(I||s)(t.LFG(y.F0),t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),M=(()=>{class s{constructor(I){this.sessionService=I}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(I=>I.lndUnlocked))}}return s.\u0275fac=function(I){return new(I||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),l=(()=>{class s{constructor(I){this.sessionService=I}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(I=>I.clUnlocked))}}return s.\u0275fac=function(I){return new(I||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),R=(()=>{class s{constructor(I){this.sessionService=I}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(I=>I.eclUnlocked))}}return s.\u0275fac=function(I){return new(I||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})()},62:(Ge,Q,m)=>{"use strict";m.d(Q,{v:()=>I});var e=m(1135),t=m(9646),y=m(2843),C=m(5698),o=m(4004),M=m(262),l=m(7731),R=m(5e3),s=m(8104),L=m(5043);let I=(()=>{class A{constructor(P,w){this.dataService=P,this.logger=w,this.currencyUnits=[],this.CurrencyUnitEnum=l.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=l.Bn.UN_INITIATED,this.screenSize=l.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new e.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(P){this.screenSize=P}getContainerSize(){return this.containerSize}setContainerSize(P,w){this.containerSize={width:P,height:w},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(P,w,V,j="asc"){return P.sort("number"===V?"desc"===j?(W,te)=>+W[w]>+te[w]?-1:1:(W,te)=>+W[w]>+te[w]?1:-1:"desc"===j?(W,te)=>W[w]>te[w]?-1:1:(W,te)=>W[w]>te[w]?1:-1)}sortDescByKey(P,w){return P.sort((V,j)=>{const W=+V[w],te=+j[w];return W>te?-1:W{const W=+V[w],te=+j[w];return Wte?1:0})}camelCase(P){return P.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,V)=>w.toUpperCase()).replace(/\s+/g,"").replace(/-/g," ")}titleCase(P,w,V){return w&&V&&""!==w&&""!==V&&(P=P.replace(new RegExp(w,"g"),V)),P.indexOf("!\n")>0||P.indexOf(".\n")>0?P.split("\n").reduce((j,W)=>j+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+"\n",""):P.indexOf(" ")>0?P.split(" ").reduce((j,W)=>j+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+" ",""):P.charAt(0).toUpperCase()+P.substring(1).toLowerCase()}convertCurrency(P,w,V,j,W){const te=(new Date).valueOf();return W&&j&&this.ratesAPIStatus!==l.Bn.INITIATED&&(w===l.NT.OTHER||V===l.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&te(this.ratesAPIStatus=l.Bn.COMPLETED,this.conversionData.data=ee&&"object"==typeof ee?ee:ee&&"string"==typeof ee?JSON.parse(ee):{},this.conversionData.last_fetched=te,this.convertWithFiat(P,w,j))),(0,M.K)(ee=>(this.ratesAPIStatus=l.Bn.ERROR,(0,y._)(()=>this.extractErrorMessage(ee,"Currency Conversion Error.")))))):(0,t.of)(this.convertWithoutFiat(P,w))}convertWithoutFiat(P,w){const V={};switch(V[l.NT.SATS]=0,V[l.NT.BTC]=0,w){case l.NT.SATS:V[l.NT.SATS]=P,V[l.NT.BTC]=1e-8*P;break;case l.NT.BTC:V[l.NT.SATS]=1e8*P,V[l.NT.BTC]=P}return V}convertWithFiat(P,w,V){const j={unit:V,symbol:this.conversionData.data[V].symbol};switch(j[l.NT.SATS]=0,j[l.NT.BTC]=0,j[l.NT.OTHER]=0,w){case l.NT.SATS:j[l.NT.SATS]=P,j[l.NT.BTC]=1e-8*P,j[l.NT.OTHER]=1e-8*P*this.conversionData.data[V].last;break;case l.NT.BTC:j[l.NT.SATS]=1e8*P,j[l.NT.BTC]=P,j[l.NT.OTHER]=P*this.conversionData.data[V].last;break;case l.NT.OTHER:j[l.NT.SATS]=P/this.conversionData.data[V].last*1e8,j[l.NT.BTC]=P/this.conversionData.data[V].last,j[l.NT.OTHER]=P}return j}convertTime(P,w,V){switch(w){case l.Qk.SECS:switch(V){case l.Qk.MINS:P/=60;break;case l.Qk.HOURS:P/=3600;break;case l.Qk.DAYS:P/=86400}break;case l.Qk.MINS:switch(V){case l.Qk.SECS:P*=60;break;case l.Qk.HOURS:P/=60;break;case l.Qk.DAYS:P/=1440}break;case l.Qk.HOURS:switch(V){case l.Qk.SECS:P*=3600;break;case l.Qk.MINS:P*=60;break;case l.Qk.DAYS:P/=24}break;case l.Qk.DAYS:switch(V){case l.Qk.SECS:P=3600*P*24;break;case l.Qk.MINS:P=60*P*24;break;case l.Qk.HOURS:P*=24}}return P}downloadFile(P,w,V=".json",j=".csv"){let W=new Blob;W=".json"===V?new Blob(["\ufeff"+this.convertToCSV(P)],{type:"text/csv;charset=utf-8;"}):new Blob([P.toString()],{type:"text/plain;charset=utf-8"});const te=document.createElement("a"),ee=URL.createObjectURL(W);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&te.setAttribute("target","_blank"),te.setAttribute("href",ee),te.setAttribute("download",w+j),te.style.visibility="hidden",document.body.appendChild(te),te.click(),document.body.removeChild(te)}convertToCSV(P){const w=[];let V="",j="",W="";return"object"!=typeof P&&(P=JSON.parse(P)),P.forEach((ee,ge)=>{for(const le in ee)w.findIndex(re=>re===le)<0&&w.push(le)}),W=w.join(",")+"\r\n",P.forEach(ee=>{V="",w.forEach(ge=>{ee.hasOwnProperty(ge)?Array.isArray(ee[ge])?(j="",ee[ge].forEach((le,re)=>{j+="object"==typeof le?"("+JSON.stringify(le).replace(/\,/g,";")+")":"("+le+")"}),V+=j+","):V+="object"==typeof ee[ge]?JSON.stringify(ee[ge]).replace(/\,/g,";")+",":ee[ge]+",":V+=","}),W+=V.slice(0,-1)+"\r\n"}),W}isVersionCompatible(P,w){if(P){const V=P.trim().replace("v","").split("-")[0].split(".")||[],j=w.split(".");return+V[0]>+j[0]||+V[0]==+j[0]&&+V[1]>+j[1]||+V[0]==+j[0]&&+V[1]==+j[1]&&+V[2]>=+j[2]}return!1}extractErrorMessage(P,w="Unknown Error."){const V=this.titleCase(P.error.text&&"string"==typeof P.error.text&&P.error.text.includes('')?"API Route Does Not Exist.":P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&P.error.error.error.error.error&&"string"==typeof P.error.error.error.error.error?P.error.error.error.error.error:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&"string"==typeof P.error.error.error.error?P.error.error.error.error:P.error&&P.error.error&&P.error.error.error&&"string"==typeof P.error.error.error?P.error.error.error:P.error&&P.error.error&&"string"==typeof P.error.error?P.error.error:P.error&&"string"==typeof P.error?P.error:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&P.error.error.error.error.message&&"string"==typeof P.error.error.error.error.message?P.error.error.error.error.message:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.message&&"string"==typeof P.error.error.error.message?P.error.error.error.message:P.error&&P.error.error&&P.error.error.message&&"string"==typeof P.error.error.message?P.error.error.message:P.error&&P.error.message&&"string"==typeof P.error.message?P.error.message:P.message&&"string"==typeof P.message?P.message:w);return this.logger.info("Error Message: "+V),V}extractErrorCode(P,w=500){const V=P.error&&P.error.error&&P.error.error.message&&P.error.error.message.code?P.error.error.message.code:P.error&&P.error.error&&P.error.error.code?P.error.error.code:P.error&&P.error.code?P.error.code:P.code?P.code:P.status?P.status:w;return this.logger.info("Error Code: "+V),V}extractErrorNumber(P,w=500){const V=P.error&&P.error.error&&P.error.error.errno?P.error.error.errno:P.error&&P.error.errno?P.error.errno:P.errno?P.errno:P.status?P.status:w;return this.logger.info("Error Number: "+V),V}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return A.\u0275fac=function(P){return new(P||A)(R.LFG(s.D),R.LFG(L.mQ))},A.\u0275prov=R.Yz7({token:A,factory:A.\u0275fac}),A})()},7731:(Ge,Q,m)=>{"use strict";m.d(Q,{pt:()=>t,uA:()=>y,Xz:()=>C,Er:()=>o,LO:()=>M,IV:()=>l,TJ:()=>R,_t:()=>s,Dr:()=>L,Vc:()=>I,vn:()=>A,wZ:()=>E,$v:()=>P,nM:()=>w,g8:()=>V,ol:()=>j,n_:()=>W,OJ:()=>te,Qk:()=>ee,NT:()=>ge,Gi:()=>le,cu:()=>re,HW:()=>de,x$:()=>se,p7:()=>ye,Zs:()=>v,Fq:()=>i,$I:()=>a,hc:()=>p,Qw:()=>u,gg:()=>_,op:()=>D,JX:()=>O,kO:()=>x,Bn:()=>r,m6:()=>b,IX:()=>Z,Xr:()=>N,pg:()=>U,uR:()=>ve,AB:()=>be,lr:()=>Re,Df:()=>ze,H_:()=>Oe,hZ:()=>K,gB:()=>Me,OO:()=>we});var e=m(6087);function t(z){const Ze=new e.ye;return Ze.itemsPerPageLabel=z+" per page:",Ze}const y=["Sats","BTC"],C={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},o=[{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"}],M=["SECS","MINS","HOURS","DAYS"],l=10,R=[5,10,25,100],s=[{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)"}],L=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],I=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],A=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],E={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var P=(()=>{return(z=P||(P={})).PAYMENT_RECEIVED="payment-received",z.PAYMENT_RELAYED="payment-relayed",z.PAYMENT_SENT="payment-sent",z.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",z.PAYMENT_FAILED="payment-failed",z.CHANNEL_OPENED="channel-opened",z.CHANNEL_STATE_CHANGED="channel-state-changed",z.CHANNEL_CLOSED="channel-closed",P;var z})(),w=(()=>{return(z=w||(w={})).INVOICE="invoice",z.BLOCK_HEIGHT="block-height",z.SEND_PAYMENT="send-payment",w;var z})(),V=(()=>((V||(V={})).INVOICE="invoice",V))(),j=(()=>{return(z=j||(j={})).OPERATOR="OPERATOR",z.MERCHANT="MERCHANT",z.ALL="ALL",j;var z})(),W=(()=>{return(z=W||(W={})).INFORMATION="Information",z.WARNING="Warning",z.ERROR="Error",z.SUCCESS="Success",z.CONFIRM="Confirm",W;var z})(),te=(()=>{return(z=te||(te={})).JWT="JWT",z.PASSWORD="PASSWORD",te;var z})(),ee=(()=>{return(z=ee||(ee={})).SECS="SECS",z.MINS="MINS",z.HOURS="HOURS",z.DAYS="DAYS",ee;var z})(),ge=(()=>{return(z=ge||(ge={})).SATS="Sats",z.BTC="BTC",z.OTHER="OTHER",ge;var z})(),le=(()=>{return(z=le||(le={})).ARRAY="ARRAY",z.NUMBER="NUMBER",z.STRING="STRING",z.BOOLEAN="BOOLEAN",z.PASSWORD="PASSWORD",z.DATE="DATE",z.DATE_TIME="DATE_TIME",le;var z})(),re=(()=>{return(z=re||(re={})).XS="XS",z.SM="SM",z.MD="MD",z.LG="LG",z.XL="XL",re;var z})();const de={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"}},se={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 ye=(()=>{return(z=ye||(ye={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",z.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",z.WIRE_INVALID_ONION_KEY="Invalid Onion Key",z.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",z.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",z.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",z.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",z.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",z.WIRE_FEE_INSUFFICIENT="Insufficient Fee",z.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",z.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",z.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",z.WIRE_CHANNEL_DISABLED="Channel Disabled",z.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",z.WIRE_INVALID_REALM="Invalid Realm",z.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",z.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",z.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",z.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",z.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",z.WIRE_MPP_TIMEOUT="MPP Timeout",z.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",z.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",ye;var z})(),v=(()=>{return(z=v||(v={})).CHANNELD_NORMAL="Active",z.OPENINGD="Opening",z.CHANNELD_AWAITING_LOCKIN="Pending Open",z.CHANNELD_SHUTTING_DOWN="Shutting Down",z.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",z.CLOSINGD_COMPLETE="Closed",z.AWAITING_UNILATERAL="Awaiting Unilateral Close",z.FUNDING_SPEND_SEEN="Funding Spend Seen",z.ONCHAIN="Onchain",z.DUALOPEND_OPEN_INIT="Dual Open Initialized",z.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",v;var z})(),i=(()=>{return(z=i||(i={})).INITIATED="Initiated",z.PREIMAGE_REVEALED="Preimage Revealed",z.HTLC_PUBLISHED="HTLC Published",z.SUCCESS="Successful",z.FAILED="Failed",z.INVOICE_SETTLED="Invoice Settled",i;var z})(),a=(()=>{return(z=a||(a={})).LOOP_OUT="LOOP_OUT",z.LOOP_IN="LOOP_IN",a;var z})(),p=(()=>{return(z=p||(p={})).SWAP_OUT="SWAP_OUT",z.SWAP_IN="SWAP_IN",p;var z})(),u=(()=>{return(z=u||(u={}))["swap.created"]="Swap Created",z["swap.expired"]="Swap Expired",z["invoice.set"]="Invoice Set",z["invoice.paid"]="Invoice Paid",z["invoice.pending"]="Invoice Pending",z["invoice.settled"]="Invoice Settled",z["invoice.failedToPay"]="Invoice Failed To Pay",z["channel.created"]="Channel Created",z["transaction.failed"]="Transaction Failed",z["transaction.mempool"]="Transaction Mempool",z["transaction.claimed"]="Transaction Claimed",z["transaction.refunded"]="Transaction Refunded",z["transaction.confirmed"]="Transaction Confirmed",z["swap.refunded"]="Swap Refunded",z["swap.abandoned"]="Swap Abandoned",u;var z})();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}],D=["MONTHLY","YEARLY"];var O=(()=>{return(z=O||(O={})).LOOP="LOOP",z.BOLTZ="BOLTZ",z.OFFERS="OFFERS",O;var z})();const x=["password","changeme","moneyprintergobrrr"];var r=(()=>{return(z=r||(r={})).UN_INITIATED="UN_INITIATED",z.INITIATED="INITIATED",z.COMPLETED="COMPLETED",z.ERROR="ERROR",r;var z})();const b={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 Z=(()=>{return(z=Z||(Z={})).INVOICE="INVOICE",z.OFFER="OFFER",z.KEYSEND="KEYSEND",Z;var z})(),N=(()=>{return(z=N||(N={})).FEES="FEES",z.EVENTS="EVENTS",N;var z})(),U=(()=>{return(z=U||(U={})).VOID="VOID",z.SET_API_URL_ECL="SET_API_URL_ECL",z.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",z.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",z.RESET_ROOT_STORE="RESET_ROOT_STORE",z.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",z.OPEN_SNACK_BAR="OPEN_SNACKBAR",z.OPEN_SPINNER="OPEN_SPINNER",z.CLOSE_SPINNER="CLOSE_SPINNER",z.OPEN_ALERT="OPEN_ALERT",z.CLOSE_ALERT="CLOSE_ALERT",z.OPEN_CONFIRMATION="OPEN_CONFIRMATION",z.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",z.SHOW_PUBKEY="SHOW_PUBKEY",z.FETCH_CONFIG="FETCH_CONFIG",z.SHOW_CONFIG="SHOW_CONFIG",z.FETCH_STORE="FETCH_STORE",z.SET_STORE="SET_STORE",z.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",z.SET_RTL_CONFIG="SET_RTL_CONFIG",z.SAVE_SSO="SAVE_SSO",z.SAVE_SETTINGS="SAVE_SETTINGS",z.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",z.SET_SELECTED_NODE="SET_SELECTED_NODE",z.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",z.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",z.SET_NODE_DATA="SET_NODE_DATA",z.IS_AUTHORIZED="IS_AUTHORIZED",z.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",z.LOGIN="LOGIN",z.VERIFY_TWO_FA="VERIFY_TWO_FA",z.LOGOUT="LOGOUT",z.RESET_PASSWORD="RESET_PASSWORD",z.RESET_PASSWORD_RES="RESET_PASSWORD_RES",z.FETCH_FILE="FETCH_FILE",z.SHOW_FILE="SHOW_FILE",U;var z})(),ve=(()=>{return(z=ve||(ve={})).RESET_LND_STORE="RESET_LND_STORE",z.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",z.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",z.FETCH_INFO_LND="FETCH_INFO_LND",z.SET_INFO_LND="SET_INFO_LND",z.FETCH_PEERS_LND="FETCH_PEERS_LND",z.SET_PEERS_LND="SET_PEERS_LND",z.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",z.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",z.DETACH_PEER_LND="DETACH_PEER_LND",z.REMOVE_PEER_LND="REMOVE_PEER_LND",z.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",z.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",z.ADD_INVOICE_LND="ADD_INVOICE_LND",z.FETCH_FEES_LND="FETCH_FEES_LND",z.SET_FEES_LND="SET_FEES_LND",z.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",z.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",z.FETCH_NETWORK_LND="FETCH_NETWORK_LND",z.SET_NETWORK_LND="SET_NETWORK_LND",z.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",z.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",z.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",z.SET_CHANNELS_LND="SET_CHANNELS_LND",z.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",z.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",z.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",z.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",z.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",z.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",z.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",z.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",z.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",z.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",z.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",z.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",z.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",z.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",z.FETCH_INVOICES_LND="FETCH_INVOICES_LND",z.SET_INVOICES_LND="SET_INVOICES_LND",z.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",z.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",z.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",z.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",z.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",z.FETCH_UTXOS_LND="FETCH_UTXOS_LND",z.SET_UTXOS_LND="SET_UTXOS_LND",z.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",z.SET_PAYMENTS_LND="SET_PAYMENTS_LND",z.SEND_PAYMENT_LND="SEND_PAYMENT_LND",z.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",z.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",z.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",z.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",z.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",z.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",z.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",z.GEN_SEED_LND="GEN_SEED_LND",z.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",z.INIT_WALLET_LND="INIT_WALLET_LND",z.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",z.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",z.PEER_LOOKUP_LND="PEER_LOOKUP_LND",z.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",z.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",z.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",z.SET_LOOKUP_LND="SET_LOOKUP_LND",z.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",z.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",z.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",z.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",z.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",z.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",ve;var z})(),be=(()=>{return(z=be||(be={})).RESET_CLN_STORE="RESET_CLN_STORE",z.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",z.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",z.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",z.SET_INFO_CLN="SET_INFO_CLN",z.FETCH_FEES_CLN="FETCH_FEES_CLN",z.SET_FEES_CLN="SET_FEES_CLN",z.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",z.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",z.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",z.SET_BALANCE_CLN="SET_BALANCE_CLN",z.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",z.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",z.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",z.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",z.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",z.SET_UTXOS_CLN="SET_UTXOS_CLN",z.FETCH_PEERS_CLN="FETCH_PEERS_CLN",z.SET_PEERS_CLN="SET_PEERS_CLN",z.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",z.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",z.ADD_PEER_CLN="ADD_PEER_CLN",z.DETACH_PEER_CLN="DETACH_PEER_CLN",z.REMOVE_PEER_CLN="REMOVE_PEER_CLN",z.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",z.SET_CHANNELS_CLN="SET_CHANNELS_CLN",z.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",z.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",z.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",z.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",z.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",z.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",z.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",z.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",z.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",z.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",z.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",z.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",z.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",z.SET_LOOKUP_CLN="SET_LOOKUP_CLN",z.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",z.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",z.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",z.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",z.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",z.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",z.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",z.SET_INVOICES_CLN="SET_INVOICES_CLN",z.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",z.ADD_INVOICE_CLN="ADD_INVOICE_CLN",z.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",z.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",z.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",z.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",z.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",z.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",z.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",z.SET_OFFERS_CLN="SET_OFFERS_CLN",z.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",z.ADD_OFFER_CLN="ADD_OFFER_CLN",z.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",z.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",z.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",z.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",z.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",z.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",z.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",be;var z})(),Re=(()=>{return(z=Re||(Re={})).RESET_ECL_STORE="RESET_ECL_STORE",z.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",z.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",z.FETCH_INFO_ECL="FETCH_INFO_ECL",z.SET_INFO_ECL="SET_INFO_ECL",z.FETCH_FEES_ECL="FETCH_FEES_ECL",z.SET_FEES_ECL="SET_FEES_ECL",z.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",z.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",z.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",z.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",z.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",z.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",z.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",z.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",z.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",z.FETCH_PEERS_ECL="FETCH_PEERS_ECL",z.SET_PEERS_ECL="SET_PEERS_ECL",z.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",z.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",z.ADD_PEER_ECL="ADD_PEER_ECL",z.DETACH_PEER_ECL="DETACH_PEER_ECL",z.REMOVE_PEER_ECL="REMOVE_PEER_ECL",z.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",z.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",z.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",z.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",z.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",z.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",z.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",z.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",z.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",z.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",z.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",z.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",z.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",z.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",z.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",z.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",z.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",z.SET_INVOICES_ECL="SET_INVOICES_ECL",z.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",z.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",z.ADD_INVOICE_ECL="ADD_INVOICE_ECL",z.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",z.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",z.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",z.SET_LOOKUP_ECL="SET_LOOKUP_ECL",z.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",z.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Re;var z})();const ze=[{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 Oe=(()=>{return(z=Oe||(Oe={})).gossip_queries_ex="Gossip queries including additional information",z.option_anchor_outputs="Anchor outputs",z.option_data_loss_protect="Extra channel re-establish fields",z.var_onion_optin="Variable-length routing onion payloads",z.option_static_remotekey="Static key for remote output",z.option_support_large_channel="Create large channels",z.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",z.payment_secret="Payment secret field",z.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",z.basic_mpp="Basic multi-part payments",z.gossip_queries="More sophisticated gossip control",z.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",z.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",z.amp="AMP",Oe;var z})(),K=(()=>{return(z=K||(K={}))["data-loss-protect"]="Extra channel re-establish fields",z["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",z["gossip-queries"]="More sophisticated gossip control",z["tlv-onion"]="Variable-length routing onion payloads",z["ext-gossip-queries"]="Gossip queries can include additional information",z["static-remote-key"]="Static key for remote output",z["payment-addr"]="Payment secret field",z["multi-path-payments"]="Basic multi-part payments",z["wumbo-channels"]="Wumbo Channels",z.anchors="Anchor outputs",z["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",z.amp="AMP",K;var z})();const Me=[{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 we=(()=>{return(z=we||(we={})).OFFERED="offered",z.SETTLED="settled",z.FAILED="failed",z.LOCAL_FAILED="local_failed",we;var z})()},8104:(Ge,Q,m)=>{"use strict";m.d(Q,{D:()=>de});var e=m(8138),t=m(1135),y=m(7579),C=m(2843),o=m(9646),M=m(590),l=m(5577),R=m(2722),s=m(4004),L=m(262),I=m(1365),A=m(2340),E=m(7731),P=m(1786),w=m(7861),V=m(6523),j=m(6529),W=m(9828),te=m(5e3),ee=m(5620),ge=m(5043),le=m(7261),re=m(9808);let de=(()=>{class se{constructor(v,i,a,p,u){this.httpClient=v,this.store=i,this.logger=a,this.snackBar=p,this.titleCasePipe=u,this.APIUrl=A.T5,this.lnImplementation="",this.lnImplementationUpdated=new t.X(null),this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x],this.mapAliases=(_,D)=>(_&&_.length>0?_.forEach((O,x)=>{if(D&&D.length>0)for(let r=0;rnull!==a),(0,l.z)(a=>{let p=this.APIUrl+"/"+a+A.NZ.PAYMENTS_API+"/decode/"+v;return"cln"===a&&(p=this.APIUrl+"/"+a+A.NZ.UTILITY_API+"/decode/"+v),this.store.dispatch((0,w.ac)({payload:E.m6.DECODE_PAYMENT})),this.httpClient.get(p).pipe((0,R.R)(this.unSubs[0]),(0,s.U)(u=>(this.store.dispatch((0,w.uO)({payload:E.m6.DECODE_PAYMENT})),u)),(0,L.K)(u=>(i?this.handleErrorWithoutAlert("Decode Payment",E.m6.DECODE_PAYMENT,u):this.handleErrorWithAlert("decodePaymentData",E.m6.DECODE_PAYMENT,"Decode Payment Failed",p,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}decodePayments(v){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{let a="",p="";return"ecl"===i?(a=this.APIUrl+"/"+i+A.NZ.PAYMENTS_API+"/getsentinfos",p=E.m6.GET_SENT_PAYMENTS):"cln"===i?(a=this.APIUrl+"/"+i+A.NZ.UTILITY_API,p=E.m6.DECODE_PAYMENTS):(a=this.APIUrl+"/"+i+A.NZ.PAYMENTS_API,p=E.m6.DECODE_PAYMENTS),this.store.dispatch((0,w.ac)({payload:p})),this.httpClient.post(a,{payments:v}).pipe((0,R.R)(this.unSubs[1]),(0,s.U)(u=>(this.store.dispatch((0,w.uO)({payload:p})),u)),(0,L.K)(u=>(this.handleErrorWithAlert("decodePaymentsData",p,p+" Failed",a,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}getAliasesFromPubkeys(v,i){return this.lnImplementationUpdated.pipe((0,M.P)(a=>null!==a),(0,l.z)(a=>{if(i){const p=(new e.LE).set("pubkeys",v);return this.httpClient.get(this.APIUrl+"/"+a+A.NZ.NETWORK_API+"/nodes",{params:p})}return this.httpClient.get(this.APIUrl+"/"+a+A.NZ.NETWORK_API+"/node/"+v)}))}signMessage(v){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{let a=this.APIUrl+"/"+i+A.NZ.MESSAGE_API+"/sign";return"cln"===i&&(a=this.APIUrl+"/"+i+A.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,w.ac)({payload:E.m6.SIGN_MESSAGE})),this.httpClient.post(a,{message:v}).pipe((0,R.R)(this.unSubs[2]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:E.m6.SIGN_MESSAGE})),p)),(0,L.K)(p=>(this.handleErrorWithAlert("signMessageData",E.m6.SIGN_MESSAGE,"Sign Message Failed",a,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}verifyMessage(v,i){return this.lnImplementationUpdated.pipe((0,M.P)(a=>null!==a),(0,l.z)(a=>{let p=this.APIUrl+"/"+a+A.NZ.MESSAGE_API+"/verify";return"cln"===a&&(p=this.APIUrl+"/"+a+A.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,w.ac)({payload:E.m6.VERIFY_MESSAGE})),this.httpClient.post(p,{message:v,signature:i}).pipe((0,R.R)(this.unSubs[3]),(0,s.U)(u=>(this.store.dispatch((0,w.uO)({payload:E.m6.VERIFY_MESSAGE})),u)),(0,L.K)(u=>(this.handleErrorWithAlert("verifyMessageData",E.m6.VERIFY_MESSAGE,"Verify Message Failed",p,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}bumpFee(v,i,a,p){return this.lnImplementationUpdated.pipe((0,M.P)(u=>null!==u),(0,l.z)(u=>{const _={txid:v,outputIndex:i};return a&&(_.targetConf=a),p&&(_.satPerByte=p),this.store.dispatch((0,w.ac)({payload:E.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+u+A.NZ.WALLET_API+"/bumpfee",_).pipe((0,R.R)(this.unSubs[4]),(0,s.U)(D=>(this.store.dispatch((0,w.uO)({payload:E.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),D)),(0,L.K)(D=>(this.handleErrorWithoutAlert("Bump Fee",E.m6.BUMP_FEE,D),(0,C._)(()=>new Error(this.extractErrorMessage(D))))))}))}labelUTXO(v,i,a=!0){return this.lnImplementationUpdated.pipe((0,M.P)(p=>null!==p),(0,l.z)(p=>{const u={txid:v,label:i,overwrite:a};return this.store.dispatch((0,w.ac)({payload:E.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+p+A.NZ.WALLET_API+"/label",u).pipe((0,R.R)(this.unSubs[5]),(0,s.U)(_=>(this.store.dispatch((0,w.uO)({payload:E.m6.LABEL_UTXO})),_)),(0,L.K)(_=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LABEL_UTXO,_),(0,C._)(()=>new Error(this.extractErrorMessage(_))))))}))}leaseUTXO(v,i){return this.lnImplementationUpdated.pipe((0,M.P)(a=>null!==a),(0,l.z)(a=>{const p={txid:v,outputIndex:i};return this.store.dispatch((0,w.ac)({payload:E.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+a+A.NZ.WALLET_API+"/lease",p).pipe((0,R.R)(this.unSubs[6]),(0,s.U)(u=>{this.store.dispatch((0,w.uO)({payload:E.m6.LEASE_UTXO})),this.store.dispatch((0,V.mC)()),this.store.dispatch((0,V.Ly)());const _=new Date(1e3*u.expiration),D=Math.round(_.getTime())-60*_.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(D).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,L.K)(u=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LEASE_UTXO,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}getForwardingHistory(v,i,a,p){if("LND"===v){const u={end_time:a,start_time:i};return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+A.NZ.SWITCH_API,u).pipe((0,R.R)(this.unSubs[7]),(0,I.M)(this.store.select(j._f)),(0,l.z)(([_,D])=>{if(_.forwarding_events){const O=[...D.channels,...D.closedChannels];_.forwarding_events.forEach(x=>{if(O&&O.length>0)for(let r=0;r(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+A.NZ.SWITCH_API,_),(0,C._)(()=>new Error(this.extractErrorMessage(_))))))}return"CLN"===v?(this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+A.NZ.CHANNELS_API+"/listForwards?status="+p).pipe((0,R.R)(this.unSubs[8]),(0,I.M)(this.store.select(W.ZW)),(0,l.z)(([u,_])=>{const D=this.mapAliases(u,[..._.activeChannels,..._.pendingChannels,..._.inactiveChannels]);return this.store.dispatch((0,w.uO)({payload:E.m6.GET_FORWARDING_HISTORY})),(0,o.of)(D)}),(0,L.K)(u=>(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+A.NZ.CHANNELS_API+"/listForwards?status="+p+"&start="+i+"&end="+a,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))):(0,o.of)({})}listNetworkNodes(v=""){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>(this.store.dispatch((0,w.ac)({payload:E.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+A.NZ.NETWORK_API+"/listNodes"+v).pipe((0,R.R)(this.unSubs[9]),(0,l.z)(a=>(this.store.dispatch((0,w.uO)({payload:E.m6.LIST_NETWORK_NODES})),(0,o.of)(a))),(0,L.K)(a=>(this.handleErrorWithoutAlert("List Network Nodes",E.m6.LIST_NETWORK_NODES,a),(0,C._)(()=>this.extractErrorMessage(a))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,M.P)(v=>null!==v),(0,l.z)(v=>(this.store.dispatch((0,w.ac)({payload:E.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+v+A.NZ.UTILITY_API+"/listConfigs").pipe((0,R.R)(this.unSubs[10]),(0,l.z)(i=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_LIST_CONFIGS})),(0,o.of)(i))),(0,L.K)(i=>(this.handleErrorWithoutAlert("List Configurations",E.m6.GET_LIST_CONFIGS,i),(0,C._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(v,i,a,p,u,_){return this.lnImplementationUpdated.pipe((0,M.P)(D=>null!==D),(0,l.z)(D=>{const O=v?{policy:v,policy_mod:i,lease_fee_base_msat:a,lease_fee_basis:p,channel_fee_max_base_msat:u,channel_fee_max_proportional_thousandths:_}:null;return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+D+A.NZ.CHANNELS_API+"/funderUpdate",O).pipe((0,R.R)(this.unSubs[11]),(0,s.U)(x=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_FUNDER_POLICY})),O&&this.store.dispatch((0,w.jW)({payload:"Funder Policy Updated Successfully!"})),x)),(0,L.K)(x=>(this.handleErrorWithoutAlert("Funder Policy",E.m6.GET_FUNDER_POLICY,x),(0,C._)(()=>new Error(this.extractErrorMessage(x))))))}))}extractErrorMessage(v,i="Unknown Error."){return this.titleCasePipe.transform(v.error.text&&"string"==typeof v.error.text&&v.error.text.includes('')?"API Route Does Not Exist.":v.error&&v.error.error&&v.error.error.error&&v.error.error.error.error&&v.error.error.error.error.error&&"string"==typeof v.error.error.error.error.error?v.error.error.error.error.error:v.error&&v.error.error&&v.error.error.error&&v.error.error.error.error&&"string"==typeof v.error.error.error.error?v.error.error.error.error:v.error&&v.error.error&&v.error.error.error&&"string"==typeof v.error.error.error?v.error.error.error:v.error&&v.error.error&&"string"==typeof v.error.error?v.error.error:v.error&&"string"==typeof v.error?v.error:v.error&&v.error.error&&v.error.error.error&&v.error.error.error.error&&v.error.error.error.error.message&&"string"==typeof v.error.error.error.error.message?v.error.error.error.error.message:v.error&&v.error.error&&v.error.error.error&&v.error.error.error.message&&"string"==typeof v.error.error.error.message?v.error.error.error.message:v.error&&v.error.error&&v.error.error.message&&"string"==typeof v.error.error.message?v.error.error.message:v.error&&v.error.message&&"string"==typeof v.error.message?v.error.message:v.message&&"string"==typeof v.message?v.message:i)}handleErrorWithoutAlert(v,i,a){a.error.text&&"string"==typeof a.error.text&&a.error.text.includes('')&&(a={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+v+"\n"+JSON.stringify(a)),401===a.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,w.qi)({payload:{action:v,status:E.Bn.ERROR,statusCode:a.status.toString(),message:this.extractErrorMessage(a)}})))}handleErrorWithAlert(v,i,a,p,u){if(this.logger.error(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."}));else{this.store.dispatch((0,w.uO)({payload:i}));const _=this.extractErrorMessage(u);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:u.status?u.status:"Unknown Error",message:_,URL:p},component:P.H}}})),this.store.dispatch((0,w.qi)({payload:{action:v,status:E.Bn.ERROR,statusCode:u.status.toString(),message:_,URL:p}}))}}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return se.\u0275fac=function(v){return new(v||se)(te.LFG(e.eN),te.LFG(ee.yh),te.LFG(ge.mQ),te.LFG(le.ux),te.LFG(re.rS))},se.\u0275prov=te.Yz7({token:se,factory:se.\u0275fac}),se})()},5043:(Ge,Q,m)=>{"use strict";m.d(Q,{mQ:()=>M,LG:()=>l});var e=m(2340),t=m(5e3);const{isDebugMode:y}=e.NZ,C=()=>null;let M=(()=>{class R{invokeConsoleMethod(L,I){}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})(),l=(()=>{class R{get info(){return y?console.log.bind(console):C}get warn(){return y?console.warn.bind(console):C}get error(){return y?console.error.bind(console):C}invokeConsoleMethod(L,I){(console[L]||console.log||C).apply(console,[I])}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})()},9107:(Ge,Q,m)=>{"use strict";m.d(Q,{W:()=>j});var e=m(8138),t=m(1135),y=m(7579),C=m(9646),o=m(2843),M=m(2722),l=m(262),R=m(4004),s=m(2340),L=m(7731),I=m(1786),A=m(7861),E=m(5e3),P=m(5043),w=m(5620),V=m(62);let j=(()=>{class W{constructor(ee,ge,le,re){this.httpClient=ee,this.logger=ge,this.store=le,this.commonService=re,this.loopUrl="",this.swaps=[],this.swapsChanged=new t.X([]),this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,A.ac)({payload:L.m6.GET_LOOP_SWAPS})),this.loopUrl=s.T5+s.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,M.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,A.uO)({payload:L.m6.GET_LOOP_SWAPS})),this.swaps=ee,this.swapsChanged.next(this.swaps)},error:ee=>this.swapsChanged.error(this.handleErrorWithAlert(L.m6.GET_LOOP_SWAPS,this.loopUrl,ee))})}loopOut(ee,ge,le,re,de,se,ye,v,i,a){const p={amount:ee,targetConf:le,swapRoutingFee:re,minerFee:de,prepayRoutingFee:se,prepayAmt:ye,swapFee:v,swapPublicationDeadline:i,destAddress:a};return""!==ge&&(p.chanId=ge),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,p).pipe((0,l.K)(u=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ge,L.m6.NO_SPINNER,u)))}getLoopOutTerms(){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",L.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,ge,le){let re=new e.LE;return re=re.append("targetConf",ge.toString()),re=re.append("swapPublicationDeadline",le.toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,A.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,M.R)(this.unSubs[1]),(0,R.U)(de=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_QUOTE})),de)),(0,l.K)(de=>this.handleErrorWithoutAlert("Loop Out Quote",L.m6.GET_QUOTE,de)))}getLoopOutTermsAndQuotes(ee){let ge=new e.LE;return ge=ge.append("targetConf",ee.toString()),ge=ge.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ge}).pipe((0,M.R)(this.unSubs[2]),(0,R.U)(le=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_TERMS_QUOTES})),le)),(0,l.K)(le=>(0,C.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,le))))}loopIn(ee,ge,le,re,de){const se={amount:ee,swapFee:ge,minerFee:le,lastHop:re,externalHtlc:de};return this.loopUrl=s.T5+s.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,se).pipe((0,l.K)(ye=>this.handleErrorWithoutAlert("Loop In",L.m6.NO_SPINNER,ye)))}getLoopInTerms(){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",L.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,ge,le){let re=new e.LE;return re=re.append("targetConf",ge.toString()),re=re.append("swapPublicationDeadline",le.toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,A.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,M.R)(this.unSubs[3]),(0,R.U)(de=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_QUOTE})),de)),(0,l.K)(de=>this.handleErrorWithoutAlert("Loop In Qoute",L.m6.GET_QUOTE,de)))}getLoopInTermsAndQuotes(ee){let ge=new e.LE;return ge=ge.append("targetConf",ee.toString()),ge=ge.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ge}).pipe((0,M.R)(this.unSubs[4]),(0,R.U)(le=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_TERMS_QUOTES})),le)),(0,l.K)(le=>(0,C.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,le))))}getSwap(ee){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,l.K)(ge=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,L.m6.NO_SPINNER,ge)))}handleErrorWithoutAlert(ee,ge,le){let re="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(le)),this.store.dispatch((0,A.uO)({payload:ge})),401===le.status?(re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)())):503===le.status?(re="Unable to Connect to Loop Server.",this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:le.status,message:"Unable to Connect to Loop Server",URL:ee},component:I.H}}}))):re=this.commonService.extractErrorMessage(le),(0,o._)(()=>new Error(re))}handleErrorWithAlert(ee,ge,le){let re="";if(this.logger.error(le),this.store.dispatch((0,A.uO)({payload:ee})),401===le.status)re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)());else if(503===le.status)re="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:le.status,message:"Unable to Connect to Loop Server",URL:ge},component:I.H}}}))},100);else{re=this.commonService.extractErrorMessage(le);const de=le.error&&le.error.error&&le.error.error.code?le.error.error.code:le.error&&le.error.code?le.error.code:le.code?le.code:le.status;setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:L.n_.ERROR,alertTitle:"ERROR",message:{code:de,message:re,URL:ge},component:I.H}}}))},100)}return{message:re}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return W.\u0275fac=function(ee){return new(ee||W)(E.LFG(e.eN),E.LFG(P.mQ),E.LFG(w.yh),E.LFG(V.v))},W.\u0275prov=E.Yz7({token:W,factory:W.\u0275fac}),W})()},5986:(Ge,Q,m)=>{"use strict";m.d(Q,{m:()=>y});var e=m(7579),t=m(5e3);let y=(()=>{class C{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(M){return sessionStorage.getItem(M)}getAllItems(){return sessionStorage}setItem(M,l){sessionStorage.setItem(M,l),this.sessionSub.next(sessionStorage)}removeItem(M){sessionStorage.removeItem(M),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275prov=t.Yz7({token:C,factory:C.\u0275fac}),C})()},7998:(Ge,Q,m)=>{"use strict";m.d(Q,{d:()=>P});var e=m(1135),t=m(7579),y=m(2722),C=m(930),o=m(8306),M=m(727),l=m(4707);const R={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class L extends t.u{constructor(V,j){if(super(),this._socket=null,V instanceof o.y)this.destination=j,this.source=V;else{const W=this._config=Object.assign({},R);if(this._output=new t.x,"string"==typeof V)W.url=V;else for(const te in V)V.hasOwnProperty(te)&&(W[te]=V[te]);if(!W.WebSocketCtor&&WebSocket)W.WebSocketCtor=WebSocket;else if(!W.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new l.t}}lift(V){const j=new L(this._config,this.destination);return j.operator=V,j.source=this,j}_resetState(){this._socket=null,this.source||(this.destination=new l.t),this._output=new t.x}multiplex(V,j,W){const te=this;return new o.y(ee=>{try{te.next(V())}catch(le){ee.error(le)}const ge=te.subscribe(le=>{try{W(le)&&ee.next(le)}catch(re){ee.error(re)}},le=>ee.error(le),()=>ee.complete());return()=>{try{te.next(j())}catch(le){ee.error(le)}ge.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:V,protocol:j,url:W,binaryType:te}=this._config,ee=this._output;let ge=null;try{ge=j?new V(W,j):new V(W),this._socket=ge,te&&(this._socket.binaryType=te)}catch(re){return void ee.error(re)}const le=new M.w0(()=>{this._socket=null,ge&&1===ge.readyState&&ge.close()});ge.onopen=re=>{const{_socket:de}=this;if(!de)return ge.close(),void this._resetState();const{openObserver:se}=this._config;se&&se.next(re);const ye=this.destination;this.destination=C.Lv.create(v=>{if(1===ge.readyState)try{const{serializer:i}=this._config;ge.send(i(v))}catch(i){this.destination.error(i)}},v=>{const{closingObserver:i}=this._config;i&&i.next(void 0),v&&v.code?ge.close(v.code,v.reason):ee.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:v}=this._config;v&&v.next(void 0),ge.close(),this._resetState()}),ye&&ye instanceof l.t&&le.add(ye.subscribe(this.destination))},ge.onerror=re=>{this._resetState(),ee.error(re)},ge.onclose=re=>{this._resetState();const{closeObserver:de}=this._config;de&&de.next(re),re.wasClean?ee.complete():ee.error(re)},ge.onmessage=re=>{try{const{deserializer:de}=this._config;ee.next(de(re))}catch(de){ee.error(de)}}}_subscribe(V){const{source:j}=this;return j?j.subscribe(V):(this._socket||this._connectSocket(),this._output.subscribe(V),V.add(()=>{const{_socket:W}=this;0===this._output.observers.length&&(W&&(1===W.readyState||0===W.readyState)&&W.close(),this._resetState())}),V)}unsubscribe(){const{_socket:V}=this;V&&(1===V.readyState||0===V.readyState)&&V.close(),this._resetState(),super.unsubscribe()}}var I=m(5e3),A=m(5043),E=m(5986);let P=(()=>{class w{constructor(j,W){this.logger=j,this.sessionService=W,this.clWSMessages=new e.X(null),this.eclWSMessages=new e.X(null),this.lndWSMessages=new e.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}connectWebSocket(j,W){(!this.socket||this.socket.closed)&&(this.wsUrl=j,this.nodeIndex=W,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new L({url:j,protocol:[this.sessionService.getItem("token"),W]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){this.socket.pipe((0,y.R)(this.unSubs[1])).subscribe({next:j=>{if((j="string"==typeof j?JSON.parse(j):j).error)this.handleError(j.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(j)),j.source){case"LND":this.lndWSMessages.next(j);break;case"CLN":this.clWSMessages.next(j);break;case"ECL":this.eclWSMessages.next(j)}},error:j=>this.handleError(j),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(j){this.logger.error(j),this.clWSMessages.error(j),this.eclWSMessages.error(j),this.lndWSMessages.error(j),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}}return w.\u0275fac=function(j){return new(j||w)(I.LFG(A.mQ),I.LFG(E.m))},w.\u0275prov=I.Yz7({token:w,factory:w.\u0275fac}),w})()},8750:(Ge,Q,m)=>{"use strict";m.d(Q,{m:()=>mi});var e=m(9808),t=m(1402),y=m(3075),C=m(8138),o=m(9444),M=m(5e3),l=m(3270),R=m(3322),s=m(7093);m(3191);let qe=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[l.IR]]}),Ct})(),ue=(()=>{class Ct{constructor(bt,Yt){(0,e.PM)(Yt)&&!bt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(bt,Yt=[]){return{ngModule:Ct,providers:bt.serverLoaded?[{provide:l.WU,useValue:Object.assign(Object.assign({},l.g5),bt)},{provide:l.Bs,useValue:Yt,multi:!0},{provide:l.wY,useValue:!0}]:[{provide:l.WU,useValue:Object.assign(Object.assign({},l.g5),bt)},{provide:l.Bs,useValue:Yt,multi:!0}]}}}return Ct.\u0275fac=function(bt){return new(bt||Ct)(M.LFG(l.wY),M.LFG(M.Lbi))},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[s.ae,R.aT,qe],s.ae,R.aT,qe]}),Ct})();var Je=m(5113),St=m(508),kt=m(8966),yi=m(1079),Ni=m(7544),Si=m(7423);m(449),m(5664);let kn=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[St.BQ,St.si],St.BQ]}),Ct})();var dr=m(9224),wi=m(7446),Fi=m(6856),dn=m(1125),Lr=m(3954),La=m(5245),Gn=m(7531),Or=m(4623),Ra=m(2181),Ma=m(6087),Fa=m(5899),xr=m(773),hs=m(9814),ur=m(4107),pa=m(2638),ma=m(2368);m(1159),m(6360),m(925),m(727),m(226);let Aa=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[e.ez,St.BQ],St.BQ]}),Ct})();var Vr=m(7261),ha=m(4847),pr=m(5615),Sr=m(2075),is=m(3251),Oa=m(4594),ra=m(7238),Gr=m(149),Ha=m(6046),Zn=m(159),ns=m(644),ja=m(9776);let Xe=(()=>{class Ct extends ja.Xj{_createContainer(){const bt=document.createElement("div");bt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(bt),this._containerElement=bt}}return Ct.\u0275fac=function(){let ti;return function(Yt){return(ti||(ti=M.n5z(Ct)))(Yt||Ct)}}(),Ct.\u0275prov=M.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();var me=m(5043),J=m(7731);const ne={suppressScrollX:!1,suppressScrollY:!1};let Qe=(()=>{class Ct extends St.LF{format(bt,Yt){if("input"===Yt){let xi=bt.getDate().toString();return xi=+xi<10?"0"+xi:xi,xi+"/"+J.gg[bt.getMonth()].name.toUpperCase()+"/"+bt.getFullYear()}return J.gg[bt.getMonth()].name.toUpperCase()+" "+bt.getFullYear()}}return Ct.\u0275fac=function(){let ti;return function(Yt){return(ti||(ti=M.n5z(Ct)))(Yt||Ct)}}(),Ct.\u0275prov=M.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Wt={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 mi=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({providers:[{provide:me.mQ,useClass:me.LG},{provide:ns.op,useValue:ne},{provide:Vr.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:kt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:St._A,useClass:Qe},{provide:St.sG,useValue:Wt},{provide:ja.Xj,useClass:Xe},e.JJ,e.rS,e.uU],imports:[[e.ez,y.u5,y.UX,o.uH,ue,Je.xu,kt.Is,Si.ot,kn,dr.QW,wi.p9,dn.To,Lr.N6,Fi.FA,St.XK,La.Ps,Gn.c,Or.ie,Ra.Tx,Fa.Cv,xr.Cq,hs.Fk,Gr.dp,ur.LD,pa.SJ,ma.rP,ha.JX,Sr.p0,Oa.g0,ra.AV,Ni.g,Ma.TU,pr.T5,Aa,is.Nh,Vr.ZX,yi.Bb,Ha.a4,Zn.OF,t.Bz,C.JF,ns.Xd],y.u5,y.UX,o.uH,ue,Je.xu,kt.Is,Si.ot,kn,dr.QW,wi.p9,dn.To,Lr.N6,Fi.FA,St.XK,La.Ps,Gn.c,Or.ie,Ra.Tx,Fa.Cv,xr.Cq,hs.Fk,Gr.dp,ur.LD,pa.SJ,ma.rP,ha.JX,Sr.p0,Oa.g0,ra.AV,Ni.g,Ma.TU,pr.T5,Aa,is.Nh,Vr.ZX,yi.Bb,Ha.a4,Zn.OF,ns.Xd]}),Ct})()},7861:(Ge,Q,m)=>{"use strict";m.d(Q,{lC:()=>C,qi:()=>o,ts:()=>M,jW:()=>l,ac:()=>R,uO:()=>s,qR:()=>L,M6:()=>I,c1:()=>A,yb:()=>E,tj:()=>P,Q2:()=>w,tw:()=>j,vI:()=>W,ey:()=>te,XT:()=>ee,zQ:()=>ge,Uy:()=>le,fk:()=>re,Tm:()=>de,jS:()=>se,_V:()=>ye,kS:()=>i,c0:()=>a,QO:()=>u,x4:()=>D,dc:()=>x});var e=m(5620),t=m(7731);(0,e.PH)(t.pg.VOID);const C=(0,e.PH)(t.pg.SET_API_URL_ECL,(0,e.Ky)()),o=(0,e.PH)(t.pg.UPDATE_API_CALL_STATUS_ROOT,(0,e.Ky)()),M=(0,e.PH)(t.pg.CLOSE_ALL_DIALOGS),l=(0,e.PH)(t.pg.OPEN_SNACK_BAR,(0,e.Ky)()),R=(0,e.PH)(t.pg.OPEN_SPINNER,(0,e.Ky)()),s=(0,e.PH)(t.pg.CLOSE_SPINNER,(0,e.Ky)()),L=(0,e.PH)(t.pg.OPEN_ALERT,(0,e.Ky)()),I=(0,e.PH)(t.pg.CLOSE_ALERT,(0,e.Ky)()),A=(0,e.PH)(t.pg.OPEN_CONFIRMATION,(0,e.Ky)()),E=(0,e.PH)(t.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),P=(0,e.PH)(t.pg.SHOW_PUBKEY),w=(0,e.PH)(t.pg.FETCH_CONFIG,(0,e.Ky)()),j=((0,e.PH)(t.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(t.pg.UPDATE_SELECTED_NODE_OPTIONS)),W=(0,e.PH)(t.pg.RESET_ROOT_STORE,(0,e.Ky)()),te=(0,e.PH)(t.pg.FETCH_RTL_CONFIG),ee=(0,e.PH)(t.pg.SET_RTL_CONFIG,(0,e.Ky)()),ge=(0,e.PH)(t.pg.SAVE_SETTINGS,(0,e.Ky)()),le=(0,e.PH)(t.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),re=(0,e.PH)(t.pg.SET_SELECTED_NODE,(0,e.Ky)()),de=(0,e.PH)(t.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),se=(0,e.PH)(t.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),ye=(0,e.PH)(t.pg.SET_NODE_DATA,(0,e.Ky)()),i=((0,e.PH)(t.pg.SAVE_SSO,(0,e.Ky)()),(0,e.PH)(t.pg.LOGOUT)),a=(0,e.PH)(t.pg.RESET_PASSWORD,(0,e.Ky)()),u=((0,e.PH)(t.pg.RESET_PASSWORD_RES,(0,e.Ky)()),(0,e.PH)(t.pg.IS_AUTHORIZED,(0,e.Ky)())),D=((0,e.PH)(t.pg.IS_AUTHORIZED_RES,(0,e.Ky)()),(0,e.PH)(t.pg.LOGIN,(0,e.Ky)())),x=((0,e.PH)(t.pg.VERIFY_TWO_FA,(0,e.Ky)()),(0,e.PH)(t.pg.FETCH_FILE,(0,e.Ky)()));(0,e.PH)(t.pg.SHOW_FILE,(0,e.Ky)())},3093:(Ge,Q,m)=>{"use strict";m.d(Q,{V:()=>qi});var e=m(6642),t=m(7579),y=m(9646),C=m(8306),o=m(4128),M=m(4004),l=m(5698),R=m(1365),s=m(5577),L=m(262),I=m(2722),A=m(2340),E=m(7731),P=m(8966),w=m(5e3),V=m(7093),j=m(773);let W=(()=>{class ot{constructor(gt,Lt){this.dialogRef=gt,this.data=Lt}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"mat-spinner"),w.TgZ(3,"h1"),w._uU(4),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(4),w.Oqu(Lt.data.titleMessage))},directives:[V.xw,V.Wh,j.$g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),ot})();var te=m(5043),ee=m(7261),ge=m(62),le=m(9808),re=m(3322),de=m(9224),se=m(7423),ye=m(159),v=m(644),i=m(5245),a=m(3390),p=m(6895),u=m(4834);const _=["scrollContainer"];function D(ot,Kt){if(1&ot&&w._UZ(0,"qr-code",15),2&ot){const gt=w.oxw();w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function O(ot,Kt){1&ot&&w.GkF(0)}const x=function(ot){return{"h-40":ot}};function r(ot,Kt){if(1&ot&&(w.ynx(0),w.TgZ(1,"mat-card-content",16,17),w.YNc(3,O,1,0,"ng-container",18),w.qZA(),w.BQk()),2&ot){const gt=w.oxw(),Lt=w.MAs(20);w.xp6(1),w.Q6J("ngClass",w.VKq(2,x,gt.data.scrollable)),w.xp6(2),w.Q6J("ngTemplateOutlet",Lt)}}function b(ot,Kt){1&ot&&w.GkF(0)}function Z(ot,Kt){if(1&ot&&(w.ynx(0),w.TgZ(1,"mat-card-content",19),w.YNc(2,b,1,0,"ng-container",18),w.qZA(),w.BQk()),2&ot){w.oxw();const gt=w.MAs(20);w.xp6(2),w.Q6J("ngTemplateOutlet",gt)}}function N(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function U(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function ve(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"div",20),w.TgZ(1,"button",21),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onScroll()}),w.YNc(2,N,2,0,"mat-icon",22),w.YNc(3,U,2,0,"mat-icon",22),w.qZA(),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(2),w.Q6J("ngIf","DOWN"===gt.scrollDirection),w.xp6(1),w.Q6J("ngIf","UP"===gt.scrollDirection)}}function be(ot,Kt){1&ot&&(w.TgZ(0,"button",24),w._uU(1,"OK"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function Re(ot,Kt){1&ot&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function ze(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.Q6J("payload",gt.showCopyField),w.xp6(1),w.hij("Copy ",gt.showCopyName,"")}}function Oe(ot,Kt){1&ot&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function K(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.Q6J("payload",gt.showQRField),w.xp6(1),w.hij("Copy ",gt.showQRName,"")}}function Me(ot,Kt){if(1&ot&&w._UZ(0,"qr-code",15),2&ot){const gt=w.oxw(2);w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function we(ot,Kt){if(1&ot&&(w.TgZ(0,"p",32),w._uU(1),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function z(ot,Kt){1&ot&&w._UZ(0,"span",46),2&ot&&w.Q6J("innerHTML",Kt.$implicit,w.oJD)}function Ze(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,z,1,1,"span",45),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function vt(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function Fe(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,gt.digitsInfo?gt.digitsInfo:"1.0-3"))}}function Ne(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value?"True":"False")}}function ce(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const Le=function(ot){return{"failed-status":ot}};function Pe(ot,Kt){if(1&ot&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,ce,2,0,"mat-icon",50),w.qZA()),2&ot){const gt=w.oxw(3).$implicit,Lt=w.oxw(4);w.Q6J("ngClass",w.VKq(3,Le,gt.value===Lt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",gt.value," "),w.xp6(1),w.Q6J("ngIf",gt.value===Lt.LoopStateEnum.FAILED)}}function q(ot,Kt){if(1&ot&&w._uU(0),2&ot){const gt=w.oxw(3).$implicit;w.Oqu(gt.value)}}function $(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,Pe,3,5,"p",47),w.YNc(2,q,1,1,"ng-template",null,48,w.W1O),w.BQk()),2&ot){const gt=w.MAs(3),Lt=w.oxw(2).$implicit,ui=w.oxw(4);w.xp6(1),w.Q6J("ngIf","SWAP"===ui.data.openedBy&&"state"===Lt.key)("ngIfElse",gt)}}function oe(ot,Kt){if(1&ot&&(w.TgZ(0,"span"),w.TgZ(1,"span",42),w.YNc(2,Ze,2,1,"ng-container",43),w.YNc(3,vt,3,4,"ng-container",43),w.YNc(4,Fe,3,4,"ng-container",43),w.YNc(5,Ne,2,1,"ng-container",43),w.YNc(6,$,4,2,"ng-container",44),w.qZA(),w.qZA()),2&ot){const gt=w.oxw().$implicit,Lt=w.oxw(4);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function Ce(ot,Kt){1&ot&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function Ue(ot,Kt){if(1&ot&&(w.TgZ(0,"div",37),w.TgZ(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,oe,7,5,"span",39),w.YNc(4,Ce,2,0,"ng-template",null,40,w.W1O),w._UZ(6,"mat-divider",41),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function lt(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.TgZ(1,"div",35),w.YNc(2,Ue,7,4,"div",36),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function nt(ot,Kt){if(1&ot&&(w.TgZ(0,"div",33),w.YNc(1,lt,3,1,"div",34),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}const ft=function(ot){return{"display-none":ot}};function it(ot,Kt){if(1&ot&&(w.TgZ(0,"div",27),w.TgZ(1,"div",28),w.YNc(2,Me,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,we,2,1,"p",30),w.YNc(5,nt,2,1,"div",31),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngClass",w.VKq(4,ft,""===gt.showQRField||gt.screenSize!==gt.screenSizeEnum.XS&>.screenSize!==gt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==gt.showQRField),w.xp6(2),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(1),w.Q6J("ngIf",(null==gt.messageObjs?null:gt.messageObjs.length)>0)}}let rt=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Yi,this.renderer=$i,this.LoopStateEnum=E.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.screenSize="",this.screenSizeEnum=E.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(gt){gt&&(this.scrollContainer=gt,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Lt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Lt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message,this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(gt){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+gt)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(te.mQ),w.Y36(ee.ux),w.Y36(ge.v),w.Y36(w.Qsj))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-alert-message"]],viewQuery:function(gt,Lt){if(1>&&w.Gf(_,5),2>){let ui;w.iGM(ui=w.CRH())&&(Lt.container=ui.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(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.YNc(2,D,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w.TgZ(6,"span",6),w._uU(7),w.qZA(),w.qZA(),w.TgZ(8,"button",7),w.NdJ("click",function(){return Lt.onClose()}),w._uU(9,"X"),w.qZA(),w.qZA(),w.YNc(10,r,4,4,"ng-container",8),w.YNc(11,Z,3,1,"ng-container",8),w.YNc(12,ve,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,be,2,1,"button",11),w.YNc(15,Re,2,1,"button",12),w.YNc(16,ze,2,2,"button",13),w.YNc(17,Oe,2,1,"button",12),w.YNc(18,K,2,2,"button",13),w.qZA(),w.qZA(),w.qZA(),w.YNc(19,it,6,6,"ng-template",null,14,w.W1O)),2>&&(w.xp6(1),w.Q6J("ngClass",w.VKq(12,ft,""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("fxFlex",""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM?"100":"70"),w.xp6(4),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(3),w.Q6J("ngIf",Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",!Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",Lt.data.scrollable&&Lt.shouldScroll),w.xp6(2),w.Q6J("ngIf",(!Lt.showQRField||""===Lt.showQRField)&&""===Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField))},directives:[V.xw,V.Wh,V.yH,le.mk,re.oO,le.O5,de.dk,se.lW,ye.uU,de.dn,v.$V,le.tP,i.Hw,a.h,P.ZT,p.y,le.sg,u.d,le.RF,le.n9,le.ED],pipes:[le.uU,le.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),ot})();var Mt=m(801),Zt=m(7861),Ft=m(5620),Vt=m(3075),Ii=m(9444),jt=m(7322),ei=m(7531),ki=m(6534);function ai(ot,Kt){if(1&ot&&(w.TgZ(0,"div",17),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faExclamationTriangle),w.xp6(2),w.Oqu(gt.warningMessage)}}function hi(ot,Kt){if(1&ot&&(w.TgZ(0,"div",19),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faInfoCircle),w.xp6(2),w.Oqu(gt.informationMessage)}}function Ve(ot,Kt){if(1&ot&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.data.titleMessage)}}function Ee(ot,Kt){1&ot&&w._UZ(0,"span",33),2&ot&&w.Q6J("innerHTML",Kt.$implicit,w.oJD)}function Y(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,Ee,1,1,"span",32),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function pe(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function De(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,"1.0-3"))}}function et(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(!0===gt.value?"True":"False")}}function $t(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value)}}function Nt(ot,Kt){if(1&ot&&(w.TgZ(0,"span"),w.TgZ(1,"span",29),w.YNc(2,Y,2,1,"ng-container",30),w.YNc(3,pe,3,4,"ng-container",30),w.YNc(4,De,3,4,"ng-container",30),w.YNc(5,et,2,1,"ng-container",30),w.YNc(6,$t,2,1,"ng-container",31),w.qZA(),w.qZA()),2&ot){const gt=w.oxw().$implicit,Lt=w.oxw(3);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function Jt(ot,Kt){1&ot&&(w.TgZ(0,"span",34),w._uU(1,"\xa0"),w.qZA())}function ct(ot,Kt){if(1&ot&&(w.TgZ(0,"div",24),w.TgZ(1,"h4",25),w._uU(2),w.qZA(),w.YNc(3,Nt,7,5,"span",26),w.YNc(4,Jt,2,0,"ng-template",null,27,w.W1O),w._UZ(6,"mat-divider",28),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function ke(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.TgZ(1,"div",22),w.YNc(2,ct,7,4,"div",23),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function Be(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.YNc(1,ke,3,1,"div",21),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}function at(ot,Kt){if(1&ot&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function st(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"input",41),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&ot){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function At(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"input",42),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&ot){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function li(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&ot){const gt=w.oxw().$implicit;w.xp6(1),w.hij("",gt.placeholder," is required.")}}function Bt(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-form-field",38),w.YNc(1,st,2,9,"input",39),w.YNc(2,At,2,9,"input",40),w.YNc(3,li,2,1,"mat-error",11),w.TgZ(4,"mat-hint"),w._uU(5),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=Kt.index;w.Q6J("fxFlex",gt.width),w.xp6(1),w.Q6J("ngIf",0===Lt),w.xp6(1),w.Q6J("ngIf",0!==Lt),w.xp6(1),w.Q6J("ngIf",!gt.inputValue),w.xp6(2),w.Oqu(gt.hintFunction?gt.hintFunction(gt.inputValue):gt.hintText)}}function Rt(ot,Kt){if(1&ot&&(w.TgZ(0,"div",35),w.YNc(1,at,2,1,"p",10),w.TgZ(2,"div",36),w.YNc(3,Bt,6,5,"mat-form-field",37),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(2),w.Q6J("ngForOf",gt.getInputs)}}function Li(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){w.CHM(gt);const ui=w.oxw();return ui.onClose(ui.getInputs)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}function si(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",44),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onClose(!0)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}let ci=(()=>{class ot{constructor(gt,Lt,ui,Ci){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.store=Ci,this.faInfoCircle=Mt.sqG,this.faExclamationTriangle=Mt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=E.n_,this.dataTypeEnum=E.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===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(gt){if(gt&&this.getInputs&&this.getInputs.some(Lt=>void 0===Lt.inputValue))return!0;this.store.dispatch((0,Zt.yb)({payload:gt}))}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(te.mQ),w.Y36(Ft.yh))},ot.\u0275cmp=w.Xpm({type:ot,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(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.TgZ(2,"mat-card-header",2),w.TgZ(3,"div",3),w.TgZ(4,"span",4),w._uU(5),w.qZA(),w.qZA(),w.TgZ(6,"button",5),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(7,"X"),w.qZA(),w.qZA(),w.TgZ(8,"mat-card-content",6),w.TgZ(9,"form",7),w.YNc(10,ai,4,2,"div",8),w.YNc(11,hi,4,2,"div",9),w.YNc(12,Ve,2,1,"p",10),w.YNc(13,Be,2,1,"div",11),w.YNc(14,Rt,4,2,"div",12),w.TgZ(15,"div",13),w.TgZ(16,"button",14),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(17),w.qZA(),w.YNc(18,Li,2,1,"button",15),w.YNc(19,si,2,1,"button",16),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(5),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(5),w.Q6J("ngIf",Lt.warningMessage&&""!==Lt.warningMessage),w.xp6(1),w.Q6J("ngIf",Lt.informationMessage&&""!==Lt.informationMessage),w.xp6(1),w.Q6J("ngIf",Lt.data.titleMessage&&!Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",(null==Lt.messageObjs?null:Lt.messageObjs.length)>0),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(3),w.Oqu(Lt.noBtnText),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",!Lt.flgShowInput))},directives:[V.xw,V.yH,de.dk,V.Wh,se.lW,de.dn,Vt._Y,Vt.JL,Vt.F,le.O5,Ii.BN,le.sg,u.d,le.RF,le.n9,le.ED,jt.KE,jt.bx,ei.Nt,ki.q,Vt.Fj,a.h,Vt.Q7,Vt.JJ,Vt.On,jt.TO],pipes:[le.uU,le.JJ,le.i8],styles:[""]}),ot})();var sn=m(1786),Ui=m(4107),Di=m(508);function Xi(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-option",23),w._uU(1),w.qZA()),2&ot){const gt=Kt.$implicit;w.Q6J("value",gt),w.xp6(1),w.hij(" ",gt.infoName," ")}}function Ke(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"div",13),w.TgZ(1,"mat-form-field",20),w.TgZ(2,"mat-select",21),w.NdJ("valueChange",function(ui){return w.CHM(gt),w.oxw().selInfoType=ui}),w.YNc(3,Xi,2,2,"mat-option",22),w.qZA(),w.qZA(),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(2),w.Q6J("value",gt.selInfoType),w.xp6(1),w.Q6J("ngForOf",gt.infoTypes)}}const _t=function(ot){return{"display-none":ot}};let _e=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Yi,this.faReceipt=Mt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=E.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((gt,Lt)=>{this.infoTypes.push({infoID:Lt+1,infoKey:"node URI "+(Lt+1),infoName:"Node URI "+(Lt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(gt){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+gt)}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(te.mQ),w.Y36(ee.ux),w.Y36(ge.v))},ot.\u0275cmp=w.Xpm({type:ot,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(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w._UZ(6,"fa-icon",6),w.TgZ(7,"span",7),w._uU(8),w.qZA(),w.qZA(),w.TgZ(9,"button",8),w.NdJ("click",function(){return Lt.onClose()}),w._uU(10,"X"),w.qZA(),w.qZA(),w.TgZ(11,"mat-card-content",9),w.TgZ(12,"div",10),w.TgZ(13,"div",11),w._UZ(14,"qr-code",2),w.qZA(),w.YNc(15,Ke,4,2,"div",12),w.TgZ(16,"div",13),w.TgZ(17,"div",14),w.TgZ(18,"h4",15),w._uU(19),w.qZA(),w.TgZ(20,"span",16),w._uU(21),w.qZA(),w.qZA(),w.qZA(),w._UZ(22,"mat-divider",17),w.TgZ(23,"div",18),w.TgZ(24,"button",19),w.NdJ("copied",function(Ci){return Lt.onCopyPubkey(Ci)}),w._uU(25),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(1),w.Q6J("ngClass",w.VKq(15,_t,Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(4),w.Q6J("icon",Lt.faReceipt),w.xp6(2),w.Oqu(Lt.selInfoType.infoName),w.xp6(5),w.Q6J("ngClass",w.VKq(17,_t,Lt.screenSize!==Lt.screenSizeEnum.XS&&Lt.screenSize!==Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(1),w.Q6J("ngIf",Lt.information.uris&&Lt.information.uris.length>0),w.xp6(4),w.Oqu(Lt.selInfoType.infoName),w.xp6(2),w.Oqu(0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(3),w.s9C("payload",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(1),w.hij("Copy ",Lt.selInfoType.infoKey,""))},directives:[V.xw,V.Wh,V.yH,le.mk,re.oO,ye.uU,de.dk,Ii.BN,se.lW,de.dn,le.O5,u.d,a.h,p.y,jt.KE,Ui.gD,le.sg,Di.ey],styles:[""]}),ot})();var qe=m(6523),yt=m(429),ue=m(2994),Je=m(8377),St=m(8138),kt=m(7998),yi=m(5986),Ni=m(8104),Si=m(1402);let qi=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i,Cn,Ln,_n,kn,dr){this.actions=gt,this.httpClient=Lt,this.store=ui,this.logger=Ci,this.wsService=Yi,this.sessionService=$i,this.commonService=Cn,this.dataService=Ln,this.dialog=_n,this.snackBar=kn,this.router=dr,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new t.x,new t.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALL_DIALOGS),(0,M.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SNACK_BAR),(0,M.U)(wi=>{"string"==typeof wi.payload?this.snackBar.open(wi.payload):this.snackBar.open(wi.payload.message,"","ERROR"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SPINNER),(0,M.U)(wi=>{wi.payload!==E.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(W,{data:{titleMessage:wi.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_SPINNER),(0,M.U)(wi=>{if(wi.payload!==E.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===wi.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Fi=>{Fi.componentInstance&&Fi.componentInstance.data&&Fi.componentInstance.data.titleMessage&&Fi.componentInstance.data.titleMessage===wi.payload&&Fi.close()})}catch(Fi){this.logger.error(Fi)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_ALERT),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.alertWidth),this.dialogRef=this.dialog.open(wi.payload.data.component?wi.payload.data.component:rt,Fi)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALERT),(0,M.U)(wi=>(this.dialogRef&&this.dialogRef.close(),wi.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_CONFIRMATION),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.confirmWidth),this.dialogRef=this.dialog.open(ci,Fi)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_CONFIRMATION),(0,l.q)(1),(0,M.U)(wi=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(wi.payload),wi.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_PUBKEY),(0,R.M)(this.store.select(Je.R4)),(0,s.z)(([wi,Fi])=>(this.sessionService.getItem("token")&&Fi.identity_pubkey?this.store.dispatch((0,Zt.qR)({payload:{data:{information:Fi,component:_e}}})):this.snackBar.open("Node Pubkey does not exist."),(0,y.of)({type:E.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_RTL_CONFIG),(0,s.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===E.cu.XS||this.screenSize===E.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===E.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,Zt.ac)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(A.NZ.CONF_API+"/rtlconf"):this.httpClient.get(A.NZ.CONF_API+"/rtlconfinit"))),(0,M.U)(wi=>{let Fi;return this.logger.info(wi),this.store.dispatch((0,Zt.uO)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.COMPLETED}})),wi.nodes.forEach(dn=>{dn.settings.currencyUnits=[...E.uA,dn.settings.currencyUnit],+dn.index===wi.selectedNodeIndex&&(Fi=dn)}),Fi?(this.store.dispatch((0,Zt.fk)({payload:{uiMessage:E.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Fi,isInitialSetup:!0}})),{type:E.pg.SET_RTL_CONFIG,payload:wi}):{type:E.pg.VOID}}),(0,L.K)(wi=>(this.handleErrorWithAlert("FetchRTLConfig",E.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",A.NZ.CONF_API,wi),(0,y.of)({type:E.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SAVE_SETTINGS),(0,s.z)(wi=>{this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSettings",status:E.Bn.INITIATED}}));let Fi=new C.y;if(wi.payload.settings&&wi.payload.defaultNodeIndex){const dn=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}),Lr=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex});Fi=(0,o.D)([dn,Lr])}else wi.payload.settings&&!wi.payload.defaultNodeIndex?Fi=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}):!wi.payload.settings&&wi.payload.defaultNodeIndex&&(Fi=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex}));return Fi.pipe((0,M.U)(dn=>(this.logger.info(dn),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),{type:E.pg.OPEN_SNACK_BAR,payload:dn.length?dn[0].message+".":dn.message+"."})),(0,L.K)(dn=>(this.handleErrorWithAlert("UpdateSettings",wi.payload.uiMessage,"Update Settings Failed!",A.NZ.CONF_API,dn.length?dn[0]:dn),(0,y.of)({type:E.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.UPDATE_SERVICE_SETTINGS),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateServiceSettings",wi.payload).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.Tm)({payload:wi.payload})),{type:E.pg.OPEN_SNACK_BAR,payload:Fi.message+"."})),(0,L.K)(Fi=>(this.handleErrorWithAlert("UpdateServiceSettings",wi.payload.uiMessage,"Update Service Settings Failed!",A.NZ.CONF_API,Fi),(0,y.of)({type:E.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.TWO_FA_SAVE_SETTINGS),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Zt.qi)({payload:{action:"Update2FASettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/update2FA",{secret2fa:wi.payload.secret2fa}))),(0,R.M)(this.store.select(Je.Yj)),(0,M.U)(([wi,Fi])=>{this.logger.info(wi),Fi.enable2FA=!Fi.enable2FA,this.store.dispatch((0,Zt.qi)({payload:{action:"Update2FASettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Zt.XT)({payload:Fi}))}),(0,L.K)(wi=>(this.handleErrorWithAlert("Update2FASettings",E.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",A.NZ.CONF_API,wi),(0,y.of)({type:E.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_CONFIG),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Zt.qi)({payload:{action:"fetchConfig",status:E.Bn.INITIATED}})),this.httpClient.get(A.NZ.CONF_API+"/config/"+wi.payload).pipe((0,M.U)(Fi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"fetchConfig",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.OPEN_CONFIG_FILE})),{type:E.pg.SHOW_CONFIG,payload:Fi})),(0,L.K)(Fi=>(this.handleErrorWithAlert("fetchConfig",E.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",A.NZ.CONF_API+"/config/"+wi.payload,Fi),(0,y.of)({type:E.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_CONFIG),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED),(0,s.z)(wi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"IsAuthorized",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload&&""!==wi.payload.trim()?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload&&""!==wi.payload.trim()?wi.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"IsAuthorized",status:E.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:E.pg.IS_AUTHORIZED_RES,payload:Fi})),(0,L.K)(Fi=>(this.handleErrorWithAlert("IsAuthorized",E.m6.NO_SPINNER,"Authorization Failed",A.NZ.AUTHENTICATE_API,Fi),(0,y.of)({type:E.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED_RES),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGIN),(0,R.M)(this.store.select(Je.Yj)),(0,s.z)(([wi,Fi])=>(this.store.dispatch((0,qe.Ll)({payload:null})),this.store.dispatch((0,yt.xH)({payload:null})),this.store.dispatch((0,ue.Fd)({payload:null})),this.store.dispatch((0,Zt.qi)({payload:{action:"Login",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload.password?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload.password?wi.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:wi.payload.twoFAToken?wi.payload.twoFAToken:""}).pipe((0,M.U)(dn=>{this.logger.info(dn),this.store.dispatch((0,Zt.qi)({payload:{action:"Login",status:E.Bn.COMPLETED}})),this.setLoggedInDetails(wi.payload.defaultPassword,dn)}),(0,L.K)(dn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",E.m6.NO_SPINNER,dn),+Fi.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:dn.error&&dn.error.error?dn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,y.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.VERIFY_TWO_FA),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Zt.qi)({payload:{action:"VerifyToken",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/token",{authentication2FA:wi.payload.token}).pipe((0,M.U)(Fi=>{this.logger.info(Fi),this.store.dispatch((0,Zt.uO)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Zt.qi)({payload:{action:"VerifyToken",status:E.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,wi.payload.authResponse)}),(0,L.K)(Fi=>(this.handleErrorWithAlert("VerifyToken",E.m6.VERIFY_TOKEN,"Authorization Failed!",A.NZ.AUTHENTICATE_API+"/token",Fi),(0,y.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGOUT),(0,R.M)(this.store.select(Je.Yj)),(0,s.z)(([wi,Fi])=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.LOG_OUT})),this.httpClient.get(A.NZ.AUTHENTICATE_API+"/logout").pipe((0,M.U)(dn=>{this.logger.info(dn),this.store.dispatch((0,Zt.uO)({payload:E.m6.LOG_OUT})),+Fi.sso.rtlSSO?window.location.href=Fi.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,Zt._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,I.R)(this.unSubs[1]),(0,e.l4)(E.pg.RESET_PASSWORD),(0,s.z)(wi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"ResetPassword",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/reset",{currPassword:wi.payload.currPassword,newPassword:wi.payload.newPassword}).pipe((0,I.R)(this.unSubs[0]),(0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"ResetPassword",status:E.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Zt.jW)({payload:"Password Reset Successful!"})),this.SetToken(Fi.token),{type:E.pg.RESET_PASSWORD_RES,payload:Fi.token})),(0,L.K)(Fi=>(this.handleErrorWithAlert("ResetPassword",E.m6.NO_SPINNER,"Password Reset Failed!",A.NZ.AUTHENTICATE_API+"/reset",Fi),(0,y.of)({type:E.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SET_SELECTED_NODE),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateSelNode",{prevNodeIndex:wi.payload.prevLnNodeIndex,currNodeIndex:wi.payload.currentLnNode.index}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),this.initializeNode(wi.payload.currentLnNode,wi.payload.isInitialSetup),{type:E.pg.VOID})),(0,L.K)(Fi=>(this.handleErrorWithAlert("UpdateSelNode",wi.payload.uiMessage,"Update Selected Node Failed!",A.NZ.CONF_API+"/updateSelNode",Fi),(0,y.of)({type:E.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_FILE),(0,s.z)(wi=>{this.store.dispatch((0,Zt.ac)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchFile",status:E.Bn.INITIATED}}));const Fi="?channel="+wi.payload.channelPoint+(wi.payload.path?"&path="+wi.payload.path:"");return this.httpClient.get(A.NZ.CONF_API+"/file"+Fi).pipe((0,M.U)(dn=>(this.store.dispatch((0,Zt.qi)({payload:{action:"FetchFile",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),{type:E.pg.SHOW_FILE,payload:dn})),(0,L.K)(dn=>(this.handleErrorWithAlert("fetchFile",E.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",A.NZ.CONF_API+"/file"+Fi,{status:this.commonService.extractErrorNumber(dn),error:{error:this.commonService.extractErrorCode(dn)}}),(0,y.of)({type:E.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_FILE),(0,M.U)(wi=>wi.payload)),{dispatch:!1})}initializeNode(gt,Lt){this.logger.info("Initializing node from RTL Effects.");const ui=Lt?"":"HOME";let Ci={};if(Ci=gt.settings.fiatConversion&>.settings.currencyUnit?{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:[...E.uA,gt.settings.currencyUnit],fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers}:{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:E.uA,fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,Zt.vI)({payload:gt})),this.store.dispatch((0,qe.Ll)({payload:Ci})),this.store.dispatch((0,yt.xH)({payload:Ci})),this.store.dispatch((0,ue.Fd)({payload:Ci})),this.sessionService.getItem("token")){const Yi=gt.lnImplementation?gt.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Yi);const $i=A.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":A.T5;switch(this.wsService.connectWebSocket($i.replace(/^http/,"ws")+A.NZ.Web_SOCKET_API,gt.index.toString()),Yi){case"CLN":this.store.dispatch((0,yt.CN)({payload:{loadPage:ui}}));break;case"ECL":this.store.dispatch((0,ue.iz)({payload:{loadPage:ui}}));break;default:this.store.dispatch((0,qe.sQ)({payload:{loadPage:ui}}))}}}SetToken(gt){gt?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",gt)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(gt,Lt){this.logger.info("Successfully Authorized!"),this.SetToken(Lt.token),this.sessionService.setItem("defaultPassword",gt),gt?(this.store.dispatch((0,Zt.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Zt.ey)())}handleErrorWithoutAlert(gt,Lt,ui){this.logger.error("ERROR IN: "+gt+"\n"+JSON.stringify(ui)),401===ui.status&&"Login"!==gt?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Zt.ts)()),this.store.dispatch((0,Zt.kS)()),this.store.dispatch((0,Zt.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,Zt.uO)({payload:Lt})),this.store.dispatch((0,Zt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:ui.status?ui.status.toString():"",message:this.commonService.extractErrorMessage(ui)}})))}handleErrorWithAlert(gt,Lt,ui,Ci,Yi){if(this.logger.error(Yi),0===Yi.status&&Yi.statusText&&"Unknown Error"===Yi.statusText&&(Yi={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Yi.status&&"Login"!==gt)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Zt.ts)()),this.store.dispatch((0,Zt.kS)()),this.store.dispatch((0,Zt.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,Zt.uO)({payload:Lt}));const $i=this.commonService.extractErrorMessage(Yi);this.store.dispatch((0,Zt.qR)({payload:{data:{type:"ERROR",alertTitle:ui,message:{code:Yi.status?Yi.status:"Unknown Error",message:$i,URL:Ci},component:sn.H}}})),this.store.dispatch((0,Zt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:Yi.status?Yi.status.toString():"",message:$i,URL:Ci}}))}}ngOnDestroy(){this.unSubs.forEach(gt=>{gt.next(null),gt.complete()})}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.LFG(e.eX),w.LFG(St.eN),w.LFG(Ft.yh),w.LFG(te.mQ),w.LFG(kt.d),w.LFG(yi.m),w.LFG(ge.v),w.LFG(Ni.D),w.LFG(P.uw),w.LFG(ee.ux),w.LFG(Si.F0))},ot.\u0275prov=w.Yz7({token:ot,factory:ot.\u0275fac}),ot})()},8377:(Ge,Q,m)=>{"use strict";m.d(Q,{dT:()=>C,Yj:()=>o,R4:()=>M,ul:()=>l,Sr:()=>R,gW:()=>s});var e=m(5620);const t=(0,e.ZF)("root"),C=((0,e.P1)(t,L=>L.apiURL),(0,e.P1)(t,L=>L.selNode)),o=(0,e.P1)(t,L=>L.appConfig),M=(0,e.P1)(t,L=>L.nodeData),l=(0,e.P1)(t,L=>L.apisCallStatus.Login),R=(0,e.P1)(t,L=>L.apisCallStatus.IsAuthorized),s=(0,e.P1)(t,L=>({nodeDate:L.nodeData,selNode:L.selNode}))},2340:(Ge,Q,m)=>{"use strict";m.d(Q,{T5:()=>e,NZ:()=>t,q4:()=>y});const e="./api",t={production:!0,isDebugMode:!1,AUTHENTICATE_API:e+"/authenticate",CONF_API:e+"/conf",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},y="0.12.4-beta"},8864:(Ge,Q,m)=>{"use strict";var e=m(2313),t=m(5e3),y=m(6360),C=m(8138),o=m(5113),M=m(5620),l=m(6642),R=m(9565),s=m(7579),L=m(6451),I=m(4968),A=m(457),E=m(4986),P=m(2805);function w(X=0,He=E.z){return X<0&&(X=0),(0,P.H)(X,X,He)}var V=m(9646),j=m(727),W=m(4482),te=m(5403),ee=m(8737),ge=m(3269),le=m(9672),de=m(9300),se=m(8505),ye=m(3900),v=m(2722),i=m(8746),a=m(1884),p=m(4004);class u{}class _{constructor(He,B){this._ngZone=B,this.timerStart$=new s.x,this.idleDetected$=new s.x,this.timeout$=new s.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,He&&this.setConfig(He)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,L.T)((0,I.R)(window,"mousemove"),(0,I.R)(window,"resize"),(0,I.R)(document,"keydown"))),this.idle$=(0,A.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function re(X,...He){var B,Ae;const pt=null!==(B=(0,ge.yG)(He))&&void 0!==B?B:E.z,fi=null!==(Ae=He[0])&&void 0!==Ae?Ae:null,In=He[1]||1/0;return(0,W.e)((tr,Fn)=>{let Br=[],ya=!1;const sr=fo=>{const{buffer:xc,subs:jo}=fo;jo.unsubscribe(),(0,ee.P)(Br,fo),Fn.next(xc),ya&&Na()},Na=()=>{if(Br){const fo=new j.w0;Fn.add(fo);const jo={buffer:[],subs:fo};Br.push(jo),(0,le.f)(fo,pt,()=>sr(jo),X)}};null!==fi&&fi>=0?(0,le.f)(Fn,pt,Na,fi,!0):ya=!0,Na();const Wo=new te.Q(Fn,fo=>{const xc=Br.slice();for(const jo of xc){const{buffer:w0}=jo;w0.push(fo),In<=w0.length&&sr(jo)}},()=>{for(;null==Br?void 0:Br.length;)Fn.next(Br.shift().buffer);null==Wo||Wo.unsubscribe(),Fn.complete(),Fn.unsubscribe()},void 0,()=>Br=null);tr.subscribe(Wo)})}(this.idleSensitivityMillisec),(0,de.h)(He=>!He.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,se.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,ye.w)(()=>this._ngZone.runOutsideAngular(()=>w(1e3).pipe((0,v.R)((0,L.T)(this.activityEvents$,(0,P.H)(this.idleMillisec).pipe((0,se.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,a.x)(),(0,ye.w)(He=>He?this.timer$:(0,V.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,de.h)(He=>!!He),(0,se.b)(()=>this.isTimeout=!0),(0,p.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(He){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(He):console.error("Call stopWatching() before set config values")}setConfig(He){He.idle&&(this.idleMillisec=1e3*He.idle),He.ping&&(this.pingMillisec=1e3*He.ping),He.idleSensitivity&&(this.idleSensitivityMillisec=1e3*He.idleSensitivity),He.timeout&&(this.timeout=He.timeout)}setCustomActivityEvents(He){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=He:console.error("Call stopWatching() before set custom activity events")}setupTimer(He){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,V.of)(()=>new Date).pipe((0,p.U)(B=>B()),(0,ye.w)(B=>w(1e3).pipe((0,p.U)(()=>Math.round(((new Date).valueOf()-B.valueOf())/1e3)),(0,se.b)(Ae=>{Ae>=He&&this.timeout$.next(!0)}))))})}setupPing(He){this.ping$=w(He).pipe((0,de.h)(()=>!this.isTimeout))}}_.\u0275fac=function(He){return new(He||_)(t.LFG(u,8),t.LFG(t.R0b))},_.\u0275prov=t.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_.ngInjectableDef=(0,t.Ez6)({factory:function(){return new _((0,t.f3M)(u,8),(0,t.f3M)(t.R0b))},token:_,providedIn:"root"});let D=(()=>{class X{static forRoot(B){return{ngModule:X,providers:[{provide:u,useValue:B}]}}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275mod=t.oAB({type:X}),X.\u0275inj=t.cJS({imports:[[]]}),X})();var O=m(1402),x=m(801),r=m(8377),b=m(7093),Z=m(9444),N=m(9224),U=m(3251),ve=m(9808);const be=function(){return{initial:!1}};function Re(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[1].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[1].link),t.Q6J("active",B.activeLink===B.links[1].link)("state",t.DdM(4,be)),t.xp6(1),t.Oqu(B.links[1].name)}}function ze(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[2].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[2].link),t.Q6J("active",B.activeLink===B.links[2].link),t.xp6(1),t.Oqu(B.links[2].name)}}let Oe=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faUserCog=x.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[1])).subscribe(Ae=>{this.appConfig=Ae}),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[2])).subscribe(Ae=>{this.showBitcoind=!1,this.selNode=Ae,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Settings"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,Re,2,5,"div",7),t.YNc(11,ze,2,3,"div",8),t.qZA(),t.TgZ(12,"div",9),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faUserCog),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.Q6J("ngIf",!+Ae.appConfig.sso.rtlSSO),t.xp6(1),t.Q6J("ngIf",Ae.showBitcoind))},directives:[b.xw,b.Wh,Z.BN,N.a8,N.dn,U.BU,U.Nj,O.rH,ve.O5,b.yH,O.lC],styles:[""]}),X})();var K=m(7731),Me=m(7861),we=m(5043),z=m(644),Ze=m(3075),vt=m(7322),Fe=m(4107),Ne=m(3390),ce=m(7423),Le=m(508);function Pe(X,He){if(1&X&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.index),t.xp6(1),t.AsE(" ",B.lnNode," (",B.lnImplementation,") ")}}function q(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",2,3),t.TgZ(2,"div",4),t._UZ(3,"fa-icon",5),t.TgZ(4,"span",6),t._uU(5,"Default Node"),t.qZA(),t.qZA(),t.TgZ(6,"div",7),t.TgZ(7,"div",8),t._UZ(8,"fa-icon",9),t.TgZ(9,"span"),t._uU(10,"The setting will apply after RTL server restarts."),t.qZA(),t.qZA(),t.TgZ(11,"div",10),t.TgZ(12,"mat-form-field",10),t.TgZ(13,"mat-select",11),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().appConfig.defaultNodeIndex=pt}),t.YNc(14,Pe,2,3,"mat-option",12),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",13),t.TgZ(16,"div",10),t.TgZ(17,"button",14),t.NdJ("click",function(){return t.CHM(B),t.oxw().onResetSettings()}),t._uU(18,"Reset"),t.qZA(),t.TgZ(19,"button",15),t.NdJ("click",function(){return t.CHM(B),t.oxw().onUpdateSettings()}),t._uU(20,"Update"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(3),t.Q6J("icon",B.faWindowRestore),t.xp6(5),t.Q6J("icon",B.faInfoCircle),t.xp6(5),t.Q6J("ngModel",B.appConfig.defaultNodeIndex),t.xp6(1),t.Q6J("ngForOf",B.appConfig.nodes)}}let $=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.faWindowRestore=x.wyP,this.faPlus=x.r8p,this.previousDefaultNode=0,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{this.appConfig=B,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(B)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Me.zQ)({payload:{uiMessage:K.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(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.YNc(1,q,21,4,"form",1),t.qZA()),2&B&&(t.xp6(1),t.Q6J("ngIf",Ae.appConfig.nodes&&Ae.appConfig.nodes.length&&Ae.appConfig.nodes.length>0))},directives:[b.xw,b.yH,z.$V,ve.O5,Ze._Y,Ze.JL,Ze.F,b.Wh,Z.BN,vt.KE,Fe.gD,Ne.h,Ze.JJ,Ze.On,ve.sg,ce.lW,Le.ey],styles:[""]}),X})();var oe=m(8012),Ce=m(5698),Ue=m(8966),lt=m(5768),nt=m(3093),ft=m(7261),it=m(5615),rt=m(7531),Mt=m(6895),Zt=m(159);const Ft=["stepper"];function Vt(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw();t.Oqu(B.passwordFormLabel)}}function Ii(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function jt(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.secretFormLabel)}}function ei(X,He){if(1&X&&t._UZ(0,"qr-code",32),2&X){const B=t.oxw(2);t.Q6J("value",B.otpauth)("size",180)("errorCorrectionLevel","L")}}function ki(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Secret Code is required."),t.qZA())}function ai(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-step",10),t.TgZ(1,"form",21),t.YNc(2,jt,1,1,"ng-template",22),t.TgZ(3,"div",23),t.YNc(4,ei,1,3,"qr-code",24),t.qZA(),t.TgZ(5,"div",25),t._UZ(6,"fa-icon",26),t.TgZ(7,"span"),t._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),t.qZA(),t.qZA(),t.TgZ(9,"div",27),t.TgZ(10,"mat-form-field",1),t._UZ(11,"input",28),t.TgZ(12,"fa-icon",29),t.NdJ("copied",function(pt){return t.CHM(B),t.oxw().onCopySecret(pt)}),t.qZA(),t.YNc(13,ki,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(14,"div",30),t.TgZ(15,"button",31),t._uU(16,"Next"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("stepControl",B.secretFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.secretFormGroup),t.xp6(3),t.Q6J("ngIf",B.otpauth),t.xp6(2),t.Q6J("icon",B.faInfoCircle),t.xp6(6),t.Q6J("icon",B.faCopy)("payload",null==B.secretFormGroup||null==B.secretFormGroup.controls||null==B.secretFormGroup.controls.secret?null:B.secretFormGroup.controls.secret.value),t.xp6(1),t.Q6J("ngIf",null==B.secretFormGroup||null==B.secretFormGroup.controls||null==B.secretFormGroup.controls.secret||null==B.secretFormGroup.controls.secret.errors?null:B.secretFormGroup.controls.secret.errors.required)}}function hi(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.tokenFormLabel)}}function Ve(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}function Ee(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is invalid."),t.qZA())}function Y(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",27),t.TgZ(2,"mat-form-field",1),t._UZ(3,"input",36),t.YNc(4,Ve,2,0,"mat-error",14),t.YNc(5,Ee,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(6,"div",30),t.TgZ(7,"button",37),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onVerifyToken()}),t._uU(8),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(4),t.Q6J("ngIf",null==B.tokenFormGroup||null==B.tokenFormGroup.controls||null==B.tokenFormGroup.controls.token||null==B.tokenFormGroup.controls.token.errors?null:B.tokenFormGroup.controls.token.errors.required),t.xp6(1),t.Q6J("ngIf",null==B.tokenFormGroup||null==B.tokenFormGroup.controls||null==B.tokenFormGroup.controls.token||null==B.tokenFormGroup.controls.token.errors?null:B.tokenFormGroup.controls.token.errors.notValid),t.xp6(3),t.Oqu(null!=B.tokenFormGroup&&null!=B.tokenFormGroup.controls&&null!=B.tokenFormGroup.controls.token&&null!=B.tokenFormGroup.controls.token.errors&&B.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function pe(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Success! You are all set."),t.qZA(),t.qZA())}function De(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,hi,1,1,"ng-template",12),t.YNc(3,Y,9,3,"div",35),t.YNc(4,pe,3,0,"div",14),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.Q6J("stepControl",B.tokenFormGroup),t.xp6(1),t.Q6J("formGroup",B.tokenFormGroup),t.xp6(2),t.Q6J("ngIf",!B.flgValidated||!B.isTokenValid),t.xp6(1),t.Q6J("ngIf",B.flgValidated&&B.isTokenValid)}}function et(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.disableFormLabel)}}function $t(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",38),t._UZ(2,"fa-icon",26),t.TgZ(3,"span"),t._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),t.qZA(),t.qZA(),t.TgZ(5,"div",30),t.TgZ(6,"button",37),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onVerifyToken()}),t._uU(7,"Disable"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(2),t.Q6J("icon",B.faExclamationTriangle)}}function Nt(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Two factor authentication removed from RTL."),t.qZA(),t.qZA())}function Jt(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,et,1,1,"ng-template",12),t.YNc(3,$t,8,1,"div",35),t.YNc(4,Nt,3,0,"div",14),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.Q6J("stepControl",B.disableFormGroup),t.xp6(1),t.Q6J("formGroup",B.disableFormGroup),t.xp6(2),t.Q6J("ngIf",!B.flgValidated||!B.isTokenValid),t.xp6(1),t.Q6J("ngIf",B.flgValidated&&B.isTokenValid)}}let ct=(()=>{class X{constructor(B,Ae,pt,fi,In,tr){this.dialogRef=B,this.data=Ae,this.store=pt,this.formBuilder=fi,this.rtlEffects=In,this.snackBar=tr,this.faExclamationTriangle=x.eHv,this.faCopy=x.kZ_,this.faInfoCircle=x.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:["",[Ze.kI.required]],password:["",[Ze.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Ze.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Ze.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new s.x,new s.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},Ze.kI.required]})}generateSecret(){const B=lt.authenticator.generateSecret();return this.otpauth=lt.authenticator.keyuri("","Ride The Lightning (RTL)",B),B}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Me.QO)({payload:oe(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Ce.q)(1)).subscribe(B=>{"ERROR"!==B?(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(B){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch((0,Me.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=lt.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch((0,Me.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(B){switch(B.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}B.selectedIndex{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Ze.qu),t.Y36(nt.V),t.Y36(ft.ux))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-two-factor-auth"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(Ft,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Setup Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.TgZ(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(fi){return Ae.stepSelectionChanged(fi)}),t.TgZ(12,"mat-step",10),t.TgZ(13,"form",11),t.YNc(14,Vt,1,1,"ng-template",12),t.TgZ(15,"div",0),t.TgZ(16,"mat-form-field",1),t._UZ(17,"input",13),t.YNc(18,Ii,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(19,"div",15),t.TgZ(20,"button",16),t.NdJ("click",function(){return Ae.onAuthenticate()}),t._uU(21,"Confirm"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(22,ai,17,8,"mat-step",17),t.YNc(23,De,5,4,"mat-step",18),t.YNc(24,Jt,5,4,"mat-step",18),t.qZA(),t.TgZ(25,"div",19),t.TgZ(26,"button",20),t._uU(27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(4),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",Ae.passwordFormGroup)("editable",Ae.flgEditable),t.xp6(1),t.Q6J("formGroup",Ae.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==Ae.passwordFormGroup||null==Ae.passwordFormGroup.controls||null==Ae.passwordFormGroup.controls.password||null==Ae.passwordFormGroup.controls.password.errors?null:Ae.passwordFormGroup.controls.password.errors.required),t.xp6(4),t.Q6J("ngIf",!Ae.showDisableStepper),t.xp6(1),t.Q6J("ngIf",!Ae.showDisableStepper),t.xp6(1),t.Q6J("ngIf",Ae.showDisableStepper),t.xp6(2),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(Ae.flgValidated&&Ae.isTokenValid?"Close":"Cancel"))},directives:[b.xw,b.yH,N.dk,b.Wh,ce.lW,Ue.ZT,N.dn,it.Vq,it.C0,Ze._Y,Ze.JL,Ze.sg,it.VY,vt.KE,rt.Nt,Ze.Fj,Ne.h,Ze.JJ,Ze.u,Ze.Q7,ve.O5,vt.TO,Z.BN,vt.R9,Mt.y,it.Ic,Zt.uU],styles:[""]}),X})();var ke=m(5986),Be=m(4834);const at=["authForm"];function st(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Current password is required."),t.qZA())}function At(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.errorMsg)}}function li(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.errorConfirmMsg)}}function Bt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",10,11),t.TgZ(2,"div",12),t._UZ(3,"fa-icon",4),t.TgZ(4,"span",5),t._uU(5,"Password"),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field"),t.TgZ(7,"input",13),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().currPassword=pt}),t.qZA(),t.YNc(8,st,2,0,"mat-error",14),t.qZA(),t.TgZ(9,"mat-form-field"),t.TgZ(10,"input",15),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().newPassword=pt}),t.qZA(),t.YNc(11,At,2,1,"mat-error",14),t.qZA(),t.TgZ(12,"mat-form-field"),t.TgZ(13,"input",16),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().confirmPassword=pt}),t.qZA(),t.YNc(14,li,2,1,"mat-error",14),t.qZA(),t.TgZ(15,"div",17),t.TgZ(16,"button",18),t.NdJ("click",function(){return t.CHM(B),t.oxw().onResetPassword()}),t._uU(17,"Reset"),t.qZA(),t.TgZ(18,"button",19),t.NdJ("click",function(){return t.CHM(B),t.oxw().onChangePassword()}),t._uU(19,"Change Password"),t.qZA(),t.qZA(),t.TgZ(20,"div",20),t._UZ(21,"mat-divider",21),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(3),t.Q6J("icon",B.faLock),t.xp6(4),t.Q6J("ngModel",B.currPassword),t.xp6(1),t.Q6J("ngIf",!B.currPassword),t.xp6(2),t.Q6J("ngModel",B.newPassword),t.xp6(1),t.Q6J("ngIf",B.matchOldAndNewPasswords()),t.xp6(2),t.Q6J("ngModel",B.confirmPassword),t.xp6(1),t.Q6J("ngIf",B.matchNewPasswords()),t.xp6(7),t.Q6J("inset",!0)}}let Rt=(()=>{class X{constructor(B,Ae,pt,fi,In){this.logger=B,this.store=Ae,this.actions=pt,this.router=fi,this.sessionService=In,this.faInfoCircle=x.sqG,this.faUserLock=x.FJU,this.faUserClock=x.hnx,this.faLock=x.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{this.appConfig=B,this.logger.info(this.appConfig)}),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B}),this.actions.pipe((0,v.R)(this.unSubs[2]),(0,de.h)(B=>B.type===K.pg.RESET_PASSWORD_RES)).subscribe(B=>{if(K.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||K.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Me.c0)({payload:{currPassword:oe(this.currPassword).toString(),newPassword:oe(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let B=!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.",B=!0):K.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=K.kO.reduce((Ae,pt,fi)=>fi{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(l.eX),t.Y36(O.F0),t.Y36(ke.m))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-auth-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(at,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.YNc(1,Bt,22,8,"form",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span"),t._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),t.qZA(),t.qZA(),t.TgZ(11,"div",8),t.TgZ(12,"button",9),t.NdJ("click",function(){return Ae.on2FAuth()}),t._uU(13),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("ngIf",null==Ae.appConfig?null:Ae.appConfig.allowPasswordUpdate),t.xp6(3),t.Q6J("icon",Ae.faUserClock),t.xp6(4),t.Q6J("icon",Ae.faInfoCircle),t.xp6(5),t.Oqu(Ae.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[b.xw,b.yH,b.Wh,ve.O5,Z.BN,ce.lW,Ze._Y,Ze.JL,Ze.F,vt.KE,rt.Nt,Ze.Fj,Ne.h,Ze.Q7,Ze.JJ,Ze.On,Be.d,vt.TO],styles:[""]}),X})();var Li=m(4623);function si(X,He){1&X&&t._UZ(0,"mat-divider",7)}function ci(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,si,1,0,"mat-divider",6),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,B.configData)),t.xp6(2),t.Q6J("ngIf",""!==B.configData)}}function sn(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Ui(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Di(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function Xi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,sn,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ui,2,1,"h4",12),t.qZA(),t.YNc(5,Di,1,1,"mat-divider",13),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Q6J("ngIf",B.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",B.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",B.indexOf("[")<0)}}function Ke(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,Xi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Q6J("ngForOf",B.configData)}}let _t=(()=>{class X{constructor(B,Ae,pt){this.store=B,this.rtlEffects=Ae,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(B=>B instanceof O.Av)).subscribe({next:B=>{this.selectedNodeType=B.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Me.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{const Ae=B.data;this.fileFormat=B.format,this.configData=""===Ae||!Ae||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ae&&Ae&&"JSON"===this.fileFormat?Ae:"":Ae.split("\n")})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(nt.V),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,ci,5,4,"div",2),t.YNc(3,Ke,3,1,"div",3),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("ngIf",""!==Ae.configData&&"JSON"===Ae.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Ae.configData&&("INI"===Ae.fileFormat||"HOCON"===Ae.fileFormat)))},directives:[b.xw,b.yH,b.Wh,ve.O5,Be.d,Li.i$,ve.sg,Li.Tg,N.$j],pipes:[ve.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const _e=function(){return{initial:!1}};function qe(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[1].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[1].link),t.Q6J("active",B.activeLink===B.links[1].link)("state",t.DdM(4,_e)),t.xp6(1),t.Oqu(B.links[1].name)}}function yt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[2].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[2].link),t.Q6J("active",B.activeLink===B.links[2].link),t.xp6(1),t.Oqu(B.links[2].name)}}function ue(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[3].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[3].link),t.Q6J("active",B.activeLink===B.links[3].link),t.xp6(1),t.Oqu(B.links[3].name)}}let Je=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faTools=x.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 s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[1])).subscribe(Ae=>{switch(this.showLnConfig=!1,this.selNode=Ae,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(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Node Config"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,qe,2,5,"div",7),t.YNc(11,yt,2,3,"div",8),t.YNc(12,ue,2,3,"div",8),t.qZA(),t.TgZ(13,"div",9),t._UZ(14,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faTools),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.Q6J("ngIf","LND"===(null==Ae.selNode||null==Ae.selNode.lnImplementation?null:Ae.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf","CLN"===(null==Ae.selNode||null==Ae.selNode.lnImplementation?null:Ae.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf",Ae.showLnConfig))},directives:[b.xw,b.Wh,Z.BN,N.a8,N.dn,U.BU,U.Nj,O.rH,ve.O5,b.yH,O.lC],styles:[""]}),X})();function St(X,He){1&X&&t._UZ(0,"mat-divider",7)}function kt(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,St,1,0,"mat-divider",6),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,B.configData)),t.xp6(2),t.Q6J("ngIf",""!==B.configData)}}function yi(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Ni(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Si(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function qi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,yi,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ni,2,1,"h4",12),t.qZA(),t.YNc(5,Si,1,1,"mat-divider",13),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Q6J("ngIf",B.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",B.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",B.indexOf("[")<0)}}function ot(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,qi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Q6J("ngForOf",B.configData)}}let Kt=(()=>{class X{constructor(B,Ae,pt){this.store=B,this.rtlEffects=Ae,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(B=>B instanceof O.Av)).subscribe({next:B=>{this.selectedNodeType=B.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Me.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{const Ae=B.data;this.fileFormat=B.format,this.configData=""===Ae||!Ae||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ae&&Ae&&"JSON"===this.fileFormat?Ae:"":Ae.split("\n")})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(nt.V),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,kt,5,4,"div",2),t.YNc(3,ot,3,1,"div",3),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("ngIf",""!==Ae.configData&&"JSON"===Ae.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Ae.configData&&("INI"===Ae.fileFormat||"HOCON"===Ae.fileFormat)))},directives:[b.xw,b.yH,b.Wh,ve.O5,Be.d,Li.i$,ve.sg,Li.Tg,N.$j],pipes:[ve.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();var gt=m(2994),Lt=m(429),ui=m(6523),Ci=m(62),Yi=m(2368),$i=m(9814),Cn=m(3322);function Ln(X,He){if(1&X&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.id),t.xp6(1),t.hij(" ",B.id," ")}}function _n(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Currency unit is required."),t.qZA())}function kn(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("value",B)("checked",Ae.selNode.settings.userPersona===B),t.xp6(1),t.hij(" ",t.lcZ(2,3,B)," ")}}const dr=function(X){return{"mr-4":X}};function wi(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",37),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("value",B)("ngClass",t.VKq(3,dr,Ae.screenSize===Ae.screenSizeEnum.XS||Ae.screenSize===Ae.screenSizeEnum.SM)),t.xp6(1),t.hij("",B.name," ")}}const Fi=function(X){return{skin:!0,"selected-color":X}};function dn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"span",38),t.TgZ(1,"div",39),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().changeThemeColor(fi.id)}),t.ALo(2,"lowercase"),t.qZA(),t._uU(3),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Tol(t.lcZ(2,4,B.id)),t.Q6J("ngClass",t.VKq(6,Fi,Ae.selectedThemeColor===B.id)),t.xp6(2),t.hij(" ",B.name," ")}}let Lr=(()=>{class X{constructor(B,Ae,pt){this.logger=B,this.commonService=Ae,this.store=pt,this.faExclamationTriangle=x.eHv,this.faMoneyBillAlt=x.co4,this.faPaintBrush=x.XsY,this.faInfoCircle=x.sqG,this.userPersonas=[K.ol.OPERATOR,K.ol.MERCHANT],this.currencyUnits=K.Er,this.themeModes=K.wZ.modes,this.themeColors=K.wZ.themes,this.selectedThemeMode=K.wZ.modes[0],this.selectedThemeColor=K.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(r.dT).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.selectedThemeMode=this.themeModes.find(Ae=>this.selNode.settings.themeMode===Ae.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(B)})}onCurrencyChange(B){this.selNode.settings.currencyUnits=[...K.uA,B.value],this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.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,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.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,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.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(B,Ae){this.selNode.settings[B]=!this.selNode.settings[B]}changeThemeColor(B){this.selectedThemeColor=B,this.selNode.settings.themeColor=B}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,Me.zQ)({payload:{uiMessage:K.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,ui.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,Lt.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,gt.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 B=this.selNode.index;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(Ae=>Ae.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Me.fk)({payload:{uiMessage:K.m6.NO_SPINNER,prevLnNodeIndex:+B,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"form",1,2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Balance Display"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.TgZ(8,"div",7),t._UZ(9,"fa-icon",8),t.TgZ(10,"span"),t._uU(11,"Fiat conversion calls "),t.TgZ(12,"strong"),t.TgZ(13,"a",9),t._uU(14,"Blockchain.com"),t.qZA(),t.qZA(),t._uU(15," API to get conversion rates."),t.qZA(),t.qZA(),t.TgZ(16,"div",10),t.TgZ(17,"mat-slide-toggle",11),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.fiatConversion=fi})("change",function(fi){return Ae.selNode.settings.currencyUnit=fi.checked?Ae.selNode.settings.currencyUnit:null}),t._uU(18,"Enable Fiat Conversion"),t.qZA(),t.TgZ(19,"mat-form-field"),t.TgZ(20,"mat-select",12,13),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.currencyUnit=fi})("selectionChange",function(fi){return Ae.onCurrencyChange(fi)}),t.YNc(22,Ln,2,2,"mat-option",14),t.qZA(),t.YNc(23,_n,2,0,"mat-error",15),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"div",16),t.TgZ(25,"div",17),t.TgZ(26,"div",18),t._UZ(27,"fa-icon",4),t.TgZ(28,"span",5),t._uU(29,"Customization"),t.qZA(),t.qZA(),t.TgZ(30,"div",6),t.TgZ(31,"div",19),t.TgZ(32,"div",20),t._UZ(33,"fa-icon",8),t.TgZ(34,"span"),t._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),t.qZA(),t.qZA(),t.TgZ(36,"div",21),t.TgZ(37,"h4"),t._uU(38,"Dashboard Layout"),t.qZA(),t.TgZ(39,"mat-radio-group",22),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.userPersona=fi}),t.YNc(40,kn,3,5,"mat-radio-button",23),t.qZA(),t.qZA(),t.qZA(),t._UZ(41,"mat-divider",24),t.TgZ(42,"div",25),t.TgZ(43,"div",26),t.TgZ(44,"h4"),t._uU(45,"Mode"),t.qZA(),t.TgZ(46,"mat-radio-group",27),t.NdJ("ngModelChange",function(fi){return Ae.selectedThemeMode=fi})("change",function(){return Ae.chooseThemeMode()}),t.YNc(47,wi,2,5,"mat-radio-button",28),t.qZA(),t.qZA(),t.qZA(),t._UZ(48,"mat-divider",24),t.TgZ(49,"div",25),t.TgZ(50,"div",29),t.TgZ(51,"h4"),t._uU(52,"Themes"),t.qZA(),t.TgZ(53,"div",30),t.YNc(54,dn,4,8,"span",31),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(55,"div",32),t.TgZ(56,"button",33),t.NdJ("click",function(){return Ae.onResetSettings()}),t._uU(57,"Reset"),t.qZA(),t.TgZ(58,"button",34),t.NdJ("click",function(){return Ae.onUpdateSettings()}),t._uU(59,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(4),t.Q6J("icon",Ae.faMoneyBillAlt),t.xp6(5),t.Q6J("icon",Ae.faExclamationTriangle),t.xp6(8),t.Q6J("ngModel",Ae.selNode.settings.fiatConversion),t.xp6(3),t.Q6J("ngModel",Ae.selNode.settings.currencyUnit)("disabled",!Ae.selNode.settings.fiatConversion)("required",Ae.selNode.settings.fiatConversion),t.xp6(2),t.Q6J("ngForOf",Ae.currencyUnits),t.xp6(1),t.Q6J("ngIf",Ae.selNode.settings.fiatConversion&&!Ae.selNode.settings.currencyUnit),t.xp6(4),t.Q6J("icon",Ae.faPaintBrush),t.xp6(6),t.Q6J("icon",Ae.faInfoCircle),t.xp6(6),t.Q6J("ngModel",Ae.selNode.settings.userPersona),t.xp6(1),t.Q6J("ngForOf",Ae.userPersonas),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("ngModel",Ae.selectedThemeMode),t.xp6(1),t.Q6J("ngForOf",Ae.themeModes),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Q6J("ngForOf",Ae.themeColors))},directives:[b.xw,b.yH,z.$V,Ze._Y,Ze.JL,Ze.F,b.Wh,Z.BN,Yi.Rr,Ze.JJ,Ze.On,vt.KE,Fe.gD,Ne.h,Ze.Q7,ve.sg,ve.O5,$i.VQ,Be.d,ce.lW,Le.ey,vt.TO,$i.U0,ve.mk,Cn.oO],pipes:[ve.rS,ve.i8],styles:[""]}),X})();const La=function(){return{initial:!1}};let Gn=(()=>{class X{constructor(B){this.router=B,this.faLayerGroup=x.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Services"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.TgZ(10,"div",7),t.NdJ("click",function(){return Ae.activeLink=Ae.links[1].link}),t._uU(11),t.qZA(),t.qZA(),t.TgZ(12,"div",8),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faLayerGroup),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.s9C("routerLink",Ae.links[1].link),t.Q6J("active",Ae.activeLink===Ae.links[1].link)("state",t.DdM(8,La)),t.xp6(1),t.Oqu(Ae.links[1].name))},directives:[b.xw,b.Wh,Z.BN,N.a8,N.dn,U.BU,U.Nj,O.rH,b.yH,O.lC],styles:[""]}),X})();const Or=["form"];function Ra(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop server URL is required."),t.qZA())}function Ma(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the loop server url with 'https://'."),t.qZA())}function Fa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop macaroon path is required."),t.qZA())}let xr=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.enableLoop=!1,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.dT).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.enableLoop=B.settings.swapServerUrl&&""!==B.settings.swapServerUrl.trim(),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(B)})}onEnableServiceChanged(B){this.enableLoop=B.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,Me.jS)({payload:{uiMessage:K.m6.UPDATE_LOOP_SETTINGS,service:K.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,ui.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,Lt.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,gt.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(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-loop-service-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(Or,7),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){if(1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"loopd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(fi){return Ae.enableLoop=fi})("change",function(fi){return Ae.onEnableServiceChanged(fi)}),t._uU(16,"Enable Loop Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.swapServerUrl=fi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),t.qZA(),t.YNc(22,Ra,2,0,"mat-error",11),t.YNc(23,Ma,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(fi){return Ae.selNode.authentication.swapMacaroonPath=fi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),t.qZA(),t.YNc(28,Fa,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return Ae.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Ae.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B){const pt=t.MAs(19);t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Ae.enableLoop),t.xp6(3),t.Q6J("ngModel",Ae.selNode.settings.swapServerUrl)("required",Ae.enableLoop)("disabled",!Ae.enableLoop),t.xp6(4),t.Q6J("ngIf",!Ae.selNode.settings.swapServerUrl&&Ae.enableLoop),t.xp6(1),t.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&Ae.enableLoop),t.xp6(2),t.Q6J("ngModel",Ae.selNode.authentication.swapMacaroonPath)("required",Ae.enableLoop)("disabled",!Ae.enableLoop),t.xp6(3),t.Q6J("ngIf",!Ae.selNode.authentication.swapMacaroonPath&&Ae.enableLoop)}},directives:[b.xw,b.yH,z.$V,Z.BN,Ze._Y,Ze.JL,Ze.F,b.Wh,Yi.Rr,Ne.h,Ze.JJ,Ze.On,vt.KE,rt.Nt,Ze.Fj,Ze.Q7,vt.bx,ve.O5,ce.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const hs=["form"];function ur(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz server URL is required."),t.qZA())}function pa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the boltz server url with 'https://'."),t.qZA())}function ma(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz macaroon path is required."),t.qZA())}let Ir=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.dT).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.enableBoltz=B.settings.boltzServerUrl&&""!==B.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(B)})}onEnableServiceChanged(B){this.enableBoltz=B.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,Me.jS)({payload:{uiMessage:K.m6.UPDATE_BOLTZ_SETTINGS,service:K.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,ui.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,Lt.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,gt.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(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(hs,7),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){if(1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"boltzd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(fi){return Ae.enableBoltz=fi})("change",function(fi){return Ae.onEnableServiceChanged(fi)}),t._uU(16,"Enable Boltz Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(fi){return Ae.serverUrl=fi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),t.qZA(),t.YNc(22,ur,2,0,"mat-error",11),t.YNc(23,pa,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(fi){return Ae.macaroonPath=fi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),t.qZA(),t.YNc(28,ma,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return Ae.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Ae.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B){const pt=t.MAs(19);t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Ae.enableBoltz),t.xp6(3),t.Q6J("ngModel",Ae.serverUrl)("required",Ae.enableBoltz)("disabled",!Ae.enableBoltz),t.xp6(4),t.Q6J("ngIf",(!Ae.serverUrl||""===Ae.serverUrl.trim())&&Ae.enableBoltz),t.xp6(1),t.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&Ae.enableBoltz),t.xp6(2),t.Q6J("ngModel",Ae.macaroonPath)("required",Ae.enableBoltz)("disabled",!Ae.enableBoltz),t.xp6(3),t.Q6J("ngIf",!Ae.macaroonPath&&Ae.enableBoltz)}},directives:[b.xw,b.yH,z.$V,Z.BN,Ze._Y,Ze.JL,Ze.F,b.Wh,Yi.Rr,Ne.h,Ze.JJ,Ze.On,vt.KE,rt.Nt,Ze.Fj,Ze.Q7,vt.bx,ve.O5,ce.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),Ga=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faLayerGroup=x.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 s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[1])).subscribe(Ae=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.selNode=Ae,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(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-services"]],decls:1,vars:0,template:function(B,Ae){1&B&&t._UZ(0,"router-outlet")},directives:[O.lC],styles:[""]}),X})();var Ya=m(8213),Zr=m(9107),Pr=m(6087),Kn=m(4847),vn=m(2075),Qn=m(5899);function Tr(X,He){1&X&&t._UZ(0,"mat-progress-bar",34)}function Ba(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Initiation Time "),t.qZA())}function Wa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,B.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function kr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Last Update Time "),t.qZA())}function la(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,B.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Jr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID "),t.qZA())}function ga(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id)}}function $n(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID (Bytes) "),t.qZA())}function wa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id_bytes)}}function Nr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," State "),t.qZA())}function ca(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Oqu(Ae.LoopStateEnum[B.state])}}function Aa(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," HTLC Address "),t.qZA())}function Vr(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.htlc_address)}}function ha(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function pr(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.amt))}}function Sr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Server (Sats) "),t.qZA())}function is(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.cost_server))}}function Oa(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Offchain (Sats) "),t.qZA())}function ra(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.cost_offchain))}}function Gr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Onchain (Sats) "),t.qZA())}function Ha(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==B?null:B.cost_onchain)," ")}}function Zn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"th",39),t.TgZ(1,"div",40),t.TgZ(2,"mat-select",41),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",42),t.NdJ("click",function(){return t.CHM(B),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function ns(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"td",43),t.TgZ(1,"button",44),t.NdJ("click",function(pt){const In=t.CHM(B).$implicit;return t.oxw().onSwapClick(In,pt)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function ja(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.emptyTableMessage)}}function Xe(X,He){if(1&X&&(t.TgZ(0,"td",45),t.YNc(1,ja,2,1,"p",46),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=B.listSwaps&&B.listSwaps.data)||(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)<1)}}const me=function(X){return{"display-none":X}};function J(X,He){if(1&X&&t._UZ(0,"tr",47),2&X){const B=t.oxw();t.Q6J("ngClass",t.VKq(1,me,(null==B.listSwaps?null:B.listSwaps.data)&&(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)>0))}}function ne(X,He){1&X&&t._UZ(0,"tr",48)}function Qe(X,He){1&X&&t._UZ(0,"tr",49)}const Wt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},mi=function(){return["no_swap"]};let Ct=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.commonService=Ae,this.store=pt,this.loopService=fi,this.selectedSwapType=K.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=K.Fq,this.faHistory=x.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=K.IV,this.pageSizeOptions=K.TJ,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x,new s.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===K.cu.XS||this.screenSize===K.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===K.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(B){this.swapCaption=this.selectedSwapType===K.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(B,Ae){this.loopService.getSwap(B.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,v.R)(this.unSubs[2])).subscribe(pt=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:K.Fq[pt.state],title:"Status",width:50,type:K.Gi.STRING},{key:"amt",value:pt.amt,title:"Amount (Sats)",width:50,type:K.Gi.NUMBER}],[{key:"initiation_time",value:pt.initiation_time/1e9,title:"Initiation Time",width:50,type:K.Gi.DATE_TIME},{key:"last_update_time",value:pt.last_update_time/1e9,title:"Last Update Time",width:50,type:K.Gi.DATE_TIME}],[{key:"cost_server",value:pt.cost_server,title:"Server Cost (Sats)",width:33,type:K.Gi.NUMBER},{key:"cost_offchain",value:pt.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:K.Gi.NUMBER},{key:"cost_onchain",value:pt.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:K.Gi.NUMBER}],[{key:"id_bytes",value:pt.id_bytes,title:"ID",width:100,type:K.Gi.STRING}],[{key:"htlc_address",value:pt.htlc_address,title:"HTLC Address",width:100,type:K.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(B){this.listSwaps=new vn.by([...B]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ae,pt)=>Ae[pt]&&isNaN(Ae[pt])?Ae[pt].toLocaleLowerCase():Ae[pt]?+Ae[pt]:null,this.listSwaps.filterPredicate=(Ae,pt)=>JSON.stringify(Ae).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===K.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Zr.W))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-swaps"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Kn.YE,5),t.Gf(Pr.NW,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sort=pt.first),t.iGM(pt=t.CRH())&&(Ae.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Pr.ye,useValue:(0,K.pt)("Swaps")}]),t.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return Ae.applyFilter()})("ngModelChange",function(fi){return Ae.selFilter=fi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,Tr,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,Ba,2,0,"th",13),t.YNc(15,Wa,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,kr,2,0,"th",13),t.YNc(18,la,3,4,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,Jr,2,0,"th",13),t.YNc(21,ga,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,$n,2,0,"th",13),t.YNc(24,wa,2,1,"td",14),t.BQk(),t.ynx(25,18),t.YNc(26,Nr,2,0,"th",13),t.YNc(27,ca,2,1,"td",14),t.BQk(),t.ynx(28,19),t.YNc(29,Aa,2,0,"th",13),t.YNc(30,Vr,2,1,"td",14),t.BQk(),t.ynx(31,20),t.YNc(32,ha,2,0,"th",21),t.YNc(33,pr,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Sr,2,0,"th",21),t.YNc(36,is,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,Oa,2,0,"th",21),t.YNc(39,ra,4,3,"td",14),t.BQk(),t.ynx(40,24),t.YNc(41,Gr,2,0,"th",21),t.YNc(42,Ha,4,3,"td",14),t.BQk(),t.ynx(43,25),t.YNc(44,Zn,6,0,"th",26),t.YNc(45,ns,3,0,"td",27),t.BQk(),t.ynx(46,28),t.YNc(47,Xe,2,1,"td",29),t.BQk(),t.YNc(48,J,1,3,"tr",30),t.YNc(49,ne,1,0,"tr",31),t.YNc(50,Qe,1,0,"tr",32),t.qZA(),t._UZ(51,"mat-paginator",33),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(3),t.Q6J("icon",Ae.faHistory),t.xp6(2),t.AsE("",Ae.swapCaption," History, ",Ae.flgLoading,""),t.xp6(2),t.Q6J("ngModel",Ae.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Ae.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Ae.listSwaps)("ngClass",t.VKq(14,Wt,"error"===Ae.flgLoading[0])),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(16,mi)),t.xp6(1),t.Q6J("matHeaderRowDef",Ae.displayedColumns)("matHeaderRowDefSticky",Ae.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Ae.displayedColumns),t.xp6(1),t.Q6J("pageSize",Ae.pageSize)("pageSizeOptions",Ae.pageSizeOptions)("showFirstLastButtons",Ae.screenSize!==Ae.screenSizeEnum.XS))},directives:[b.xw,b.yH,b.Wh,Z.BN,vt.KE,rt.Nt,Ze.Fj,Ze.JJ,Ze.On,z.$V,ve.O5,vn.BZ,Kn.YE,ve.mk,Cn.oO,vn.w1,vn.fO,vn.Dz,vn.mD,vn.Ke,vn.as,vn.nj,Pr.NW,Qn.pW,vn.ge,Kn.nU,vn.ev,Fe.gD,Fe.$L,Le.ey,ce.lW,vn.yh,vn.Q2,vn.XQ,vn.Gk],pipes:[ve.uU,ve.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ti=function(X){return["../",X]};function bt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onSelectedIndexChange(fi)}),t._uU(1),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("active",Ae.activeTab.link===B.link)("routerLink",t.VKq(3,ti,B.link)),t.xp6(1),t.Oqu(B.name)}}let Yt=(()=>{class X{constructor(B,Ae,pt){this.router=B,this.loopService=Ae,this.store=pt,this.faInfinity=x.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=K.$I,this.selectedSwapType=K.$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 s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.loopService.listSwaps();const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeTab=B||this.links[0],this.selectedSwapType=B&&"loopin"===B.link?K.$I.LOOP_IN:K.$I.LOOP_OUT,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"loopin"===pt.link?K.$I.LOOP_IN:K.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,v.R)(this.unSubs[1])).subscribe({next:Ae=>{this.flgLoading[0]=!1,this.storedSwaps=Ae,this.filteredSwaps=this.storedSwaps.filter(pt=>pt.type===this.selectedSwapType)},error:Ae=>{this.flgLoading[0]="error",this.emptyTableMessage=Ae.message?Ae.message:"No loop "+(this.selectedSwapType===K.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(B){this.selectedSwapType="loopin"===B.link?K.$I.LOOP_IN:K.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(Ae=>Ae.type===this.selectedSwapType)}onLoop(B){B===K.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,v.R)(this.unSubs[2])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{minQuote:Ae[0],maxQuote:Ae[1],direction:B,component:Ya.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,v.R)(this.unSubs[3])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{minQuote:Ae[0],maxQuote:Ae[1],direction:B,component:Ya.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(O.F0),t.Y36(Zr.W),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Loop"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.YNc(8,bt,2,5,"div",6),t.qZA(),t.TgZ(9,"div",7),t.TgZ(10,"button",8),t.NdJ("click",function(){return Ae.onLoop(Ae.selectedSwapType)}),t._uU(11),t.qZA(),t.qZA(),t._UZ(12,"rtl-swaps",9),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faInfinity),t.xp6(7),t.Q6J("ngForOf",Ae.links),t.xp6(3),t.hij("Start ",Ae.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Ae.selectedSwapType)("swapsData",Ae.filteredSwaps)("flgLoading",Ae.flgLoading)("emptyTableMessage",Ae.emptyTableMessage))},directives:[b.xw,b.Wh,Z.BN,N.a8,N.dn,U.BU,ve.sg,ce.lW,Ct,b.yH,U.Nj,O.rH],styles:[""]}),X})();var xi=m(7772),Bi=m(1135),yn=m(2843),An=m(262),Wi=m(2340),Cr=m(1786);let Un=(()=>{class X{constructor(B,Ae,pt,fi){this.httpClient=B,this.logger=Ae,this.store=pt,this.commonService=fi,this.swapUrl="",this.swaps={},this.swapsChanged=new Bi.X({}),this.unSubs=[new s.x,new s.x,new s.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Me.ac)({payload:K.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,v.R)(this.unSubs[0])).subscribe({next:B=>{this.store.dispatch((0,Me.uO)({payload:K.m6.GET_BOLTZ_SWAPS})),this.swaps=B,this.swapsChanged.next(this.swaps)},error:B=>this.swapsChanged.error(this.handleErrorWithAlert(K.m6.GET_BOLTZ_SWAPS,this.swapUrl,B))})}swapInfo(B){return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/swapInfo/"+B,this.httpClient.get(this.swapUrl).pipe((0,An.K)(Ae=>(0,V.of)(this.handleErrorWithAlert(K.m6.NO_SPINNER,this.swapUrl,Ae))))}serviceInfo(){return this.store.dispatch((0,Me.ac)({payload:K.m6.GET_SERVICE_INFO})),this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,v.R)(this.unSubs[1]),(0,p.U)(B=>(this.store.dispatch((0,Me.uO)({payload:K.m6.GET_SERVICE_INFO})),B)),(0,An.K)(B=>(0,V.of)(this.handleErrorWithAlert(K.m6.GET_SERVICE_INFO,this.swapUrl,B))))}swapOut(B,Ae){const pt={amount:B,address:Ae};return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,pt).pipe((0,An.K)(fi=>this.handleErrorWithoutAlert("Swap Out for Address: "+Ae,K.m6.NO_SPINNER,fi)))}swapIn(B){const Ae={amount:B};return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,Ae).pipe((0,An.K)(pt=>this.handleErrorWithoutAlert("Swap In for Amount: "+B,K.m6.NO_SPINNER,pt)))}handleErrorWithoutAlert(B,Ae,pt){let fi="";return this.logger.error("ERROR IN: "+B+"\n"+JSON.stringify(pt)),this.store.dispatch((0,Me.uO)({payload:Ae})),401===pt.status?(fi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())):503===pt.status?(fi="Unable to Connect to Boltz Server.",this.store.dispatch((0,Me.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:B},component:Cr.H}}}))):fi=this.commonService.extractErrorMessage(pt),(0,yn._)(()=>new Error(fi))}handleErrorWithAlert(B,Ae,pt){let fi="";if(401===pt.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())),this.logger.error(pt),this.store.dispatch((0,Me.uO)({payload:B})),401===pt.status)fi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)());else if(503===pt.status)fi="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:Ae},component:Cr.H}}}))},100);else{fi=this.commonService.extractErrorMessage(pt);const In=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,Me.qR)({payload:{data:{type:K.n_.ERROR,alertTitle:"ERROR",message:{code:In,message:fi,URL:Ae},component:Cr.H}}}))},100)}return{message:fi}}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.LFG(C.eN),t.LFG(we.mQ),t.LFG(M.yh),t.LFG(Ci.v))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var Rn=m(1125);let _a=(()=>{class X{constructor(){this.serviceInfo={},this.direction=K.hc.SWAP_OUT,this.swapTypeEnum=K.hc}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"mat-expansion-panel",0),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t.TgZ(3,"span",1),t._uU(4,"Service Information"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(5,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"div",4),t.TgZ(8,"h4",5),t._uU(9,"Minimum Amount (Sats)"),t.qZA(),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.TgZ(13,"div",4),t.TgZ(14,"h4",5),t._uU(15,"Maximum Amount (Sats)"),t.qZA(),t.TgZ(16,"span",6),t._uU(17),t.ALo(18,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(19,"mat-divider",7),t.TgZ(20,"div",3),t.TgZ(21,"div",4),t.TgZ(22,"h4",5),t._uU(23,"Fee Percentage"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA(),t.qZA(),t.TgZ(27,"div",4),t.TgZ(28,"h4",5),t._uU(29,"Miner Fee (Sats)"),t.qZA(),t.TgZ(30,"span",6),t._uU(31),t.ALo(32,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.Q6J("expanded",!0),t.xp6(11),t.Oqu(t.lcZ(12,5,null==Ae.serviceInfo||null==Ae.serviceInfo.limits?null:Ae.serviceInfo.limits.minimal)),t.xp6(6),t.Oqu(t.lcZ(18,7,null==Ae.serviceInfo||null==Ae.serviceInfo.limits?null:Ae.serviceInfo.limits.maximal)),t.xp6(8),t.Oqu(t.lcZ(26,9,null==Ae.serviceInfo||null==Ae.serviceInfo.fees?null:Ae.serviceInfo.fees.percentage)),t.xp6(6),t.Oqu(t.lcZ(32,11,Ae.direction===Ae.swapTypeEnum.SWAP_OUT?null==Ae.serviceInfo||null==Ae.serviceInfo.fees||null==Ae.serviceInfo.fees.miner?null:Ae.serviceInfo.fees.miner.reverse:null==Ae.serviceInfo||null==Ae.serviceInfo.fees||null==Ae.serviceInfo.fees.miner?null:Ae.serviceInfo.fees.miner.normal)))},directives:[Rn.ib,b.yH,Rn.yz,Rn.yK,b.Wh,b.xw,Be.d],pipes:[ve.JJ],styles:[""]}),X})();var Mr=m(5245);function ds(X,He){1&X&&t.GkF(0)}function vs(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"span",5),t._uU(2),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(null!=B.swapStatus&&B.swapStatus.error?null==B.swapStatus?null:B.swapStatus.error:"Unknown Error.")}}function Pi(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Routing Fee (mSats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",7),t.TgZ(16,"h4",8),t._uU(17,"Claim Transaction ID"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.TgZ(20,"div",7),t.TgZ(21,"h4",8),t._uU(22,"Lockup Address"),t.qZA(),t.TgZ(23,"span",5),t._uU(24),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(6),t.Oqu(null==B.swapStatus?null:B.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==B.swapStatus?null:B.swapStatus.routingFeeMilliSat)),t.xp6(8),t.Oqu(null==B.swapStatus?null:B.swapStatus.claimTransactionId),t.xp6(5),t.Oqu(null==B.swapStatus?null:B.swapStatus.lockupAddress)}}function Nn(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Expected Amount (Sats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",10),t.TgZ(16,"h4",8),t._uU(17,"Address"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.qZA(),t._UZ(20,"mat-divider",9),t.TgZ(21,"div",6),t.TgZ(22,"div",10),t.TgZ(23,"h4",8),t._uU(24,"BIP 21"),t.qZA(),t.TgZ(25,"span",5),t._uU(26),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(6),t.Oqu(null==B.swapStatus?null:B.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==B.swapStatus?null:B.swapStatus.expectedAmount)),t.xp6(8),t.Oqu(null==B.swapStatus?null:B.swapStatus.address),t.xp6(7),t.Oqu(null==B.swapStatus?null:B.swapStatus.bip21)}}let zs=(()=>{class X{constructor(){this.swapStatus=null,this.direction=K.hc.SWAP_OUT,this.swapTypeEnum=K.hc}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){if(1&B&&(t.YNc(0,ds,1,0,"ng-container",0),t.YNc(1,vs,3,1,"ng-template",null,1,t.W1O),t.YNc(3,Pi,25,6,"ng-template",null,2,t.W1O),t.YNc(5,Nn,27,6,"ng-template",null,3,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6);t.Q6J("ngTemplateOutlet",null!=Ae.swapStatus&&Ae.swapStatus.error?pt:Ae.direction===Ae.swapTypeEnum.SWAP_OUT?fi:In)}},directives:[ve.tP,b.xw,b.yH,b.Wh,Be.d],pipes:[ve.JJ],styles:[""]}),X})();var fr=m(113);function Us(X,He){1&X&&t.GkF(0)}const rs=function(X,He){return{"small-svg":X,"large-svg":He}};function xt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Reverse Submarine Swap explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function ie(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",21),t.TgZ(2,"g",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t._UZ(9,"path",29),t.TgZ(10,"defs"),t.TgZ(11,"clipPath",30),t._UZ(12,"rect",31),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function he(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",32),t._UZ(2,"path",33),t._UZ(3,"path",34),t._UZ(4,"path",35),t._UZ(5,"path",36),t._UZ(6,"path",37),t._UZ(7,"circle",38),t._UZ(8,"rect",39),t.TgZ(9,"defs"),t.TgZ(10,"pattern",40),t._UZ(11,"use",41),t.qZA(),t._UZ(12,"image",42),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Paying the Lightning Invoice"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function je(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",43),t.TgZ(2,"g",22),t._UZ(3,"path",44),t._UZ(4,"path",45),t._UZ(5,"path",46),t._UZ(6,"path",47),t._UZ(7,"path",48),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",30),t._UZ(10,"rect",49),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on-chain"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function wt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51),t._UZ(3,"path",52),t._UZ(4,"path",53),t._UZ(5,"path",54),t._UZ(6,"path",55),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}let Pt=(()=>{class X{constructor(B){this.commonService=B,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=K.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(B){2===B.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===B.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){if(1&B&&(t.YNc(0,Us,1,0,"ng-container",0),t.YNc(1,xt,18,5,"ng-template",null,1,t.W1O),t.YNc(3,ie,19,5,"ng-template",null,2,t.W1O),t.YNc(5,he,19,5,"ng-template",null,3,t.W1O),t.YNc(7,je,17,5,"ng-template",null,4,t.W1O),t.YNc(9,wt,13,5,"ng-template",null,5,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6),tr=t.MAs(8),Fn=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Ae.stepNumber?pt:2===Ae.stepNumber?fi:3===Ae.stepNumber?In:4===Ae.stepNumber?tr:Fn)}},directives:[ve.tP,b.xw,b.yH,b.Wh,ve.mk,Cn.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:[fr.l]}}),X})();function Qt(X,He){1&X&&t.GkF(0)}const Xt=function(X,He){return{"small-svg":X,"large-svg":He}};function pi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Submarine Swaps explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Ti(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",21),t._UZ(2,"path",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t.kcU(),t.TgZ(9,"div",18),t.TgZ(10,"mat-card-title"),t._uU(11,"Step 1: Deciding to Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(12,"div",19),t.TgZ(13,"mat-card-subtitle",20),t._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Zi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",29),t._UZ(2,"path",30),t._UZ(3,"path",31),t._UZ(4,"path",32),t._UZ(5,"path",33),t._UZ(6,"path",34),t._UZ(7,"circle",35),t._UZ(8,"rect",36),t.TgZ(9,"defs"),t.TgZ(10,"pattern",37),t._UZ(11,"use",38),t.qZA(),t._UZ(12,"image",39),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Sending the on-chain funds"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function tn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",40),t.TgZ(2,"g",41),t._UZ(3,"path",42),t._UZ(4,"path",43),t._UZ(5,"path",44),t._UZ(6,"path",45),t._UZ(7,"path",46),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",47),t._UZ(10,"rect",48),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on Lightning"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Mn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",49),t._UZ(2,"path",50),t._UZ(3,"path",51),t._UZ(4,"path",52),t._UZ(5,"path",53),t._UZ(6,"path",54),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}let On=(()=>{class X{constructor(B){this.commonService=B,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=K.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(B){2===B.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===B.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){if(1&B&&(t.YNc(0,Qt,1,0,"ng-container",0),t.YNc(1,pi,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Ti,15,5,"ng-template",null,2,t.W1O),t.YNc(5,Zi,19,5,"ng-template",null,3,t.W1O),t.YNc(7,tn,17,5,"ng-template",null,4,t.W1O),t.YNc(9,Mn,13,5,"ng-template",null,5,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6),tr=t.MAs(8),Fn=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Ae.stepNumber?pt:2===Ae.stepNumber?fi:3===Ae.stepNumber?In:4===Ae.stepNumber?tr:Fn)}},directives:[ve.tP,b.xw,b.yH,b.Wh,ve.mk,Cn.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:[fr.l]}}),X})();const tt=["stepper"];function Et(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.inputFormLabel)}}function It(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function zt(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.minimal),".")}}function ri(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.maximal),".")}}function vi(X,He){1&X&&(t.TgZ(0,"button",40),t._uU(1,"Next"),t.qZA())}function Mi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onSwap()}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(1),t.hij("Initiate ",B.swapDirectionCaption,"")}}function Ai(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(3);t.Oqu(B.addressFormLabel)}}function Ki(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function un(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-step",15),t.TgZ(1,"form",16),t.YNc(2,Ai,1,1,"ng-template",17),t.TgZ(3,"div",42),t.TgZ(4,"mat-radio-group",43),t.NdJ("change",function(pt){return t.CHM(B),t.oxw(2).onAddressTypeChange(pt)}),t.TgZ(5,"mat-radio-button",44),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",45),t._uU(8,"External Address"),t.qZA(),t.qZA(),t.TgZ(9,"mat-form-field",46),t._UZ(10,"input",47),t.YNc(11,Ki,2,0,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(12,"div",25),t.TgZ(13,"button",48),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onSwap()}),t._uU(14),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepControl",B.addressFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.addressFormGroup),t.xp6(9),t.Q6J("required","external"===B.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==B.addressFormGroup.controls.address.errors?null:B.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",B.swapDirectionCaption,"")}}function gn(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.hij("",B.swapDirectionCaption," Status")}}function En(X,He){if(1&X&&(t.TgZ(0,"mat-icon",49),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.swapStatus&&null!=B.swapStatus&&B.swapStatus.id?"check":"close")}}function zn(X,He){1&X&&t._UZ(0,"div")}function Rr(X,He){1&X&&t._UZ(0,"mat-progress-bar",50)}function Fr(X,He){if(1&X&&(t.TgZ(0,"h4",51),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.swapStatus&&B.swapStatus.error?B.swapDirectionCaption+" failed.":B.swapStatus&&B.swapStatus.id?B.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":B.swapDirectionCaption+" request placed successfully.")}}function wr(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function Vn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",3),t.TgZ(1,"div",4),t.TgZ(2,"mat-card-header",5),t.TgZ(3,"div",6),t.TgZ(4,"span",7),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"div",8),t.TgZ(7,"button",9),t.NdJ("click",function(){return t.CHM(B),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){return t.CHM(B),t.oxw().onClose()}),t._uU(10,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",11),t.TgZ(12,"div",12),t.TgZ(13,"mat-vertical-stepper",13,14),t.NdJ("selectionChange",function(pt){return t.CHM(B),t.oxw().stepSelectionChanged(pt)}),t.TgZ(15,"mat-step",15),t.TgZ(16,"form",16),t.YNc(17,Et,1,1,"ng-template",17),t.TgZ(18,"div",18),t._UZ(19,"rtl-boltz-service-info",19),t.qZA(),t.TgZ(20,"div",20),t.TgZ(21,"mat-form-field",21),t._UZ(22,"input",22),t.TgZ(23,"mat-hint"),t._uU(24),t.ALo(25,"number"),t.ALo(26,"number"),t.qZA(),t.TgZ(27,"span",23),t._uU(28,"Sats"),t.qZA(),t.YNc(29,It,2,0,"mat-error",24),t.YNc(30,zt,3,3,"mat-error",24),t.YNc(31,ri,3,3,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(32,"div",25),t.YNc(33,vi,2,0,"button",26),t.YNc(34,Mi,2,1,"button",27),t.qZA(),t.qZA(),t.qZA(),t.YNc(35,un,15,6,"mat-step",28),t.TgZ(36,"mat-step",29),t.TgZ(37,"form",16),t.YNc(38,gn,1,1,"ng-template",17),t.TgZ(39,"div",30),t.TgZ(40,"mat-expansion-panel",31),t.TgZ(41,"mat-expansion-panel-header"),t.TgZ(42,"mat-panel-title"),t.TgZ(43,"span",32),t._uU(44),t.YNc(45,En,2,1,"mat-icon",33),t.qZA(),t.qZA(),t.qZA(),t.YNc(46,zn,1,0,"div",34),t.qZA(),t.YNc(47,Rr,1,0,"mat-progress-bar",35),t.qZA(),t.YNc(48,Fr,2,1,"h4",36),t.TgZ(49,"div",25),t.YNc(50,wr,2,0,"button",37),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"div",38),t.TgZ(52,"button",39),t._uU(53,"Close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(),Ae=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(B.swapDirectionCaption),t.xp6(1),t.Q6J("fxFlex",B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",B.inputFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.inputFormGroup),t.xp6(3),t.Q6J("serviceInfo",B.serviceInfo)("direction",B.direction),t.xp6(3),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(25,30,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.minimal),"-",t.lcZ(26,32,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.maximal),""),t.xp6(5),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.max),t.xp6(2),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_IN),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("stepControl",B.statusFormGroup),t.xp6(1),t.Q6J("formGroup",B.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!B.swapStatus),t.xp6(4),t.Oqu(B.swapStatus?B.swapStatus.id?B.swapDirectionCaption+" request details":B.swapDirectionCaption+" error details":"Waiting for "+B.swapDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",B.swapStatus),t.xp6(1),t.Q6J("ngIf",!B.swapStatus)("ngIfElse",Ae),t.xp6(1),t.Q6J("ngIf",!B.swapStatus),t.xp6(1),t.Q6J("ngIf",B.swapStatus),t.xp6(2),t.Q6J("ngIf",B.swapStatus&&(B.swapStatus.error||!B.swapStatus.id)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function mr(X,He){if(1&X&&t._UZ(0,"rtl-boltz-swap-status",53),2&X){const B=t.oxw();t.Q6J("swapStatus",B.swapStatus)("direction",B.direction)}}function Hi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"rtl-boltz-swapout-info-graphics",70),t.NdJ("stepNumberChange",function(pt){return t.CHM(B),t.oxw(2).stepNumber=pt}),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepNumber",B.stepNumber)("animationDirection",B.animationDirection)}}function on(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"rtl-boltz-swapin-info-graphics",70),t.NdJ("stepNumberChange",function(pt){return t.CHM(B),t.oxw(2).stepNumber=pt}),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepNumber",B.stepNumber)("animationDirection",B.animationDirection)}}const nn=function(X,He){return{"dot-primary":X,"dot-primary-lighter":He}};function Pn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"span",71),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onStepChanged(fi)}),t._UZ(1,"p",72),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,nn,Ae.stepNumber===B,Ae.stepNumber!==B))}}function jn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onReadMore()}),t._uU(1,"Read More"),t.qZA()}}function da(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",74),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function Xr(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",75),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function $r(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",76),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Yn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",77),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.onStepChanged(pt.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function io(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",78),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.onStepChanged(pt.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const Ia=function(){return[1,2,3,4,5]};function Ps(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",54),t.TgZ(1,"div",18),t.TgZ(2,"mat-card-header",55),t.TgZ(3,"div",56),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",57),t.TgZ(6,"button",58),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(7,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",59),t.YNc(9,Hi,1,2,"rtl-boltz-swapout-info-graphics",60),t.YNc(10,on,1,2,"rtl-boltz-swapin-info-graphics",60),t.qZA(),t.TgZ(11,"div",61),t.YNc(12,Pn,2,4,"span",62),t.qZA(),t.TgZ(13,"div",63),t.YNc(14,jn,2,0,"button",64),t.YNc(15,da,2,0,"button",65),t.YNc(16,Xr,2,0,"button",66),t.YNc(17,$r,2,0,"button",67),t.YNc(18,Yn,2,0,"button",68),t.YNc(19,io,2,0,"button",69),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,Ia)),t.xp6(2),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",B.stepNumber<5),t.xp6(1),t.Q6J("ngIf",B.stepNumber>1&&B.stepNumber<5),t.xp6(1),t.Q6J("ngIf",B.stepNumber<5)}}let Zs=(()=>{class X{constructor(B,Ae,pt,fi,In,tr,Fn,Br,ya){this.dialogRef=B,this.data=Ae,this.store=pt,this.boltzService=fi,this.formBuilder=In,this.decimalPipe=tr,this.logger=Fn,this.router=Br,this.commonService=ya,this.faInfoCircle=x.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=K.hc,this.direction=K.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=K.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction,this.swapDirectionCaption=this.direction===K.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits.minimal,[Ze.kI.required,Ze.kI.min(this.serviceInfo.limits.minimal),Ze.kI.max(this.serviceInfo.limits.maximal)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[Ze.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===K.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===K.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,v.R)(this.unSubs[2])).subscribe(B=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(B){"external"===B.value?(this.addressFormGroup.controls.address.setValidators([Ze.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===K.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===K.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,v.R)(this.unSubs[3])).subscribe({next:B=>{this.swapStatus=B,this.boltzService.listSwaps(),this.flgEditable=!0},error:B=>{this.swapStatus={error:B},this.flgEditable=!0,this.logger.error(B)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,v.R)(this.unSubs[4])).subscribe({next:Ae=>{this.swapStatus=Ae,this.boltzService.listSwaps(),this.flgEditable=!0},error:Ae=>{this.swapStatus={error:Ae},this.flgEditable=!0,this.logger.error(Ae)}})}stepSelectionChanged(B){switch(B.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"}B.selectedIndex{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Un),t.Y36(Ze.qu),t.Y36(ve.JJ),t.Y36(we.mQ),t.Y36(O.F0),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(tt,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){1&B&&(t.YNc(0,Vn,54,34,"div",0),t.YNc(1,mr,1,2,"ng-template",null,1,t.W1O),t.YNc(3,Ps,20,11,"div",2)),2&B&&(t.Q6J("ngIf",!Ae.flgShowInfo),t.xp6(3),t.Q6J("ngIf",Ae.flgShowInfo))},directives:[ve.O5,b.xw,b.yH,b.Wh,N.dk,ce.lW,N.dn,it.Vq,it.C0,Ze._Y,Ze.JL,Ze.sg,it.VY,_a,vt.KE,rt.Nt,Ze.wV,Ze.Fj,Ne.h,Ze.JJ,Ze.u,Ze.Q7,vt.bx,vt.R9,Rn.ib,Rn.yz,Rn.yK,Ue.ZT,vt.TO,it.Ic,$i.VQ,$i.U0,Mr.Hw,Qn.pW,zs,ve.sg,Pt,On,ve.mk,Cn.oO],pipes:[ve.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[xi._]}}),X})();function va(X,He){1&X&&t._UZ(0,"mat-progress-bar",32)}function us(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Status "),t.qZA())}function Jc(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Oqu(Ae.swapStateEnum[B.status])}}function Vs(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Swap ID "),t.qZA())}function no(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id)}}function tl(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Claim Address "),t.qZA())}function cc(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.claimAddress)}}function hc(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Onchain Amount (Sats) "),t.qZA())}function Xc(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.onchainAmount))}}function $c(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Lockup Address "),t.qZA())}function Lo(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.lockupAddress)}}function il(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Expected Amount (Sats) "),t.qZA())}function nl(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.expectedAmount))}}function Oo(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Timeout Block Height "),t.qZA())}function Ll(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.timeoutBlockHeight))}}function Io(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Amount (Sats) "),t.qZA())}function ro(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.amt))}}function dc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"th",37),t.TgZ(1,"div",38),t.TgZ(2,"mat-select",39),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",40),t.NdJ("click",function(){return t.CHM(B),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function Gs(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"td",41),t.TgZ(1,"button",42),t.NdJ("click",function(pt){const In=t.CHM(B).$implicit;return t.oxw().onSwapClick(In,pt)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function rl(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.emptyTableMessage)}}function al(X,He){if(1&X&&(t.TgZ(0,"td",43),t.YNc(1,rl,2,1,"p",44),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=B.listSwaps&&B.listSwaps.data)||(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)<1)}}const Ye=function(X){return{"display-none":X}};function Te(X,He){if(1&X&&t._UZ(0,"tr",45),2&X){const B=t.oxw();t.Q6J("ngClass",t.VKq(1,Ye,(null==B.listSwaps?null:B.listSwaps.data)&&(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)>0))}}function xe(X,He){1&X&&t._UZ(0,"tr",46)}function $e(X,He){1&X&&t._UZ(0,"tr",47)}const dt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},Ot=function(){return["no_swap"]};let qt=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.commonService=Ae,this.store=pt,this.boltzService=fi,this.selectedSwapType=K.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=K.Qw,this.faHistory=x.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=K.IV,this.pageSizeOptions=K.TJ,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x,new s.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(B){B.selectedSwapType&&!B.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===K.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===K.cu.XS||this.screenSize===K.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===K.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===K.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(B,Ae){this.boltzService.swapInfo(B.id).pipe((0,v.R)(this.unSubs[1])).subscribe(pt=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:K.Qw[(pt=this.selectedSwapType===K.hc.SWAP_IN?pt.swap:pt.reverseSwap).status],title:"Status",width:50,type:K.Gi.STRING},{key:"id",value:pt.id,title:"ID",width:50,type:K.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:K.Gi.NUMBER},{key:"timeoutBlockHeight",value:pt.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:K.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:K.Gi.STRING}],[{key:"invoice",value:pt.invoice,title:"Invoice",width:100,type:K.Gi.STRING}],[{key:"privateKey",value:pt.privateKey,title:"Private Key",width:100,type:K.Gi.STRING}],[{key:"preimage",value:pt.preimage,title:"Preimage",width:100,type:K.Gi.STRING}],[{key:"redeemScript",value:pt.redeemScript,title:"Redeem Script",width:100,type:K.Gi.STRING}],[{key:"lockupTransactionId",value:pt.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:K.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:K.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(B){this.listSwaps=new vn.by(B?[...B]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ae,pt)=>Ae[pt]&&isNaN(Ae[pt])?Ae[pt].toLocaleLowerCase():Ae[pt]?+Ae[pt]:null,this.listSwaps.filterPredicate=(Ae,pt)=>JSON.stringify(Ae).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===K.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Un))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swaps"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Kn.YE,5),t.Gf(Pr.NW,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sort=pt.first),t.iGM(pt=t.CRH())&&(Ae.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Pr.ye,useValue:(0,K.pt)("Swaps")}]),t.TTD],decls:46,vars:16,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return Ae.applyFilter()})("ngModelChange",function(fi){return Ae.selFilter=fi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,va,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,us,2,0,"th",13),t.YNc(15,Jc,2,1,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Vs,2,0,"th",13),t.YNc(18,no,2,1,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,tl,2,0,"th",13),t.YNc(21,cc,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,hc,2,0,"th",18),t.YNc(24,Xc,4,3,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,$c,2,0,"th",13),t.YNc(27,Lo,2,1,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,il,2,0,"th",18),t.YNc(30,nl,4,3,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,Oo,2,0,"th",18),t.YNc(33,Ll,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Io,2,0,"th",18),t.YNc(36,ro,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,dc,6,0,"th",24),t.YNc(39,Gs,3,0,"td",25),t.BQk(),t.ynx(40,26),t.YNc(41,al,2,1,"td",27),t.BQk(),t.YNc(42,Te,1,3,"tr",28),t.YNc(43,xe,1,0,"tr",29),t.YNc(44,$e,1,0,"tr",30),t.qZA(),t._UZ(45,"mat-paginator",31),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(3),t.Q6J("icon",Ae.faHistory),t.xp6(2),t.hij("",Ae.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",Ae.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Ae.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Ae.listSwaps)("ngClass",t.VKq(13,dt,"error"===Ae.flgLoading[0])),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(15,Ot)),t.xp6(1),t.Q6J("matHeaderRowDef",Ae.displayedColumns)("matHeaderRowDefSticky",Ae.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Ae.displayedColumns),t.xp6(1),t.Q6J("pageSize",Ae.pageSize)("pageSizeOptions",Ae.pageSizeOptions)("showFirstLastButtons",Ae.screenSize!==Ae.screenSizeEnum.XS))},directives:[b.xw,b.yH,b.Wh,Z.BN,vt.KE,rt.Nt,Ze.Fj,Ze.JJ,Ze.On,z.$V,ve.O5,vn.BZ,Kn.YE,ve.mk,Cn.oO,vn.w1,vn.fO,vn.Dz,vn.mD,vn.Ke,vn.as,vn.nj,Pr.NW,Qn.pW,vn.ge,Kn.nU,vn.ev,Fe.gD,Fe.$L,Le.ey,ce.lW,vn.yh,vn.Q2,vn.XQ,vn.Gk],pipes:[ve.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ii=function(X){return["../",X]};function Ei(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",15),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onSelectedIndexChange(fi)}),t._uU(1),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("active",Ae.activeTab.link===B.link)("routerLink",t.VKq(3,ii,B.link)),t.xp6(1),t.Oqu(B.name)}}let an=(()=>{class X{constructor(B,Ae,pt){this.router=B,this.store=Ae,this.boltzService=pt,this.swapTypeEnum=K.hc,this.selectedSwapType=K.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 s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.boltzService.listSwaps();const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeTab=B||this.links[0],this.selectedSwapType=B&&"swapin"===B.link?K.hc.SWAP_IN:K.hc.SWAP_OUT,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"swapin"===pt.link?K.hc.SWAP_IN:K.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,v.R)(this.unSubs[1])).subscribe({next:Ae=>{this.swaps=Ae,this.swapsData=this.selectedSwapType===K.hc.SWAP_IN?Ae.swaps:Ae.reverseSwaps,this.flgLoading[0]=!1},error:Ae=>{this.flgLoading[0]="error",this.emptyTableMessage=Ae.message?Ae.message:"No swap "+(this.selectedSwapType===K.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(B){"swapin"===B.link?(this.selectedSwapType=K.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=K.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(B){this.boltzService.serviceInfo().pipe((0,v.R)(this.unSubs[2])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{serviceInfo:Ae,direction:B,component:Zs}}}))}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(O.F0),t.Y36(M.yh),t.Y36(Un))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.TgZ(2,"g",2),t.TgZ(3,"g",3),t._UZ(4,"circle",4),t._UZ(5,"path",5),t._UZ(6,"path",6),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(7,"span",7),t._uU(8,"Boltz"),t.qZA(),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"mat-card"),t.TgZ(11,"mat-card-content",9),t.TgZ(12,"nav",10),t.YNc(13,Ei,2,5,"div",11),t.qZA(),t.TgZ(14,"div",12),t.TgZ(15,"button",13),t.NdJ("click",function(){return Ae.onSwap(Ae.selectedSwapType)}),t._uU(16),t.qZA(),t.qZA(),t._UZ(17,"rtl-boltz-swaps",14),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(13),t.Q6J("ngForOf",Ae.links),t.xp6(3),t.hij("Start ",Ae.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Ae.selectedSwapType)("swapsData",Ae.swapsData)("flgLoading",Ae.flgLoading)("emptyTableMessage",Ae.emptyTableMessage))},directives:[b.xw,b.Wh,N.a8,N.dn,b.yH,U.BU,ve.sg,ce.lW,qt,U.Nj,O.rH],styles:[""]}),X})();class ea{constructor(He){this.help=He}}function ys(X,He){if(1&X&&(t.TgZ(0,"mat-expansion-panel",8),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"mat-panel-description",9),t._UZ(5,"span",10),t.TgZ(6,"a",11),t._uU(7),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw().$implicit,Ae=t.oxw();t.xp6(3),t.Oqu(B.help.question),t.xp6(2),t.Q6J("innerHTML",B.help.answer,t.oJD),t.xp6(1),t.Q6J("routerLink",Ae.flgLoggedIn?Ae.LNPLink+B.help.link:"/login"),t.xp6(1),t.Oqu(Ae.flgLoggedIn?B.help.linkCaption:"Login to go to the page")}}function fs(X,He){if(1&X&&(t.TgZ(0,"div",6),t.YNc(1,ys,8,4,"mat-expansion-panel",7),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Q6J("ngIf","ALL"===B.help.lnImplementation||B.help.lnImplementation===Ae.selNode.lnImplementation)}}let ks=(()=>{class X{constructor(B,Ae){this.store=B,this.sessionService=Ae,this.helpTopics=[],this.faQuestion=x.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new s.x,new s.x,new s.x,new s.x],this.helpTopics.push(new ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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(r.dT).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{switch(this.selNode=B,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,v.R)(this.unSubs[1])).subscribe(B=>{this.flgLoggedIn=!!B.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(ke.m))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Help"),t.qZA(),t.qZA(),t.TgZ(5,"div",4),t.TgZ(6,"div",0),t.YNc(7,fs,2,1,"div",5),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("icon",Ae.faQuestion),t.xp6(5),t.Q6J("ngForOf",Ae.helpTopics))},directives:[b.xw,b.yH,b.Wh,Z.BN,ve.sg,ve.O5,Rn.ib,Rn.yz,Rn.yK,Rn.u4,O.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),X})();var bs=m(9841);function Ea(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}let Ol=(()=>{class X{constructor(B,Ae){this.dialogRef=B,this.store=Ae,this.faUserClock=x.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Me.M6)({payload:{twoFAToken:this.token}}))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Two Factor Token"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return Ae.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"form",7,8),t.NdJ("ngSubmit",function(){return Ae.onVerifyToken()}),t.TgZ(11,"mat-form-field"),t.TgZ(12,"input",9),t.NdJ("ngModelChange",function(fi){return Ae.token=fi}),t.qZA(),t.YNc(13,Ea,2,0,"mat-error",10),t.qZA(),t.TgZ(14,"div",11),t.TgZ(15,"button",12),t._uU(16,"Verify Token"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(12),t.Q6J("ngModel",Ae.token),t.xp6(1),t.Q6J("ngIf",!Ae.token))},directives:[b.xw,b.Wh,b.yH,N.dk,ce.lW,N.dn,Ze._Y,Ze.JL,Ze.F,vt.KE,rt.Nt,Ze.Fj,Ne.h,Ze.Q7,Ze.JJ,Ze.On,ve.O5,vt.TO],styles:[""]}),X})();function yo(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function so(X,He){if(1&X&&(t.TgZ(0,"p",21),t.TgZ(1,"mat-icon",22),t._uU(2,"close"),t.qZA(),t._uU(3),t.qZA()),2&X){const B=t.oxw();t.xp6(3),t.hij(" ",B.loginErrorMessage," ")}}const e1=function(X){return{"padding-gap-large":X}},t1=function(X,He){return{"font-size-200":X,"font-size-300":He}};let Po=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.store=Ae,this.rtlEffects=pt,this.commonService=fi,this.faUnlockAlt=x.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=K.cu,this.loginErrorMessage="",this.apiCallStatusEnum=K.Bn,this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,bs.a)([this.store.select(r.ul),this.store.select(r.Sr)]).pipe((0,v.R)(this.unSubs[0])).subscribe(([B,Ae])=>{this.loginErrorMessage="",B.status===K.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof B.message?JSON.stringify(B.message):B.message),this.logger.error(B.message)),Ae.status===K.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof Ae.message?JSON.stringify(Ae.message):Ae.message),this.logger.error(Ae.message))}),this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{this.appConfig=B,this.logger.info(B)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Me.qR)({payload:{maxWidth:"35rem",data:{component:Ol}}})),this.rtlEffects.closeAlert.pipe((0,Ce.q)(1)).subscribe(B=>{B&&this.store.dispatch((0,Me.x4)({payload:{password:oe(this.password),defaultPassword:K.kO.includes(this.password.toLowerCase()),twoFAToken:B.twoFAToken}}))})):this.store.dispatch((0,Me.x4)({payload:{password:oe(this.password),defaultPassword:K.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(nt.V),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._UZ(5,"img",5),t.qZA(),t.TgZ(6,"div",6),t.TgZ(7,"mat-card-header",7),t.TgZ(8,"mat-card-title",8),t.TgZ(9,"span",9),t._uU(10,"Welcome"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",10),t.TgZ(12,"form",11,12),t.TgZ(14,"mat-form-field",13),t.TgZ(15,"input",14),t.NdJ("ngModelChange",function(fi){return Ae.password=fi}),t.qZA(),t.TgZ(16,"mat-icon",15),t.NdJ("click",function(){return Ae.flgShow=!Ae.flgShow}),t._uU(17),t.qZA(),t.YNc(18,yo,2,0,"mat-error",16),t.qZA(),t.YNc(19,so,4,1,"p",17),t.TgZ(20,"div",18),t.TgZ(21,"button",19),t.NdJ("click",function(){return Ae.resetData()}),t._uU(22,"Clear"),t.qZA(),t.TgZ(23,"button",20),t.NdJ("click",function(){return Ae.onLogin()}),t._uU(24,"Login"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(6),t.Q6J("ngClass",t.VKq(7,e1,Ae.screenSize===Ae.screenSizeEnum.XS)),t.xp6(2),t.Q6J("ngClass",t.WLB(9,t1,Ae.screenSize===Ae.screenSizeEnum.XS,Ae.screenSize!==Ae.screenSizeEnum.XS)),t.xp6(7),t.Q6J("type",Ae.flgShow?"text":"password")("ngModel",Ae.password),t.xp6(2),t.Oqu(Ae.flgShow?"visibility_off":"visibility"),t.xp6(1),t.Q6J("ngIf",!Ae.password),t.xp6(1),t.Q6J("ngIf",""!==Ae.loginErrorMessage))},directives:[b.xw,b.yH,b.Wh,N.a8,ve.mk,Cn.oO,N.dk,N.n5,N.dn,Ze._Y,Ze.JL,Ze.F,vt.KE,rt.Nt,Ze.Fj,Ne.h,Ze.Q7,Ze.JJ,Ze.On,Mr.Hw,vt.R9,ve.O5,ce.lW,vt.TO],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}"]}),X})();var ko=m(9442);let No=(()=>{class X{constructor(B,Ae){this.activatedRoute=B,this.router=Ae,this.error={errorCode:"",errorMessage:""},this.faTimes=x.NBC,this.unsubs=[new s.x,new s.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,v.R)(this.unsubs[0])).subscribe(B=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(O.gz),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"mat-card",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"mat-card-title",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"mat-card-content",6),t.TgZ(8,"div",7),t._uU(9),t.qZA(),t.TgZ(10,"span",8),t.TgZ(11,"button",9),t.NdJ("click",function(){return Ae.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(4),t.Q6J("icon",Ae.faTimes),t.xp6(2),t.hij("Error ",Ae.error.errorCode,""),t.xp6(3),t.Oqu(Ae.error.errorMessage))},directives:[b.xw,b.yH,b.Wh,N.a8,N.dk,N.n5,Z.BN,N.dn,ce.lW],encapsulation:2}),X})();var Pa=m(1643),uc=m(9828),bo=m(8104),n1=m(6534),d0=m(9843);function Yr(X,He){1&X&&t._UZ(0,"span",16)}function fc(X,He){1&X&&t._UZ(0,"span",17)}function u0(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",19),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._uU(5,"Please ensure that "),t.TgZ(6,"strong"),t._uU(7,"experimental-offers"),t.qZA(),t._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),t.TgZ(9,"strong"),t.TgZ(10,"a",20),t._uU(11,"here"),t.qZA(),t.qZA(),t._uU(12," to learn more about Core Lightning offers."),t.qZA(),t.qZA(),t.TgZ(13,"h4",21),t._uU(14,"Description"),t.qZA(),t.TgZ(15,"span"),t._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),t.qZA(),t.TgZ(17,"h4",21),t._uU(18,"Links"),t.qZA(),t.TgZ(19,"span"),t.TgZ(20,"a",22),t._uU(21,"Core lightning Bolt12"),t.qZA(),t.qZA(),t._UZ(22,"mat-divider",23),t.TgZ(23,"div",24),t._UZ(24,"fa-icon",2),t.TgZ(25,"span"),t._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),t.qZA(),t.qZA(),t.TgZ(27,"mat-slide-toggle",25),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).enableOffers=pt})("change",function(){return t.CHM(B),t.oxw(2).onUpdateFeature()}),t._uU(28),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(3),t.Q6J("icon",B.faInfoCircle),t.xp6(19),t.Q6J("inset",!0),t.xp6(2),t.Q6J("icon",B.faExclamationTriangle),t.xp6(3),t.Q6J("ngModel",B.enableOffers),t.xp6(1),t.hij("Enable Offers ",B.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function r1(X,He){if(1&X&&(t.TgZ(0,"mat-option",43),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B),t.xp6(1),t.hij(" ",t.lcZ(2,2,B.id)," ")}}function sl(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.hij("",B.selPolicyType.placeholder," is required.")}}function ol(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.AsE("",B.selPolicyType.placeholder," must be greater than or equal to ",B.selPolicyType.min,".")}}function a1(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.AsE("",B.selPolicyType.placeholder," must be less than or equal to ",B.selPolicyType.max,".")}}function qa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base fee is required."),t.qZA())}function aa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base basis is required."),t.qZA())}function f0(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing base fee is required."),t.qZA())}function sa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing fee rate is required."),t.qZA())}function Ro(X,He){if(1&X&&(t.TgZ(0,"h4",44),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.Oqu(B.updateMsg.error&&""!==B.updateMsg.error?"Error: "+B.updateMsg.error||0:B.updateMsg||"Successfully Updated the Funding Policy!")}}function oo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",26),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._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."),t.qZA(),t.qZA(),t.TgZ(6,"div",27),t.TgZ(7,"mat-form-field",28),t.TgZ(8,"mat-select",29),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).selPolicyType=pt})("selectionChange",function(){return t.CHM(B),t.oxw(2).policyMod=null}),t.YNc(9,r1,3,4,"mat-option",30),t.qZA(),t.qZA(),t.TgZ(10,"mat-form-field",31),t.TgZ(11,"input",32,33),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).policyMod=pt}),t.qZA(),t.TgZ(13,"mat-hint"),t._uU(14),t.qZA(),t.YNc(15,sl,2,1,"mat-error",34),t.YNc(16,ol,2,2,"mat-error",34),t.YNc(17,a1,2,2,"mat-error",34),t.qZA(),t.qZA(),t.TgZ(18,"div",27),t.TgZ(19,"mat-form-field",31),t.TgZ(20,"input",35),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).leaseFeeBaseSat=pt}),t.qZA(),t.YNc(21,qa,2,0,"mat-error",34),t.qZA(),t.TgZ(22,"mat-form-field",31),t.TgZ(23,"input",36),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).leaseFeeBasis=pt}),t.qZA(),t.YNc(24,aa,2,0,"mat-error",34),t.qZA(),t.qZA(),t.TgZ(25,"div",27),t.TgZ(26,"mat-form-field",31),t.TgZ(27,"input",37),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).channelFeeMaxBaseSat=pt}),t.qZA(),t.YNc(28,f0,2,0,"mat-error",34),t.qZA(),t.TgZ(29,"mat-form-field",31),t.TgZ(30,"input",38),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).channelFeeMaxProportional=pt}),t.qZA(),t.YNc(31,sa,2,0,"mat-error",34),t.qZA(),t.qZA(),t.YNc(32,Ro,2,1,"h4",39),t.TgZ(33,"div",40),t.TgZ(34,"button",41),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onResetPolicy()}),t._uU(35,"Reset"),t.qZA(),t.TgZ(36,"button",42),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onUpdateFundingPolicy()}),t._uU(37,"Update"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(3),t.Q6J("icon",B.faExclamationTriangle),t.xp6(5),t.Q6J("ngModel",B.selPolicyType),t.xp6(1),t.Q6J("ngForOf",B.policyTypes),t.xp6(2),t.Q6J("ngModel",B.policyMod)("placeholder",B.selPolicyType.placeholder)("step","fixed"===B.selPolicyType.id?1e3:10)("min",B.selPolicyType.min)("max",B.selPolicyType.max),t.xp6(3),t.lnq("",B.selPolicyType.placeholder," should be between ",B.selPolicyType.min," and ",B.selPolicyType.max,""),t.xp6(1),t.Q6J("ngIf",!B.policyMod),t.xp6(1),t.Q6J("ngIf",B.policyModB.selPolicyType.max),t.xp6(3),t.Q6J("ngModel",B.leaseFeeBaseSat),t.xp6(1),t.Q6J("ngIf",!B.leaseFeeBaseSat),t.xp6(2),t.Q6J("ngModel",B.leaseFeeBasis),t.xp6(1),t.Q6J("ngIf",!B.leaseFeeBasis),t.xp6(3),t.Q6J("ngModel",B.channelFeeMaxBaseSat),t.xp6(1),t.Q6J("ngIf",!B.channelFeeMaxBaseSat),t.xp6(2),t.Q6J("ngModel",B.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",!B.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",B.flgUpdateCalled)}}function uh(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-expansion-panel",9),t.NdJ("opened",function(){const fi=t.CHM(B).index;return t.oxw().onPanelExpanded(fi)}),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title",10),t.TgZ(3,"h4",11),t._uU(4),t.qZA(),t.TgZ(5,"h4",11),t.YNc(6,Yr,1,0,"span",12),t.YNc(7,fc,1,0,"span",13),t._uU(8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div",14),t.YNc(10,u0,29,5,"form",15),t.YNc(11,oo,38,23,"form",15),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit,Ae=He.index;t.Q6J("expanded",!1),t.xp6(4),t.Oqu(B.name),t.xp6(2),t.Q6J("ngIf",B.enabled),t.xp6(1),t.Q6J("ngIf",!B.enabled),t.xp6(1),t.hij(" ",B.enabled?"Enabled":"Disabled"," "),t.xp6(2),t.Q6J("ngIf",0===Ae),t.xp6(1),t.Q6J("ngIf",1===Ae)}}const xs=O.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e(893),m.e(636)]).then(m.bind(m,1636)).then(X=>X.LNDModule),canActivate:[Pa.a1]},{path:"cln",loadChildren:()=>Promise.all([m.e(893),m.e(564)]).then(m.bind(m,9564)).then(X=>X.CLNModule),canActivate:[Pa.a1]},{path:"ecl",loadChildren:()=>Promise.all([m.e(893),m.e(924)]).then(m.bind(m,7924)).then(X=>X.ECLModule),canActivate:[Pa.a1]},{path:"settings",component:Oe,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:$,canActivate:[Pa.a1]},{path:"auth",component:Rt,canActivate:[Pa.a1]},{path:"bconfig",component:_t,canActivate:[Pa.a1]}]},{path:"config",component:Je,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:Lr,canActivate:[Pa.a1]},{path:"services",component:Gn,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:xr,canActivate:[Pa.a1]},{path:"boltz",component:Ir,canActivate:[Pa.a1]}]},{path:"experimental",component:(()=>{class X{constructor(B,Ae,pt){this.logger=B,this.store=Ae,this.dataService=pt,this.faInfoCircle=x.sqG,this.faExclamationTriangle=x.eHv,this.faCode=x.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy=null,this.policyTypes=K.gB,this.selPolicyType=K.gB[0],this.flgUpdateCalled=!1,this.updateMsg="",this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,v.R)(this.unSubs[0])).subscribe({next:B=>{this.logger.info("Received List Configs: "+JSON.stringify(B)),this.features[1].enabled=!!B["experimental-dual-fund"]},error:B=>{this.logger.error("List Configs Error: "+JSON.stringify(B)),this.features[1].enabled=!1}}),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B,this.enableOffers=this.selNode.settings.enableOffers,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(uc.Rn).pipe((0,v.R)(this.unSubs[2])).subscribe(B=>{this.policyTypes[2].max=B.balance.totalBalance||1e3})}onPanelExpanded(B){1===B&&!this.fundingPolicy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,v.R)(this.unSubs[3])).subscribe(Ae=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(Ae)),this.fundingPolicy=Ae,this.fundingPolicy.policy&&(this.selPolicyType=K.gB.find(pt=>pt.id===this.fundingPolicy.policy)),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,Me.jS)({payload:{uiMessage:K.m6.UPDATE_SETTING,service:K.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,ui.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,Lt.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,gt.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=!1,this.updateMsg="",this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,this.leaseFeeBaseSat,this.leaseFeeBasis,1e3*this.channelFeeMaxBaseSat,this.channelFeeMaxProportional/1e3).pipe((0,v.R)(this.unSubs[4])).subscribe({next:B=>{this.logger.info(B),this.fundingPolicy=B,this.onResetPolicy(),this.updateMsg="Compact Lease: "+B.compact_lease},error:B=>{this.logger.error(B),this.updateMsg=JSON.stringify(B.error.error.message)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg="",this.selPolicyType=this.fundingPolicy.policy?K.gB.find(B=>B.id===this.fundingPolicy.policy):K.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(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(bo.D))},X.\u0275cmp=t.Xpm({type:X,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","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",1,"font-bold-500","mt-2"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._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."),t.qZA(),t.qZA(),t.TgZ(5,"form",3,4),t.TgZ(7,"div",5),t._UZ(8,"fa-icon",6),t.TgZ(9,"span",7),t._uU(10,"Features"),t.qZA(),t.qZA(),t.TgZ(11,"mat-accordion"),t.YNc(12,uh,12,7,"mat-expansion-panel",8),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(6),t.Q6J("icon",Ae.faCode),t.xp6(4),t.Q6J("ngForOf",Ae.features))},directives:[b.xw,b.yH,z.$V,Z.BN,Ze._Y,Ze.JL,Ze.F,b.Wh,Rn.pp,ve.sg,Rn.ib,Rn.yz,Rn.yK,ve.O5,Be.d,Yi.Rr,Ne.h,Ze.JJ,Ze.On,vt.KE,Fe.gD,rt.Nt,Ze.wV,Ze.qQ,Ze.Fd,Ze.Fj,n1.q,d0.F,Ze.Q7,vt.bx,ce.lW,Le.ey,vt.TO],pipes:[ve.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),canActivate:[Pa.a1]},{path:"lnconfig",component:Kt,canActivate:[Pa.a1]}]},{path:"services",component:Ga,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Yt},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:an}]},{path:"help",component:ks},{path:"login",component:Po},{path:"error",component:No},{path:"**",component:ko.w}]);var s1=m(8750),Il=m(8878),Ws=m(4594),Pl=m(2181);function p0(X,He){if(1&X&&(t.TgZ(0,"p",2),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faCode),t.xp6(2),t.hij("API Version: ",null==B.information?null:B.information.api_version,"")}}function m0(X,He){if(1&X&&(t.TgZ(0,"a",11),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",12),t._uU(3,"Settings"),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faUserCog)}}function o1(X,He){if(1&X&&(t.TgZ(0,"a",13),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",14),t._uU(3,"Help"),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faLifeRing)}}function fh(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"a",15),t.NdJ("click",function(){return t.CHM(B),t.oxw().onClick()}),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3,"Logout"),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faEject)}}let g0=(()=>{class X{constructor(B,Ae,pt,fi,In){this.logger=B,this.sessionService=Ae,this.store=pt,this.rtlEffects=fi,this.actions=In,this.faUserCog=x.gNZ,this.faCodeBranch=x.mh3,this.faCode=x.dT$,this.faCog=x.b7W,this.faLifeRing=x.uli,this.faEject=x.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new s.x,new s.x,new s.x,new s.x],this.version=Wi.q4}ngOnInit(){this.store.select(r.R4).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{if(this.information=B,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 Ae=this.information.chains[0];this.informationChain.chain=Ae.chain,this.informationChain.network=Ae.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(B)}),this.sessionService.watchSession().pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{this.showLogout=!!B.token,this.flgLoading=!!B.token}),this.actions.pipe((0,v.R)(this.unSubs[2]),(0,de.h)(B=>B.type===K.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Me.c1)({payload:{data:{type:K.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,v.R)(this.unSubs[3])).subscribe(B=>{B&&(this.showLogout=!1,this.store.dispatch((0,Me.kS)()))})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(ke.m),t.Y36(M.yh),t.Y36(nt.V),t.Y36(l.eX))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){if(1&B&&(t.TgZ(0,"mat-menu",0,1),t.TgZ(2,"p",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA(),t.YNc(6,p0,4,2,"p",4),t.YNc(7,m0,4,1,"a",5),t.YNc(8,o1,4,1,"a",6),t.YNc(9,fh,4,1,"a",7),t.qZA(),t.TgZ(10,"button",8),t._UZ(11,"img",9),t.TgZ(12,"mat-icon",10),t._uU(13,"arrow_drop_down"),t.qZA(),t.qZA()),2&B){const pt=t.MAs(1);t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("icon",Ae.faCodeBranch),t.xp6(2),t.hij("Version: ",Ae.version,""),t.xp6(1),t.Q6J("ngIf",null==Ae.information?null:Ae.information.api_version),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("matMenuTriggerFor",pt)}},directives:[Pl.VK,Pl.OP,Z.BN,ve.O5,ce.lW,Pl.p6,Mr.Hw,O.yS,O.rH],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}),X})();var Ka=m(2638),kl=m(8258),as=m(149);const js={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/lnd/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/lnd/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/lnd/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/lnd/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/lnd/transactions",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/lnd/routing",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/lnd/reports",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/lnd/graph",userPersona:K.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/lnd/messages",userPersona:K.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:x.q7m,link:"/lnd/channelbackup",userPersona:K.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:x.o4t,link:"/lnd/network",userPersona:K.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:x.xf3,link:"/lnd/network",userPersona:K.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:x.Krp,link:"/services/loop",userPersona:K.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:x.vqe,link:"/services/loop",userPersona:K.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:K.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/cln/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/cln/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/cln/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/cln/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:x.Acd,link:"/cln/liquidityads",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/cln/transactions",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/cln/routing",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/cln/reports",userPersona:K.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/cln/graph",userPersona:K.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/cln/messages",userPersona:K.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:x.USL,link:"/cln/rates",userPersona:K.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:x.xf3,link:"/cln/rates",userPersona:K.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/ecl/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/ecl/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/ecl/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/ecl/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/ecl/transactions",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/ecl/routing",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/ecl/reports",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/ecl/graph",userPersona:K.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}]};var l1=m(7238);function pc(X,He){if(1&X&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.index),t.xp6(1),t.AsE(" ",B.lnNode," (",B.lnImplementation,") ")}}function mc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-select",9),t.NdJ("selectionChange",function(pt){return t.CHM(B),t.oxw().onNodeSelectionChange(pt.value)}),t.YNc(1,pc,2,3,"mat-option",10),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("value",B.selConfigNodeIndex),t.xp6(1),t.Q6J("ngForOf",B.appConfig.nodes)}}function gc(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.oxw(2);const Ae=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet","boltzIconBlock"===B.icon?Ae:null)}}function c1(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const B=t.oxw().$implicit;t.Q6J("icon",B.icon)}}function Rl(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B.icon)}}function Fo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",15),t.TgZ(1,"div",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onChildNavClicked(fi)}),t.TgZ(2,"div",17),t.YNc(3,gc,2,1,"span",18),t.YNc(4,c1,1,1,"fa-icon",19),t.YNc(5,Rl,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.s9C("routerLink",B.link),t.xp6(3),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name)}}function lo(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function za(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const B=t.oxw().$implicit;t.Q6J("icon",B.icon)}}function Cs(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B.icon)}}function Ns(X,He){if(1&X&&(t.TgZ(0,"mat-nested-tree-node",25),t.TgZ(1,"div",26),t.TgZ(2,"div",27),t.YNc(3,lo,2,1,"span",28),t.YNc(4,za,1,1,"fa-icon",19),t.YNc(5,Cs,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.TgZ(8,"button",29),t.TgZ(9,"mat-icon",30),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"div",31),t.GkF(12,32),t.qZA(),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw(2);t.xp6(3),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name),t.xp6(1),t.uIk("aria-label","toggle "+B.name),t.xp6(2),t.Oqu(Ae.treeControlNested.isExpanded(B)?"arrow_drop_up":"arrow_drop_down"),t.xp6(1),t.ekj("tree-children-invisible",!Ae.treeControlNested.isExpanded(B))}}function _c(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5,12),t.YNc(2,Fo,8,5,"mat-tree-node",13),t.YNc(3,Ns,13,8,"mat-nested-tree-node",14),t.qZA()),2&X){const B=t.oxw();t.Q6J("dataSource",B.navMenus)("treeControl",B.treeControlNested),t.xp6(3),t.Q6J("matTreeNodeDefWhen",B.hasChild)}}function h1(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function vc(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.Q6J("icon",B.icon)}}function Fl(X,He){if(1&X&&(t.TgZ(0,"mat-icon",37),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.xp6(1),t.Oqu(B.icon)}}function yc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onShowData(fi)}),t.YNc(1,h1,2,1,"span",18),t.YNc(2,vc,1,2,"fa-icon",34),t.YNc(3,Fl,2,2,"mat-icon",35),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name)}}function ta(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function ll(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.Q6J("icon",B.icon)}}function v0(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onClick(fi)}),t.YNc(1,ta,2,1,"span",28),t.YNc(2,ll,1,2,"fa-icon",34),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(2),t.Oqu(B.name)}}function ka(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5),t.YNc(1,v0,5,3,"mat-tree-node",6),t.qZA()),2&X){const B=t.oxw();t.Q6J("dataSource",B.navMenusLogout)("treeControl",B.treeControlLogout)}}function bc(X,He){1&X&&(t.O4$(),t.TgZ(0,"svg",38),t.TgZ(1,"g",39),t.TgZ(2,"g",40),t._UZ(3,"circle",41),t._UZ(4,"path",42),t._UZ(5,"path",43),t.qZA(),t.qZA(),t.qZA())}let cl=(()=>{class X{constructor(B,Ae,pt,fi,In,tr){this.logger=B,this.commonService=Ae,this.sessionService=pt,this.store=fi,this.actions=In,this.rtlEffects=tr,this.ChildNavClicked=new t.vpe,this.faEject=x.KOR,this.faEye=x.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:x.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:x.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=K.ol,this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x,new s.x],this.treeControlNested=new kl.VY(Fn=>Fn.children),this.treeControlLogout=new kl.VY(Fn=>Fn.children),this.treeControlShowData=new kl.VY(Fn=>Fn.children),this.navMenus=new as.WX,this.navMenusLogout=new as.WX,this.navMenusShowData=new as.WX,this.hasChild=(Fn,Br)=>!!Br.children&&Br.children.length>0,this.version=Wi.q4,200===js.LNDChildren[js.LNDChildren.length-1].id&&js.LNDChildren.pop(),this.navMenus.data=js.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const B=this.sessionService.getItem("token");this.showLogout=!!B,this.flgLoading=!!B,this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[0])).subscribe(Ae=>{this.appConfig=Ae}),this.store.select(r.gW).pipe((0,v.R)(this.unSubs[1])).subscribe(Ae=>{if(this.information=Ae.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=Ae.selNode,this.settings=this.selNode.settings,this.selConfigNodeIndex=+Ae.selNode.index,this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(Ae)}),this.sessionService.watchSession().pipe((0,v.R)(this.unSubs[2])).subscribe(Ae=>{this.showLogout=!!Ae.token,this.flgLoading=!!Ae.token}),this.actions.pipe((0,v.R)(this.unSubs[3]),(0,de.h)(Ae=>Ae.type===K.pg.LOGOUT)).subscribe(Ae=>{this.showLogout=!1})}onClick(B){"Logout"===B.name&&(this.store.dispatch((0,Me.c1)({payload:{data:{type:K.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,v.R)(this.unSubs[4])).subscribe(Ae=>{Ae&&(this.showLogout=!1,this.store.dispatch((0,Me.kS)()))})),this.ChildNavClicked.emit(B)}onChildNavClicked(B){this.ChildNavClicked.emit(B)}filterSideMenuNodes(){switch(this.selNode.lnImplementation.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let B=[];B=JSON.parse(JSON.stringify(js.LNDChildren)),this.navMenus.data=B.filter(Ae=>Ae.children&&Ae.children.length?(Ae.children=Ae.children.filter(pt=>(pt.userPersona===K.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()),Ae.children.length>0):Ae.userPersona===K.ol.ALL||Ae.userPersona===this.settings.userPersona)}loadCLNMenu(){let B=[];B=JSON.parse(JSON.stringify(js.CLNChildren)),this.navMenus.data=B.filter(Ae=>(Ae.children&&Ae.children.length&&(Ae.children=Ae.children.filter(pt=>(pt.userPersona===K.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"))),Ae.userPersona===K.ol.ALL||Ae.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(js.ECLChildren))}onShowData(B){this.store.dispatch((0,Me.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(B){const Ae=this.selConfigNodeIndex;this.selConfigNodeIndex=B;const pt=this.appConfig.nodes.find(fi=>+fi.index===B);this.store.dispatch((0,Me.fk)({payload:{uiMessage:K.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+Ae,currentLnNode:pt,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(ke.m),t.Y36(M.yh),t.Y36(l.eX),t.Y36(nt.V))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-side-navigation"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(as.gi,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,mc,2,2,"mat-select",2),t._UZ(3,"mat-divider",3),t.YNc(4,_c,4,3,"mat-tree",4),t._UZ(5,"mat-divider",3),t.TgZ(6,"mat-tree",5),t.YNc(7,yc,6,4,"mat-tree-node",6),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.YNc(9,ka,2,2,"mat-tree",4),t.qZA(),t.qZA(),t.YNc(10,bc,6,0,"ng-template",null,8,t.W1O)),2&B&&(t.xp6(2),t.Q6J("ngIf",Ae.appConfig.nodes.length>1),t.xp6(2),t.Q6J("ngIf",null==Ae.settings?null:Ae.settings.lnServerUrl),t.xp6(2),t.Q6J("dataSource",Ae.navMenusShowData)("treeControl",Ae.treeControlShowData),t.xp6(3),t.Q6J("ngIf",Ae.showLogout))},directives:[b.xw,b.yH,b.Wh,z.$V,ve.O5,Be.d,as.gi,as.fQ,Fe.gD,ve.sg,Le.ey,as.uo,as.eu,O.Od,O.rH,ve.tP,Z.BN,Mr.Hw,as.GZ,ce.lW,as.Ar,l1.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),X})();var d1=m(773);const Bo=["sideNavigation"],u1=["sideNavContent"];function ph(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(B),t.oxw().sideNavToggle()}),t.TgZ(1,"mat-icon"),t._uU(2,"menu"),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("matTooltip",B.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",B.smallScreen)}}function f1(X,He){1&X&&(t.O4$(),t._UZ(0,"path",18))}function Ho(X,He){1&X&&(t.O4$(),t._UZ(0,"path",19))}function zo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.flgSidenavPinned=!pt.flgSidenavPinned}),t.O4$(),t.TgZ(1,"svg",15),t.YNc(2,f1,1,0,"path",16),t.YNc(3,Ho,1,0,"path",17),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("matTooltip",B.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),t.xp6(2),t.Q6J("ngIf",!B.flgSidenavPinned),t.xp6(1),t.Q6J("ngIf",B.flgSidenavPinned)}}function Bl(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Oqu(B.information.alias?"RTL - "+B.information.alias:"RTL")}}function qs(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Oqu(B.information.alias?"Ride The Lightning - "+B.information.alias:"Ride The Lightning")}}function mh(X,He){1&X&&(t.TgZ(0,"div",20),t._UZ(1,"mat-spinner",21),t.TgZ(2,"h4"),t._uU(3,"Loading RTL..."),t.qZA(),t.qZA())}const co=function(X,He){return[X,He]};let Uo=(()=>{class X{constructor(B,Ae,pt,fi,In,tr,Fn,Br,ya){this.logger=B,this.commonService=Ae,this.store=pt,this.actions=fi,this.userIdle=In,this.router=tr,this.sessionService=Fn,this.breakpointObserver=Br,this.renderer=ya,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 s.x,new s.x,new s.x,new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.router.events.subscribe(B=>{B instanceof O.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([o.u3.XSmall,o.u3.TabletPortrait,o.u3.Small,o.u3.Medium,o.u3.Large,o.u3.XLarge]).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{B.breakpoints[o.u3.XSmall]?(this.commonService.setScreenSize(K.cu.XS),this.smallScreen=!0):B.breakpoints[o.u3.TabletPortrait]?(this.commonService.setScreenSize(K.cu.SM),this.smallScreen=!0):B.breakpoints[o.u3.Small]||B.breakpoints[o.u3.Medium]?(this.commonService.setScreenSize(K.cu.MD),this.smallScreen=!1):B.breakpoints[o.u3.Large]?(this.commonService.setScreenSize(K.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(K.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Me.ey)()),this.accessKey=this.readAccessKey(),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{this.settings=B.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[2])).subscribe(B=>{this.appConfig=B}),this.store.select(r.R4).pipe((0,v.R)(this.unSubs[3])).subscribe(B=>{this.information=B,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,v.R)(this.unSubs[4]),(0,de.h)(B=>B.type===K.pg.SET_RTL_CONFIG||B.type===K.pg.LOGIN||B.type===K.pg.LOGOUT)).subscribe(B=>{B.type===K.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+B.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,Me.x4)({payload:{password:oe(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),B.type===K.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)),B.type===K.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,v.R)(this.unSubs[5])).subscribe(B=>{this.logger.info("Counting Down: "+(11-B))}),this.userIdle.onTimeout().pipe((0,v.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,Me.ts)()),this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Me.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const B=window.location.href;return B.includes("access-key=")?B.substring(B.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(B){this.smallScreen&&this.sideNavigation.close()}copiedText(B){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+B)}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(l.eX),t.Y36(_),t.Y36(O.F0),t.Y36(ke.m),t.Y36(o.Yg),t.Y36(t.Qsj))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-app"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Bo,5),t.Gf(u1,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sideNavigation=pt.first),t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.ALo(1,"lowercase"),t.ALo(2,"lowercase"),t.TgZ(3,"mat-toolbar",1),t.TgZ(4,"div"),t.YNc(5,ph,3,2,"button",2),t.YNc(6,zo,4,3,"button",3),t.qZA(),t.TgZ(7,"div"),t.YNc(8,Bl,2,1,"span",4),t.YNc(9,qs,2,1,"span",4),t.qZA(),t.TgZ(10,"div"),t._UZ(11,"rtl-top-menu"),t.qZA(),t.qZA(),t.TgZ(12,"mat-sidenav-container"),t.TgZ(13,"mat-sidenav",5,6),t.TgZ(15,"rtl-side-navigation",7),t.NdJ("ChildNavClicked",function(fi){return Ae.onNavigationClicked(fi)}),t.qZA(),t.qZA(),t.TgZ(16,"mat-sidenav-content",8,9),t.TgZ(18,"div",10),t._UZ(19,"router-outlet",null,11),t.qZA(),t.qZA(),t._uU(21,"> "),t.qZA(),t.YNc(22,mh,4,0,"div",12),t.qZA()),2&B&&(t.Q6J("ngClass",t.WLB(12,co,t.lcZ(1,8,Ae.settings.themeColor),t.lcZ(2,10,Ae.settings.themeMode))),t.xp6(5),t.Q6J("ngIf",Ae.flgLoggedIn),t.xp6(1),t.Q6J("ngIf",!Ae.smallScreen&&Ae.flgLoggedIn),t.xp6(2),t.Q6J("ngIf",Ae.smallScreen),t.xp6(1),t.Q6J("ngIf",!Ae.smallScreen),t.xp6(4),t.Q6J("opened",Ae.flgSideNavOpened&&Ae.flgLoggedIn)("mode",Ae.flgSidenavPinned&&!Ae.smallScreen?"side":"over"),t.xp6(9),t.Q6J("ngIf",!Ae.settings.themeColor))},directives:[b.xw,ve.mk,Cn.oO,Ws.Ye,b.Wh,ve.O5,g0,Ka.TM,Ka.JX,z.$V,cl,b.yH,Ka.Rh,O.lC,ce.lW,l1.gM,Mr.Hw,d1.$g],pipes:[ve.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Il.g]}}),X})(),xo=(()=>{class X{constructor(B){this.sessionService=B}intercept(B,Ae){if(this.sessionService.getItem("token")){const pt=B.clone({headers:B.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return Ae.handle(pt)}return Ae.handle(B)}}return X.\u0275fac=function(B){return new(B||X)(t.LFG(ke.m))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var p1=m(7998),y0=m(711),Zo=m(4947),Vo=m(3289);const Go={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1},b0={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},gh={apiURL:"",apisCallStatus:{Login:{status:K.Bn.UN_INITIATED},IsAuthorized:{status:K.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Go,authentication:b0,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Go,authentication:b0}]},nodeData:{}},x0=(0,M.Lq)(gh,(0,M.on)(Me.qi,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(Me.vI,(X,{payload:He})=>Object.assign(Object.assign({},gh),{apisCallStatus:X.apisCallStatus,appConfig:X.appConfig,selNode:He})),(0,M.on)(Me.fk,(X,{payload:He})=>Object.assign(Object.assign({},X),{selNode:He.currentLnNode})),(0,M.on)(Me.Tm,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.selNode));switch(He.service){case K.JX.BOLTZ:B.settings.boltzServerUrl=He.settings.boltzServerUrl;break;case K.JX.LOOP:B.settings.swapServerUrl=He.settings.swapServerUrl;break;case K.JX.OFFERS:B.settings.enableOffers=He.settings.enableOffers}return Object.assign(Object.assign({},X),{selNode:B})}),(0,M.on)(Me._V,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeData:He})),(0,M.on)(Me.XT,(X,{payload:He})=>Object.assign(Object.assign({},X),{appConfig:He}))),C0={apisCallStatus:{FetchInfo:{status:K.Bn.UN_INITIATED},FetchFees:{status:K.Bn.UN_INITIATED},FetchPeers:{status:K.Bn.UN_INITIATED},FetchClosedChannels:{status:K.Bn.UN_INITIATED},FetchPendingChannels:{status:K.Bn.UN_INITIATED},FetchAllChannels:{status:K.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:K.Bn.UN_INITIATED},FetchInvoices:{status:K.Bn.UN_INITIATED},FetchPayments:{status:K.Bn.UN_INITIATED},FetchForwardingHistory:{status:K.Bn.UN_INITIATED},FetchUTXOs:{status:K.Bn.UN_INITIATED},FetchTransactions:{status:K.Bn.UN_INITIATED},FetchLightningTransactions:{status:K.Bn.UN_INITIATED},FetchNetwork:{status:K.Bn.UN_INITIATED}},nodeSettings:{userPersona:K.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 _h=!1,M0=!1;const vh=(0,M.Lq)(C0,(0,M.on)(ui.PC,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(ui.JT,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(ui.Ll,(X,{payload:He})=>Object.assign(Object.assign({},C0),{nodeSettings:He})),(0,M.on)(ui.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(ui.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(ui.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.pub_key===He.pubkey);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(ui.YP,(X,{payload:He})=>{const B=X.listInvoices;return B.invoices.unshift(He),Object.assign(Object.assign({},X),{listInvoices:B})}),(0,M.on)(ui.aL,(X,{payload:He})=>{const B=X.listInvoices;return B.invoices=B.invoices.map(Ae=>Ae.payment_request===He.payment_request?He:Ae),Object.assign(Object.assign({},X),{listInvoices:B})}),(0,M.on)(ui.qY,(X,{payload:He})=>{const B=X.listPayments;return B.payments=B.payments.map(Ae=>Ae.payment_hash===He.payment_hash?He:Ae),Object.assign(Object.assign({},X),{listPayments:B})}),(0,M.on)(ui.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(ui._L,(X,{payload:He})=>Object.assign(Object.assign({},X),{closedChannels:He})),(0,M.on)(ui.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He.pendingChannels,pendingChannelsSummary:He.pendingChannelsSummary})),(0,M.on)(ui.as,(X,{payload:He})=>{let B=0,Ae=0,pt=0,fi=0,In=0,tr=0;return He&&He.forEach(Fn=>{Fn.local_balance||(Fn.local_balance=0),!0===Fn.active?(In+=+Fn.local_balance,pt+=1,Fn.local_balance?B=+B+ +Fn.local_balance:Fn.local_balance=0,Fn.remote_balance?Ae=+Ae+ +Fn.remote_balance:Fn.remote_balance=0):(tr+=+Fn.local_balance,fi+=1)}),Object.assign(Object.assign({},X),{channels:He,channelsSummary:{active:{num_channels:pt,capacity:In},inactive:{num_channels:fi,capacity:tr}},lightningBalance:{local:B,remote:Ae}})}),(0,M.on)(ui.OG,(X,{payload:He})=>{const B=[...X.channels],Ae=X.channels.findIndex(pt=>pt.channel_point===He.channelPoint);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{channels:B})}),(0,M.on)(ui.Jl,(X,{payload:He})=>Object.assign(Object.assign({},X),{blockchainBalance:He})),(0,M.on)(ui.ks,(X,{payload:He})=>Object.assign(Object.assign({},X),{networkInfo:He})),(0,M.on)(ui.Nr,(X,{payload:He})=>(He.total_invoices||(He.total_invoices=X.listInvoices.total_invoices),Object.assign(Object.assign({},X),{listInvoices:He}))),(0,M.on)(ui.Lf,(X,{payload:He})=>{if(_h=!0,He.length&&M0){const B=[...X.utxos];return B.forEach(Ae=>{const pt=He.find(fi=>fi.tx_hash===Ae.outpoint.txid_str);Ae.label=pt&&pt.label?pt.label:""}),Object.assign(Object.assign({},X),{utxos:B,transactions:He})}return Object.assign(Object.assign({},X),{transactions:He})}),(0,M.on)(ui.UH,(X,{payload:He})=>{if(M0=!0,He.length&&_h){const B=[...X.transactions];He.forEach(Ae=>{const pt=B.find(fi=>fi.tx_hash===Ae.outpoint.txid_str);Ae.label=pt&&pt.label?pt.label:""})}return Object.assign(Object.assign({},X),{utxos:He})}),(0,M.on)(ui.HI,(X,{payload:He})=>{const B={listInvoicesAll:X.allLightningTransactions.listInvoicesAll,listPaymentsAll:He};return Object.assign(Object.assign({},X),{listPayments:He,allLightningTransactions:B})}),(0,M.on)(ui.Fr,(X,{payload:He})=>{const B={listInvoicesAll:He.listInvoicesAll,listPaymentsAll:X.listPayments};return Object.assign(Object.assign({},X),{allLightningTransactions:B})}),(0,M.on)(ui.QJ,(X,{payload:He})=>{const B=[...X.channels,...X.closedChannels];let Ae=He.forwarding_events?JSON.parse(JSON.stringify(He)):{};return Ae.forwarding_events&&(Ae=m1(Ae,B)),Object.assign(Object.assign({},X),{forwardingHistory:Ae})})),m1=(X,He)=>(X.forwarding_events.forEach(B=>{if(He&&He.length>0)for(let Ae=0;Ae{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(Lt.oo,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(Lt.xH,(X,{payload:He})=>Object.assign(Object.assign({},Yo),{nodeSettings:He})),(0,M.on)(Lt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(Lt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(Lt.I8,(X,{payload:He})=>He.perkb?Object.assign(Object.assign({},X),{feeRatesPerKB:He}):He.perkw?Object.assign(Object.assign({},X),{feeRatesPerKW:He}):Object.assign({},X)),(0,M.on)(Lt.Lu,(X,{payload:He})=>Object.assign(Object.assign({},X),{balance:He})),(0,M.on)(Lt.xS,(X,{payload:He})=>Object.assign(Object.assign({},X),{localRemoteBalance:He})),(0,M.on)(Lt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(Lt.X3,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:[...X.peers,He]})),(0,M.on)(Lt.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.id===He.id);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(Lt.as,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He.activeChannels,pendingChannels:He.pendingChannels,inactiveChannels:He.inactiveChannels})),(0,M.on)(Lt.OG,(X,{payload:He})=>{const B=[...X.peers];return B.forEach(Ae=>{Ae.id===He.id&&(Ae.connected=!1,delete Ae.netaddr)}),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(Lt.HI,(X,{payload:He})=>Object.assign(Object.assign({},X),{payments:He})),(0,M.on)(Lt.QJ,(X,{payload:He})=>{const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels],Ae=ho(He.listForwards,B);switch(He.listForwards=Ae,He.status){case K.OO.SETTLED:const pt=X.fees;return pt.totalTxCount=0|He.totalForwards,Object.assign(Object.assign({},X),{fees:pt,forwardingHistory:He});case K.OO.FAILED:return Object.assign(Object.assign({},X),{failedForwardingHistory:He});case K.OO.LOCAL_FAILED:return Object.assign(Object.assign({},X),{localFailedForwardingHistory:He});default:return Object.assign({},X)}}),(0,M.on)(Lt.YP,(X,{payload:He})=>{const B=X.invoices;return B.invoices.unshift(He),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(Lt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(Lt.aL,(X,{payload:He})=>{const B=X.invoices;return B.invoices=B.invoices.map(Ae=>Ae.label===He.label?He:Ae),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(Lt.UH,(X,{payload:He})=>Object.assign(Object.assign({},X),{utxos:He})),(0,M.on)(Lt.Zu,(X,{payload:He})=>Object.assign(Object.assign({},X),{offers:He})),(0,M.on)(Lt.ZH,(X,{payload:He})=>{const B=X.offers;return B.unshift(He),Object.assign(Object.assign({},X),{offers:B})}),(0,M.on)(Lt.JK,(X,{payload:He})=>{const B=[...X.offers],Ae=X.offers.findIndex(pt=>pt.offer_id===He.offer.offer_id);return Ae>-1&&B.splice(Ae,1,He.offer),Object.assign(Object.assign({},X),{offers:B})}),(0,M.on)(Lt.d7,(X,{payload:He})=>Object.assign(Object.assign({},X),{offersBookmarks:He})),(0,M.on)(Lt.e9,(X,{payload:He})=>{const B=[...X.offersBookmarks],Ae=B.findIndex(pt=>pt.bolt12===He.bolt12);if(Ae<0)B.unshift(He);else{const pt=Object.assign({},B[Ae]);pt.title=He.title,pt.amountmSat=He.amountmSat,pt.lastUpdatedAt=He.lastUpdatedAt,pt.description=He.description,pt.vendor=He.vendor,B.splice(Ae,1,pt)}return Object.assign(Object.assign({},X),{offersBookmarks:B})}),(0,M.on)(Lt.en,(X,{payload:He})=>{const B=[...X.offersBookmarks],Ae=X.offersBookmarks.findIndex(pt=>pt.bolt12===He.bolt12);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{offersBookmarks:B})})),ho=(X,He)=>(X&&X.length>0?X.forEach((B,Ae)=>{if(He&&He.length>0)for(let pt=0;pt{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(gt.Zr,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(gt.Fd,(X,{payload:He})=>Object.assign(Object.assign({},uo),{nodeSettings:He})),(0,M.on)(gt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(gt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(gt.eN,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He})),(0,M.on)(gt.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He})),(0,M.on)(gt.i,(X,{payload:He})=>Object.assign(Object.assign({},X),{inactiveChannels:He})),(0,M.on)(gt.HG,(X,{payload:He})=>Object.assign(Object.assign({},X),{channelsStatus:He})),(0,M.on)(gt.Bw,(X,{payload:He})=>Object.assign(Object.assign({},X),{onchainBalance:He})),(0,M.on)(gt.On,(X,{payload:He})=>Object.assign(Object.assign({},X),{lightningBalance:He})),(0,M.on)(gt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(gt.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.nodeId===He.nodeId);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(gt.OG,(X,{payload:He})=>{const B=[...X.activeChannels],Ae=X.activeChannels.findIndex(pt=>pt.channelId===He.channelId);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{activeChannels:B})}),(0,M.on)(gt.HI,(X,{payload:He})=>{if(He&&He.sent){const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.sent.map(Ae=>{const pt=X.peers.find(fi=>fi.nodeId===Ae.recipientNodeId);return Ae.recipientNodeAlias=pt?pt.alias:Ae.recipientNodeId,Ae.parts&&Ae.parts.map(fi=>{const In=B.find(tr=>tr.channelId===fi.toChannelId);return fi.toChannelAlias=In?In.alias:fi.toChannelId,Ae.parts}),He.sent})}if(He&&He.relayed){const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.relayed.forEach(Ae=>{Ae=_1(Ae,B)})}return Object.assign(Object.assign({},X),{payments:He})}),(0,M.on)(gt.Lf,(X,{payload:He})=>Object.assign(Object.assign({},X),{transactions:He})),(0,M.on)(gt.YP,(X,{payload:He})=>{const B=X.invoices;return B.unshift(He),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(gt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(gt.aL,(X,{payload:He})=>{let B=X.invoices;return B=B.map(Ae=>{if(Ae.paymentHash===He.paymentHash){if(He.hasOwnProperty("type")){const pt=JSON.parse(JSON.stringify(Ae));return pt.amountSettled=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].amount?He.parts[0].amount/1e3:0,pt.receivedAt=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].timestamp?Math.round(He.parts[0].timestamp/1e3):0,pt.status="received",pt}return He}return Ae}),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(gt.DJ,(X,{payload:He})=>{let B=X.pendingChannels;return B=B.map(Ae=>(Ae.channelId===He.channelId&&Ae.nodeId===He.remoteNodeId&&(He.currentState=He.currentState.replace(/_/g," "),Ae.state=He.currentState),Ae)),Object.assign(Object.assign({},X),{pendingChannels:B})}),(0,M.on)(gt.ti,(X,{payload:He})=>{const B=X.payments,Ae=_1(He,[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels]);Ae.amountIn=Math.round(He.amountIn/1e3),Ae.amountOut=Math.round(He.amountOut/1e3),B.relayed.unshift(Ae);const pt=He.amountIn-He.amountOut,fi={localBalance:X.lightningBalance.localBalance+pt,remoteBalance:X.lightningBalance.remoteBalance-pt},In=X.channelsStatus;In.active.capacity=X.channelsStatus.active.capacity+pt;const tr={daily_fee:X.fees.daily_fee+pt,daily_txs:X.fees.daily_txs+1,weekly_fee:X.fees.weekly_fee+pt,weekly_txs:X.fees.weekly_txs+1,monthly_fee:X.fees.monthly_fee+pt,monthly_txs:X.fees.monthly_txs+1},Fn=X.activeChannels;let Br=!1,ya=!1;for(const sr of Fn){if(sr.channelId===He.fromChannelId){Br=!0;const Na=sr.toLocal+sr.toRemote;sr.toLocal=sr.toLocal+Ae.amountIn,sr.toRemote=sr.toRemote-Ae.amountIn,sr.balancedness=0===Na?1:+(1-Math.abs((sr.toLocal-sr.toRemote)/Na)).toFixed(3)}if(sr.channelId===He.toChannelId){ya=!0;const Na=sr.toLocal+sr.toRemote;sr.toLocal=sr.toLocal-Ae.amountOut,sr.toRemote=sr.toRemote+Ae.amountOut,sr.balancedness=0===Na?1:+(1-Math.abs((sr.toLocal-sr.toRemote)/Na)).toFixed(3)}if(ya&&Br)break}return Object.assign(Object.assign({},X),{payments:B,lightningBalance:fi,channelStatus:In,fees:tr,activeChannels:Fn})})),_1=(X,He)=>{if("payment-relayed"===X.type)if(He&&He.length>0)for(let B=0;B0)for(let B=0;B{He[B].channelId.toString()===Ae.channelId&&(Ae.channelAlias=He[B].alias?He[B].alias:Ae.channelId,Ae.shortChannelId=He[B].shortChannelId?He[B].shortChannelId:"")}),X.outgoing.forEach(Ae=>{He[B].channelId.toString()===Ae.channelId&&(Ae.channelAlias=He[B].alias?He[B].alias:Ae.channelId,Ae.shortChannelId=He[B].shortChannelId?He[B].shortChannelId:"")}),B===He.length-1&&(X.incoming[0].channelAlias||X.incoming.forEach(Ae=>{Ae.channelAlias=Ae.channelId.substring(0,17)+"...",Ae.shortChannelId=""}),X.outgoing[0].channelAlias||X.outgoing.forEach(Ae=>{Ae.channelAlias=Ae.channelId.substring(0,17)+"...",Ae.shortChannelId=""}));else X.incoming.forEach(B=>{B.channelAlias=B.channelId.substring(0,17)+"...",B.shortChannelId=""}),X.outgoing.forEach(B=>{B.channelAlias=B.channelId.substring(0,17)+"...",B.shortChannelId=""});X.amountIn=X.incoming.reduce((B,Ae)=>B+Ae.amount,0),X.fromChannelId=X.incoming[0].channelId,X.fromChannelAlias=X.incoming[0].channelAlias,X.fromShortChannelId=X.incoming[0].shortChannelId,X.amountOut=X.outgoing.reduce((B,Ae)=>B+Ae.amount,0),X.toChannelId=X.outgoing[0].channelId,X.toChannelAlias=X.outgoing[0].channelAlias,X.toShortChannelId=X.outgoing[0].shortChannelId}return X};let Hl=(()=>{class X{}return X.\u0275fac=function(B){return new(B||X)},X.\u0275mod=t.oAB({type:X,bootstrap:[Uo]}),X.\u0275inj=t.cJS({providers:[{provide:C.TP,useClass:xo,multi:!0},Pa.a1,ke.m,bo.D,p1.d,Zr.W,Ci.v,Un],imports:[[y.PW,s1.m,xs,o.xu,e.t6,D.forRoot({idle:3590,timeout:10,ping:12e3}),M.Aw.forRoot({root:x0,lnd:vh,cln:g1,ecl:yh},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),l.sQ.forRoot([nt.V,y0.l,Zo.J,Vo.o]),Wi.NZ.production?[]:R.FT.instrument()]]}),X})();Wi.NZ.production&&(0,t.G48)(),e.q6().bootstrapModule(Hl).catch(X=>console.log(X))},7854:(Ge,Q)=>{"use strict";function m(K){return Object.keys(K).map(Me=>K[Me])}var K;Object.defineProperty(Q,"__esModule",{value:!0}),(K=Q.HashAlgorithms||(Q.HashAlgorithms={})).SHA1="sha1",K.SHA256="sha256",K.SHA512="sha512";const e=m(Q.HashAlgorithms);!function(K){K.ASCII="ascii",K.BASE64="base64",K.HEX="hex",K.LATIN1="latin1",K.UTF8="utf8"}(Q.KeyEncodings||(Q.KeyEncodings={}));const t=m(Q.KeyEncodings);!function(K){K.HOTP="hotp",K.TOTP="totp"}(Q.Strategy||(Q.Strategy={}));const y=m(Q.Strategy),C=()=>{throw new Error("Please provide an options.createDigest implementation.")};function o(K){return/^(\d+)$/.test(K)}function M(K,Me,we){return K.length>=Me?K:`${Array(Me+1).join(we)}${K}`.slice(-1*Me)}function l(K){const Me=`otpauth://${K.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,we=[];if(y.indexOf(K.type)<0)throw new Error(`Expecting options.type to be one of ${y.join(", ")}. Received ${K.type}.`);if("hotp"===K.type){if(null==K.counter||"number"!=typeof K.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');we.push(`&counter=${K.counter}`)}return"totp"===K.type&&K.step&&we.push(`&period=${K.step}`),K.digits&&we.push(`&digits=${K.digits}`),K.algorithm&&we.push(`&algorithm=${K.algorithm.toUpperCase()}`),K.issuer&&we.push(`&issuer=${encodeURIComponent(K.issuer)}`),Me.replace("{labelPrefix}",encodeURIComponent(K.issuer||K.accountName)).replace("{accountName}",encodeURIComponent(K.accountName)).replace("{secret}",K.secret).replace("{query}",we.join(""))}class R{constructor(Me={}){this._defaultOptions=Object.freeze(to({},Me)),this._options=Object.freeze({})}create(Me={}){return new R(Me)}clone(Me={}){const we=this.create(to(to({},this._defaultOptions),Me));return we.options=this._options,we}get options(){return Object.freeze(to(to({},this._defaultOptions),this._options))}set options(Me){this._options=Object.freeze(to(to({},this._options),Me))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function s(K){if("function"!=typeof K.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof K.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof K.digits)throw new Error("Expecting options.digits to be a number.");if(!K.algorithm||e.indexOf(K.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${K.algorithm}.`);if(!K.encoding||t.indexOf(K.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${t.join(", ")}. Received ${K.encoding}.`)}const L=(K,Me,we)=>Buffer.from(Me,we).toString("hex");function I(){return{algorithm:Q.HashAlgorithms.SHA1,createHmacKey:L,createDigest:C,digits:6,encoding:Q.KeyEncodings.ASCII}}function A(K){const Me=to(to({},I()),K);return s(Me),Object.freeze(Me)}function E(K){return M(K.toString(16),16,"0")}function P(K,Me){const we=Buffer.from(K,"hex"),z=15&we[we.length-1],vt=((127&we[z])<<24|(255&we[z+1])<<16|(255&we[z+2])<<8|255&we[z+3])%Math.pow(10,Me);return M(String(vt),Me,"0")}function V(K,Me,we){const z=we.digest||function w(K,Me,we){const z=E(Me),Ze=we.createHmacKey(we.algorithm,K,we.encoding);return we.createDigest(we.algorithm,Ze,z)}(K,Me,we);return P(z,we.digits)}function j(K,Me,we,z){return!!o(K)&&K===V(Me,we,z)}function W(K,Me,we,z,Ze){return l({algorithm:Ze.algorithm,digits:Ze.digits,type:Q.Strategy.HOTP,accountName:K,counter:z,issuer:Me,secret:we})}class te extends R{create(Me={}){return new te(Me)}allOptions(){return A(this.options)}generate(Me,we){return V(Me,we,this.allOptions())}check(Me,we,z){return j(Me,we,z,this.allOptions())}verify(Me){if("object"!=typeof Me)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Me.token,Me.secret,Me.counter)}keyuri(Me,we,z,Ze){return W(Me,we,z,Ze,this.allOptions())}}function ee(K){if("number"==typeof K)return[Math.abs(K),Math.abs(K)];if(Array.isArray(K)){const[Me,we]=K;if("number"==typeof Me&&"number"==typeof we)return[Math.abs(Me),Math.abs(we)]}throw new Error("Expecting options.window to be an number or [number, number].")}function ge(K){if(s(K),ee(K.window),"number"!=typeof K.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof K.step)throw new Error("Expecting options.step to be a number.")}const le=(K,Me,we)=>{const z=K.length,Ze=Buffer.from(K,Me).toString("hex");if(z{switch(K){case Q.HashAlgorithms.SHA1:return le(Me,we,20);case Q.HashAlgorithms.SHA256:return le(Me,we,32);case Q.HashAlgorithms.SHA512:return le(Me,we,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${K}.`)}};function de(){return{algorithm:Q.HashAlgorithms.SHA1,createDigest:C,createHmacKey:re,digits:6,encoding:Q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function se(K){const Me=to(to({},de()),K);return ge(Me),Object.freeze(Me)}function ye(K,Me){return Math.floor(K/Me/1e3)}function v(K,Me){return V(K,ye(Me.epoch,Me.step),Me)}function i(K,Me,we,z){const Ze=[];if(0===z)return Ze;for(let vt=1;vt<=z;vt++)Ze.push(K+Me*vt*we);return Ze}function a(K,Me,we){const z=ee(we),Ze=1e3*Me;return{current:K,past:i(K,-1,Ze,z[0]),future:i(K,1,Ze,z[1])}}function p(K,Me,we){return!!o(K)&&K===v(Me,we)}function u(K,Me,we,z){let Ze=null;return K.some((vt,Fe)=>!!p(Me,we,_8(to({},z),{epoch:vt}))&&(Ze=Fe+1,!0)),Ze}function _(K,Me,we){if(p(K,Me,we))return 0;const z=a(we.epoch,we.step,we.window),Ze=u(z.past,K,Me,we);return null!==Ze?-1*Ze:u(z.future,K,Me,we)}function D(K,Me){return Math.floor(K/1e3)%Me}function O(K,Me){return Me-D(K,Me)}function x(K,Me,we,z){return l({algorithm:z.algorithm,digits:z.digits,step:z.step,type:Q.Strategy.TOTP,accountName:K,issuer:Me,secret:we})}class r extends te{create(Me={}){return new r(Me)}allOptions(){return se(this.options)}generate(Me){return v(Me,this.allOptions())}checkDelta(Me,we){return _(Me,we,this.allOptions())}check(Me,we){return"number"==typeof this.checkDelta(Me,we)}verify(Me){if("object"!=typeof Me)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Me.token,Me.secret)}timeRemaining(){const Me=this.allOptions();return O(Me.epoch,Me.step)}timeUsed(){const Me=this.allOptions();return D(Me.epoch,Me.step)}keyuri(Me,we,z){return x(Me,we,z,this.allOptions())}}function b(K){if(ge(K),"function"!=typeof K.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(K.keyEncoder&&"function"!=typeof K.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function Z(){return{algorithm:Q.HashAlgorithms.SHA1,createDigest:C,createHmacKey:re,digits:6,encoding:Q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function N(K){const Me=to(to({},Z()),K);return b(Me),Object.freeze(Me)}function U(K,Me){return Me.keyEncoder(K,Me.encoding)}function ve(K,Me){return Me.keyDecoder(K,Me.encoding)}function be(K,Me){return U(Me.createRandomBytes(K,Me.encoding),Me)}function Re(K,Me){return v(ve(K,Me),Me)}function ze(K,Me,we){return _(K,ve(Me,we),we)}class Oe extends r{create(Me={}){return new Oe(Me)}allOptions(){return N(this.options)}generate(Me){return Re(Me,this.allOptions())}checkDelta(Me,we){return ze(Me,we,this.allOptions())}encode(Me){return U(Me,this.allOptions())}decode(Me){return ve(Me,this.allOptions())}generateSecret(Me=10){return be(Me,this.allOptions())}}Q.Authenticator=Oe,Q.HASH_ALGORITHMS=e,Q.HOTP=te,Q.KEY_ENCODINGS=t,Q.OTP=R,Q.STRATEGY=y,Q.TOTP=r,Q.authenticatorCheckWithWindow=ze,Q.authenticatorDecoder=ve,Q.authenticatorDefaultOptions=Z,Q.authenticatorEncoder=U,Q.authenticatorGenerateSecret=be,Q.authenticatorOptionValidator=b,Q.authenticatorOptions=N,Q.authenticatorToken=Re,Q.createDigestPlaceholder=C,Q.hotpCheck=j,Q.hotpCounter=E,Q.hotpCreateHmacKey=L,Q.hotpDefaultOptions=I,Q.hotpDigestToToken=P,Q.hotpKeyuri=W,Q.hotpOptions=A,Q.hotpOptionsValidator=s,Q.hotpToken=V,Q.isTokenValid=o,Q.keyuri=l,Q.objectValues=m,Q.padStart=M,Q.totpCheck=p,Q.totpCheckByEpoch=u,Q.totpCheckWithWindow=_,Q.totpCounter=ye,Q.totpCreateHmacKey=re,Q.totpDefaultOptions=de,Q.totpEpochAvailable=a,Q.totpKeyuri=x,Q.totpOptions=se,Q.totpOptionsValidator=ge,Q.totpPadSecret=le,Q.totpTimeRemaining=O,Q.totpTimeUsed=D,Q.totpToken=v},6098:(Ge,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var t=function e(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(m(1348));Q.createDigest=(o,M,l)=>t.createHmac(o,Buffer.from(M,"hex")).update(Buffer.from(l,"hex")).digest().toString("hex"),Q.createRandomBytes=(o,M)=>t.randomBytes(o).toString(M)},1415:(Ge,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var t=function e(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(m(2167));Q.keyDecoder=(o,M)=>t.decode(o).toString(M),Q.keyEncoder=(o,M)=>t.encode(Buffer.from(o,M).toString("ascii")).toString().replace(/=/g,"")},842:(Ge,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var e=m(6098),t=m(1415),y=m(7854);const C=new y.HOTP({createDigest:e.createDigest}),o=new y.TOTP({createDigest:e.createDigest}),M=new y.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:t.keyDecoder,keyEncoder:t.keyEncoder});Q.authenticator=M,Q.hotp=C,Q.totp=o},6046:(Ge,Q,m)=>{"use strict";m.d(Q,{H5:()=>_4,K$:()=>g4,a4:()=>lh});var e=m(5e3),t=m(9808),y=m(7429),C=m(655),o=m(4968),M=m(8372),l=m(1777);function R(){}function s(f){return null==f?R:function(){return this.querySelector(f)}}function I(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function A(){return[]}function E(f){return null==f?A:function(){return this.querySelectorAll(f)}}function V(f){return function(){return this.matches(f)}}function j(f){return function(T){return T.matches(f)}}var W=Array.prototype.find;function ee(){return this.firstElementChild}var le=Array.prototype.filter;function re(){return this.children}function v(f){return new Array(f.length)}function a(f,T){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=T}function p(f){return function(){return f}}function u(f,T,n,d,k,H){for(var Se,ae=0,ht=T.length,mt=H.length;aeT?1:f>=T?0:NaN}a.prototype={constructor:a,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,T){return this._parent.insertBefore(f,T)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var Me="http://www.w3.org/1999/xhtml";const we={svg:"http://www.w3.org/2000/svg",xhtml:Me,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function z(f){var T=f+="",n=T.indexOf(":");return n>=0&&"xmlns"!==(T=f.slice(0,n))&&(f=f.slice(n+1)),we.hasOwnProperty(T)?{space:we[T],local:f}:f}function Ze(f){return function(){this.removeAttribute(f)}}function vt(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Fe(f,T){return function(){this.setAttribute(f,T)}}function Ne(f,T){return function(){this.setAttributeNS(f.space,f.local,T)}}function ce(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttribute(f):this.setAttribute(f,n)}}function Le(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,n)}}function q(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function $(f){return function(){this.style.removeProperty(f)}}function oe(f,T,n){return function(){this.style.setProperty(f,T,n)}}function Ce(f,T,n){return function(){var d=T.apply(this,arguments);null==d?this.style.removeProperty(f):this.style.setProperty(f,d,n)}}function lt(f,T){return f.style.getPropertyValue(T)||q(f).getComputedStyle(f,null).getPropertyValue(T)}function nt(f){return function(){delete this[f]}}function ft(f,T){return function(){this[f]=T}}function it(f,T){return function(){var n=T.apply(this,arguments);null==n?delete this[f]:this[f]=n}}function Mt(f){return f.trim().split(/^|\s+/)}function Zt(f){return f.classList||new Ft(f)}function Ft(f){this._node=f,this._names=Mt(f.getAttribute("class")||"")}function Vt(f,T){for(var n=Zt(f),d=-1,k=T.length;++d=0&&(n=T.slice(d+1),T=T.slice(0,d)),{type:T,name:n}})}function Ke(f){return function(){var T=this.__on;if(T){for(var H,n=0,d=-1,k=T.length;n=0&&(this._names.splice(T,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var kt=[null];function yi(f,T){this._groups=f,this._parents=T}function Ni(){return new yi([[document.documentElement]],kt)}yi.prototype=Ni.prototype={constructor:yi,select:function L(f){"function"!=typeof f&&(f=s(f));for(var T=this._groups,n=T.length,d=new Array(n),k=0;k=Qi&&(Qi=Gi+1);!(fn=di[Qi])&&++Qi=0;)(ae=d[k])&&(H&&4^ae.compareDocumentPosition(H)&&H.parentNode.insertBefore(ae,H),H=ae);return this},sort:function N(f){function T(Ht,Ut){return Ht&&Ut?f(Ht.__data__,Ut.__data__):!Ht-!Ut}f||(f=U);for(var n=this._groups,d=n.length,k=new Array(d),H=0;H1?this.each((null==T?$:"function"==typeof T?Ce:oe)(f,T,null==n?"":n)):lt(this.node(),f)},property:function rt(f,T){return arguments.length>1?this.each((null==T?nt:"function"==typeof T?it:ft)(f,T)):this.node()[f]},classed:function ai(f,T){var n=Mt(f+"");if(arguments.length<2){for(var d=Zt(this.node()),k=-1,H=n.length;++k{}};function gt(){for(var d,f=0,T=arguments.length,n={};f=0&&(d=n.slice(k+1),n=n.slice(0,k)),n&&!T.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:d}})}function Ci(f,T){for(var k,n=0,d=f.length;n0)for(var k,H,n=new Array(k),d=0;d>8&15|T>>4&240,T>>4&15|240&T,(15&T)<<4|15&T,1):8===n?Kn(T>>24&255,T>>16&255,T>>8&255,(255&T)/255):4===n?Kn(T>>12&15|T>>8&240,T>>8&15|T>>4&240,T>>4&15|240&T,((15&T)<<4|15&T)/255):null):(T=Ma.exec(f))?new Tr(T[1],T[2],T[3],1):(T=Fa.exec(f))?new Tr(255*T[1]/100,255*T[2]/100,255*T[3]/100,1):(T=xr.exec(f))?Kn(T[1],T[2],T[3],T[4]):(T=hs.exec(f))?Kn(255*T[1]/100,255*T[2]/100,255*T[3]/100,T[4]):(T=ur.exec(f))?la(T[1],T[2]/100,T[3]/100,1):(T=pa.exec(f))?la(T[1],T[2]/100,T[3]/100,T[4]):ma.hasOwnProperty(f)?Pr(ma[f]):"transparent"===f?new Tr(NaN,NaN,NaN,0):null}function Pr(f){return new Tr(f>>16&255,f>>8&255,255&f,1)}function Kn(f,T,n,d){return d<=0&&(f=T=n=NaN),new Tr(f,T,n,d)}function vn(f){return f instanceof Fi||(f=Zr(f)),f?new Tr((f=f.rgb()).r,f.g,f.b,f.opacity):new Tr}function Qn(f,T,n,d){return 1===arguments.length?vn(f):new Tr(f,T,n,null==d?1:d)}function Tr(f,T,n,d){this.r=+f,this.g=+T,this.b=+n,this.opacity=+d}function Ba(){return"#"+kr(this.r)+kr(this.g)+kr(this.b)}function Wa(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===f?")":", "+f+")")}function kr(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function la(f,T,n,d){return d<=0?f=T=n=NaN:n<=0||n>=1?f=T=NaN:T<=0&&(f=NaN),new $n(f,T,n,d)}function Jr(f){if(f instanceof $n)return new $n(f.h,f.s,f.l,f.opacity);if(f instanceof Fi||(f=Zr(f)),!f)return new $n;if(f instanceof $n)return f;var T=(f=f.rgb()).r/255,n=f.g/255,d=f.b/255,k=Math.min(T,n,d),H=Math.max(T,n,d),ae=NaN,Se=H-k,ht=(H+k)/2;return Se?(ae=T===H?(n-d)/Se+6*(n0&&ht<1?0:ae,new $n(ae,Se,ht,f.opacity)}function $n(f,T,n,d){this.h=+f,this.s=+T,this.l=+n,this.opacity=+d}function wa(f,T,n){return 255*(f<60?T+(n-T)*f/60:f<180?n:f<240?T+(n-T)*(240-f)/60:T)}function Nr(f,T,n,d,k){var H=f*f,ae=H*f;return((1-3*f+3*H-ae)*T+(4-6*H+3*ae)*n+(1+3*f+3*H-3*ae)*d+ae*k)/6}dr(Fi,Zr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Ir,formatHex:Ir,formatHsl:function Ga(){return Jr(this).formatHsl()},formatRgb:Ya,toString:Ya}),dr(Tr,Qn,wi(Fi,{brighter:function(f){return f=null==f?Lr:Math.pow(Lr,f),new Tr(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Tr(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ba,formatHex:Ba,formatRgb:Wa,toString:Wa})),dr($n,function ga(f,T,n,d){return 1===arguments.length?Jr(f):new $n(f,T,n,null==d?1:d)},wi(Fi,{brighter:function(f){return f=null==f?Lr:Math.pow(Lr,f),new $n(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new $n(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),T=isNaN(f)||isNaN(this.s)?0:this.s,n=this.l,d=n+(n<.5?n:1-n)*T,k=2*n-d;return new Tr(wa(f>=240?f-240:f+120,k,d),wa(f,k,d),wa(f<120?f+240:f-120,k,d),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));const Vr=f=>()=>f;function Oa(f,T){var n=T-f;return n?function ha(f,T){return function(n){return f+n*T}}(f,n):Vr(isNaN(f)?T:f)}const ra=function f(T){var n=function is(f){return 1==(f=+f)?Oa:function(T,n){return n-T?function pr(f,T,n){return f=Math.pow(f,n),T=Math.pow(T,n)-f,n=1/n,function(d){return Math.pow(f+d*T,n)}}(T,n,f):Vr(isNaN(T)?n:T)}}(T);function d(k,H){var ae=n((k=Qn(k)).r,(H=Qn(H)).r),Se=n(k.g,H.g),ht=n(k.b,H.b),mt=Oa(k.opacity,H.opacity);return function(Dt){return k.r=ae(Dt),k.g=Se(Dt),k.b=ht(Dt),k.opacity=mt(Dt),k+""}}return d.gamma=f,d}(1);function Gr(f){return function(T){var ae,Se,n=T.length,d=new Array(n),k=new Array(n),H=new Array(n);for(ae=0;ae=1?(n=1,T-1):Math.floor(n*T),k=f[d],H=f[d+1];return Nr((n-d/T)*T,d>0?f[d-1]:2*k-H,k,H,dn&&(H=T.slice(n,H),Se[ae]?Se[ae]+=H:Se[++ae]=H),(d=d[0])===(k=k[0])?Se[ae]?Se[ae]+=k:Se[++ae]=k:(Se[++ae]=null,ht.push({i:ae,x:me(d,k)})),n=Qe.lastIndex;return n=0&&f._call.call(null,T),f=f._next;--yn}()}finally{yn=0,function he(){for(var f,n,T=Un,d=1/0;T;)T._call?(d>T._time&&(d=T._time),f=T,T=T._next):(n=T._next,T._next=null,T=f?f._next=n:Un=n);Rn=f,je(d)}(),Mr=0}}function ie(){var f=vs.now(),T=f-_a;T>1e3&&(ds-=T,_a=f)}function je(f){yn||(An&&(An=clearTimeout(An)),f-Mr>24?(f<1/0&&(An=setTimeout(xt,f-vs.now()-ds)),Wi&&(Wi=clearInterval(Wi))):(Wi||(_a=vs.now(),Wi=setInterval(ie,1e3)),yn=1,Pi(xt)))}function wt(f,T,n){var d=new fr;return d.restart(k=>{d.stop(),f(k+T)},T=null==T?0:+T,n),d}fr.prototype=Us.prototype={constructor:fr,restart:function(f,T,n){if("function"!=typeof f)throw new TypeError("callback is not a function");n=(null==n?Nn():+n)+(null==T?0:+T),!this._next&&Rn!==this&&(Rn?Rn._next=this:Un=this,Rn=this),this._call=f,this._time=n,je()},stop:function(){this._call&&(this._call=null,this._time=1/0,je())}};var Pt=$i("start","end","cancel","interrupt"),Qt=[];function tt(f,T,n,d,k,H){var ae=f.__transition;if(ae){if(n in ae)return}else f.__transition={};!function ri(f,T,n){var k,d=f.__transition;function ae(mt){var Dt,Ht,Ut,ni;if(1!==n.state)return ht();for(Dt in d)if((ni=d[Dt]).name===n.name){if(3===ni.state)return wt(ae);4===ni.state?(ni.state=6,ni.timer.stop(),ni.on.call("interrupt",f,f.__data__,ni.index,ni.group),delete d[Dt]):+Dt0)throw new Error("too late; already scheduled");return n}function It(f,T){var n=zt(f,T);if(n.state>3)throw new Error("too late; already running");return n}function zt(f,T){var n=f.__transition;if(!n||!(n=n[T]))throw new Error("transition not found");return n}var gn,Ai=180/Math.PI,Ki={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function un(f,T,n,d,k,H){var ae,Se,ht;return(ae=Math.sqrt(f*f+T*T))&&(f/=ae,T/=ae),(ht=f*n+T*d)&&(n-=f*ht,d-=T*ht),(Se=Math.sqrt(n*n+d*d))&&(n/=Se,d/=Se,ht/=Se),f*d180?Dt+=360:Dt-mt>180&&(mt+=360),Ut.push({i:Ht.push(k(Ht)+"rotate(",null,d)-2,x:me(mt,Dt)})):Dt&&Ht.push(k(Ht)+"rotate("+Dt+d)}(mt.rotate,Dt.rotate,Ht,Ut),function Se(mt,Dt,Ht,Ut){mt!==Dt?Ut.push({i:Ht.push(k(Ht)+"skewX(",null,d)-2,x:me(mt,Dt)}):Dt&&Ht.push(k(Ht)+"skewX("+Dt+d)}(mt.skewX,Dt.skewX,Ht,Ut),function ht(mt,Dt,Ht,Ut,ni,bi){if(mt!==Ht||Dt!==Ut){var zi=ni.push(k(ni)+"scale(",null,",",null,")");bi.push({i:zi-4,x:me(mt,Ht)},{i:zi-2,x:me(Dt,Ut)})}else(1!==Ht||1!==Ut)&&ni.push(k(ni)+"scale("+Ht+","+Ut+")")}(mt.scaleX,mt.scaleY,Dt.scaleX,Dt.scaleY,Ht,Ut),mt=Dt=null,function(ni){for(var di,bi=-1,zi=Ut.length;++bi=0&&(T=T.slice(0,n)),!T||"start"===T})}(T)?Et:It;return function(){var ae=H(this,f),Se=ae.on;Se!==d&&(k=(d=Se).copy()).on(T,n),ae.on=k}}var Ye=qi.prototype.constructor;function $e(f){return function(){this.style.removeProperty(f)}}function Ei(f,T,n){return function(d){this.style.setProperty(f,T.call(this,d),n)}}function an(f,T,n){var d,k;function H(){var ae=T.apply(this,arguments);return ae!==k&&(d=(k=ae)&&Ei(f,ae,n)),d}return H._value=T,H}function ao(f){return function(T){this.textContent=f.call(this,T)}}function ea(f){var T,n;function d(){var k=f.apply(this,arguments);return k!==n&&(T=(n=k)&&ao(k)),T}return d._value=f,d}var bs=0;function Ea(f,T,n,d){this._groups=f,this._parents=T,this._name=n,this._id=d}function yo(){return++bs}var so=qi.prototype;Ea.prototype=function Ol(f){return qi().transition(f)}.prototype={constructor:Ea,select:function rl(f){var T=this._name,n=this._id;"function"!=typeof f&&(f=s(f));for(var d=this._groups,k=d.length,H=new Array(k),ae=0;ae2&&d.state<5,d.state=6,d.timer.stop(),d.on.call(k?"interrupt":"cancel",f,f.__data__,d.index,d.group),delete n[ae]):H=!1;H&&delete f.__transition}}(this,f)})},qi.prototype.transition=function Pa(f){var T,n;f instanceof Ea?(T=f._id,f=f._name):(T=yo(),(n=ko).time=Nn(),f=null==f?null:f+"");for(var d=this._groups,k=d.length,H=0;HT?1:f>=T?0:NaN}function js(f){let T=f,n=f;function d(ae,Se,ht,mt){for(null==ht&&(ht=0),null==mt&&(mt=ae.length);ht>>1;n(ae[Dt],Se)<0?ht=Dt+1:mt=Dt}return ht}return 1===f.length&&(T=(ae,Se)=>f(ae)-Se,n=function l1(f){return(T,n)=>Nl(f(T),n)}(f)),{left:d,center:function H(ae,Se,ht,mt){null==ht&&(ht=0),null==mt&&(mt=ae.length);const Dt=d(ae,Se,ht,mt-1);return Dt>ht&&T(ae[Dt-1],Se)>-T(ae[Dt],Se)?Dt-1:Dt},right:function k(ae,Se,ht,mt){for(null==ht&&(ht=0),null==mt&&(mt=ae.length);ht>>1;n(ae[Dt],Se)>0?mt=Dt:ht=Dt+1}return ht}}}["w","e"].map(Ws),["n","s"].map(Ws),["n","w","e","s","nw","ne","sw","se"].map(Ws);var pc=Math.sqrt(50),mc=Math.sqrt(10),gc=Math.sqrt(2);function Rl(f,T,n){var d=(T-f)/Math.max(0,n),k=Math.floor(Math.log(d)/Math.LN10),H=d/Math.pow(10,k);return k>=0?(H>=pc?10:H>=mc?5:H>=gc?2:1)*Math.pow(10,k):-Math.pow(10,-k)/(H>=pc?10:H>=mc?5:H>=gc?2:1)}function Fo(f,T,n){var d=Math.abs(T-f)/Math.max(0,n),k=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),H=d/k;return H>=pc?k*=10:H>=mc?k*=5:H>=gc&&(k*=2),T0))return ht;do{ht.push(mt=new Date(+H)),T(H,Se),f(H)}while(mt=ae)for(;f(ae),!H(ae);)ae.setTime(ae-1)},function(ae,Se){if(ae>=ae)if(Se<0)for(;++Se<=0;)for(;T(ae,-1),!H(ae););else for(;--Se>=0;)for(;T(ae,1),!H(ae););})},n&&(k.count=function(H,ae){return Fl.setTime(+H),yc.setTime(+ae),f(Fl),f(yc),Math.floor(n(Fl,yc))},k.every=function(H){return H=Math.floor(H),isFinite(H)&&H>0?H>1?k.filter(d?function(ae){return d(ae)%H==0}:function(ae){return k.count(0,ae)%H==0}):k:null}),k}var ll=ta(function(){},function(f,T){f.setTime(+f+T)},function(f,T){return T-f});ll.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?ta(function(T){T.setTime(Math.floor(T/f)*f)},function(T,n){T.setTime(+T+n*f)},function(T,n){return(n-T)/f}):ll:null};const v0=ll;const cl=ta(function(f){f.setTime(f-f.getMilliseconds())},function(f,T){f.setTime(+f+T*lo)},function(f,T){return(T-f)/lo},function(f){return f.getUTCSeconds()});const u1=ta(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo)},function(f,T){f.setTime(+f+T*za)},function(f,T){return(T-f)/za},function(f){return f.getMinutes()});const Ho=ta(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo-f.getMinutes()*za)},function(f,T){f.setTime(+f+T*Cs)},function(f,T){return(T-f)/Cs},function(f){return f.getHours()});const qs=ta(f=>f.setHours(0,0,0,0),(f,T)=>f.setDate(f.getDate()+T),(f,T)=>(T-f-(T.getTimezoneOffset()-f.getTimezoneOffset())*za)/Ns,f=>f.getDate()-1);function co(f){return ta(function(T){T.setDate(T.getDate()-(T.getDay()+7-f)%7),T.setHours(0,0,0,0)},function(T,n){T.setDate(T.getDate()+7*n)},function(T,n){return(n-T-(n.getTimezoneOffset()-T.getTimezoneOffset())*za)/_c})}var Uo=co(0),xo=co(1),Zo=(co(2),co(3),co(4));const Yo=(co(5),co(6),ta(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,T){f.setMonth(f.getMonth()+T)},function(f,T){return T.getMonth()-f.getMonth()+12*(T.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var ho=ta(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,T){f.setFullYear(f.getFullYear()+T)},function(f,T){return T.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});ho.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ta(function(T){T.setFullYear(Math.floor(T.getFullYear()/f)*f),T.setMonth(0,1),T.setHours(0,0,0,0)},function(T,n){T.setFullYear(T.getFullYear()+n*f)}):null};const uo=ho;const Hl=ta(function(f){f.setUTCSeconds(0,0)},function(f,T){f.setTime(+f+T*za)},function(f,T){return(T-f)/za},function(f){return f.getUTCMinutes()});const B=ta(function(f){f.setUTCMinutes(0,0,0)},function(f,T){f.setTime(+f+T*Cs)},function(f,T){return(T-f)/Cs},function(f){return f.getUTCHours()});const fi=ta(function(f){f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCDate(f.getUTCDate()+T)},function(f,T){return(T-f)/Ns},function(f){return f.getUTCDate()-1});function tr(f){return ta(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-f)%7),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCDate(T.getUTCDate()+7*n)},function(T,n){return(n-T)/_c})}var Fn=tr(0),Br=tr(1),Na=(tr(2),tr(3),tr(4));const B4=(tr(5),tr(6),ta(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCMonth(f.getUTCMonth()+T)},function(f,T){return T.getUTCMonth()-f.getUTCMonth()+12*(T.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));var hl=ta(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCFullYear(f.getUTCFullYear()+T)},function(f,T){return T.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});hl.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ta(function(T){T.setUTCFullYear(Math.floor(T.getUTCFullYear()/f)*f),T.setUTCMonth(0,1),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCFullYear(T.getUTCFullYear()+n*f)}):null};const dl=hl;function zl(f,T,n,d,k,H){const ae=[[cl,1,lo],[cl,5,5e3],[cl,15,15e3],[cl,30,3e4],[H,1,za],[H,5,5*za],[H,15,15*za],[H,30,30*za],[k,1,Cs],[k,3,3*Cs],[k,6,6*Cs],[k,12,12*Cs],[d,1,Ns],[d,2,2*Ns],[n,1,_c],[T,1,h1],[T,3,3*h1],[f,1,vc]];function ht(mt,Dt,Ht){const Ut=Math.abs(Dt-mt)/Ht,ni=js(([,,di])=>di).right(ae,Ut);if(ni===ae.length)return f.every(Fo(mt/vc,Dt/vc,Ht));if(0===ni)return v0.every(Math.max(Fo(mt,Dt,Ht),1));const[bi,zi]=ae[Ut/ae[ni-1][2][T.toLowerCase(),n]))}function Ah(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.w=+d[0],n+d[0].length):-1}function y1(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.u=+d[0],n+d[0].length):-1}function Eh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.U=+d[0],n+d[0].length):-1}function E0(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.V=+d[0],n+d[0].length):-1}function af(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.W=+d[0],n+d[0].length):-1}function ua(f,T,n){var d=Qa.exec(T.slice(n,n+4));return d?(f.y=+d[0],n+d[0].length):-1}function T0(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.y=+d[0]+(+d[0]>68?1900:2e3),n+d[0].length):-1}function sf(f,T,n){var d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(T.slice(n,n+6));return d?(f.Z=d[1]?0:-(d[2]+(d[3]||"00")),n+d[0].length):-1}function S0(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.q=3*d[0]-3,n+d[0].length):-1}function Th(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.m=d[0]-1,n+d[0].length):-1}function Sh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.d=+d[0],n+d[0].length):-1}function lf(f,T,n){var d=Qa.exec(T.slice(n,n+3));return d?(f.m=0,f.d=+d[0],n+d[0].length):-1}function Dh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.H=+d[0],n+d[0].length):-1}function cf(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.M=+d[0],n+d[0].length):-1}function hf(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.S=+d[0],n+d[0].length):-1}function Z4(f,T,n){var d=Qa.exec(T.slice(n,n+3));return d?(f.L=+d[0],n+d[0].length):-1}function V4(f,T,n){var d=Qa.exec(T.slice(n,n+6));return d?(f.L=Math.floor(d[0]/1e3),n+d[0].length):-1}function wc(f,T,n){var d=U4.exec(T.slice(n,n+1));return d?n+d[0].length:-1}function ms(f,T,n){var d=Qa.exec(T.slice(n));return d?(f.Q=+d[0],n+d[0].length):-1}function D0(f,T,n){var d=Qa.exec(T.slice(n));return d?(f.s=+d[0],n+d[0].length):-1}function L0(f,T){return or(f.getDate(),T,2)}function Lh(f,T){return or(f.getHours(),T,2)}function ss(f,T){return or(f.getHours()%12||12,T,2)}function Ac(f,T){return or(1+qs.count(uo(f),f),T,3)}function b1(f,T){return or(f.getMilliseconds(),T,3)}function df(f,T){return b1(f,T)+"000"}function uf(f,T){return or(f.getMonth()+1,T,2)}function Oh(f,T){return or(f.getMinutes(),T,2)}function ff(f,T){return or(f.getSeconds(),T,2)}function Ih(f){var T=f.getDay();return 0===T?7:T}function Ph(f,T){return or(Uo.count(uo(f)-1,f),T,2)}function O0(f){var T=f.getDay();return T>=4||0===T?Zo(f):Zo.ceil(f)}function pf(f,T){return f=O0(f),or(Zo.count(uo(f),f)+(4===uo(f).getDay()),T,2)}function mf(f){return f.getDay()}function gf(f,T){return or(xo.count(uo(f)-1,f),T,2)}function I0(f,T){return or(f.getFullYear()%100,T,2)}function _f(f,T){return or((f=O0(f)).getFullYear()%100,T,2)}function vf(f,T){return or(f.getFullYear()%1e4,T,4)}function G4(f,T){var n=f.getDay();return or((f=n>=4||0===n?Zo(f):Zo.ceil(f)).getFullYear()%1e4,T,4)}function P0(f){var T=f.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+or(T/60|0,"0",2)+or(T%60,"0",2)}function kh(f,T){return or(f.getUTCDate(),T,2)}function yf(f,T){return or(f.getUTCHours(),T,2)}function Ec(f,T){return or(f.getUTCHours()%12||12,T,2)}function bf(f,T){return or(1+fi.count(dl(f),f),T,3)}function Nh(f,T){return or(f.getUTCMilliseconds(),T,3)}function xf(f,T){return Nh(f,T)+"000"}function Cf(f,T){return or(f.getUTCMonth()+1,T,2)}function Mf(f,T){return or(f.getUTCMinutes(),T,2)}function Rh(f,T){return or(f.getUTCSeconds(),T,2)}function wf(f){var T=f.getUTCDay();return 0===T?7:T}function Af(f,T){return or(Fn.count(dl(f)-1,f),T,2)}function Fh(f){var T=f.getUTCDay();return T>=4||0===T?Na(f):Na.ceil(f)}function Ef(f,T){return f=Fh(f),or(Na.count(dl(f),f)+(4===dl(f).getUTCDay()),T,2)}function Bh(f){return f.getUTCDay()}function Hh(f,T){return or(Br.count(dl(f)-1,f),T,2)}function Tf(f,T){return or(f.getUTCFullYear()%100,T,2)}function Sf(f,T){return or((f=Fh(f)).getUTCFullYear()%100,T,2)}function Ul(f,T){return or(f.getUTCFullYear()%1e4,T,4)}function po(f,T){var n=f.getUTCDay();return or((f=n>=4||0===n?Na(f):Na.ceil(f)).getUTCFullYear()%1e4,T,4)}function Y4(){return"+0000"}function Df(){return"%"}function k0(f){return+f}function Lf(f){return Math.floor(+f/1e3)}function N0(f){return null===f?NaN:+f}!function Tc(f){(function A0(f){var T=f.dateTime,n=f.date,d=f.time,k=f.periods,H=f.days,ae=f.shortDays,Se=f.months,ht=f.shortMonths,mt=Cc(k),Dt=Mc(k),Ht=Cc(H),Ut=Mc(H),ni=Cc(ae),bi=Mc(ae),zi=Cc(Se),di=Mc(Se),Vi=Cc(ht),Gi=Mc(ht),Qi={a:function _r(ln){return ae[ln.getDay()]},A:function Za(ln){return H[ln.getDay()]},b:function Xn(ln){return ht[ln.getMonth()]},B:function fa(ln){return Se[ln.getMonth()]},c:null,d:L0,e:L0,f:df,g:_f,G:G4,H:Lh,I:ss,j:Ac,L:b1,m:uf,M:Oh,p:function Qr(ln){return k[+(ln.getHours()>=12)]},q:function na(ln){return 1+~~(ln.getMonth()/3)},Q:k0,s:Lf,S:ff,u:Ih,U:Ph,V:pf,w:mf,W:gf,x:null,X:null,y:I0,Y:vf,Z:P0,"%":Df},cn={a:function Tl(ln){return ae[ln.getUTCDay()]},A:function _s(ln){return H[ln.getUTCDay()]},b:function el(ln){return ht[ln.getUTCMonth()]},B:function vo(ln){return Se[ln.getUTCMonth()]},c:null,d:kh,e:kh,f:xf,g:Sf,G:po,H:yf,I:Ec,j:bf,L:Nh,m:Cf,M:Mf,p:function Va(ln){return k[+(ln.getUTCHours()>=12)]},q:function Sl(ln){return 1+~~(ln.getUTCMonth()/3)},Q:k0,s:Lf,S:Rh,u:wf,U:Af,V:Ef,w:Bh,W:Hh,x:null,X:null,y:Tf,Y:Ul,Z:Y4,"%":Df},fn={a:function cr(ln,Bn,nr){var ji=ni.exec(Bn.slice(nr));return ji?(ln.w=bi.get(ji[0].toLowerCase()),nr+ji[0].length):-1},A:function hn(ln,Bn,nr){var ji=Ht.exec(Bn.slice(nr));return ji?(ln.w=Ut.get(ji[0].toLowerCase()),nr+ji[0].length):-1},b:function bn(ln,Bn,nr){var ji=Vi.exec(Bn.slice(nr));return ji?(ln.m=Gi.get(ji[0].toLowerCase()),nr+ji[0].length):-1},B:function mn(ln,Bn,nr){var ji=zi.exec(Bn.slice(nr));return ji?(ln.m=di.get(ji[0].toLowerCase()),nr+ji[0].length):-1},c:function hr(ln,Bn,nr){return qn(ln,T,Bn,nr)},d:Sh,e:Sh,f:V4,g:T0,G:ua,H:Dh,I:Dh,j:lf,L:Z4,m:Th,M:cf,p:function zr(ln,Bn,nr){var ji=mt.exec(Bn.slice(nr));return ji?(ln.p=Dt.get(ji[0].toLowerCase()),nr+ji[0].length):-1},q:S0,Q:ms,s:D0,S:hf,u:y1,U:Eh,V:E0,w:Ah,W:af,x:function Sa(ln,Bn,nr){return qn(ln,n,Bn,nr)},X:function br(ln,Bn,nr){return qn(ln,d,Bn,nr)},y:T0,Y:ua,Z:sf,"%":wc};function en(ln,Bn){return function(nr){var Is,Hn,Ca,ji=[],Da=-1,Dr=0,Os=ln.length;for(nr instanceof Date||(nr=new Date(+nr));++Da53)return null;"w"in ji||(ji.w=1),"Z"in ji?(Os=(Dr=Mh(ul(ji.y,0,1))).getUTCDay(),Dr=Os>4||0===Os?Br.ceil(Dr):Br(Dr),Dr=fi.offset(Dr,7*(ji.V-1)),ji.y=Dr.getUTCFullYear(),ji.m=Dr.getUTCMonth(),ji.d=Dr.getUTCDate()+(ji.w+6)%7):(Os=(Dr=Ch(ul(ji.y,0,1))).getDay(),Dr=Os>4||0===Os?xo.ceil(Dr):xo(Dr),Dr=qs.offset(Dr,7*(ji.V-1)),ji.y=Dr.getFullYear(),ji.m=Dr.getMonth(),ji.d=Dr.getDate()+(ji.w+6)%7)}else("W"in ji||"U"in ji)&&("w"in ji||(ji.w="u"in ji?ji.u%7:"W"in ji?1:0),Os="Z"in ji?Mh(ul(ji.y,0,1)).getUTCDay():Ch(ul(ji.y,0,1)).getDay(),ji.m=0,ji.d="W"in ji?(ji.w+6)%7+7*ji.W-(Os+5)%7:ji.w+7*ji.U-(Os+6)%7);return"Z"in ji?(ji.H+=ji.Z/100|0,ji.M+=ji.Z%100,Mh(ji)):Ch(ji)}}function qn(ln,Bn,nr,ji){for(var Is,Hn,Da=0,Dr=Bn.length,Os=nr.length;Da=Os)return-1;if(37===(Is=Bn.charCodeAt(Da++))){if(Is=Bn.charAt(Da++),!(Hn=fn[Is in v1?Bn.charAt(Da++):Is])||(ji=Hn(ln,nr,ji))<0)return-1}else if(Is!=nr.charCodeAt(ji++))return-1}return ji}return Qi.x=en(n,Qi),Qi.X=en(d,Qi),Qi.c=en(T,Qi),cn.x=en(n,cn),cn.X=en(d,cn),cn.c=en(T,cn),{format:function(ln){var Bn=en(ln+="",Qi);return Bn.toString=function(){return ln},Bn},parse:function(ln){var Bn=gr(ln+="",!1);return Bn.toString=function(){return ln},Bn},utcFormat:function(ln){var Bn=en(ln+="",cn);return Bn.toString=function(){return ln},Bn},utcParse:function(ln){var Bn=gr(ln+="",!0);return Bn.toString=function(){return ln},Bn}}})(f)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const R0=js(Nl).right,fl=(js(N0),R0);function F0(f,T){return f=+f,T=+T,function(n){return Math.round(f*(1-n)+T*n)}}function Pf(f){return+f}var w1=[0,1];function Zl(f){return f}function B0(f,T){return(T-=f=+f)?function(n){return(n-f)/T}:function Zh(f){return function(){return f}}(isNaN(T)?NaN:.5)}function Nf(f,T,n){var d=f[0],k=f[1],H=T[0],ae=T[1];return kT&&(n=f,f=T,T=n),function(d){return Math.max(f,Math.min(T,d))}}(f[0],f[Ut-1])),Se=Ut>2?Rf:Nf,ht=mt=null,Ht}function Ht(Ut){return null==Ut||isNaN(Ut=+Ut)?H:(ht||(ht=Se(f.map(d),T,n)))(d(ae(Ut)))}return Ht.invert=function(Ut){return ae(k((mt||(mt=Se(T,f.map(d),me)))(Ut)))},Ht.domain=function(Ut){return arguments.length?(f=Array.from(Ut,Pf),Dt()):f.slice()},Ht.range=function(Ut){return arguments.length?(T=Array.from(Ut),Dt()):T.slice()},Ht.rangeRound=function(Ut){return T=Array.from(Ut),n=F0,Dt()},Ht.clamp=function(Ut){return arguments.length?(ae=!!Ut||Zl,Dt()):ae!==Zl},Ht.interpolate=function(Ut){return arguments.length?(n=Ut,Dt()):n},Ht.unknown=function(Ut){return arguments.length?(H=Ut,Ht):H},function(Ut,ni){return d=Ut,k=ni,Dt()}}()(Zl,Zl)}function pl(f,T){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(T).domain(f)}return this}var Dc,z0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Sc(f){if(!(T=z0.exec(f)))throw new Error("invalid format: "+f);var T;return new E1({fill:T[1],align:T[2],sign:T[3],symbol:T[4],zero:T[5],width:T[6],comma:T[7],precision:T[8]&&T[8].slice(1),trim:T[9],type:T[10]})}function E1(f){this.fill=void 0===f.fill?" ":f.fill+"",this.align=void 0===f.align?">":f.align+"",this.sign=void 0===f.sign?"-":f.sign+"",this.symbol=void 0===f.symbol?"":f.symbol+"",this.zero=!!f.zero,this.width=void 0===f.width?void 0:+f.width,this.comma=!!f.comma,this.precision=void 0===f.precision?void 0:+f.precision,this.trim=!!f.trim,this.type=void 0===f.type?"":f.type+""}function S1(f,T){if((n=(f=T?f.toExponential(T-1):f.toExponential()).indexOf("e"))<0)return null;var n,d=f.slice(0,n);return[d.length>1?d[0]+d.slice(2):d,+f.slice(n+1)]}function ml(f){return(f=S1(Math.abs(f)))?f[1]:NaN}function V0(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],k=n[1];return k<0?"0."+new Array(-k).join("0")+d:d.length>k+1?d.slice(0,k+1)+"."+d.slice(k+1):d+new Array(k-d.length+2).join("0")}Sc.prototype=E1.prototype,E1.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 L1={"%":(f,T)=>(100*f).toFixed(T),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function T1(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,T)=>f.toExponential(T),f:(f,T)=>f.toFixed(T),g:(f,T)=>f.toPrecision(T),o:f=>Math.round(f).toString(8),p:(f,T)=>V0(100*f,T),r:V0,s:function D1(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],k=n[1],H=k-(Dc=3*Math.max(-8,Math.min(8,Math.floor(k/3))))+1,ae=d.length;return H===ae?d:H>ae?d+new Array(H-ae+1).join("0"):H>0?d.slice(0,H)+"."+d.slice(H):"0."+new Array(1-H).join("0")+S1(f,Math.max(0,T+H-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function G0(f){return f}var Lc,Y0,Kh,O1=Array.prototype.map,Vl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Xh(f){var T=f.domain;return f.ticks=function(n){var d=T();return function c1(f,T,n){var d,H,ae,Se,k=-1;if(n=+n,(f=+f)==(T=+T)&&n>0)return[f];if((d=T0){let ht=Math.round(f/Se),mt=Math.round(T/Se);for(ht*SeT&&--mt,ae=new Array(H=mt-ht+1);++kT&&--mt,ae=new Array(H=mt-ht+1);++k0;){if((mt=Rl(ae,Se,n))===ht)return d[k]=ae,d[H]=Se,T(d);if(mt>0)ae=Math.floor(ae/mt)*mt,Se=Math.ceil(Se/mt)*mt;else{if(!(mt<0))break;ae=Math.ceil(ae*mt)/mt,Se=Math.floor(Se*mt)/mt}ht=mt}return f},f}function Ar(){var f=A1();return f.copy=function(){return Vh(f,Ar())},pl.apply(f,arguments),Xh(f)}function j0(f,T,n){f=+f,T=+T,n=(k=arguments.length)<2?(T=f,f=0,1):k<3?1:+n;for(var d=-1,k=0|Math.max(0,Math.ceil((T-f)/n)),H=new Array(k);++d0&&Se>0&&(ht+Se+1>d&&(Se=Math.max(1,d-ht)),H.push(n.substring(k-=Se,k+Se)),!((ht+=Se+1)>d));)Se=f[ae=(ae+1)%f.length];return H.reverse().join(T)}}(O1.call(f.grouping,Number),f.thousands+""),n=void 0===f.currency?"":f.currency[0]+"",d=void 0===f.currency?"":f.currency[1]+"",k=void 0===f.decimal?".":f.decimal+"",H=void 0===f.numerals?G0:function U0(f){return function(T){return T.replace(/[0-9]/g,function(n){return f[+n]})}}(O1.call(f.numerals,String)),ae=void 0===f.percent?"%":f.percent+"",Se=void 0===f.minus?"\u2212":f.minus+"",ht=void 0===f.nan?"NaN":f.nan+"";function mt(Ht){var Ut=(Ht=Sc(Ht)).fill,ni=Ht.align,bi=Ht.sign,zi=Ht.symbol,di=Ht.zero,Vi=Ht.width,Gi=Ht.comma,Qi=Ht.precision,cn=Ht.trim,fn=Ht.type;"n"===fn?(Gi=!0,fn="g"):L1[fn]||(void 0===Qi&&(Qi=12),cn=!0,fn="g"),(di||"0"===Ut&&"="===ni)&&(di=!0,Ut="0",ni="=");var en="$"===zi?n:"#"===zi&&/[boxX]/.test(fn)?"0"+fn.toLowerCase():"",gr="$"===zi?d:/[%p]/.test(fn)?ae:"",qn=L1[fn],zr=/[defgprs%]/.test(fn);function cr(hn){var hr,Sa,br,bn=en,mn=gr;if("c"===fn)mn=qn(hn)+mn,hn="";else{var _r=(hn=+hn)<0||1/hn<0;if(hn=isNaN(hn)?ht:qn(Math.abs(hn),Qi),cn&&(hn=function Z0(f){e:for(var k,T=f.length,n=1,d=-1;n0&&(d=0)}return d>0?f.slice(0,d)+f.slice(k+1):f}(hn)),_r&&0==+hn&&"+"!==bi&&(_r=!1),bn=(_r?"("===bi?bi:Se:"-"===bi||"("===bi?"":bi)+bn,mn=("s"===fn?Vl[8+Dc/3]:"")+mn+(_r&&"("===bi?")":""),zr)for(hr=-1,Sa=hn.length;++hr(br=hn.charCodeAt(hr))||br>57){mn=(46===br?k+hn.slice(hr+1):hn.slice(hr))+mn,hn=hn.slice(0,hr);break}}Gi&&!di&&(hn=T(hn,1/0));var Za=bn.length+hn.length+mn.length,Xn=Za>1)+bn+hn+mn+Xn.slice(Za);break;default:hn=Xn+bn+hn+mn}return H(hn)}return Qi=void 0===Qi?6:/[gprs]/.test(fn)?Math.max(1,Math.min(21,Qi)):Math.max(0,Math.min(20,Qi)),cr.toString=function(){return Ht+""},cr}return{format:mt,formatPrefix:function Dt(Ht,Ut){var ni=mt(((Ht=Sc(Ht)).type="f",Ht)),bi=3*Math.max(-8,Math.min(8,Math.floor(ml(Ut)/3))),zi=Math.pow(10,-bi),di=Vl[8+bi/3];return function(Vi){return ni(zi*Vi)+di}}}}(f),Y0=Lc.format,Kh=Lc.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const $h=Symbol("implicit");function I1(){var f=new Map,T=[],n=[],d=$h;function k(H){var ae=H+"",Se=f.get(ae);if(!Se){if(d!==$h)return d;f.set(ae,Se=T.push(H))}return n[(Se-1)%n.length]}return k.domain=function(H){if(!arguments.length)return T.slice();T=[],f=new Map;for(const ae of H){const Se=ae+"";f.has(Se)||f.set(Se,T.push(ae))}return k},k.range=function(H){return arguments.length?(n=Array.from(H),k):n.slice()},k.unknown=function(H){return arguments.length?(d=H,k):d},k.copy=function(){return I1(T,n).unknown(d)},pl.apply(k,arguments),k}function Er(){var H,ae,f=I1().unknown(void 0),T=f.domain,n=f.range,d=0,k=1,Se=!1,ht=0,mt=0,Dt=.5;function Ht(){var Ut=T().length,ni=k=1)return+n(f[d-1],d-1,f);var d,k=(d-1)*T,H=Math.floor(k),ae=+n(f[H],H,f);return ae+(+n(f[H+1],H+1,f)-ae)*(k-H)}}function id(){var d,f=[],T=[],n=[];function k(){var ae=0,Se=Math.max(1,T.length);for(n=new Array(Se-1);++ae0?n[Se-1]:f[0],Se=0;)T+=n[d].value;else T=1;f.value=T}function vd(f,T){f instanceof Map?(f=[void 0,f],void 0===T&&(T=n3)):void 0===T&&(T=i3);for(var d,H,ae,Se,ht,n=new Bc(f),k=[n];d=k.pop();)if((ae=T(d.data))&&(ht=(ae=Array.from(ae)).length))for(d.children=ae,Se=ht-1;Se>=0;--Se)k.push(H=ae[Se]=new Bc(ae[Se])),H.parent=d,H.depth=d.depth+1;return n.eachBefore(e6)}function i3(f){return f.children}function n3(f){return Array.isArray(f)?f[1]:null}function yd(f){void 0!==f.data.value&&(f.value=f.data.value),f.data=f.data.data}function e6(f){var T=0;do{f.height=T}while((f=f.parent)&&f.height<++T)}function Bc(f){this.data=f,this.depth=this.height=0,this.parent=null}ws.prototype=function q0(){return new ws}.prototype={constructor:ws,moveTo:function(f,T){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(f,T){this._+="L"+(this._x1=+f)+","+(this._y1=+T)},quadraticCurveTo:function(f,T,n,d){this._+="Q"+ +f+","+ +T+","+(this._x1=+n)+","+(this._y1=+d)},bezierCurveTo:function(f,T,n,d,k,H){this._+="C"+ +f+","+ +T+","+ +n+","+ +d+","+(this._x1=+k)+","+(this._y1=+H)},arcTo:function(f,T,n,d,k){var H=this._x1,ae=this._y1,Se=(n=+n)-(f=+f),ht=(d=+d)-(T=+T),mt=H-f,Dt=ae-T,Ht=mt*mt+Dt*Dt;if((k=+k)<0)throw new Error("negative radius: "+k);if(null===this._x1)this._+="M"+(this._x1=f)+","+(this._y1=T);else if(Ht>Ko)if(Math.abs(Dt*Se-ht*mt)>Ko&&k){var Ut=n-H,ni=d-ae,bi=Se*Se+ht*ht,zi=Ut*Ut+ni*ni,di=Math.sqrt(bi),Vi=Math.sqrt(Ht),Gi=k*Math.tan((R1-Math.acos((bi+Ht-zi)/(2*di*Vi)))/2),Qi=Gi/Vi,cn=Gi/di;Math.abs(Qi-1)>Ko&&(this._+="L"+(f+Qi*mt)+","+(T+Qi*Dt)),this._+="A"+k+","+k+",0,0,"+ +(Dt*Ut>mt*ni)+","+(this._x1=f+cn*Se)+","+(this._y1=T+cn*ht)}else this._+="L"+(this._x1=f)+","+(this._y1=T)},arc:function(f,T,n,d,k,H){f=+f,T=+T,H=!!H;var ae=(n=+n)*Math.cos(d),Se=n*Math.sin(d),ht=f+ae,mt=T+Se,Dt=1^H,Ht=H?d-k:k-d;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+ht+","+mt:(Math.abs(this._x1-ht)>Ko||Math.abs(this._y1-mt)>Ko)&&(this._+="L"+ht+","+mt),n&&(Ht<0&&(Ht=Ht%F1+F1),Ht>B1?this._+="A"+n+","+n+",0,1,"+Dt+","+(f-ae)+","+(T-Se)+"A"+n+","+n+",0,1,"+Dt+","+(this._x1=ht)+","+(this._y1=mt):Ht>Ko&&(this._+="A"+n+","+n+",0,"+ +(Ht>=R1)+","+Dt+","+(this._x1=f+n*Math.cos(k))+","+(this._y1=T+n*Math.sin(k))))},rect:function(f,T,n,d){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)+"h"+ +n+"v"+ +d+"h"+-n+"Z"},toString:function(){return this._}},Ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Gl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,T):this._context.moveTo(f,T);break;case 1:this._point=2,this._x1=f,this._y1=T;break;case 2:this._point=3;default:Gl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new Ic(d,T)}return n.tension=function(d){return f(+d)},n}(0),Pc.prototype={areaStart:Uf,areaEnd:Uf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._x3=f,this._y3=T;break;case 1:this._point=2,this._context.moveTo(this._x4=f,this._y4=T);break;case 2:this._point=3,this._x5=f,this._y5=T;break;default:Gl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new Pc(d,T)}return n.tension=function(d){return f(+d)},n}(0),function sd(f){function T(n){return new ad(f(n))}return T._curve=f,T}(function Sn(f){return new nd(f)}),ad.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(f,T){this._curve.point(T*Math.sin(f),T*-Math.cos(f))}},Math,Math,Math,Math,Math,Math,Math,Math,Math,m(7293),function f(T){function n(d,k,H,ae,Se){!function Wl(f,T,n,d,k,H){for(var ht,mt,ni,bi,di,Vi,Gi,Qi,cn,fn,en,ae=[],Se=T.children,Dt=0,Ht=0,Ut=Se.length,zi=T.value;DtGi&&(Gi=mt),en=di*di*fn,(Qi=Math.max(Gi/en,en/Vi))>cn){di-=mt;break}cn=Qi}ae.push(ht={value:di,dice:ni1?d:1)},n}((1+Math.sqrt(5))/2),Bc.prototype=vd.prototype={constructor:Bc,count:function c2(){return this.eachAfter(ud)},each:function h2(f,T){let n=-1;for(const d of this)f.call(T,d,++n,this);return this},eachAfter:function Fc(f,T){for(var H,ae,Se,n=this,d=[n],k=[],ht=-1;n=d.pop();)if(k.push(n),H=n.children)for(ae=0,Se=H.length;ae=0;--H)d.push(k[H]);return this},find:function Kf(f,T){let n=-1;for(const d of this)if(f.call(T,d,++n,this))return d},sum:function pd(f){return this.eachAfter(function(T){for(var n=+f(T.data)||0,d=T.children,k=d&&d.length;--k>=0;)n+=d[k].value;T.value=n})},sort:function t3(f){return this.eachBefore(function(T){T.children&&T.children.sort(f)})},path:function md(f){for(var T=this,n=function gd(f,T){if(f===T)return f;var n=f.ancestors(),d=T.ancestors(),k=null;for(f=n.pop(),T=d.pop();f===T;)k=f,f=n.pop(),T=d.pop();return k}(T,f),d=[T];T!==n;)d.push(T=T.parent);for(var k=d.length;f!==n;)d.splice(k,0,f),f=f.parent;return d},ancestors:function Qf(){for(var f=this,T=[f];f=f.parent;)T.push(f);return T},descendants:function _d(){return Array.from(this)},leaves:function Jf(){var f=[];return this.eachBefore(function(T){T.children||f.push(T)}),f},links:function Xf(){var f=this,T=[];return f.each(function(n){n!==f&&T.push({source:n.parent,target:n})}),T},copy:function $f(){return vd(this).eachBefore(yd)},[Symbol.iterator]:function*As(){var T,d,k,H,f=this,n=[f];do{for(T=n.reverse(),n=[];f=T.pop();)if(yield f,d=f.children)for(k=0,H=d.length;k{class f{constructor(n,d,k){this.applicationRef=n,this.componentFactoryResolver=d,this.injector=k}static setGlobalRootViewContainer(n){f.globalRootViewContainer=n}getRootViewContainer(){if(this._container)return this._container;if(f.globalRootViewContainer)return f.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(n){this._container=n}getComponentRootNode(n){return function xu(f){return f.element}(n)?n.element.nativeElement:n.hostView&&n.hostView.rootNodes.length>0?n.hostView.rootNodes[0]:n.location.nativeElement}getRootViewContainerNode(n){return this.getComponentRootNode(n)}projectComponentBindings(n,d){if(d){if(void 0!==d.inputs){const k=Object.getOwnPropertyNames(d.inputs);for(const H of k)n.instance[H]=d.inputs[H]}if(void 0!==d.outputs){const k=Object.getOwnPropertyNames(d.outputs);for(const H of k)n.instance[H]=d.outputs[H]}}return n}appendComponent(n,d={},k){k||(k=this.getRootViewContainer());const H=this.getComponentRootNode(k),ae=new y.u0(H,this.componentFactoryResolver,this.applicationRef,this.injector),Se=new y.C5(n),ht=ae.attach(Se);return this.projectComponentBindings(ht,d),ht}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f.globalRootViewContainer=null,f})();function z2(f,T,n){n=n||{};let d,k,H,ae=null,Se=0;function ht(){Se=!1===n.leading?0:+new Date,ae=null,H=f.apply(d,k)}return function(){const mt=+new Date;!Se&&!1===n.leading&&(Se=mt);const Dt=T-(mt-Se);return d=this,k=arguments,Dt<=0?(clearTimeout(ae),ae=null,Se=mt,H=f.apply(d,k)):!ae&&!1!==n.trailing&&(ae=setTimeout(ht,Dt)),H}}function f4(f,T){return function(d,k,H){return{configurable:!0,enumerable:H.enumerable,get:function(){return Object.defineProperty(this,k,{configurable:!0,enumerable:H.enumerable,value:z2(H.value,f,T)}),this[k]}}}}var Dn=(()=>{return(f=Dn||(Dn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Dn;var f})();function $1(f,T,n){return n===Dn.Top?f.top-7:n===Dn.Bottom?f.top+f.height-T.height+7:n===Dn.Center?f.top+f.height/2-T.height/2:void 0}function U2(f,T,n){return n===Dn.Left?f.left-7:n===Dn.Right?f.left+f.width-T.width+7:n===Dn.Center?f.left+f.width/2-T.width/2:void 0}class Es{static calculateVerticalAlignment(T,n,d){let k=$1(T,n,d);return k+n.height>window.innerHeight&&(k=window.innerHeight-n.height),k}static calculateVerticalCaret(T,n,d,k){let H;k===Dn.Top&&(H=T.height/2-d.height/2+7),k===Dn.Bottom&&(H=n.height-T.height/2-d.height/2-7),k===Dn.Center&&(H=n.height/2-d.height/2);const ae=$1(T,n,k);return ae+n.height>window.innerHeight&&(H+=ae+n.height-window.innerHeight),H}static calculateHorizontalAlignment(T,n,d){let k=U2(T,n,d);return k+n.width>window.innerWidth&&(k=window.innerWidth-n.width),k}static calculateHorizontalCaret(T,n,d,k){let H;k===Dn.Left&&(H=T.width/2-d.width/2+7),k===Dn.Right&&(H=n.width-T.width/2-d.width/2-7),k===Dn.Center&&(H=n.width/2-d.width/2);const ae=U2(T,n,k);return ae+n.width>window.innerWidth&&(H+=ae+n.width-window.innerWidth),H}static shouldFlip(T,n,d,k){let H=!1;return d===Dn.Right&&T.left+T.width+n.width+k>window.innerWidth&&(H=!0),d===Dn.Left&&T.left-n.width-k<0&&(H=!0),d===Dn.Top&&T.top-n.height-k<0&&(H=!0),d===Dn.Bottom&&T.top+T.height+n.height+k>window.innerHeight&&(H=!0),H}static positionCaret(T,n,d,k,H){let ae=0,Se=0;return T===Dn.Right?(Se=-7,ae=Es.calculateVerticalCaret(d,n,k,H)):T===Dn.Left?(Se=n.width,ae=Es.calculateVerticalCaret(d,n,k,H)):T===Dn.Top?(ae=n.height,Se=Es.calculateHorizontalCaret(d,n,k,H)):T===Dn.Bottom&&(ae=-7,Se=Es.calculateHorizontalCaret(d,n,k,H)),{top:ae,left:Se}}static positionContent(T,n,d,k,H){let ae=0,Se=0;return T===Dn.Right?(Se=d.left+d.width+k,ae=Es.calculateVerticalAlignment(d,n,H)):T===Dn.Left?(Se=d.left-n.width-k,ae=Es.calculateVerticalAlignment(d,n,H)):T===Dn.Top?(ae=d.top-n.height-k,Se=Es.calculateHorizontalAlignment(d,n,H)):T===Dn.Bottom&&(ae=d.top+d.height+k,Se=Es.calculateHorizontalAlignment(d,n,H)),{top:ae,left:Se}}static determinePlacement(T,n,d,k){if(Es.shouldFlip(d,n,T,k)){if(T===Dn.Right)return Dn.Left;if(T===Dn.Left)return Dn.Right;if(T===Dn.Top)return Dn.Bottom;if(T===Dn.Bottom)return Dn.Top}return T}}let Cu=(()=>{class f{constructor(n,d,k){this.element=n,this.renderer=d,this.platformId=k}get cssClasses(){let n="ngx-charts-tooltip-content";return n+=` position-${this.placement}`,n+=` type-${this.type}`,n+=` ${this.cssClass}`,n}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,t.NF)(this.platformId))return;const n=this.element.nativeElement,d=this.host.nativeElement.getBoundingClientRect();if(!d.height&&!d.width)return;const k=n.getBoundingClientRect();this.checkFlip(d,k),this.positionContent(n,d,k),this.showCaret&&this.positionCaret(d,k),setTimeout(()=>this.renderer.addClass(n,"animate"),1)}positionContent(n,d,k){const{top:H,left:ae}=Es.positionContent(this.placement,k,d,this.spacing,this.alignment);this.renderer.setStyle(n,"top",`${H}px`),this.renderer.setStyle(n,"left",`${ae}px`)}positionCaret(n,d){const k=this.caretElm.nativeElement,H=k.getBoundingClientRect(),{top:ae,left:Se}=Es.positionCaret(this.placement,d,n,H,this.alignment);this.renderer.setStyle(k,"top",`${ae}px`),this.renderer.setStyle(k,"left",`${Se}px`)}checkFlip(n,d){this.placement=Es.determinePlacement(this.placement,d,n,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-tooltip-content"]],viewQuery:function(n,d){if(1&n&&e.Gf(xd,5),2&n){let k;e.iGM(k=e.CRH())&&(d.caretElm=k.first)}},hostVars:2,hostBindings:function(n,d){1&n&&e.NdJ("resize",function(){return d.onWindowResize()},!1,e.Jf7),2&n&&e.Tol(d.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(n,d){1&n&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,r6,2,4,"span",3),e.YNc(5,a6,1,1,"span",4),e.qZA(),e.qZA()),2&n&&(e.xp6(1),e.Gre("tooltip-caret position-",d.placement,""),e.Q6J("hidden",!d.showCaret),e.xp6(3),e.Q6J("ngIf",!d.title),e.xp6(1),e.Q6J("ngIf",d.title))},directives:[t.O5,t.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:normal;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,C.gn)([f4(100)],f.prototype,"onWindowResize",null),f})(),Vc=(()=>{class f extends class Mu{constructor(T){this.injectionService=T,this.defaults={},this.components=new Map}getByType(T=this.type){return this.components.get(T)}create(T){return this.createByType(this.type,T)}createByType(T,n){n=this.assignDefaults(n);const d=this.injectComponent(T,n);return this.register(T,d),d}destroy(T){const n=this.components.get(T.componentType);if(n&&n.length){const d=n.indexOf(T);d>-1&&(n[d].destroy(),n.splice(d,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(T){const n=this.components.get(T);if(n&&n.length){let d=n.length-1;for(;d>=0;)this.destroy(n[d--])}}injectComponent(T,n){return this.injectionService.appendComponent(T,n)}assignDefaults(T){const n=Object.assign({},this.defaults.inputs),d=Object.assign({},this.defaults.outputs);return!T.inputs&&!T.outputs&&(T={inputs:T}),n&&(T.inputs=Object.assign(Object.assign({},n),T.inputs)),d&&(T.outputs=Object.assign(Object.assign({},d),T.outputs)),T}register(T,n){this.components.has(T)||this.components.set(T,[]),this.components.get(T).push(n)}}{constructor(n){super(n),this.type=Cu}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(X1))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();var yr=(()=>{return(f=yr||(yr={})).Right="right",f.Below="below",yr;var f})(),Xo=(()=>{return(f=Xo||(Xo={})).ScaleLegend="scaleLegend",f.Legend="legend",Xo;var f})(),_i=(()=>{return(f=_i||(_i={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",_i;var f})();let Wr=(()=>{class f{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new e.vpe,this.legendLabelActivate=new e.vpe,this.legendLabelDeactivate=new e.vpe,this.LegendPosition=yr,this.LegendType=Xo}ngOnChanges(n){this.update()}update(){let n=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===yr.Right)&&(n=this.legendType===Xo.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-n)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==yr.Right?this.chartWidth:Math.floor(this.view[0]*n/12)}getLegendType(){return this.legendOptions.scaleType===_i.Linear?Xo.ScaleLegend:Xo.Legend}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[e._Bn([Vc]),e.TTD],ngContentSelectors:Ad,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(n,d){1&n&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,Md,1,5,"ngx-charts-scale-legend",2),e.YNc(4,wd,1,7,"ngx-charts-legend",3),e.qZA()),2&n&&(e.Udp("width",d.view[0],"px"),e.xp6(1),e.uIk("width",d.chartWidth)("height",d.view[1]),e.xp6(2),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.ScaleLegend),e.xp6(1),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.Legend))},directives:function(){return[t.O5,K2,q2]},encapsulation:2,changeDetection:0}),f})(),wu=(()=>{class f{constructor(n,d){this.element=n,this.zone=d,this.visible=new e.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const n=()=>{if(!this.element)return;const{offsetHeight:d,offsetWidth:k}=this.element.nativeElement;d&&k?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n())})}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b))},f.\u0275dir=e.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function Gc(f){return"[object Date]"===toString.call(f)}let jr=(()=>{class f{constructor(n,d,k,H){this.chartElement=n,this.zone=d,this.cd=k,this.platformId=H,this.scheme="cool",this.schemeType=_i.Ordinal,this.animations=!0,this.select=new e.vpe}ngOnInit(){(0,t.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new wu(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(n){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 n=this.getContainerDims();n&&(this.width=n.width,this.height=n.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 n,d;const k=this.chartElement.nativeElement;if((0,t.NF)(this.platformId)&&null!==k.parentNode){const H=k.parentNode.getBoundingClientRect();n=H.width,d=H.height}return n&&d?{width:n,height:d}:null}formatDates(){for(let n=0;n{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=d}cloneData(n){const d=[];for(const k of n){const H={name:k.name};if(void 0!==k.value&&(H.value=k.value),void 0!==k.series){H.series=[];for(const ae of k.series){const Se=Object.assign({},ae);H.series.push(Se)}}void 0!==k.extra&&(H.extra=JSON.parse(JSON.stringify(k.extra))),d.push(H)}return d}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(n,d){1&n&&e._UZ(0,"div")},encapsulation:2}),f})();var ba=(()=>{return(f=ba||(ba={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",ba;var f})();let Au=(()=>{class f{constructor(n){this.textHeight=25,this.margin=5,this.element=n.nativeElement}ngOnChanges(n){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case ba.Top:case ba.Bottom:this.y=this.offset,this.x=this.width/2;break;case ba.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case ba.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[e.TTD],attrs:go,decls:2,vars:6,template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&n&&(e.uIk("stroke-width",d.strokeWidth)("x",d.x)("y",d.y)("text-anchor",d.textAnchor)("transform",d.transform),e.xp6(1),e.hij(" ",d.label," "))},encapsulation:2,changeDetection:0}),f})();function $o(f,T=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=T?f:`${f.slice(0,T)}...`}function Eu(f,T){if(f.length>T){const n=[],d=Math.floor(f.length/T);for(let k=0;k{return(f=Xa||(Xa={})).Start="start",f.Middle="middle",f.End="end",Xa;var f})();let Tu=(()=>{class f{constructor(n){this.platformId=n,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Xa.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);n!==this.height&&(this.height=n,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const n=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()};const d=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(k){return this.scale(k)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",d&&0!==d?(this.textTransform=`rotate(${d})`,this.textAnchor=Xa.End,this.verticalSpacing=10):this.textAnchor=Xa.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(n){let d=0;this.maxTicksLength=0;for(let mt=0;mtthis.maxTicksLength&&(this.maxTicksLength=Ht)}const ae=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let Se=ae;const ht=Math.floor(this.width/n.length);for(;Se>ht&&d>-90;)d-=30,Se=Math.cos(d*(Math.PI/180))*ae;return this.approxHeight=Math.max(Math.abs(Math.sin(d*(Math.PI/180))*ae),10),d}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(100);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=Eu(n,d)),n}getMaxTicks(n){return Math.floor(this.width/n)}tickTransform(n){return"translate("+this.adjustedScale(n)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(n){return this.trimTicks?$o(n,this.maxTickLength):n}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:s6,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,o6,5,7,"g",1),e.qZA(),e.YNc(3,Ed,2,2,"g",2)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.ticks))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),ir=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=ba.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new e.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=ba}ngOnChanges(n){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:n}){const d=n+25+5;d!==this.labelOffset&&(this.labelOffset=d,setTimeout(()=>{this.dimensionsChanged.emit({height:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(Tu,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:l6,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,c6,1,12,"g",0),e.YNc(2,Td,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.xAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,Tu,Au],encapsulation:2,changeDetection:0}),f})();function Bs(f,T,n,d,k,[H,ae,Se,ht]){let mt="";return mt=`M${[f+k,T]}`,mt+="h"+((n=0===(n=Math.floor(n))?1:n)-2*k),mt+=ae?`a${[k,k]} 0 0 1 ${[k,k]}`:`h${k}v${k}`,mt+="v"+((d=0===(d=Math.floor(d))?1:d)-2*k),mt+=ht?`a${[k,k]} 0 0 1 ${[-k,k]}`:`v${k}h${-k}`,mt+="h"+(2*k-n),mt+=Se?`a${[k,k]} 0 0 1 ${[-k,-k]}`:`h${-k}v${-k}`,mt+="v"+(2*k-d),mt+=H?`a${[k,k]} 0 0 1 ${[k,-k]}`:`v${-k}h${k}`,mt+="z",mt}let Su=(()=>{class f{constructor(n){this.platformId=n,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new e.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Xa.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=ba}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);n!==this.width&&(this.width=n,this.dimensionsChanged.emit({width:n}),setTimeout(()=>this.updateDims()))}update(){let n;const d=this.orient===ba.Top||this.orient===ba.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,n=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()},this.adjustedScale=n.bandwidth?function(k){return n(k)+.5*n.bandwidth()}:n,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case ba.Top:case ba.Bottom:this.transform=function(k){return"translate("+this.adjustedScale(k)+",0)"},this.textAnchor=Xa.Middle,this.y2=this.innerTickSize*d,this.y1=this.tickSpacing*d,this.dy=d<0?"0em":".71em";break;case ba.Left:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.End,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em";break;case ba.Right:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.Start,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(n=>n.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(n=>n.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Bs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(50);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=Eu(n,d)),n}getMaxTicks(n){return Math.floor(this.height/n)}tickTransform(n){return`translate(${this.adjustedScale(n)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(n){return this.trimTicks?$o(n,this.maxTickLength):n}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(k=>this.tickTrim(this.tickFormat(k)).length))}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:f2,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,h6,5,9,"g",1),e.qZA(),e.YNc(3,d6,1,2,"path",2),e.YNc(4,p2,2,2,"g",3),e.YNc(5,f6,2,1,"g",3)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngIf",d.referenceLineLength>1&&d.refMax&&d.refMin&&d.showRefLines),e.xp6(1),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.referenceLines))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),$a=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=ba.Left,this.yAxisOffset=0,this.dimensionsChanged=new e.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(n){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===ba.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:n}){n!==this.labelOffset&&this.yOrient===ba.Right?(this.labelOffset=n+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(Su,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:p6,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,g2,1,14,"g",0),e.YNc(2,a3,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.yAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.yScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,Su,Au],encapsulation:2,changeDetection:0}),f})(),V2=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez]]}),f})();var cs=(()=>{return(f=cs||(cs={})).popover="popover",f.tooltip="tooltip",cs;var f})(),Ao=(()=>{return(f=Ao||(Ao={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",Ao;var f})();let Ts=(()=>{class f{constructor(n,d,k){this.tooltipService=n,this.viewContainerRef=d,this.renderer=k,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Dn.Top,this.tooltipAlignment=Dn.Center,this.tooltipType=cs.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Ao.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.focus}get listensForHover(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(n){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(n))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(n){if(this.component||this.tooltipDisabled)return;const d=n?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const k=this.createBoundOptions();this.component=this.tooltipService.create(k),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},d)}addHideListeners(n){this.mouseEnterContentEvent=this.renderer.listen(n,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(n,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",d=>{n.contains(d.target)||this.hideTooltip()}))}hideTooltip(n=!1){if(!this.component)return;const d=()=>{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),n?d():this.timeout=setTimeout(d,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(Vc),e.Y36(e.s_b),e.Y36(e.Qsj))},f.\u0275dir=e.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(n,d){1&n&&e.NdJ("focusin",function(){return d.onFocus()})("blur",function(){return d.onBlur()})("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(H){return d.onMouseLeave(H.target)})("click",function(){return d.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTitle:"tooltipTitle",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),f})(),Cl=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({providers:[X1,Vc],imports:[[t.ez]]}),f})();function Ua(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}const G2={};function es(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,G2[f]?es():(G2[f]=!0,f)}var lr=(()=>{return(f=lr||(lr={})).Vertical="vertical",f.Horizontal="horizontal",lr;var f})();let Xs=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:Id,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(n,d){1&n&&(e.O4$(),e._UZ(0,"rect",0)),2&n&&e.uIk("height",d.height)("width",d.width)("x",d.x)("y",d.y)},encapsulation:2,changeDetection:0}),f})();var ac=(()=>{return(f=ac||(ac={})).Odd="odd",f.Even="even",ac;var f})();let j2,e0=(()=>{class f{ngOnChanges(n){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(n=>{let d,k,H,ae,Se,ht=ac.Odd;if(this.orient===lr.Vertical){const mt=this.xScale(n.name);Number.parseInt((mt/this.xScale.step()).toString(),10)%2==1&&(ht=ac.Even),d=this.xScale.bandwidth()*this.xScale.paddingInner(),k=this.xScale.bandwidth()+d,H=this.dims.height,ae=this.xScale(n.name)-d/2,Se=0}else if(this.orient===lr.Horizontal){const mt=this.yScale(n.name);Number.parseInt((mt/this.yScale.step()).toString(),10)%2==1&&(ht=ac.Even),d=this.yScale.bandwidth()*this.yScale.paddingInner(),k=this.dims.width,H=this.yScale.bandwidth()+d,ae=0,Se=this.yScale(n.name)-d/2}return{name:n.name,class:ht,height:H,width:k,x:ae,y:Se}})}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[e.TTD],attrs:Mo,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(n,d){1&n&&e.YNc(0,W1,1,10,"g",0),2&n&&e.Q6J("ngForOf",d.gridPanels)},directives:[t.sg,Xs],encapsulation:2,changeDetection:0}),f})(),ts=(()=>{class f{constructor(){this.orientation=lr.Vertical}ngOnChanges(n){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===lr.Horizontal?this.x2="100%":this.orientation===lr.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[e.TTD],attrs:g6,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,_6,1,5,"stop",1),e.qZA()),2&n&&(e.Q6J("id",d.name),e.uIk("x1",d.x1)("y1",d.y1)("x2",d.x2)("y2",d.y2),e.xp6(1),e.Q6J("ngForOf",d.stops))},directives:[t.sg],encapsulation:2,changeDetection:0}),f})();"undefined"!=typeof window?j2=window:"undefined"!=typeof global&&(j2=global);let q2=(()=>{class f{constructor(n){this.cd=n,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}ngOnChanges(n){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const n=[];for(const d of this.data){const k=Ua(d);-1===n.findIndex(ae=>ae.label===k)&&n.push({label:d,formattedLabel:k,color:this.colors.getColor(d)})}return n}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.label===k.name)}activate(n){this.labelActivate.emit(n)}deactivate(n){this.labelDeactivate.emit(n)}trackBy(n,d){return d.label}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.sBO))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[e.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(n,d){1&n&&(e.TgZ(0,"div"),e.YNc(1,y6,3,1,"header",0),e.TgZ(2,"div",1),e.TgZ(3,"ul",2),e.YNc(4,C2,2,4,"li",3),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("width",d.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==d.title?null:d.title.length)>0),e.xp6(2),e.Udp("max-height",d.height-45,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(1),e.Q6J("ngForOf",d.legendEntries)("ngForTrackBy",d.trackBy))},directives:function(){return[t.O5,t.sg,Ou]},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:bold}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),f})(),Ou=(()=>{class f{constructor(){this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.toggle=new e.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},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(n,d){1&n&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return d.select.emit(d.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return d.toggle.emit(d.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA(),e.qZA()),2&n&&(e.ekj("active",d.isActive),e.Q6J("title",d.formattedLabel),e.xp6(1),e.Udp("background-color",d.color),e.xp6(2),e.hij(" ",d.trimmedLabel," "))},encapsulation:2,changeDetection:0}),f})(),K2=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(n){const d=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${d})`}gradientString(n,d){d.push(1);const k=[];return n.reverse().forEach((H,ae)=>{k.push(`${H} ${Math.round(100*d[ae])}%`)}),k.join(", ")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[e.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(n,d){1&n&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA(),e._UZ(4,"div",2),e.TgZ(5,"div",1),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("height",d.horizontal?void 0:d.height,"px")("width",d.width,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(3),e.Oqu(d.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",d.gradient),e.xp6(3),e.Oqu(d.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),f})(),Hs=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez,V2,Cl],t.ez,V2,Cl]}),f})();function qr({width:f,height:T,margins:n,showXAxis:d=!1,showYAxis:k=!1,xAxisHeight:H=0,yAxisWidth:ae=0,showXLabel:Se=!1,showYLabel:ht=!1,showLegend:mt=!1,legendType:Dt=_i.Ordinal,legendPosition:Ht=yr.Right,columns:Ut=12}){let ni=n[3],bi=f,zi=T-n[0]-n[2];return mt&&Ht===yr.Right&&(Ut-=Dt===_i.Ordinal?2:1),bi=bi*Ut/12,bi=bi-n[1]-n[3],d&&(zi-=5,zi-=H,Se&&(zi-=30)),k&&(bi-=5,bi-=ae,ni+=ae,ni+=10,ht&&(bi-=30,ni+=30)),bi=Math.max(0,bi),zi=Math.max(0,zi),{width:Math.floor(bi),height:Math.floor(zi),xOffset:Math.floor(ni)}}let X2=[{name:"vivid",selectable:!0,group:_i.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:_i.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:_i.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:_i.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:_i.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:_i.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:_i.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:_i.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:_i.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:_i.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:_i.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:_i.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:_i.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:_i.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:_i.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Kr{constructor(T,n,d,k){"string"==typeof T&&(T=X2.find(H=>H.name===T)),this.colorDomain=T.domain,this.scaleType=n,this.domain=d,this.customColors=k,this.scale=this.generateColorScheme(T,n,this.domain)}generateColorScheme(T,n,d){let k;switch("string"==typeof T&&(T=X2.find(H=>H.name===T)),n){case _i.Quantile:k=id().range(T.domain).domain(d);break;case _i.Ordinal:k=I1().range(T.domain).domain(d);break;case _i.Linear:{const H=[...T.domain];1===H.length&&(H.push(H[0]),this.colorDomain=H);const ae=j0(0,1,1/H.length);k=Ar().range(H).domain(ae)}}return k}getColor(T){if(null==T)throw new Error("Value can not be null");if(this.scaleType===_i.Linear){const n=Ar().domain(this.domain).range([0,1]);return this.scale(n(T))}{if("function"==typeof this.customColors)return this.customColors(T);const n=T.toString();let d;return this.customColors&&this.customColors.length>0&&(d=this.customColors.find(k=>k.name.toLowerCase()===n.toLowerCase())),d?d.value:this.scale(T)}}getLinearGradientStops(T,n){void 0===n&&(n=this.domain[0]);const d=Ar().domain(this.domain).range([0,1]),k=Er().domain(this.colorDomain).range([0,1]),H=this.getColor(T),ae=d(n),Se=this.getColor(n),ht=d(T);let mt=1,Dt=ae;const Ht=[];for(Ht.push({color:Se,offset:ae,originalOffset:ae,opacity:1});Dt=(ht-k.bandwidth()).toFixed(4))break;Ht.push({color:Ut,offset:ni,opacity:1}),Dt=ni,mt++}}if(Ht[Ht.length-1].offset<100&&Ht.push({color:H,offset:ht,opacity:1}),ht===ae)Ht[0].offset=0,Ht[1].offset=100;else if(100!==Ht[Ht.length-1].offset)for(const Ut of Ht)Ut.offset=(Ut.offset-ae)/(ht-ae)*100;return Ht}}let m4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),s0=(()=>{class f{constructor(n){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=n.nativeElement}ngOnChanges(n){n.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+es().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 n=function ot(f){return"string"==typeof f?new yi([[document.querySelector(f)]],[document.documentElement]):new yi([[f]],kt)}(this.element).select(".bar"),d=this.getPath();this.animations?n.transition().duration(500).attr("d",d):n.attr("d",d)}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 d,n=this.getRadius();return this.roundEdges?this.orientation===lr.Vertical?(n=Math.min(this.height,n),d=Bs(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===lr.Horizontal&&(n=Math.min(this.width,n),d=Bs(this.x,this.y,1,this.height,0,this.edges)):this.orientation===lr.Vertical?d=Bs(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===lr.Horizontal&&(d=Bs(this.x,this.y,1,this.height,0,this.edges)),d}getPath(){let d,n=this.getRadius();return this.roundEdges?this.orientation===lr.Vertical?(n=Math.min(this.height,n),d=Bs(this.x,this.y,this.width,this.height,n,this.edges)):this.orientation===lr.Horizontal&&(n=Math.min(this.width,n),d=Bs(this.x,this.y,this.width,this.height,n,this.edges)):d=Bs(this.x,this.y,this.width,this.height,n,this.edges),d}getRadius(){let n=0;return this.roundEdges&&this.height>5&&this.width>5&&(n=Math.floor(Math.min(5,this.height/2,this.width/2))),n}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let n=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===lr.Vertical?n=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===lr.Horizontal&&(n=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),n}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===lr.Vertical&&0===this.height||this.orientation===lr.Horizontal&&0===this.width)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:h3,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(n,d){1&n&&(e.YNc(0,Js,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return d.select.emit(d.data)}),e.qZA()),2&n&&(e.Q6J("ngIf",d.hasGradient),e.xp6(1),e.ekj("active",d.isActive)("hidden",d.hideBar),e.uIk("d",d.path)("aria-label",d.ariaLabel)("fill",d.hasGradient?d.gradientFill:d.fill))},directives:[t.O5,ts],encapsulation:2,changeDetection:0}),f})();var xa=(()=>{return(f=xa||(xa={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",xa;var f})();let g4=(()=>{class f extends jr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=qr({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 n=this.xDomain.length/(this.dims.width/this.barPadding+1);return Er().range([0,this.dims.width]).paddingInner(n).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const n=Ar().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?n.nice():n}getXDomain(){return this.results.map(n=>n.label)}getYDomain(){const n=this.results.map(H=>H.value);let d=this.yScaleMin?Math.min(this.yScaleMin,...n):Math.min(0,...n);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(d=Math.min(d,...this.yAxisTicks));let k=this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(k=Math.max(k,...this.yAxisTicks)),[d,k]}onClick(n){this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.xDomain:this.yDomain,this.colors=new Kr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.xDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.yDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onDataLabelMaxHeightChanged(n){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),n.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name),!(this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series)>-1)&&(this.activeEntries=[n,...this.activeEntries],this.activate.emit({value:n,entries:this.activeEntries}))}onDeactivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name);const k=this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series);this.activeEntries.splice(k,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:n,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,Hr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(H){return d.onClick(H)})("legendLabelActivate",function(H){return d.onActivate(H,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,N6,1,11,"g",2),e.YNc(3,R6,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(H){return d.onActivate(H)})("deactivate",function(H){return d.onDeactivate(H)})("select",function(H){return d.onClick(H)})("dataLabelHeightChanged",function(H){return d.onDataLabelMaxHeightChanged(H)}),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(22,vr,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("xScale",d.xScale)("yScale",d.yScale)("colors",d.colors)("series",d.results)("dims",d.dims)("gradient",d.gradient)("tooltipDisabled",d.tooltipDisabled)("tooltipTemplate",d.tooltipTemplate)("showDataLabel",d.showDataLabel)("dataLabelFormatting",d.dataLabelFormatting)("activeEntries",d.activeEntries)("roundEdges",d.roundEdges)("animations",d.animations)("noBarWhenZero",d.noBarWhenZero))},directives:function(){return[Wr,t.O5,qc,ir,$a]},styles:[oa],encapsulation:2,changeDetection:0}),f})(),_4=(()=>{class f extends jr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.Right,this.tooltipDisabled=!1,this.scaleType=_i.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.barOrientation=lr,this.trackBy=(n,d)=>d.name}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=qr({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(n,d){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),d===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const n=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Er().rangeRound([0,this.dims.width]).paddingInner(n).paddingOuter(n/2).domain(this.groupDomain)}getInnerScale(){const n=this.groupScale.bandwidth(),d=this.innerDomain.length/(n/this.barPadding+1);return Er().rangeRound([0,n]).paddingInner(d).domain(this.innerDomain)}getValueScale(){const n=Ar().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?n.nice():n}getGroupDomain(){const n=[];for(const d of this.results)n.includes(d.label)||n.push(d.label);return n}getInnerDomain(){const n=[];for(const d of this.results)for(const k of d.series)n.includes(k.label)||n.push(k.label);return n}getValueDomain(){const n=[];for(const H of this.results)for(const ae of H.series)n.includes(ae.value)||n.push(ae.value);return[Math.min(0,...n),this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n)]}groupTransform(n){return`translate(${this.groupScale(n.label)}, 0)`}onClick(n,d){d&&(n.series=d.name),this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Kr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.innerDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.valueDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onActivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name);const ae=this.results.map(Se=>Se.series).flat().filter(Se=>k?Se.label===H.name:Se.name===H.name&&Se.series===H.series);this.activeEntries=[...ae],this.activate.emit({value:H,entries:this.activeEntries})}onDeactivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name),this.activeEntries=this.activeEntries.filter(ae=>k?ae.label!==H.name:!(ae.name===H.name&&ae.series===H.series)),this.deactivate.emit({value:H,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,Hr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,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"],["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-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"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(H){return d.onActivate(H,void 0,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,void 0,!0)})("legendLabelClick",function(H){return d.onClick(H)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,F6,1,10,"g",3),e.YNc(4,B6,1,9,"g",4),e.YNc(5,H6,1,17,"g",5),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(15,vr,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("xScale",d.groupScale)("yScale",d.valueScale)("data",d.results)("dims",d.dims)("orient",d.barOrientation.Vertical),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("ngForOf",d.results)("ngForTrackBy",d.trackBy))},directives:function(){return[Wr,e0,t.O5,t.sg,ir,$a,qc]},styles:[oa],encapsulation:2,data:{animation:[(0,l.X$)("animationState",[(0,l.eR)(":leave",[(0,l.oB)({opacity:1,transform:"*"}),(0,l.jt)(500,(0,l.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})();var Ls=(()=>{return(f=Ls||(Ls={})).positive="positive",f.negative="negative",Ls;var f})();let qc=(()=>{class f{constructor(){this.type=xa.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelHeightChanged=new e.vpe,this.barsForDataLabels=[],this.barOrientation=lr}ngOnChanges(n){this.update()}update(){let n;this.updateTooltipSettings(),this.series.length&&(n=this.xScale.bandwidth()),n=Math.round(n);const d=Math.max(this.yScale.domain()[0],0),k={[Ls.positive]:0,[Ls.negative]:0};let ae,H=Ls.positive;this.type===xa.Normalized&&(ae=this.series.map(Se=>Se.value).reduce((Se,ht)=>Se+ht,0)),this.bars=this.series.map((Se,ht)=>{let mt=Se.value;const Dt=this.getLabel(Se),Ht=Ua(Dt);H=mt>0?Ls.positive:Ls.negative;const ni={value:mt,label:Dt,roundEdges:this.roundEdges,data:Se,width:n,formattedLabel:Ht,height:0,x:0,y:0};if(this.type===xa.Standard)ni.height=Math.abs(this.yScale(mt)-this.yScale(d)),ni.x=this.xScale(Dt),ni.y=this.yScale(mt<0?0:mt);else if(this.type===xa.Stacked){const zi=k[H],di=zi+mt;k[H]+=mt,ni.height=this.yScale(zi)-this.yScale(di),ni.x=0,ni.y=this.yScale(di),ni.offset0=zi,ni.offset1=di}else if(this.type===xa.Normalized){let zi=k[H],di=zi+mt;k[H]+=mt,ae>0?(zi=100*zi/ae,di=100*di/ae):(zi=0,di=0),ni.height=this.yScale(zi)-this.yScale(di),ni.x=0,ni.y=this.yScale(di),ni.offset0=zi,ni.offset1=di,mt=(di-zi).toFixed(2)+"%"}this.colors.scaleType===_i.Ordinal?ni.color=this.colors.getColor(Dt):this.type===xa.Standard?(ni.color=this.colors.getColor(mt),ni.gradientStops=this.colors.getLinearGradientStops(mt)):(ni.color=this.colors.getColor(ni.offset1),ni.gradientStops=this.colors.getLinearGradientStops(ni.offset1,ni.offset0));let bi=Ht;return ni.ariaLabel=Ht+" "+mt.toLocaleString(),null!=this.seriesName&&(bi=`${this.seriesName} \u2022 ${Ht}`,ni.data.series=this.seriesName,ni.ariaLabel=this.seriesName+" "+ni.ariaLabel),ni.tooltipText=this.tooltipDisabled?void 0:`\n ${function Ta(f){return f.toLocaleString().replace(/[&'`"<>]/g,T=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[T]))}(bi)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(mt):mt.toLocaleString()}\n `,ni}),this.updateDataLabels()}updateDataLabels(){if(this.type===xa.Stacked){this.barsForDataLabels=[];const n={};n.series=this.seriesName;const d=this.series.map(H=>H.value).reduce((H,ae)=>ae>0?H+ae:H,0),k=this.series.map(H=>H.value).reduce((H,ae)=>ae<0?H+ae:H,0);n.total=d+k,n.x=0,n.y=0,n.height=this.yScale(n.total>0?d:k),n.width=this.xScale.bandwidth(),this.barsForDataLabels.push(n)}else this.barsForDataLabels=this.series.map(n=>{var d;const k={};return k.series=null!==(d=this.seriesName)&&void 0!==d?d:n.label,k.total=n.value,k.x=this.xScale(n.label),k.y=this.yScale(0),k.height=this.yScale(k.total)-this.yScale(0),k.width=this.xScale.bandwidth(),k})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Dn.Top,this.tooltipType=this.tooltipDisabled?void 0:cs.tooltip}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.name===k.name&&n.value===k.value)}onClick(n){this.select.emit(n)}getLabel(n){return n.label?n.label:n.name}trackBy(n,d){return d.label}trackDataLabelBy(n,d){return n+"#"+d.series+"#"+d.total}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[e.TTD],attrs:ls,decls:2,vars:3,consts:[["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"],[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"],["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(n,d){1&n&&(e.YNc(0,bl,1,22,"g",0),e.YNc(1,Fs,2,2,"g",1)),2&n&&(e.Q6J("ngForOf",d.bars)("ngForTrackBy",d.trackBy),e.xp6(1),e.Q6J("ngIf",d.showDataLabel))},directives:function(){return[t.sg,t.O5,s0,Ts,ku]},encapsulation:2,data:{animation:[(0,l.X$)("animationState",[(0,l.eR)(":leave",[(0,l.oB)({opacity:1}),(0,l.jt)(500,(0,l.oB)({opacity:0}))])])]},changeDetection:0}),f})(),ku=(()=>{class f{constructor(n){this.dimensionsChanged=new e.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=n.nativeElement}ngOnChanges(n){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):Ua(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:S2,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&n&&(e.uIk("text-anchor",d.textAnchor)("transform",d.transform)("x",d.x)("y",d.y),e.xp6(1),e.hij(" ",d.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),f})(),Nu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),Bu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),zu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),El=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),y4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})();Math;let ia=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),I3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs,ia,y4]]}),f})(),w4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),E4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),J3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs,ia,Nu]]}),f})(),lh=(()=>{class f{constructor(){!function oh(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[Hs,m4,Nu,Bu,zu,El,y4,I3,w4,ia,E4,J3]}),f})()},7977:(Ge,Q,m)=>{"use strict";const e=Q;e.bignum=m(3854),e.define=m(9516).define,e.base=m(7813),e.constants=m(5459),e.decoders=m(196),e.encoders=m(1131)},9516:(Ge,Q,m)=>{"use strict";const e=m(1131),t=m(196),y=m(3894);function o(M,l){this.name=M,this.body=l,this.decoders={},this.encoders={}}Q.define=function(l,R){return new o(l,R)},o.prototype._createNamed=function(l){const R=this.name;function s(L){this._initNamed(L,R)}return y(s,l),s.prototype._initNamed=function(I,A){l.call(this,I,A)},new s(this)},o.prototype._getDecoder=function(l){return this.decoders.hasOwnProperty(l=l||"der")||(this.decoders[l]=this._createNamed(t[l])),this.decoders[l]},o.prototype.decode=function(l,R,s){return this._getDecoder(R).decode(l,s)},o.prototype._getEncoder=function(l){return this.encoders.hasOwnProperty(l=l||"der")||(this.encoders[l]=this._createNamed(e[l])),this.encoders[l]},o.prototype.encode=function(l,R,s){return this._getEncoder(R).encode(l,s)}},2769:(Ge,Q,m)=>{"use strict";const e=m(3894),t=m(4919).b,y=m(2038).Buffer;function C(M,l){t.call(this,l),y.isBuffer(M)?(this.base=M,this.offset=0,this.length=M.length):this.error("Input not Buffer")}function o(M,l){if(Array.isArray(M))this.length=0,this.value=M.map(function(R){return o.isEncoderBuffer(R)||(R=new o(R,l)),this.length+=R.length,R},this);else if("number"==typeof M){if(!(0<=M&&M<=255))return l.error("non-byte EncoderBuffer value");this.value=M,this.length=1}else if("string"==typeof M)this.value=M,this.length=y.byteLength(M);else{if(!y.isBuffer(M))return l.error("Unsupported type: "+typeof M);this.value=M,this.length=M.length}}e(C,t),Q.C=C,C.isDecoderBuffer=function(l){return l instanceof C||"object"==typeof l&&y.isBuffer(l.base)&&"DecoderBuffer"===l.constructor.name&&"number"==typeof l.offset&&"number"==typeof l.length&&"function"==typeof l.save&&"function"==typeof l.restore&&"function"==typeof l.isEmpty&&"function"==typeof l.readUInt8&&"function"==typeof l.skip&&"function"==typeof l.raw},C.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},C.prototype.restore=function(l){const R=new C(this.base);return R.offset=l.offset,R.length=this.offset,this.offset=l.offset,t.prototype.restore.call(this,l.reporter),R},C.prototype.isEmpty=function(){return this.offset===this.length},C.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},C.prototype.skip=function(l,R){if(!(this.offset+l<=this.length))return this.error(R||"DecoderBuffer overrun");const s=new C(this.base);return s._reporterState=this._reporterState,s.offset=this.offset,s.length=this.offset+l,this.offset+=l,s},C.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)},Q.R=o,o.isEncoderBuffer=function(l){return l instanceof o||"object"==typeof l&&"EncoderBuffer"===l.constructor.name&&"number"==typeof l.length&&"function"==typeof l.join},o.prototype.join=function(l,R){return l||(l=y.alloc(this.length)),R||(R=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(s){s.join(l,R),R+=s.length}):("number"==typeof this.value?l[R]=this.value:"string"==typeof this.value?l.write(this.value,R):y.isBuffer(this.value)&&this.value.copy(l,R),R+=this.length)),l}},7813:(Ge,Q,m)=>{"use strict";const e=Q;e.Reporter=m(4919).b,e.DecoderBuffer=m(2769).C,e.EncoderBuffer=m(2769).R,e.Node=m(1430)},1430:(Ge,Q,m)=>{"use strict";const e=m(4919).b,t=m(2769).R,y=m(2769).C,C=m(2391),o=["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"],M=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function R(L,I,A){const E={};this._baseState=E,E.name=A,E.enc=L,E.parent=I||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}Ge.exports=R;const s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];R.prototype.clone=function(){const I=this._baseState,A={};s.forEach(function(P){A[P]=I[P]});const E=new this.constructor(A.parent);return E._baseState=A,E},R.prototype._wrap=function(){const I=this._baseState;M.forEach(function(A){this[A]=function(){const P=new this.constructor(this);return I.children.push(P),P[A].apply(P,arguments)}},this)},R.prototype._init=function(I){const A=this._baseState;C(null===A.parent),I.call(this),A.children=A.children.filter(function(E){return E._baseState.parent===this},this),C.equal(A.children.length,1,"Root node can have only one child")},R.prototype._useArgs=function(I){const A=this._baseState,E=I.filter(function(P){return P instanceof this.constructor},this);I=I.filter(function(P){return!(P instanceof this.constructor)},this),0!==E.length&&(C(null===A.children),A.children=E,E.forEach(function(P){P._baseState.parent=this},this)),0!==I.length&&(C(null===A.args),A.args=I,A.reverseArgs=I.map(function(P){if("object"!=typeof P||P.constructor!==Object)return P;const w={};return Object.keys(P).forEach(function(V){V==(0|V)&&(V|=0),w[P[V]]=V}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(L){R.prototype[L]=function(){throw new Error(L+" not implemented for encoding: "+this._baseState.enc)}}),o.forEach(function(L){R.prototype[L]=function(){const A=this._baseState,E=Array.prototype.slice.call(arguments);return C(null===A.tag),A.tag=L,this._useArgs(E),this}}),R.prototype.use=function(I){C(I);const A=this._baseState;return C(null===A.use),A.use=I,this},R.prototype.optional=function(){return this._baseState.optional=!0,this},R.prototype.def=function(I){const A=this._baseState;return C(null===A.default),A.default=I,A.optional=!0,this},R.prototype.explicit=function(I){const A=this._baseState;return C(null===A.explicit&&null===A.implicit),A.explicit=I,this},R.prototype.implicit=function(I){const A=this._baseState;return C(null===A.explicit&&null===A.implicit),A.implicit=I,this},R.prototype.obj=function(){const I=this._baseState,A=Array.prototype.slice.call(arguments);return I.obj=!0,0!==A.length&&this._useArgs(A),this},R.prototype.key=function(I){const A=this._baseState;return C(null===A.key),A.key=I,this},R.prototype.any=function(){return this._baseState.any=!0,this},R.prototype.choice=function(I){const A=this._baseState;return C(null===A.choice),A.choice=I,this._useArgs(Object.keys(I).map(function(E){return I[E]})),this},R.prototype.contains=function(I){const A=this._baseState;return C(null===A.use),A.contains=I,this},R.prototype._decode=function(I,A){const E=this._baseState;if(null===E.parent)return I.wrapResult(E.children[0]._decode(I,A));let j,P=E.default,w=!0,V=null;if(null!==E.key&&(V=I.enterKey(E.key)),E.optional){let W=null;if(null!==E.explicit?W=E.explicit:null!==E.implicit?W=E.implicit:null!==E.tag&&(W=E.tag),null!==W||E.any){if(w=this._peekTag(I,W,E.any),I.isError(w))return w}else{const te=I.save();try{null===E.choice?this._decodeGeneric(E.tag,I,A):this._decodeChoice(I,A),w=!0}catch(ee){w=!1}I.restore(te)}}if(E.obj&&w&&(j=I.enterObject()),w){if(null!==E.explicit){const te=this._decodeTag(I,E.explicit);if(I.isError(te))return te;I=te}const W=I.offset;if(null===E.use&&null===E.choice){let te;E.any&&(te=I.save());const ee=this._decodeTag(I,null!==E.implicit?E.implicit:E.tag,E.any);if(I.isError(ee))return ee;E.any?P=I.raw(te):I=ee}if(A&&A.track&&null!==E.tag&&A.track(I.path(),W,I.length,"tagged"),A&&A.track&&null!==E.tag&&A.track(I.path(),I.offset,I.length,"content"),E.any||(P=null===E.choice?this._decodeGeneric(E.tag,I,A):this._decodeChoice(I,A)),I.isError(P))return P;if(!E.any&&null===E.choice&&null!==E.children&&E.children.forEach(function(ee){ee._decode(I,A)}),E.contains&&("octstr"===E.tag||"bitstr"===E.tag)){const te=new y(P);P=this._getUse(E.contains,I._reporterState.obj)._decode(te,A)}}return E.obj&&w&&(P=I.leaveObject(j)),null===E.key||null===P&&!0!==w?null!==V&&I.exitKey(V):I.leaveKey(V,E.key,P),P},R.prototype._decodeGeneric=function(I,A,E){const P=this._baseState;return"seq"===I||"set"===I?null:"seqof"===I||"setof"===I?this._decodeList(A,I,P.args[0],E):/str$/.test(I)?this._decodeStr(A,I,E):"objid"===I&&P.args?this._decodeObjid(A,P.args[0],P.args[1],E):"objid"===I?this._decodeObjid(A,null,null,E):"gentime"===I||"utctime"===I?this._decodeTime(A,I,E):"null_"===I?this._decodeNull(A,E):"bool"===I?this._decodeBool(A,E):"objDesc"===I?this._decodeStr(A,I,E):"int"===I||"enum"===I?this._decodeInt(A,P.args&&P.args[0],E):null!==P.use?this._getUse(P.use,A._reporterState.obj)._decode(A,E):A.error("unknown tag: "+I)},R.prototype._getUse=function(I,A){const E=this._baseState;return E.useDecoder=this._use(I,A),C(null===E.useDecoder._baseState.parent),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit&&(E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit),E.useDecoder},R.prototype._decodeChoice=function(I,A){const E=this._baseState;let P=null,w=!1;return Object.keys(E.choice).some(function(V){const j=I.save(),W=E.choice[V];try{const te=W._decode(I,A);if(I.isError(te))return!1;P={type:V,value:te},w=!0}catch(te){return I.restore(j),!1}return!0},this),w?P:I.error("Choice not matched")},R.prototype._createEncoderBuffer=function(I){return new t(I,this.reporter)},R.prototype._encode=function(I,A,E){const P=this._baseState;if(null!==P.default&&P.default===I)return;const w=this._encodeValue(I,A,E);return void 0===w||this._skipDefault(w,A,E)?void 0:w},R.prototype._encodeValue=function(I,A,E){const P=this._baseState;if(null===P.parent)return P.children[0]._encode(I,A||new e);let w=null;if(this.reporter=A,P.optional&&void 0===I){if(null===P.default)return;I=P.default}let V=null,j=!1;if(P.any)w=this._createEncoderBuffer(I);else if(P.choice)w=this._encodeChoice(I,A);else if(P.contains)V=this._getUse(P.contains,E)._encode(I,A),j=!0;else if(P.children)V=P.children.map(function(W){if("null_"===W._baseState.tag)return W._encode(null,A,I);if(null===W._baseState.key)return A.error("Child should have a key");const te=A.enterKey(W._baseState.key);if("object"!=typeof I)return A.error("Child expected, but input is not object");const ee=W._encode(I[W._baseState.key],A,I);return A.leaveKey(te),ee},this).filter(function(W){return W}),V=this._createEncoderBuffer(V);else if("seqof"===P.tag||"setof"===P.tag){if(!P.args||1!==P.args.length)return A.error("Too many args for : "+P.tag);if(!Array.isArray(I))return A.error("seqof/setof, but data is not Array");const W=this.clone();W._baseState.implicit=null,V=this._createEncoderBuffer(I.map(function(te){return this._getUse(this._baseState.args[0],I)._encode(te,A)},W))}else null!==P.use?w=this._getUse(P.use,E)._encode(I,A):(V=this._encodePrimitive(P.tag,I),j=!0);if(!P.any&&null===P.choice){const W=null!==P.implicit?P.implicit:P.tag,te=null===P.implicit?"universal":"context";null===W?null===P.use&&A.error("Tag could be omitted only for .use()"):null===P.use&&(w=this._encodeComposite(W,j,te,V))}return null!==P.explicit&&(w=this._encodeComposite(P.explicit,!1,"context",w)),w},R.prototype._encodeChoice=function(I,A){const E=this._baseState,P=E.choice[I.type];return P||C(!1,I.type+" not found in "+JSON.stringify(Object.keys(E.choice))),P._encode(I.value,A)},R.prototype._encodePrimitive=function(I,A){const E=this._baseState;if(/str$/.test(I))return this._encodeStr(A,I);if("objid"===I&&E.args)return this._encodeObjid(A,E.reverseArgs[0],E.args[1]);if("objid"===I)return this._encodeObjid(A,null,null);if("gentime"===I||"utctime"===I)return this._encodeTime(A,I);if("null_"===I)return this._encodeNull();if("int"===I||"enum"===I)return this._encodeInt(A,E.args&&E.reverseArgs[0]);if("bool"===I)return this._encodeBool(A);if("objDesc"===I)return this._encodeStr(A,I);throw new Error("Unsupported tag: "+I)},R.prototype._isNumstr=function(I){return/^[0-9 ]*$/.test(I)},R.prototype._isPrintstr=function(I){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(I)}},4919:(Ge,Q,m)=>{"use strict";const e=m(3894);function t(C){this._reporterState={obj:null,path:[],options:C||{},errors:[]}}function y(C,o){this.path=C,this.rethrow(o)}Q.b=t,t.prototype.isError=function(o){return o instanceof y},t.prototype.save=function(){const o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}},t.prototype.restore=function(o){const M=this._reporterState;M.obj=o.obj,M.path=M.path.slice(0,o.pathLen)},t.prototype.enterKey=function(o){return this._reporterState.path.push(o)},t.prototype.exitKey=function(o){const M=this._reporterState;M.path=M.path.slice(0,o-1)},t.prototype.leaveKey=function(o,M,l){const R=this._reporterState;this.exitKey(o),null!==R.obj&&(R.obj[M]=l)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){const o=this._reporterState,M=o.obj;return o.obj={},M},t.prototype.leaveObject=function(o){const M=this._reporterState,l=M.obj;return M.obj=o,l},t.prototype.error=function(o){let M;const l=this._reporterState,R=o instanceof y;if(M=R?o:new y(l.path.map(function(s){return"["+JSON.stringify(s)+"]"}).join(""),o.message||o,o.stack),!l.options.partial)throw M;return R||l.errors.push(M),M},t.prototype.wrapResult=function(o){const M=this._reporterState;return M.options.partial?{result:this.isError(o)?null:o,errors:M.errors}:o},e(y,Error),y.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,y),!this.stack)try{throw new Error(this.message)}catch(M){this.stack=M.stack}return this}},5496:(Ge,Q)=>{"use strict";function m(e){const t={};return Object.keys(e).forEach(function(y){(0|y)==y&&(y|=0),t[e[y]]=y}),t}Q.tagClass={0:"universal",1:"application",2:"context",3:"private"},Q.tagClassByName=m(Q.tagClass),Q.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"},Q.tagByName=m(Q.tag)},5459:(Ge,Q,m)=>{"use strict";const e=Q;e._reverse=function(y){const C={};return Object.keys(y).forEach(function(o){(0|o)==o&&(o|=0),C[y[o]]=o}),C},e.der=m(5496)},7127:(Ge,Q,m)=>{"use strict";const e=m(3894),t=m(3854),y=m(2769).C,C=m(1430),o=m(5496);function M(L){this.enc="der",this.name=L.name,this.entity=L,this.tree=new l,this.tree._init(L.body)}function l(L){C.call(this,"der",L)}function R(L,I){let A=L.readUInt8(I);if(L.isError(A))return A;const E=o.tagClass[A>>6],P=0==(32&A);if(31==(31&A)){let V=A;for(A=0;128==(128&V);){if(V=L.readUInt8(I),L.isError(V))return V;A<<=7,A|=127&V}}else A&=31;return{cls:E,primitive:P,tag:A,tagStr:o.tag[A]}}function s(L,I,A){let E=L.readUInt8(A);if(L.isError(E))return E;if(!I&&128===E)return null;if(0==(128&E))return E;const P=127&E;if(P>4)return L.error("length octect is too long");E=0;for(let w=0;w{"use strict";const e=Q;e.der=m(7127),e.pem=m(9617)},9617:(Ge,Q,m)=>{"use strict";const e=m(3894),t=m(2038).Buffer,y=m(7127);function C(o){y.call(this,o),this.enc="pem"}e(C,y),Ge.exports=C,C.prototype.decode=function(M,l){const R=M.toString().split(/[\r\n]+/g),s=l.label.toUpperCase(),L=/^-----(BEGIN|END) ([^-]+)-----$/;let I=-1,A=-1;for(let w=0;w{"use strict";const e=m(3894),t=m(2038).Buffer,y=m(1430),C=m(5496);function o(s){this.enc="der",this.name=s.name,this.entity=s,this.tree=new M,this.tree._init(s.body)}function M(s){y.call(this,"der",s)}function l(s){return s<10?"0"+s:s}Ge.exports=o,o.prototype.encode=function(L,I){return this.tree._encode(L,I).join()},e(M,y),M.prototype._encodeComposite=function(L,I,A,E){const P=function R(s,L,I,A){let E;if("seqof"===s?s="seq":"setof"===s&&(s="set"),C.tagByName.hasOwnProperty(s))E=C.tagByName[s];else{if("number"!=typeof s||(0|s)!==s)return A.error("Unknown tag: "+s);E=s}return E>=31?A.error("Multi-octet tag encoding unsupported"):(L||(E|=32),E|=C.tagClassByName[I||"universal"]<<6,E)}(L,I,A,this.reporter);if(E.length<128){const j=t.alloc(2);return j[0]=P,j[1]=E.length,this._createEncoderBuffer([j,E])}let w=1;for(let j=E.length;j>=256;j>>=8)w++;const V=t.alloc(2+w);V[0]=P,V[1]=128|w;for(let j=1+w,W=E.length;W>0;j--,W>>=8)V[j]=255&W;return this._createEncoderBuffer([V,E])},M.prototype._encodeStr=function(L,I){if("bitstr"===I)return this._createEncoderBuffer([0|L.unused,L.data]);if("bmpstr"===I){const A=t.alloc(2*L.length);for(let E=0;E=40)return this.reporter.error("Second objid identifier OOB");L.splice(0,2,40*L[0]+L[1])}let E=0;for(let V=0;V=128;j>>=7)E++}const P=t.alloc(E);let w=P.length-1;for(let V=L.length-1;V>=0;V--){let j=L[V];for(P[w--]=127&j;(j>>=7)>0;)P[w--]=128|127&j}return this._createEncoderBuffer(P)},M.prototype._encodeTime=function(L,I){let A;const E=new Date(L);return"gentime"===I?A=[l(E.getUTCFullYear()),l(E.getUTCMonth()+1),l(E.getUTCDate()),l(E.getUTCHours()),l(E.getUTCMinutes()),l(E.getUTCSeconds()),"Z"].join(""):"utctime"===I?A=[l(E.getUTCFullYear()%100),l(E.getUTCMonth()+1),l(E.getUTCDate()),l(E.getUTCHours()),l(E.getUTCMinutes()),l(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+I+" time is not supported yet"),this._encodeStr(A,"octstr")},M.prototype._encodeNull=function(){return this._createEncoderBuffer("")},M.prototype._encodeInt=function(L,I){if("string"==typeof L){if(!I)return this.reporter.error("String int or enum given, but no values map");if(!I.hasOwnProperty(L))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(L));L=I[L]}if("number"!=typeof L&&!t.isBuffer(L)){const P=L.toArray();!L.sign&&128&P[0]&&P.unshift(0),L=t.from(P)}if(t.isBuffer(L)){let P=L.length;0===L.length&&P++;const w=t.alloc(P);return L.copy(w),0===L.length&&(w[0]=0),this._createEncoderBuffer(w)}if(L<128)return this._createEncoderBuffer(L);if(L<256)return this._createEncoderBuffer([0,L]);let A=1;for(let P=L;P>=256;P>>=8)A++;const E=new Array(A);for(let P=E.length-1;P>=0;P--)E[P]=255&L,L>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(t.from(E))},M.prototype._encodeBool=function(L){return this._createEncoderBuffer(L?255:0)},M.prototype._use=function(L,I){return"function"==typeof L&&(L=L(I)),L._getEncoder("der").tree},M.prototype._skipDefault=function(L,I,A){const E=this._baseState;let P;if(null===E.default)return!1;const w=L.join();if(void 0===E.defaultBuffer&&(E.defaultBuffer=this._encodeValue(E.default,I,A).join()),w.length!==E.defaultBuffer.length)return!1;for(P=0;P{"use strict";const e=Q;e.der=m(6374),e.pem=m(3530)},3530:(Ge,Q,m)=>{"use strict";const e=m(3894),t=m(6374);function y(C){t.call(this,C),this.enc="pem"}e(y,t),Ge.exports=y,y.prototype.encode=function(o,M){const R=t.prototype.encode.call(this,o).toString("base64"),s=["-----BEGIN "+M.label+"-----"];for(let L=0;L=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},5343:(Ge,Q)=>{"use strict";Q.byteLength=function l(E){var P=M(E),V=P[1];return 3*(P[0]+V)/4-V},Q.toByteArray=function s(E){var P,ge,w=M(E),V=w[0],j=w[1],W=new t(function R(E,P,w){return 3*(P+w)/4-w}(0,V,j)),te=0,ee=j>0?V-4:V;for(ge=0;ge>16&255,W[te++]=P>>8&255,W[te++]=255&P;return 2===j&&(P=e[E.charCodeAt(ge)]<<2|e[E.charCodeAt(ge+1)]>>4,W[te++]=255&P),1===j&&(P=e[E.charCodeAt(ge)]<<10|e[E.charCodeAt(ge+1)]<<4|e[E.charCodeAt(ge+2)]>>2,W[te++]=P>>8&255,W[te++]=255&P),W},Q.fromByteArray=function A(E){for(var P,w=E.length,V=w%3,j=[],W=16383,te=0,ee=w-V;teee?ee:te+W));return 1===V?j.push(m[(P=E[w-1])>>2]+m[P<<4&63]+"=="):2===V&&j.push(m[(P=(E[w-2]<<8)+E[w-1])>>10]+m[P>>4&63]+m[P<<2&63]+"="),j.join("")};for(var m=[],e=[],t="undefined"!=typeof Uint8Array?Uint8Array:Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,o=y.length;C0)throw new Error("Invalid string. Length must be a multiple of 4");var w=E.indexOf("=");return-1===w&&(w=P),[w,w===P?0:4-w%4]}function L(E){return m[E>>18&63]+m[E>>12&63]+m[E>>6&63]+m[63&E]}function I(E,P,w){for(var j=[],W=P;W=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void y(!1,"Invalid character in "+p)}function R(p,u,_){var D=l(p,_);return _-1>=u&&(D|=l(p,_-1)<<4),D}function s(p,u,_,D){for(var O=0,x=0,r=Math.min(p.length,_),b=u;b=49?Z-49+10:Z>=17?Z-17+10:Z,y(Z>=0&&x0?u:_},o.min=function(u,_){return u.cmp(_)<0?u:_},o.prototype._init=function(u,_,D){if("number"==typeof u)return this._initNumber(u,_,D);if("object"==typeof u)return this._initArray(u,_,D);"hex"===_&&(_=16),y(_===(0|_)&&_>=2&&_<=36);var O=0;"-"===(u=u.toString().replace(/\s+/g,""))[0]&&(O++,this.negative=1),O=0;O-=3)this.words[x]|=(r=u[O]|u[O-1]<<8|u[O-2]<<16)<>>26-b&67108863,(b+=24)>=26&&(b-=26,x++);else if("le"===D)for(O=0,x=0;O>>26-b&67108863,(b+=24)>=26&&(b-=26,x++);return this._strip()},o.prototype._parseHex=function(u,_,D){this.length=Math.ceil((u.length-_)/6),this.words=new Array(this.length);for(var O=0;O=_;O-=2)b=R(u,_,O)<=18?(x-=18,this.words[r+=1]|=b>>>26):x+=8;else for(O=(u.length-_)%2==0?_+1:_;O=18?(x-=18,this.words[r+=1]|=b>>>26):x+=8;this._strip()},o.prototype._parseBase=function(u,_,D){this.words=[0],this.length=1;for(var O=0,x=1;x<=67108863;x*=_)O++;O--,x=x/_|0;for(var r=u.length-D,b=r%O,Z=Math.min(r,r-b)+D,N=0,U=D;U1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=I}catch(p){o.prototype.inspect=I}else o.prototype.inspect=I;function I(){return(this.red?""}var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[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 j(p,u,_){_.negative=u.negative^p.negative;var D=p.length+u.length|0;_.length=D,D=D-1|0;var O=0|p.words[0],x=0|u.words[0],r=O*x,Z=r/67108864|0;_.words[0]=67108863&r;for(var N=1;N>>26,ve=67108863&Z,be=Math.min(N,u.length-1),Re=Math.max(0,N-p.length+1);Re<=be;Re++)U+=(r=(O=0|p.words[N-Re|0])*(x=0|u.words[Re])+ve)/67108864|0,ve=67108863&r;_.words[N]=0|ve,Z=0|U}return 0!==Z?_.words[N]=0|Z:_.length--,_._strip()}o.prototype.toString=function(u,_){var D;if(_=0|_||1,16===(u=u||10)||"hex"===u){D="";for(var O=0,x=0,r=0;r>>24-O&16777215)||r!==this.length-1?A[6-Z.length]+Z+D:Z+D,(O+=2)>=26&&(O-=26,r--)}for(0!==x&&(D=x.toString(16)+D);D.length%_!=0;)D="0"+D;return 0!==this.negative&&(D="-"+D),D}if(u===(0|u)&&u>=2&&u<=36){var N=E[u],U=P[u];D="";var ve=this.clone();for(ve.negative=0;!ve.isZero();){var be=ve.modrn(U).toString(u);D=(ve=ve.idivn(U)).isZero()?be+D:A[N-be.length]+be+D}for(this.isZero()&&(D="0"+D);D.length%_!=0;)D="0"+D;return 0!==this.negative&&(D="-"+D),D}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var u=this.words[0];return 2===this.length?u+=67108864*this.words[1]:3===this.length&&1===this.words[2]?u+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-u:u},o.prototype.toJSON=function(){return this.toString(16,2)},M&&(o.prototype.toBuffer=function(u,_){return this.toArrayLike(M,u,_)}),o.prototype.toArray=function(u,_){return this.toArrayLike(Array,u,_)},o.prototype.toArrayLike=function(u,_,D){this._strip();var O=this.byteLength(),x=D||Math.max(1,O);y(O<=x,"byte array longer than desired length"),y(x>0,"Requested array length <= 0");var r=function(u,_){return u.allocUnsafe?u.allocUnsafe(_):new u(_)}(u,x);return this["_toArrayLike"+("le"===_?"LE":"BE")](r,O),r},o.prototype._toArrayLikeLE=function(u,_){for(var D=0,O=0,x=0,r=0;x>8&255),D>16&255),6===r?(D>24&255),O=0,r=0):(O=b>>>24,r+=2)}if(D=0&&(u[D--]=b>>8&255),D>=0&&(u[D--]=b>>16&255),6===r?(D>=0&&(u[D--]=b>>24&255),O=0,r=0):(O=b>>>24,r+=2)}if(D>=0)for(u[D--]=O;D>=0;)u[D--]=0},o.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var _=u,D=0;return _>=4096&&(D+=13,_>>>=13),_>=64&&(D+=7,_>>>=7),_>=8&&(D+=4,_>>>=4),_>=2&&(D+=2,_>>>=2),D+_},o.prototype._zeroBits=function(u){if(0===u)return 26;var _=u,D=0;return 0==(8191&_)&&(D+=13,_>>>=13),0==(127&_)&&(D+=7,_>>>=7),0==(15&_)&&(D+=4,_>>>=4),0==(3&_)&&(D+=2,_>>>=2),0==(1&_)&&D++,D},o.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,_=0;_u.length?this.clone().ior(u):u.clone().ior(this)},o.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},o.prototype.iuand=function(u){var _;_=this.length>u.length?u:this;for(var D=0;D<_.length;D++)this.words[D]=this.words[D]&u.words[D];return this.length=_.length,this._strip()},o.prototype.iand=function(u){return y(0==(this.negative|u.negative)),this.iuand(u)},o.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},o.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},o.prototype.iuxor=function(u){var _,D;this.length>u.length?(_=this,D=u):(_=u,D=this);for(var O=0;Ou.length?this.clone().ixor(u):u.clone().ixor(this)},o.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},o.prototype.inotn=function(u){y("number"==typeof u&&u>=0);var _=0|Math.ceil(u/26),D=u%26;this._expand(_),D>0&&_--;for(var O=0;O<_;O++)this.words[O]=67108863&~this.words[O];return D>0&&(this.words[O]=~this.words[O]&67108863>>26-D),this._strip()},o.prototype.notn=function(u){return this.clone().inotn(u)},o.prototype.setn=function(u,_){y("number"==typeof u&&u>=0);var D=u/26|0,O=u%26;return this._expand(D+1),this.words[D]=_?this.words[D]|1<u.length?(D=this,O=u):(D=u,O=this);for(var x=0,r=0;r>>26;for(;0!==x&&r>>26;if(this.length=D.length,0!==x)this.words[this.length]=x,this.length++;else if(D!==this)for(;ru.length?this.clone().iadd(u):u.clone().iadd(this)},o.prototype.isub=function(u){if(0!==u.negative){u.negative=0;var _=this.iadd(u);return u.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var O,x,D=this.cmp(u);if(0===D)return this.negative=0,this.length=1,this.words[0]=0,this;D>0?(O=this,x=u):(O=u,x=this);for(var r=0,b=0;b>26,this.words[b]=67108863&_;for(;0!==r&&b>26,this.words[b]=67108863&_;if(0===r&&b>>13,ze=0|O[1],Oe=8191&ze,K=ze>>>13,Me=0|O[2],we=8191&Me,z=Me>>>13,Ze=0|O[3],vt=8191&Ze,Fe=Ze>>>13,Ne=0|O[4],ce=8191&Ne,Le=Ne>>>13,Pe=0|O[5],q=8191&Pe,$=Pe>>>13,oe=0|O[6],Ce=8191&oe,Ue=oe>>>13,lt=0|O[7],nt=8191<,ft=lt>>>13,it=0|O[8],rt=8191&it,Mt=it>>>13,Zt=0|O[9],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|x[0],jt=8191&Ii,ei=Ii>>>13,ki=0|x[1],ai=8191&ki,hi=ki>>>13,Ve=0|x[2],Ee=8191&Ve,Y=Ve>>>13,pe=0|x[3],De=8191&pe,et=pe>>>13,$t=0|x[4],Nt=8191&$t,Jt=$t>>>13,ct=0|x[5],ke=8191&ct,Be=ct>>>13,at=0|x[6],st=8191&at,At=at>>>13,li=0|x[7],Bt=8191&li,Rt=li>>>13,Li=0|x[8],si=8191&Li,ci=Li>>>13,sn=0|x[9],Ui=8191&sn,Di=sn>>>13;D.negative=u.negative^_.negative,D.length=19;var Xi=(b+(Z=Math.imul(be,jt))|0)+((8191&(N=(N=Math.imul(be,ei))+Math.imul(Re,jt)|0))<<13)|0;b=((U=Math.imul(Re,ei))+(N>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,Z=Math.imul(Oe,jt),N=(N=Math.imul(Oe,ei))+Math.imul(K,jt)|0,U=Math.imul(K,ei);var Ke=(b+(Z=Z+Math.imul(be,ai)|0)|0)+((8191&(N=(N=N+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0))<<13)|0;b=((U=U+Math.imul(Re,hi)|0)+(N>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,Z=Math.imul(we,jt),N=(N=Math.imul(we,ei))+Math.imul(z,jt)|0,U=Math.imul(z,ei),Z=Z+Math.imul(Oe,ai)|0,N=(N=N+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,U=U+Math.imul(K,hi)|0;var _t=(b+(Z=Z+Math.imul(be,Ee)|0)|0)+((8191&(N=(N=N+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0))<<13)|0;b=((U=U+Math.imul(Re,Y)|0)+(N>>>13)|0)+(_t>>>26)|0,_t&=67108863,Z=Math.imul(vt,jt),N=(N=Math.imul(vt,ei))+Math.imul(Fe,jt)|0,U=Math.imul(Fe,ei),Z=Z+Math.imul(we,ai)|0,N=(N=N+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,U=U+Math.imul(z,hi)|0,Z=Z+Math.imul(Oe,Ee)|0,N=(N=N+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,U=U+Math.imul(K,Y)|0;var _e=(b+(Z=Z+Math.imul(be,De)|0)|0)+((8191&(N=(N=N+Math.imul(be,et)|0)+Math.imul(Re,De)|0))<<13)|0;b=((U=U+Math.imul(Re,et)|0)+(N>>>13)|0)+(_e>>>26)|0,_e&=67108863,Z=Math.imul(ce,jt),N=(N=Math.imul(ce,ei))+Math.imul(Le,jt)|0,U=Math.imul(Le,ei),Z=Z+Math.imul(vt,ai)|0,N=(N=N+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,U=U+Math.imul(Fe,hi)|0,Z=Z+Math.imul(we,Ee)|0,N=(N=N+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,U=U+Math.imul(z,Y)|0,Z=Z+Math.imul(Oe,De)|0,N=(N=N+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,U=U+Math.imul(K,et)|0;var qe=(b+(Z=Z+Math.imul(be,Nt)|0)|0)+((8191&(N=(N=N+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0))<<13)|0;b=((U=U+Math.imul(Re,Jt)|0)+(N>>>13)|0)+(qe>>>26)|0,qe&=67108863,Z=Math.imul(q,jt),N=(N=Math.imul(q,ei))+Math.imul($,jt)|0,U=Math.imul($,ei),Z=Z+Math.imul(ce,ai)|0,N=(N=N+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,U=U+Math.imul(Le,hi)|0,Z=Z+Math.imul(vt,Ee)|0,N=(N=N+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,U=U+Math.imul(Fe,Y)|0,Z=Z+Math.imul(we,De)|0,N=(N=N+Math.imul(we,et)|0)+Math.imul(z,De)|0,U=U+Math.imul(z,et)|0,Z=Z+Math.imul(Oe,Nt)|0,N=(N=N+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,U=U+Math.imul(K,Jt)|0;var yt=(b+(Z=Z+Math.imul(be,ke)|0)|0)+((8191&(N=(N=N+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0))<<13)|0;b=((U=U+Math.imul(Re,Be)|0)+(N>>>13)|0)+(yt>>>26)|0,yt&=67108863,Z=Math.imul(Ce,jt),N=(N=Math.imul(Ce,ei))+Math.imul(Ue,jt)|0,U=Math.imul(Ue,ei),Z=Z+Math.imul(q,ai)|0,N=(N=N+Math.imul(q,hi)|0)+Math.imul($,ai)|0,U=U+Math.imul($,hi)|0,Z=Z+Math.imul(ce,Ee)|0,N=(N=N+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,U=U+Math.imul(Le,Y)|0,Z=Z+Math.imul(vt,De)|0,N=(N=N+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,U=U+Math.imul(Fe,et)|0,Z=Z+Math.imul(we,Nt)|0,N=(N=N+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,U=U+Math.imul(z,Jt)|0,Z=Z+Math.imul(Oe,ke)|0,N=(N=N+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,U=U+Math.imul(K,Be)|0;var ue=(b+(Z=Z+Math.imul(be,st)|0)|0)+((8191&(N=(N=N+Math.imul(be,At)|0)+Math.imul(Re,st)|0))<<13)|0;b=((U=U+Math.imul(Re,At)|0)+(N>>>13)|0)+(ue>>>26)|0,ue&=67108863,Z=Math.imul(nt,jt),N=(N=Math.imul(nt,ei))+Math.imul(ft,jt)|0,U=Math.imul(ft,ei),Z=Z+Math.imul(Ce,ai)|0,N=(N=N+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,U=U+Math.imul(Ue,hi)|0,Z=Z+Math.imul(q,Ee)|0,N=(N=N+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,U=U+Math.imul($,Y)|0,Z=Z+Math.imul(ce,De)|0,N=(N=N+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,U=U+Math.imul(Le,et)|0,Z=Z+Math.imul(vt,Nt)|0,N=(N=N+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,U=U+Math.imul(Fe,Jt)|0,Z=Z+Math.imul(we,ke)|0,N=(N=N+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,U=U+Math.imul(z,Be)|0,Z=Z+Math.imul(Oe,st)|0,N=(N=N+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,U=U+Math.imul(K,At)|0;var Je=(b+(Z=Z+Math.imul(be,Bt)|0)|0)+((8191&(N=(N=N+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0))<<13)|0;b=((U=U+Math.imul(Re,Rt)|0)+(N>>>13)|0)+(Je>>>26)|0,Je&=67108863,Z=Math.imul(rt,jt),N=(N=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,U=Math.imul(Mt,ei),Z=Z+Math.imul(nt,ai)|0,N=(N=N+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,U=U+Math.imul(ft,hi)|0,Z=Z+Math.imul(Ce,Ee)|0,N=(N=N+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,U=U+Math.imul(Ue,Y)|0,Z=Z+Math.imul(q,De)|0,N=(N=N+Math.imul(q,et)|0)+Math.imul($,De)|0,U=U+Math.imul($,et)|0,Z=Z+Math.imul(ce,Nt)|0,N=(N=N+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,U=U+Math.imul(Le,Jt)|0,Z=Z+Math.imul(vt,ke)|0,N=(N=N+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,U=U+Math.imul(Fe,Be)|0,Z=Z+Math.imul(we,st)|0,N=(N=N+Math.imul(we,At)|0)+Math.imul(z,st)|0,U=U+Math.imul(z,At)|0,Z=Z+Math.imul(Oe,Bt)|0,N=(N=N+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,U=U+Math.imul(K,Rt)|0;var St=(b+(Z=Z+Math.imul(be,si)|0)|0)+((8191&(N=(N=N+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;b=((U=U+Math.imul(Re,ci)|0)+(N>>>13)|0)+(St>>>26)|0,St&=67108863,Z=Math.imul(Ft,jt),N=(N=Math.imul(Ft,ei))+Math.imul(Vt,jt)|0,U=Math.imul(Vt,ei),Z=Z+Math.imul(rt,ai)|0,N=(N=N+Math.imul(rt,hi)|0)+Math.imul(Mt,ai)|0,U=U+Math.imul(Mt,hi)|0,Z=Z+Math.imul(nt,Ee)|0,N=(N=N+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,U=U+Math.imul(ft,Y)|0,Z=Z+Math.imul(Ce,De)|0,N=(N=N+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,U=U+Math.imul(Ue,et)|0,Z=Z+Math.imul(q,Nt)|0,N=(N=N+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,U=U+Math.imul($,Jt)|0,Z=Z+Math.imul(ce,ke)|0,N=(N=N+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,U=U+Math.imul(Le,Be)|0,Z=Z+Math.imul(vt,st)|0,N=(N=N+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,U=U+Math.imul(Fe,At)|0,Z=Z+Math.imul(we,Bt)|0,N=(N=N+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,U=U+Math.imul(z,Rt)|0,Z=Z+Math.imul(Oe,si)|0,N=(N=N+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0,U=U+Math.imul(K,ci)|0;var kt=(b+(Z=Z+Math.imul(be,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(be,Di)|0)+Math.imul(Re,Ui)|0))<<13)|0;b=((U=U+Math.imul(Re,Di)|0)+(N>>>13)|0)+(kt>>>26)|0,kt&=67108863,Z=Math.imul(Ft,ai),N=(N=Math.imul(Ft,hi))+Math.imul(Vt,ai)|0,U=Math.imul(Vt,hi),Z=Z+Math.imul(rt,Ee)|0,N=(N=N+Math.imul(rt,Y)|0)+Math.imul(Mt,Ee)|0,U=U+Math.imul(Mt,Y)|0,Z=Z+Math.imul(nt,De)|0,N=(N=N+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,U=U+Math.imul(ft,et)|0,Z=Z+Math.imul(Ce,Nt)|0,N=(N=N+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,U=U+Math.imul(Ue,Jt)|0,Z=Z+Math.imul(q,ke)|0,N=(N=N+Math.imul(q,Be)|0)+Math.imul($,ke)|0,U=U+Math.imul($,Be)|0,Z=Z+Math.imul(ce,st)|0,N=(N=N+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,U=U+Math.imul(Le,At)|0,Z=Z+Math.imul(vt,Bt)|0,N=(N=N+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,U=U+Math.imul(Fe,Rt)|0,Z=Z+Math.imul(we,si)|0,N=(N=N+Math.imul(we,ci)|0)+Math.imul(z,si)|0,U=U+Math.imul(z,ci)|0;var yi=(b+(Z=Z+Math.imul(Oe,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(Oe,Di)|0)+Math.imul(K,Ui)|0))<<13)|0;b=((U=U+Math.imul(K,Di)|0)+(N>>>13)|0)+(yi>>>26)|0,yi&=67108863,Z=Math.imul(Ft,Ee),N=(N=Math.imul(Ft,Y))+Math.imul(Vt,Ee)|0,U=Math.imul(Vt,Y),Z=Z+Math.imul(rt,De)|0,N=(N=N+Math.imul(rt,et)|0)+Math.imul(Mt,De)|0,U=U+Math.imul(Mt,et)|0,Z=Z+Math.imul(nt,Nt)|0,N=(N=N+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,U=U+Math.imul(ft,Jt)|0,Z=Z+Math.imul(Ce,ke)|0,N=(N=N+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,U=U+Math.imul(Ue,Be)|0,Z=Z+Math.imul(q,st)|0,N=(N=N+Math.imul(q,At)|0)+Math.imul($,st)|0,U=U+Math.imul($,At)|0,Z=Z+Math.imul(ce,Bt)|0,N=(N=N+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,U=U+Math.imul(Le,Rt)|0,Z=Z+Math.imul(vt,si)|0,N=(N=N+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0,U=U+Math.imul(Fe,ci)|0;var Ni=(b+(Z=Z+Math.imul(we,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(we,Di)|0)+Math.imul(z,Ui)|0))<<13)|0;b=((U=U+Math.imul(z,Di)|0)+(N>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,Z=Math.imul(Ft,De),N=(N=Math.imul(Ft,et))+Math.imul(Vt,De)|0,U=Math.imul(Vt,et),Z=Z+Math.imul(rt,Nt)|0,N=(N=N+Math.imul(rt,Jt)|0)+Math.imul(Mt,Nt)|0,U=U+Math.imul(Mt,Jt)|0,Z=Z+Math.imul(nt,ke)|0,N=(N=N+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,U=U+Math.imul(ft,Be)|0,Z=Z+Math.imul(Ce,st)|0,N=(N=N+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,U=U+Math.imul(Ue,At)|0,Z=Z+Math.imul(q,Bt)|0,N=(N=N+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,U=U+Math.imul($,Rt)|0,Z=Z+Math.imul(ce,si)|0,N=(N=N+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0,U=U+Math.imul(Le,ci)|0;var Si=(b+(Z=Z+Math.imul(vt,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(vt,Di)|0)+Math.imul(Fe,Ui)|0))<<13)|0;b=((U=U+Math.imul(Fe,Di)|0)+(N>>>13)|0)+(Si>>>26)|0,Si&=67108863,Z=Math.imul(Ft,Nt),N=(N=Math.imul(Ft,Jt))+Math.imul(Vt,Nt)|0,U=Math.imul(Vt,Jt),Z=Z+Math.imul(rt,ke)|0,N=(N=N+Math.imul(rt,Be)|0)+Math.imul(Mt,ke)|0,U=U+Math.imul(Mt,Be)|0,Z=Z+Math.imul(nt,st)|0,N=(N=N+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,U=U+Math.imul(ft,At)|0,Z=Z+Math.imul(Ce,Bt)|0,N=(N=N+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,U=U+Math.imul(Ue,Rt)|0,Z=Z+Math.imul(q,si)|0,N=(N=N+Math.imul(q,ci)|0)+Math.imul($,si)|0,U=U+Math.imul($,ci)|0;var qi=(b+(Z=Z+Math.imul(ce,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(ce,Di)|0)+Math.imul(Le,Ui)|0))<<13)|0;b=((U=U+Math.imul(Le,Di)|0)+(N>>>13)|0)+(qi>>>26)|0,qi&=67108863,Z=Math.imul(Ft,ke),N=(N=Math.imul(Ft,Be))+Math.imul(Vt,ke)|0,U=Math.imul(Vt,Be),Z=Z+Math.imul(rt,st)|0,N=(N=N+Math.imul(rt,At)|0)+Math.imul(Mt,st)|0,U=U+Math.imul(Mt,At)|0,Z=Z+Math.imul(nt,Bt)|0,N=(N=N+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,U=U+Math.imul(ft,Rt)|0,Z=Z+Math.imul(Ce,si)|0,N=(N=N+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0,U=U+Math.imul(Ue,ci)|0;var ot=(b+(Z=Z+Math.imul(q,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(q,Di)|0)+Math.imul($,Ui)|0))<<13)|0;b=((U=U+Math.imul($,Di)|0)+(N>>>13)|0)+(ot>>>26)|0,ot&=67108863,Z=Math.imul(Ft,st),N=(N=Math.imul(Ft,At))+Math.imul(Vt,st)|0,U=Math.imul(Vt,At),Z=Z+Math.imul(rt,Bt)|0,N=(N=N+Math.imul(rt,Rt)|0)+Math.imul(Mt,Bt)|0,U=U+Math.imul(Mt,Rt)|0,Z=Z+Math.imul(nt,si)|0,N=(N=N+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0,U=U+Math.imul(ft,ci)|0;var Kt=(b+(Z=Z+Math.imul(Ce,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(Ce,Di)|0)+Math.imul(Ue,Ui)|0))<<13)|0;b=((U=U+Math.imul(Ue,Di)|0)+(N>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,Z=Math.imul(Ft,Bt),N=(N=Math.imul(Ft,Rt))+Math.imul(Vt,Bt)|0,U=Math.imul(Vt,Rt),Z=Z+Math.imul(rt,si)|0,N=(N=N+Math.imul(rt,ci)|0)+Math.imul(Mt,si)|0,U=U+Math.imul(Mt,ci)|0;var gt=(b+(Z=Z+Math.imul(nt,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(nt,Di)|0)+Math.imul(ft,Ui)|0))<<13)|0;b=((U=U+Math.imul(ft,Di)|0)+(N>>>13)|0)+(gt>>>26)|0,gt&=67108863,Z=Math.imul(Ft,si),N=(N=Math.imul(Ft,ci))+Math.imul(Vt,si)|0,U=Math.imul(Vt,ci);var Lt=(b+(Z=Z+Math.imul(rt,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(rt,Di)|0)+Math.imul(Mt,Ui)|0))<<13)|0;b=((U=U+Math.imul(Mt,Di)|0)+(N>>>13)|0)+(Lt>>>26)|0,Lt&=67108863;var ui=(b+(Z=Math.imul(Ft,Ui))|0)+((8191&(N=(N=Math.imul(Ft,Di))+Math.imul(Vt,Ui)|0))<<13)|0;return b=((U=Math.imul(Vt,Di))+(N>>>13)|0)+(ui>>>26)|0,ui&=67108863,r[0]=Xi,r[1]=Ke,r[2]=_t,r[3]=_e,r[4]=qe,r[5]=yt,r[6]=ue,r[7]=Je,r[8]=St,r[9]=kt,r[10]=yi,r[11]=Ni,r[12]=Si,r[13]=qi,r[14]=ot,r[15]=Kt,r[16]=gt,r[17]=Lt,r[18]=ui,0!==b&&(r[19]=b,D.length++),D};function te(p,u,_){_.negative=u.negative^p.negative,_.length=p.length+u.length;for(var D=0,O=0,x=0;x<_.length-1;x++){var r=O;O=0;for(var b=67108863&D,Z=Math.min(x,u.length-1),N=Math.max(0,x-p.length+1);N<=Z;N++){var Re=(0|p.words[x-N])*(0|u.words[N]),ze=67108863ℜb=67108863&(ze=ze+b|0),O+=(r=(r=r+(Re/67108864|0)|0)+(ze>>>26)|0)>>>26,r&=67108863}_.words[x]=b,D=r,r=O}return 0!==D?_.words[x]=D:_.length--,_._strip()}function ee(p,u,_){return te(p,u,_)}function ge(p,u){this.x=p,this.y=u}Math.imul||(W=j),o.prototype.mulTo=function(u,_){var O=this.length+u.length;return 10===this.length&&10===u.length?W(this,u,_):O<63?j(this,u,_):O<1024?te(this,u,_):ee(this,u,_)},ge.prototype.makeRBT=function(u){for(var _=new Array(u),D=o.prototype._countBits(u)-1,O=0;O>=1;return O},ge.prototype.permute=function(u,_,D,O,x,r){for(var b=0;b>>=1)x++;return 1<>>=13),x>>>=13;for(r=2*_;r>=26,D+=x/67108864|0,D+=r>>>26,this.words[O]=67108863&r}return 0!==D&&(this.words[O]=D,this.length++),_?this.ineg():this},o.prototype.muln=function(u){return this.clone().imuln(u)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(u){var _=function V(p){for(var u=new Array(p.bitLength()),_=0;_>>_%26&1;return u}(u);if(0===_.length)return new o(1);for(var D=this,O=0;O<_.length&&0===_[O];O++,D=D.sqr());if(++O<_.length)for(var x=D.sqr();O<_.length;O++,x=x.sqr())0!==_[O]&&(D=D.mul(x));return D},o.prototype.iushln=function(u){y("number"==typeof u&&u>=0);var x,_=u%26,D=(u-_)/26,O=67108863>>>26-_<<26-_;if(0!==_){var r=0;for(x=0;x>>26-_}r&&(this.words[x]=r,this.length++)}if(0!==D){for(x=this.length-1;x>=0;x--)this.words[x+D]=this.words[x];for(x=0;x=0),O=_?(_-_%26)/26:0;var x=u%26,r=Math.min((u-x)/26,this.length),b=67108863^67108863>>>x<r)for(this.length-=r,N=0;N=0&&(0!==U||N>=O);N--){var ve=0|this.words[N];this.words[N]=U<<26-x|ve>>>x,U=ve&b}return Z&&0!==U&&(Z.words[Z.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(u,_,D){return y(0===this.negative),this.iushrn(u,_,D)},o.prototype.shln=function(u){return this.clone().ishln(u)},o.prototype.ushln=function(u){return this.clone().iushln(u)},o.prototype.shrn=function(u){return this.clone().ishrn(u)},o.prototype.ushrn=function(u){return this.clone().iushrn(u)},o.prototype.testn=function(u){y("number"==typeof u&&u>=0);var _=u%26,D=(u-_)/26;return!(this.length<=D||!(this.words[D]&1<<_))},o.prototype.imaskn=function(u){y("number"==typeof u&&u>=0);var _=u%26,D=(u-_)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=D?this:(0!==_&&D++,this.length=Math.min(D,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this._strip())},o.prototype.maskn=function(u){return this.clone().imaskn(u)},o.prototype.iaddn=function(u){return y("number"==typeof u),y(u<67108864),u<0?this.isubn(-u):0!==this.negative?1===this.length&&(0|this.words[0])<=u?(this.words[0]=u-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},o.prototype._iaddn=function(u){this.words[0]+=u;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},o.prototype.isubn=function(u){if(y("number"==typeof u),y(u<67108864),u<0)return this.iaddn(-u);if(0!==this.negative)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_>26)-(Z/67108864|0),this.words[x+D]=67108863&r}for(;x>26,this.words[x+D]=67108863&r;if(0===b)return this._strip();for(y(-1===b),b=0,x=0;x>26,this.words[x]=67108863&r;return this.negative=1,this._strip()},o.prototype._wordDiv=function(u,_){var D,O=this.clone(),x=u,r=0|x.words[x.length-1];0!=(D=26-this._countBits(r))&&(x=x.ushln(D),O.iushln(D),r=0|x.words[x.length-1]);var N,Z=O.length-x.length;if("mod"!==_){(N=new o(null)).length=Z+1,N.words=new Array(N.length);for(var U=0;U=0;be--){var Re=67108864*(0|O.words[x.length+be])+(0|O.words[x.length+be-1]);for(Re=Math.min(Re/r|0,67108863),O._ishlnsubmul(x,Re,be);0!==O.negative;)Re--,O.negative=0,O._ishlnsubmul(x,1,be),O.isZero()||(O.negative^=1);N&&(N.words[be]=Re)}return N&&N._strip(),O._strip(),"div"!==_&&0!==D&&O.iushrn(D),{div:N||null,mod:O}},o.prototype.divmod=function(u,_,D){return y(!u.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===u.negative?(r=this.neg().divmod(u,_),"mod"!==_&&(O=r.div.neg()),"div"!==_&&(x=r.mod.neg(),D&&0!==x.negative&&x.iadd(u)),{div:O,mod:x}):0===this.negative&&0!==u.negative?(r=this.divmod(u.neg(),_),"mod"!==_&&(O=r.div.neg()),{div:O,mod:r.mod}):0!=(this.negative&u.negative)?(r=this.neg().divmod(u.neg(),_),"div"!==_&&(x=r.mod.neg(),D&&0!==x.negative&&x.isub(u)),{div:r.div,mod:x}):u.length>this.length||this.cmp(u)<0?{div:new o(0),mod:this}:1===u.length?"div"===_?{div:this.divn(u.words[0]),mod:null}:"mod"===_?{div:null,mod:new o(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new o(this.modrn(u.words[0]))}:this._wordDiv(u,_);var O,x,r},o.prototype.div=function(u){return this.divmod(u,"div",!1).div},o.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},o.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},o.prototype.divRound=function(u){var _=this.divmod(u);if(_.mod.isZero())return _.div;var D=0!==_.div.negative?_.mod.isub(u):_.mod,O=u.ushrn(1),x=u.andln(1),r=D.cmp(O);return r<0||1===x&&0===r?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},o.prototype.modrn=function(u){var _=u<0;_&&(u=-u),y(u<=67108863);for(var D=(1<<26)%u,O=0,x=this.length-1;x>=0;x--)O=(D*O+(0|this.words[x]))%u;return _?-O:O},o.prototype.modn=function(u){return this.modrn(u)},o.prototype.idivn=function(u){var _=u<0;_&&(u=-u),y(u<=67108863);for(var D=0,O=this.length-1;O>=0;O--){var x=(0|this.words[O])+67108864*D;this.words[O]=x/u|0,D=x%u}return this._strip(),_?this.ineg():this},o.prototype.divn=function(u){return this.clone().idivn(u)},o.prototype.egcd=function(u){y(0===u.negative),y(!u.isZero());var _=this,D=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var O=new o(1),x=new o(0),r=new o(0),b=new o(1),Z=0;_.isEven()&&D.isEven();)_.iushrn(1),D.iushrn(1),++Z;for(var N=D.clone(),U=_.clone();!_.isZero();){for(var ve=0,be=1;0==(_.words[0]&be)&&ve<26;++ve,be<<=1);if(ve>0)for(_.iushrn(ve);ve-- >0;)(O.isOdd()||x.isOdd())&&(O.iadd(N),x.isub(U)),O.iushrn(1),x.iushrn(1);for(var Re=0,ze=1;0==(D.words[0]&ze)&&Re<26;++Re,ze<<=1);if(Re>0)for(D.iushrn(Re);Re-- >0;)(r.isOdd()||b.isOdd())&&(r.iadd(N),b.isub(U)),r.iushrn(1),b.iushrn(1);_.cmp(D)>=0?(_.isub(D),O.isub(r),x.isub(b)):(D.isub(_),r.isub(O),b.isub(x))}return{a:r,b,gcd:D.iushln(Z)}},o.prototype._invmp=function(u){y(0===u.negative),y(!u.isZero());var ve,_=this,D=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var O=new o(1),x=new o(0),r=D.clone();_.cmpn(1)>0&&D.cmpn(1)>0;){for(var b=0,Z=1;0==(_.words[0]&Z)&&b<26;++b,Z<<=1);if(b>0)for(_.iushrn(b);b-- >0;)O.isOdd()&&O.iadd(r),O.iushrn(1);for(var N=0,U=1;0==(D.words[0]&U)&&N<26;++N,U<<=1);if(N>0)for(D.iushrn(N);N-- >0;)x.isOdd()&&x.iadd(r),x.iushrn(1);_.cmp(D)>=0?(_.isub(D),O.isub(x)):(D.isub(_),x.isub(O))}return(ve=0===_.cmpn(1)?O:x).cmpn(0)<0&&ve.iadd(u),ve},o.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var _=this.clone(),D=u.clone();_.negative=0,D.negative=0;for(var O=0;_.isEven()&&D.isEven();O++)_.iushrn(1),D.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;D.isEven();)D.iushrn(1);var x=_.cmp(D);if(x<0){var r=_;_=D,D=r}else if(0===x||0===D.cmpn(1))break;_.isub(D)}return D.iushln(O)},o.prototype.invm=function(u){return this.egcd(u).a.umod(u)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(u){return this.words[0]&u},o.prototype.bincn=function(u){y("number"==typeof u);var _=u%26,D=(u-_)/26,O=1<<_;if(this.length<=D)return this._expand(D+1),this.words[D]|=O,this;for(var x=O,r=D;0!==x&&r>>26,this.words[r]=b&=67108863}return 0!==x&&(this.words[r]=x,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(u){var D,_=u<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)D=1;else{_&&(u=-u),y(u<=67108863,"Number is too big");var O=0|this.words[0];D=O===u?0:Ou.length)return 1;if(this.length=0;D--){var O=0|this.words[D],x=0|u.words[D];if(O!==x){Ox&&(_=1);break}}return _},o.prototype.gtn=function(u){return 1===this.cmpn(u)},o.prototype.gt=function(u){return 1===this.cmp(u)},o.prototype.gten=function(u){return this.cmpn(u)>=0},o.prototype.gte=function(u){return this.cmp(u)>=0},o.prototype.ltn=function(u){return-1===this.cmpn(u)},o.prototype.lt=function(u){return-1===this.cmp(u)},o.prototype.lten=function(u){return this.cmpn(u)<=0},o.prototype.lte=function(u){return this.cmp(u)<=0},o.prototype.eqn=function(u){return 0===this.cmpn(u)},o.prototype.eq=function(u){return 0===this.cmp(u)},o.red=function(u){return new i(u)},o.prototype.toRed=function(u){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),u.convertTo(this)._forceRed(u)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(u){return this.red=u,this},o.prototype.forceRed=function(u){return y(!this.red,"Already a number in reduction context"),this._forceRed(u)},o.prototype.redAdd=function(u){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},o.prototype.redIAdd=function(u){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},o.prototype.redSub=function(u){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},o.prototype.redISub=function(u){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},o.prototype.redShl=function(u){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},o.prototype.redMul=function(u){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},o.prototype.redIMul=function(u){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(u){return y(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var le={k256:null,p224:null,p192:null,p25519:null};function re(p,u){this.name=p,this.p=new o(u,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function de(){re.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function se(){re.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){re.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){re.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(p){if("string"==typeof p){var u=o._prime(p);this.m=u.p,this.prime=u}else y(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}function a(p){i.call(this,p),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}re.prototype._tmp=function(){var u=new o(null);return u.words=new Array(Math.ceil(this.n/13)),u},re.prototype.ireduce=function(u){var D,_=u;do{this.split(_,this.tmp),D=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(D>this.n);var O=D0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},re.prototype.split=function(u,_){u.iushrn(this.n,0,_)},re.prototype.imulK=function(u){return u.imul(this.k)},C(de,re),de.prototype.split=function(u,_){for(var D=4194303,O=Math.min(u.length,9),x=0;x>>22,r=b}u.words[x-10]=r>>>=22,u.length-=0===r&&u.length>10?10:9},de.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var _=0,D=0;D>>=26,u.words[D]=x,_=O}return 0!==_&&(u.words[u.length++]=_),u},o._prime=function(u){if(le[u])return le[u];var _;if("k256"===u)_=new de;else if("p224"===u)_=new se;else if("p192"===u)_=new ye;else{if("p25519"!==u)throw new Error("Unknown prime "+u);_=new v}return le[u]=_,_},i.prototype._verify1=function(u){y(0===u.negative,"red works only with positives"),y(u.red,"red works only with red numbers")},i.prototype._verify2=function(u,_){y(0==(u.negative|_.negative),"red works only with positives"),y(u.red&&u.red===_.red,"red works only with red numbers")},i.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(L(u,u.umod(this.m)._forceRed(this)),u)},i.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},i.prototype.add=function(u,_){this._verify2(u,_);var D=u.add(_);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},i.prototype.iadd=function(u,_){this._verify2(u,_);var D=u.iadd(_);return D.cmp(this.m)>=0&&D.isub(this.m),D},i.prototype.sub=function(u,_){this._verify2(u,_);var D=u.sub(_);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},i.prototype.isub=function(u,_){this._verify2(u,_);var D=u.isub(_);return D.cmpn(0)<0&&D.iadd(this.m),D},i.prototype.shl=function(u,_){return this._verify1(u),this.imod(u.ushln(_))},i.prototype.imul=function(u,_){return this._verify2(u,_),this.imod(u.imul(_))},i.prototype.mul=function(u,_){return this._verify2(u,_),this.imod(u.mul(_))},i.prototype.isqr=function(u){return this.imul(u,u.clone())},i.prototype.sqr=function(u){return this.mul(u,u)},i.prototype.sqrt=function(u){if(u.isZero())return u.clone();var _=this.m.andln(3);if(y(_%2==1),3===_){var D=this.m.add(new o(1)).iushrn(2);return this.pow(u,D)}for(var O=this.m.subn(1),x=0;!O.isZero()&&0===O.andln(1);)x++,O.iushrn(1);y(!O.isZero());var r=new o(1).toRed(this),b=r.redNeg(),Z=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new o(2*N*N).toRed(this);0!==this.pow(N,Z).cmp(b);)N.redIAdd(b);for(var U=this.pow(N,O),ve=this.pow(u,O.addn(1).iushrn(1)),be=this.pow(u,O),Re=x;0!==be.cmp(r);){for(var ze=be,Oe=0;0!==ze.cmp(r);Oe++)ze=ze.redSqr();y(Oe=0;x--){for(var U=_.words[x],ve=N-1;ve>=0;ve--){var be=U>>ve&1;r!==O[0]&&(r=this.sqr(r)),0!==be||0!==b?(b<<=1,b|=be,(4==++Z||0===x&&0===ve)&&(r=this.mul(r,O[b]),Z=0,b=0)):Z=0}N=26}return r},i.prototype.convertTo=function(u){var _=u.umod(this.m);return _===u?_.clone():_},i.prototype.convertFrom=function(u){var _=u.clone();return _.red=null,_},o.mont=function(u){return new a(u)},C(a,i),a.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},a.prototype.convertFrom=function(u){var _=this.imod(u.mul(this.rinv));return _.red=null,_},a.prototype.imul=function(u,_){if(u.isZero()||_.isZero())return u.words[0]=0,u.length=1,u;var D=u.imul(_),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=D.isub(O).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.mul=function(u,_){if(u.isZero()||_.isZero())return new o(0)._forceRed(this);var D=u.mul(_),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=D.isub(O).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.invm=function(u){return this.imod(u._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},7950:(Ge,Q,m)=>{var e;function t(C){this.rand=C}if(Ge.exports=function(o){return e||(e=new t(null)),e.generate(o)},Ge.exports.Rand=t,t.prototype.generate=function(o){return this._rand(o)},t.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var M=new Uint8Array(o),l=0;l{var e=m(3502).Buffer;function t(R){e.isBuffer(R)||(R=e.from(R));for(var s=R.length/4|0,L=new Array(s),I=0;I>>24]^P[W>>>16&255]^w[te>>>8&255]^V[255&ee]^s[se++],le=E[W>>>24]^P[te>>>16&255]^w[ee>>>8&255]^V[255&j]^s[se++],re=E[te>>>24]^P[ee>>>16&255]^w[j>>>8&255]^V[255&W]^s[se++],de=E[ee>>>24]^P[j>>>16&255]^w[W>>>8&255]^V[255&te]^s[se++],j=ge,W=le,te=re,ee=de;return ge=(I[j>>>24]<<24|I[W>>>16&255]<<16|I[te>>>8&255]<<8|I[255&ee])^s[se++],le=(I[W>>>24]<<24|I[te>>>16&255]<<16|I[ee>>>8&255]<<8|I[255&j])^s[se++],re=(I[te>>>24]<<24|I[ee>>>16&255]<<16|I[j>>>8&255]<<8|I[255&W])^s[se++],de=(I[ee>>>24]<<24|I[j>>>16&255]<<16|I[W>>>8&255]<<8|I[255&te])^s[se++],[ge>>>=0,le>>>=0,re>>>=0,de>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],M=function(){for(var R=new Array(256),s=0;s<256;s++)R[s]=s<128?s<<1:s<<1^283;for(var L=[],I=[],A=[[],[],[],[]],E=[[],[],[],[]],P=0,w=0,V=0;V<256;++V){var j=w^w<<1^w<<2^w<<3^w<<4;L[P]=j=j>>>8^255&j^99,I[j]=P;var W=R[P],te=R[W],ee=R[te],ge=257*R[j]^16843008*j;A[0][P]=ge<<24|ge>>>8,A[1][P]=ge<<16|ge>>>16,A[2][P]=ge<<8|ge>>>24,A[3][P]=ge,E[0][j]=(ge=16843009*ee^65537*te^257*W^16843008*P)<<24|ge>>>8,E[1][j]=ge<<16|ge>>>16,E[2][j]=ge<<8|ge>>>24,E[3][j]=ge,0===P?P=w=1:(P=W^R[R[R[ee^W]]],w^=R[R[w]])}return{SBOX:L,INV_SBOX:I,SUB_MIX:A,INV_SUB_MIX:E}}();function l(R){this._key=t(R),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var R=this._key,s=R.length,L=s+6,I=4*(L+1),A=[],E=0;E>>24)>>>24]<<24|M.SBOX[P>>>16&255]<<16|M.SBOX[P>>>8&255]<<8|M.SBOX[255&P],P^=o[E/s|0]<<24):s>6&&E%s==4&&(P=M.SBOX[P>>>24]<<24|M.SBOX[P>>>16&255]<<16|M.SBOX[P>>>8&255]<<8|M.SBOX[255&P]),A[E]=A[E-s]^P}for(var w=[],V=0;V>>24]]^M.INV_SUB_MIX[1][M.SBOX[W>>>16&255]]^M.INV_SUB_MIX[2][M.SBOX[W>>>8&255]]^M.INV_SUB_MIX[3][M.SBOX[255&W]]}this._nRounds=L,this._keySchedule=A,this._invKeySchedule=w},l.prototype.encryptBlockRaw=function(R){return C(R=t(R),this._keySchedule,M.SUB_MIX,M.SBOX,this._nRounds)},l.prototype.encryptBlock=function(R){var s=this.encryptBlockRaw(R),L=e.allocUnsafe(16);return L.writeUInt32BE(s[0],0),L.writeUInt32BE(s[1],4),L.writeUInt32BE(s[2],8),L.writeUInt32BE(s[3],12),L},l.prototype.decryptBlock=function(R){var s=(R=t(R))[1];R[1]=R[3],R[3]=s;var L=C(R,this._invKeySchedule,M.INV_SUB_MIX,M.INV_SBOX,this._nRounds),I=e.allocUnsafe(16);return I.writeUInt32BE(L[0],0),I.writeUInt32BE(L[3],4),I.writeUInt32BE(L[2],8),I.writeUInt32BE(L[1],12),I},l.prototype.scrub=function(){y(this._keySchedule),y(this._invKeySchedule),y(this._key)},Ge.exports.AES=l},9382:(Ge,Q,m)=>{var e=m(1899),t=m(3502).Buffer,y=m(1052),C=m(3894),o=m(8857),M=m(8789),l=m(7968);function L(I,A,E,P){y.call(this);var w=t.alloc(4,0);this._cipher=new e.AES(A);var V=this._cipher.encryptBlock(w);this._ghash=new o(V),E=function s(I,A,E){if(12===A.length)return I._finID=t.concat([A,t.from([0,0,0,1])]),t.concat([A,t.from([0,0,0,2])]);var P=new o(E),w=A.length,V=w%16;P.update(A),V&&P.update(t.alloc(V=16-V,0)),P.update(t.alloc(8,0));var j=8*w,W=t.alloc(8);W.writeUIntBE(j,0,8),P.update(W),I._finID=P.state;var te=t.from(I._finID);return l(te),te}(this,E,V),this._prev=t.from(E),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=P,this._alen=0,this._len=0,this._mode=I,this._authTag=null,this._called=!1}C(L,y),L.prototype._update=function(I){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=t.alloc(A,0),this._ghash.update(A))}this._called=!0;var E=this._mode.encrypt(this,I);return this._ghash.update(this._decrypt?I:E),this._len+=I.length,E},L.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var I=M(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function R(I,A){var E=0;I.length!==A.length&&E++;for(var P=Math.min(I.length,A.length),w=0;w{var e=m(6900),t=m(856),y=m(4946);Q.createCipher=Q.Cipher=e.createCipher,Q.createCipheriv=Q.Cipheriv=e.createCipheriv,Q.createDecipher=Q.Decipher=t.createDecipher,Q.createDecipheriv=Q.Decipheriv=t.createDecipheriv,Q.listCiphers=Q.getCiphers=function C(){return Object.keys(y)}},856:(Ge,Q,m)=>{var e=m(9382),t=m(3502).Buffer,y=m(9171),C=m(8441),o=m(1052),M=m(1899),l=m(347);function s(P,w,V){o.call(this),this._cache=new L,this._last=void 0,this._cipher=new M.AES(w),this._prev=t.from(V),this._mode=P,this._autopadding=!0}function L(){this.cache=t.allocUnsafe(0)}function A(P,w,V){var j=y[P.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof V&&(V=t.from(V)),"GCM"!==j.mode&&V.length!==j.iv)throw new TypeError("invalid iv length "+V.length);if("string"==typeof w&&(w=t.from(w)),w.length!==j.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===j.type?new C(j.module,w,V,!0):"auth"===j.type?new e(j.module,w,V,!0):new s(j.module,w,V)}m(3894)(s,o),s.prototype._update=function(P){this._cache.add(P);for(var w,V,j=[];w=this._cache.get(this._autopadding);)V=this._mode.decrypt(this,w),j.push(V);return t.concat(j)},s.prototype._final=function(){var P=this._cache.flush();if(this._autopadding)return function I(P){var w=P[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var V=-1;++V16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},L.prototype.flush=function(){if(this.cache.length)return this.cache},Q.createDecipher=function E(P,w){var V=y[P.toLowerCase()];if(!V)throw new TypeError("invalid suite type");var j=l(w,!1,V.key,V.iv);return A(P,j.key,j.iv)},Q.createDecipheriv=A},6900:(Ge,Q,m)=>{var e=m(9171),t=m(9382),y=m(3502).Buffer,C=m(8441),o=m(1052),M=m(1899),l=m(347);function s(P,w,V){o.call(this),this._cache=new I,this._cipher=new M.AES(w),this._prev=y.from(V),this._mode=P,this._autopadding=!0}m(3894)(s,o),s.prototype._update=function(P){this._cache.add(P);for(var w,V,j=[];w=this._cache.get();)V=this._mode.encrypt(this,w),j.push(V);return y.concat(j)};var L=y.alloc(16,16);function I(){this.cache=y.allocUnsafe(0)}function A(P,w,V){var j=e[P.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=y.from(w)),w.length!==j.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof V&&(V=y.from(V)),"GCM"!==j.mode&&V.length!==j.iv)throw new TypeError("invalid iv length "+V.length);return"stream"===j.type?new C(j.module,w,V):"auth"===j.type?new t(j.module,w,V):new s(j.module,w,V)}s.prototype._final=function(){var P=this._cache.flush();if(this._autopadding)return P=this._mode.encrypt(this,P),this._cipher.scrub(),P;if(!P.equals(L))throw this._cipher.scrub(),new Error("data not multiple of block length")},s.prototype.setAutoPadding=function(P){return this._autopadding=!!P,this},I.prototype.add=function(P){this.cache=y.concat([this.cache,P])},I.prototype.get=function(){if(this.cache.length>15){var P=this.cache.slice(0,16);return this.cache=this.cache.slice(16),P}return null},I.prototype.flush=function(){for(var P=16-this.cache.length,w=y.allocUnsafe(P),V=-1;++V{var e=m(3502).Buffer,t=e.alloc(16,0);function C(M){var l=e.allocUnsafe(16);return l.writeUInt32BE(M[0]>>>0,0),l.writeUInt32BE(M[1]>>>0,4),l.writeUInt32BE(M[2]>>>0,8),l.writeUInt32BE(M[3]>>>0,12),l}function o(M){this.h=M,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}o.prototype.ghash=function(M){for(var l=-1;++l0;R--)M[R]=M[R]>>>1|(1&M[R-1])<<31;M[0]=M[0]>>>1,L&&(M[0]=M[0]^225<<24)}this.state=C(l)},o.prototype.update=function(M){this.cache=e.concat([this.cache,M]);for(var l;this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},o.prototype.final=function(M,l){return this.cache.length&&this.ghash(e.concat([this.cache,t],16)),this.ghash(C([0,M,0,l])),this.state},Ge.exports=o},7968:Ge=>{Ge.exports=function Q(m){for(var t,e=m.length;e--;){if(255!==(t=m.readUInt8(e))){t++,m.writeUInt8(t,e);break}m.writeUInt8(0,e)}}},4903:(Ge,Q,m)=>{var e=m(8789);Q.encrypt=function(t,y){var C=e(y,t._prev);return t._prev=t._cipher.encryptBlock(C),t._prev},Q.decrypt=function(t,y){var C=t._prev;t._prev=y;var o=t._cipher.decryptBlock(y);return e(o,C)}},9885:(Ge,Q,m)=>{var e=m(3502).Buffer,t=m(8789);function y(C,o,M){var l=o.length,R=t(o,C._cache);return C._cache=C._cache.slice(l),C._prev=e.concat([C._prev,M?o:R]),R}Q.encrypt=function(C,o,M){for(var R,l=e.allocUnsafe(0);o.length;){if(0===C._cache.length&&(C._cache=C._cipher.encryptBlock(C._prev),C._prev=e.allocUnsafe(0)),!(C._cache.length<=o.length)){l=e.concat([l,y(C,o,M)]);break}l=e.concat([l,y(C,o.slice(0,R=C._cache.length),M)]),o=o.slice(R)}return l}},6531:(Ge,Q,m)=>{var e=m(3502).Buffer;function t(C,o,M){for(var I,A,R=-1,L=0;++R<8;)L+=(128&(A=C._cipher.encryptBlock(C._prev)[0]^(I=o&1<<7-R?128:0)))>>R%8,C._prev=y(C._prev,M?I:A);return L}function y(C,o){var M=C.length,l=-1,R=e.allocUnsafe(C.length);for(C=e.concat([C,e.from([o])]);++l>7;return R}Q.encrypt=function(C,o,M){for(var l=o.length,R=e.allocUnsafe(l),s=-1;++s{var e=m(3502).Buffer;function t(y,C,o){var l=y._cipher.encryptBlock(y._prev)[0]^C;return y._prev=e.concat([y._prev.slice(1),e.from([o?C:l])]),l}Q.encrypt=function(y,C,o){for(var M=C.length,l=e.allocUnsafe(M),R=-1;++R{var e=m(8789),t=m(3502).Buffer,y=m(7968);function C(M){var l=M._cipher.encryptBlockRaw(M._prev);return y(M._prev),l}Q.encrypt=function(M,l){var R=Math.ceil(l.length/16),s=M._cache.length;M._cache=t.concat([M._cache,t.allocUnsafe(16*R)]);for(var L=0;L{Q.encrypt=function(m,e){return m._cipher.encryptBlock(e)},Q.decrypt=function(m,e){return m._cipher.decryptBlock(e)}},9171:(Ge,Q,m)=>{var e={ECB:m(1704),CBC:m(4903),CFB:m(9885),CFB8:m(1641),CFB1:m(6531),OFB:m(6816),CTR:m(1150),GCM:m(1150)},t=m(4946);for(var y in t)t[y].module=e[t[y].mode];Ge.exports=t},6816:(Ge,Q,m)=>{var e=m(8789);function t(y){return y._prev=y._cipher.encryptBlock(y._prev),y._prev}Q.encrypt=function(y,C){for(;y._cache.length{var e=m(1899),t=m(3502).Buffer,y=m(1052);function o(M,l,R,s){y.call(this),this._cipher=new e.AES(l),this._prev=t.from(R),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=s,this._mode=M}m(3894)(o,y),o.prototype._update=function(M){return this._mode.encrypt(this,M,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},Ge.exports=o},5255:(Ge,Q,m)=>{var e=m(9004),t=m(4330),y=m(9171),C=m(1115),o=m(347);function R(I,A,E){if(I=I.toLowerCase(),y[I])return t.createCipheriv(I,A,E);if(C[I])return new e({key:A,iv:E,mode:I});throw new TypeError("invalid suite type")}function s(I,A,E){if(I=I.toLowerCase(),y[I])return t.createDecipheriv(I,A,E);if(C[I])return new e({key:A,iv:E,mode:I,decrypt:!0});throw new TypeError("invalid suite type")}Q.createCipher=Q.Cipher=function M(I,A){var E,P;if(I=I.toLowerCase(),y[I])E=y[I].key,P=y[I].iv;else{if(!C[I])throw new TypeError("invalid suite type");E=8*C[I].key,P=C[I].iv}var w=o(A,!1,E,P);return R(I,w.key,w.iv)},Q.createCipheriv=Q.Cipheriv=R,Q.createDecipher=Q.Decipher=function l(I,A){var E,P;if(I=I.toLowerCase(),y[I])E=y[I].key,P=y[I].iv;else{if(!C[I])throw new TypeError("invalid suite type");E=8*C[I].key,P=C[I].iv}var w=o(A,!1,E,P);return s(I,w.key,w.iv)},Q.createDecipheriv=Q.Decipheriv=s,Q.listCiphers=Q.getCiphers=function L(){return Object.keys(C).concat(t.getCiphers())}},9004:(Ge,Q,m)=>{var e=m(1052),t=m(3684),y=m(3894),C=m(3502).Buffer,o={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};function M(l){e.call(this);var L,R=l.mode.toLowerCase(),s=o[R];L=l.decrypt?"decrypt":"encrypt";var I=l.key;C.isBuffer(I)||(I=C.from(I)),("des-ede"===R||"des-ede-cbc"===R)&&(I=C.concat([I,I.slice(0,8)]));var A=l.iv;C.isBuffer(A)||(A=C.from(A)),this._des=s.create({key:I,iv:A,type:L})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],Ge.exports=M,y(M,e),M.prototype._update=function(l){return C.from(this._des.update(l))},M.prototype._final=function(){return C.from(this._des.final())}},1115:(Ge,Q)=>{Q["des-ecb"]={key:8,iv:0},Q["des-cbc"]=Q.des={key:8,iv:8},Q["des-ede3-cbc"]=Q.des3={key:24,iv:8},Q["des-ede3"]={key:24,iv:0},Q["des-ede-cbc"]={key:16,iv:8},Q["des-ede"]={key:16,iv:0}},8466:(Ge,Q,m)=>{var e=m(8538),t=m(3753);function C(M){var R,l=M.modulus.byteLength();do{R=new e(t(l))}while(R.cmp(M.modulus)>=0||!R.umod(M.prime1)||!R.umod(M.prime2));return R}function o(M,l){var R=function y(M){var l=C(M);return{blinder:l.toRed(e.mont(M.modulus)).redPow(new e(M.publicExponent)).fromRed(),unblinder:l.invm(M.modulus)}}(l),s=l.modulus.byteLength(),L=new e(M).mul(R.blinder).umod(l.modulus),I=L.toRed(e.mont(l.prime1)),A=L.toRed(e.mont(l.prime2)),E=l.coefficient,P=l.prime1,w=l.prime2,V=I.redPow(l.exponent1).fromRed(),j=A.redPow(l.exponent2).fromRed(),W=V.isub(j).imul(E).umod(P).imul(w);return j.iadd(W).imul(R.unblinder).umod(l.modulus).toArrayLike(Buffer,"be",s)}o.getr=C,Ge.exports=o},7793:(Ge,Q,m)=>{Ge.exports=m(5207)},3923:(Ge,Q,m)=>{var e=m(8446).Buffer,t=m(6386),y=m(5685),C=m(3894),o=m(9947),M=m(3946),l=m(5207);function R(A){y.Writable.call(this);var E=l[A];if(!E)throw new Error("Unknown message digest");this._hashType=E.hash,this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function s(A){y.Writable.call(this);var E=l[A];if(!E)throw new Error("Unknown message digest");this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function L(A){return new R(A)}function I(A){return new s(A)}Object.keys(l).forEach(function(A){l[A].id=e.from(l[A].id,"hex"),l[A.toLowerCase()]=l[A]}),C(R,y.Writable),R.prototype._write=function(E,P,w){this._hash.update(E),w()},R.prototype.update=function(E,P){return"string"==typeof E&&(E=e.from(E,P)),this._hash.update(E),this},R.prototype.sign=function(E,P){this.end();var w=this._hash.digest(),V=o(w,E,this._hashType,this._signType,this._tag);return P?V.toString(P):V},C(s,y.Writable),s.prototype._write=function(E,P,w){this._hash.update(E),w()},s.prototype.update=function(E,P){return"string"==typeof E&&(E=e.from(E,P)),this._hash.update(E),this},s.prototype.verify=function(E,P,w){"string"==typeof P&&(P=e.from(P,w)),this.end();var V=this._hash.digest();return M(P,V,E,this._signType,this._tag)},Ge.exports={Sign:L,Verify:I,createSign:L,createVerify:I}},9947:(Ge,Q,m)=>{var e=m(8446).Buffer,t=m(4529),y=m(8466),C=m(7715).ec,o=m(8538),M=m(2772),l=m(1308);function A(j,W,te,ee){if((j=e.from(j.toArray())).length0&&te.ishrn(ee),te}function w(j,W,te){var ee,ge;do{for(ee=e.alloc(0);8*ee.length{var e=m(8446).Buffer,t=m(8538),y=m(7715).ec,C=m(2772),o=m(1308);function s(L,I){if(L.cmpn(0)<=0)throw new Error("invalid sig");if(L.cmp(I)>=I)throw new Error("invalid sig")}Ge.exports=function M(L,I,A,E,P){var w=C(A);if("ec"===w.type){if("ecdsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");return function l(L,I,A){var E=o[A.data.algorithm.curve.join(".")];if(!E)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));return new y(E).verify(I,L,A.data.subjectPrivateKey.data)}(L,I,w)}if("dsa"===w.type){if("dsa"!==E)throw new Error("wrong public key type");return function R(L,I,A){var E=A.data.p,P=A.data.q,w=A.data.g,V=A.data.pub_key,j=C.signature.decode(L,"der"),W=j.s,te=j.r;s(W,P),s(te,P);var ee=t.mont(E),ge=W.invm(P);return 0===w.toRed(ee).redPow(new t(I).mul(ge).mod(P)).fromRed().mul(V.toRed(ee).redPow(te.mul(ge).mod(P)).fromRed()).mod(E).mod(P).cmp(te)}(L,I,w)}if("rsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");I=e.concat([P,I]);for(var V=w.modulus.byteLength(),j=[1],W=0;I.length+j.length+2{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ge.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},8789:Ge=>{Ge.exports=function(m,e){for(var t=Math.min(m.length,e.length),y=new Buffer(t),C=0;C{"use strict";var e=m(5343),t=m(8461),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Q.Buffer=l,Q.SlowBuffer=function W(Fe){return+Fe!=Fe&&(Fe=0),l.alloc(+Fe)},Q.INSPECT_MAX_BYTES=50;var C=2147483647;function M(Fe){if(Fe>C)throw new RangeError('The value "'+Fe+'" is invalid for option "size"');var Ne=new Uint8Array(Fe);return Object.setPrototypeOf(Ne,l.prototype),Ne}function l(Fe,Ne,ce){if("number"==typeof Fe){if("string"==typeof Ne)throw new TypeError('The "string" argument must be of type string. Received type number');return I(Fe)}return R(Fe,Ne,ce)}function R(Fe,Ne,ce){if("string"==typeof Fe)return function A(Fe,Ne){if(("string"!=typeof Ne||""===Ne)&&(Ne="utf8"),!l.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);var ce=0|te(Fe,Ne),Le=M(ce),Pe=Le.write(Fe,Ne);return Pe!==ce&&(Le=Le.slice(0,Pe)),Le}(Fe,Ne);if(ArrayBuffer.isView(Fe))return function P(Fe){if(z(Fe,Uint8Array)){var Ne=new Uint8Array(Fe);return w(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return E(Fe)}(Fe);if(null==Fe)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Fe);if(z(Fe,ArrayBuffer)||Fe&&z(Fe.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(z(Fe,SharedArrayBuffer)||Fe&&z(Fe.buffer,SharedArrayBuffer)))return w(Fe,Ne,ce);if("number"==typeof Fe)throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=Fe.valueOf&&Fe.valueOf();if(null!=Le&&Le!==Fe)return l.from(Le,Ne,ce);var Pe=function V(Fe){if(l.isBuffer(Fe)){var Ne=0|j(Fe.length),ce=M(Ne);return 0===ce.length||Fe.copy(ce,0,0,Ne),ce}return void 0!==Fe.length?"number"!=typeof Fe.length||Ze(Fe.length)?M(0):E(Fe):"Buffer"===Fe.type&&Array.isArray(Fe.data)?E(Fe.data):void 0}(Fe);if(Pe)return Pe;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Fe[Symbol.toPrimitive])return l.from(Fe[Symbol.toPrimitive]("string"),Ne,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Fe)}function s(Fe){if("number"!=typeof Fe)throw new TypeError('"size" argument must be of type number');if(Fe<0)throw new RangeError('The value "'+Fe+'" is invalid for option "size"')}function I(Fe){return s(Fe),M(Fe<0?0:0|j(Fe))}function E(Fe){for(var Ne=Fe.length<0?0:0|j(Fe.length),ce=M(Ne),Le=0;Le=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return 0|Fe}function te(Fe,Ne){if(l.isBuffer(Fe))return Fe.length;if(ArrayBuffer.isView(Fe)||z(Fe,ArrayBuffer))return Fe.byteLength;if("string"!=typeof Fe)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Fe);var ce=Fe.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===ce)return 0;for(var Pe=!1;;)switch(Ne){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return ze(Fe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ce;case"hex":return ce>>>1;case"base64":return Me(Fe).length;default:if(Pe)return Le?-1:ze(Fe).length;Ne=(""+Ne).toLowerCase(),Pe=!0}}function ee(Fe,Ne,ce){var Le=!1;if((void 0===Ne||Ne<0)&&(Ne=0),Ne>this.length||((void 0===ce||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0)<=(Ne>>>=0))return"";for(Fe||(Fe="utf8");;)switch(Fe){case"hex":return x(this,Ne,ce);case"utf8":case"utf-8":return p(this,Ne,ce);case"ascii":return D(this,Ne,ce);case"latin1":case"binary":return O(this,Ne,ce);case"base64":return a(this,Ne,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,Ne,ce);default:if(Le)throw new TypeError("Unknown encoding: "+Fe);Fe=(Fe+"").toLowerCase(),Le=!0}}function ge(Fe,Ne,ce){var Le=Fe[Ne];Fe[Ne]=Fe[ce],Fe[ce]=Le}function le(Fe,Ne,ce,Le,Pe){if(0===Fe.length)return-1;if("string"==typeof ce?(Le=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),Ze(ce=+ce)&&(ce=Pe?0:Fe.length-1),ce<0&&(ce=Fe.length+ce),ce>=Fe.length){if(Pe)return-1;ce=Fe.length-1}else if(ce<0){if(!Pe)return-1;ce=0}if("string"==typeof Ne&&(Ne=l.from(Ne,Le)),l.isBuffer(Ne))return 0===Ne.length?-1:re(Fe,Ne,ce,Le,Pe);if("number"==typeof Ne)return Ne&=255,"function"==typeof Uint8Array.prototype.indexOf?Pe?Uint8Array.prototype.indexOf.call(Fe,Ne,ce):Uint8Array.prototype.lastIndexOf.call(Fe,Ne,ce):re(Fe,[Ne],ce,Le,Pe);throw new TypeError("val must be string, number or Buffer")}function re(Fe,Ne,ce,Le,Pe){var Ue,q=1,$=Fe.length,oe=Ne.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(Fe.length<2||Ne.length<2)return-1;q=2,$/=2,oe/=2,ce/=2}function Ce(it,rt){return 1===q?it[rt]:it.readUInt16BE(rt*q)}if(Pe){var lt=-1;for(Ue=ce;Ue<$;Ue++)if(Ce(Fe,Ue)===Ce(Ne,-1===lt?0:Ue-lt)){if(-1===lt&&(lt=Ue),Ue-lt+1===oe)return lt*q}else-1!==lt&&(Ue-=Ue-lt),lt=-1}else for(ce+oe>$&&(ce=$-oe),Ue=ce;Ue>=0;Ue--){for(var nt=!0,ft=0;ftPe&&(Le=Pe):Le=Pe;var q=Ne.length;Le>q/2&&(Le=q/2);for(var $=0;$>8,q.push(ce%256),q.push(Le);return q}(Ne,Fe.length-ce),Fe,ce,Le)}function a(Fe,Ne,ce){return e.fromByteArray(0===Ne&&ce===Fe.length?Fe:Fe.slice(Ne,ce))}function p(Fe,Ne,ce){ce=Math.min(Fe.length,ce);for(var Le=[],Pe=Ne;Pe239?4:q>223?3:q>191?2:1;if(Pe+oe<=ce)switch(oe){case 1:q<128&&($=q);break;case 2:128==(192&(Ce=Fe[Pe+1]))&&(nt=(31&q)<<6|63&Ce)>127&&($=nt);break;case 3:Ue=Fe[Pe+2],128==(192&(Ce=Fe[Pe+1]))&&128==(192&Ue)&&(nt=(15&q)<<12|(63&Ce)<<6|63&Ue)>2047&&(nt<55296||nt>57343)&&($=nt);break;case 4:Ue=Fe[Pe+2],lt=Fe[Pe+3],128==(192&(Ce=Fe[Pe+1]))&&128==(192&Ue)&&128==(192<)&&(nt=(15&q)<<18|(63&Ce)<<12|(63&Ue)<<6|63<)>65535&&nt<1114112&&($=nt)}null===$?($=65533,oe=1):$>65535&&(Le.push(($-=65536)>>>10&1023|55296),$=56320|1023&$),Le.push($),Pe+=oe}return function _(Fe){var Ne=Fe.length;if(Ne<=u)return String.fromCharCode.apply(String,Fe);for(var ce="",Le=0;LePe.length?l.from($).copy(Pe,q):Uint8Array.prototype.set.call(Pe,$,q);else{if(!l.isBuffer($))throw new TypeError('"list" argument must be an Array of Buffers');$.copy(Pe,q)}q+=$.length}return Pe},l.byteLength=te,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var Ne=this.length;if(Ne%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ce=0;cece&&(Ne+=" ... "),""},y&&(l.prototype[y]=l.prototype.inspect),l.prototype.compare=function(Ne,ce,Le,Pe,q){if(z(Ne,Uint8Array)&&(Ne=l.from(Ne,Ne.offset,Ne.byteLength)),!l.isBuffer(Ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ne);if(void 0===ce&&(ce=0),void 0===Le&&(Le=Ne?Ne.length:0),void 0===Pe&&(Pe=0),void 0===q&&(q=this.length),ce<0||Le>Ne.length||Pe<0||q>this.length)throw new RangeError("out of range index");if(Pe>=q&&ce>=Le)return 0;if(Pe>=q)return-1;if(ce>=Le)return 1;if(this===Ne)return 0;for(var $=(q>>>=0)-(Pe>>>=0),oe=(Le>>>=0)-(ce>>>=0),Ce=Math.min($,oe),Ue=this.slice(Pe,q),lt=Ne.slice(ce,Le),nt=0;nt>>=0,isFinite(Le)?(Le>>>=0,void 0===Pe&&(Pe="utf8")):(Pe=Le,Le=void 0)}var q=this.length-ce;if((void 0===Le||Le>q)&&(Le=q),Ne.length>0&&(Le<0||ce<0)||ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");Pe||(Pe="utf8");for(var $=!1;;)switch(Pe){case"hex":return de(this,Ne,ce,Le);case"utf8":case"utf-8":return se(this,Ne,ce,Le);case"ascii":case"latin1":case"binary":return ye(this,Ne,ce,Le);case"base64":return v(this,Ne,ce,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Ne,ce,Le);default:if($)throw new TypeError("Unknown encoding: "+Pe);Pe=(""+Pe).toLowerCase(),$=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var u=4096;function D(Fe,Ne,ce){var Le="";ce=Math.min(Fe.length,ce);for(var Pe=Ne;PeLe)&&(ce=Le);for(var Pe="",q=Ne;qce)throw new RangeError("Trying to access beyond buffer length")}function Z(Fe,Ne,ce,Le,Pe,q){if(!l.isBuffer(Fe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ne>Pe||NeFe.length)throw new RangeError("Index out of range")}function N(Fe,Ne,ce,Le,Pe,q){if(ce+Le>Fe.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function U(Fe,Ne,ce,Le,Pe){return Ne=+Ne,ce>>>=0,Pe||N(Fe,0,ce,4),t.write(Fe,Ne,ce,Le,23,4),ce+4}function ve(Fe,Ne,ce,Le,Pe){return Ne=+Ne,ce>>>=0,Pe||N(Fe,0,ce,8),t.write(Fe,Ne,ce,Le,52,8),ce+8}l.prototype.slice=function(Ne,ce){var Le=this.length;(Ne=~~Ne)<0?(Ne+=Le)<0&&(Ne=0):Ne>Le&&(Ne=Le),(ce=void 0===ce?Le:~~ce)<0?(ce+=Le)<0&&(ce=0):ce>Le&&(ce=Le),ce>>=0,ce>>>=0,Le||b(Ne,ce,this.length);for(var Pe=this[Ne],q=1,$=0;++$>>=0,ce>>>=0,Le||b(Ne,ce,this.length);for(var Pe=this[Ne+--ce],q=1;ce>0&&(q*=256);)Pe+=this[Ne+--ce]*q;return Pe},l.prototype.readUint8=l.prototype.readUInt8=function(Ne,ce){return Ne>>>=0,ce||b(Ne,1,this.length),this[Ne]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,2,this.length),this[Ne]|this[Ne+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,2,this.length),this[Ne]<<8|this[Ne+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),(this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16)+16777216*this[Ne+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),16777216*this[Ne]+(this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3])},l.prototype.readIntLE=function(Ne,ce,Le){Ne>>>=0,ce>>>=0,Le||b(Ne,ce,this.length);for(var Pe=this[Ne],q=1,$=0;++$=(q*=128)&&(Pe-=Math.pow(2,8*ce)),Pe},l.prototype.readIntBE=function(Ne,ce,Le){Ne>>>=0,ce>>>=0,Le||b(Ne,ce,this.length);for(var Pe=ce,q=1,$=this[Ne+--Pe];Pe>0&&(q*=256);)$+=this[Ne+--Pe]*q;return $>=(q*=128)&&($-=Math.pow(2,8*ce)),$},l.prototype.readInt8=function(Ne,ce){return Ne>>>=0,ce||b(Ne,1,this.length),128&this[Ne]?-1*(255-this[Ne]+1):this[Ne]},l.prototype.readInt16LE=function(Ne,ce){Ne>>>=0,ce||b(Ne,2,this.length);var Le=this[Ne]|this[Ne+1]<<8;return 32768&Le?4294901760|Le:Le},l.prototype.readInt16BE=function(Ne,ce){Ne>>>=0,ce||b(Ne,2,this.length);var Le=this[Ne+1]|this[Ne]<<8;return 32768&Le?4294901760|Le:Le},l.prototype.readInt32LE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16|this[Ne+3]<<24},l.prototype.readInt32BE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),this[Ne]<<24|this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3]},l.prototype.readFloatLE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),t.read(this,Ne,!0,23,4)},l.prototype.readFloatBE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),t.read(this,Ne,!1,23,4)},l.prototype.readDoubleLE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,8,this.length),t.read(this,Ne,!0,52,8)},l.prototype.readDoubleBE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,8,this.length),t.read(this,Ne,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(Ne,ce,Le,Pe){Ne=+Ne,ce>>>=0,Le>>>=0,Pe||Z(this,Ne,ce,Le,Math.pow(2,8*Le)-1,0);var $=1,oe=0;for(this[ce]=255&Ne;++oe>>=0,Le>>>=0,Pe||Z(this,Ne,ce,Le,Math.pow(2,8*Le)-1,0);var $=Le-1,oe=1;for(this[ce+$]=255&Ne;--$>=0&&(oe*=256);)this[ce+$]=Ne/oe&255;return ce+Le},l.prototype.writeUint8=l.prototype.writeUInt8=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,1,255,0),this[ce]=255&Ne,ce+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,2,65535,0),this[ce]=255&Ne,this[ce+1]=Ne>>>8,ce+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,2,65535,0),this[ce]=Ne>>>8,this[ce+1]=255&Ne,ce+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,4,4294967295,0),this[ce+3]=Ne>>>24,this[ce+2]=Ne>>>16,this[ce+1]=Ne>>>8,this[ce]=255&Ne,ce+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,4,4294967295,0),this[ce]=Ne>>>24,this[ce+1]=Ne>>>16,this[ce+2]=Ne>>>8,this[ce+3]=255&Ne,ce+4},l.prototype.writeIntLE=function(Ne,ce,Le,Pe){if(Ne=+Ne,ce>>>=0,!Pe){var q=Math.pow(2,8*Le-1);Z(this,Ne,ce,Le,q-1,-q)}var $=0,oe=1,Ce=0;for(this[ce]=255&Ne;++$>0)-Ce&255;return ce+Le},l.prototype.writeIntBE=function(Ne,ce,Le,Pe){if(Ne=+Ne,ce>>>=0,!Pe){var q=Math.pow(2,8*Le-1);Z(this,Ne,ce,Le,q-1,-q)}var $=Le-1,oe=1,Ce=0;for(this[ce+$]=255&Ne;--$>=0&&(oe*=256);)Ne<0&&0===Ce&&0!==this[ce+$+1]&&(Ce=1),this[ce+$]=(Ne/oe>>0)-Ce&255;return ce+Le},l.prototype.writeInt8=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,1,127,-128),Ne<0&&(Ne=255+Ne+1),this[ce]=255&Ne,ce+1},l.prototype.writeInt16LE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,2,32767,-32768),this[ce]=255&Ne,this[ce+1]=Ne>>>8,ce+2},l.prototype.writeInt16BE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,2,32767,-32768),this[ce]=Ne>>>8,this[ce+1]=255&Ne,ce+2},l.prototype.writeInt32LE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,4,2147483647,-2147483648),this[ce]=255&Ne,this[ce+1]=Ne>>>8,this[ce+2]=Ne>>>16,this[ce+3]=Ne>>>24,ce+4},l.prototype.writeInt32BE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,4,2147483647,-2147483648),Ne<0&&(Ne=4294967295+Ne+1),this[ce]=Ne>>>24,this[ce+1]=Ne>>>16,this[ce+2]=Ne>>>8,this[ce+3]=255&Ne,ce+4},l.prototype.writeFloatLE=function(Ne,ce,Le){return U(this,Ne,ce,!0,Le)},l.prototype.writeFloatBE=function(Ne,ce,Le){return U(this,Ne,ce,!1,Le)},l.prototype.writeDoubleLE=function(Ne,ce,Le){return ve(this,Ne,ce,!0,Le)},l.prototype.writeDoubleBE=function(Ne,ce,Le){return ve(this,Ne,ce,!1,Le)},l.prototype.copy=function(Ne,ce,Le,Pe){if(!l.isBuffer(Ne))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!Pe&&0!==Pe&&(Pe=this.length),ce>=Ne.length&&(ce=Ne.length),ce||(ce=0),Pe>0&&Pe=this.length)throw new RangeError("Index out of range");if(Pe<0)throw new RangeError("sourceEnd out of bounds");Pe>this.length&&(Pe=this.length),Ne.length-ce>>=0,Le=void 0===Le?this.length:Le>>>0,Ne||(Ne=0),"number"==typeof Ne)for($=ce;$55295&&ce<57344){if(!Pe){if(ce>56319){(Ne-=3)>-1&&q.push(239,191,189);continue}if($+1===Le){(Ne-=3)>-1&&q.push(239,191,189);continue}Pe=ce;continue}if(ce<56320){(Ne-=3)>-1&&q.push(239,191,189),Pe=ce;continue}ce=65536+(Pe-55296<<10|ce-56320)}else Pe&&(Ne-=3)>-1&&q.push(239,191,189);if(Pe=null,ce<128){if((Ne-=1)<0)break;q.push(ce)}else if(ce<2048){if((Ne-=2)<0)break;q.push(ce>>6|192,63&ce|128)}else if(ce<65536){if((Ne-=3)<0)break;q.push(ce>>12|224,ce>>6&63|128,63&ce|128)}else{if(!(ce<1114112))throw new Error("Invalid code point");if((Ne-=4)<0)break;q.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,63&ce|128)}}return q}function Me(Fe){return e.toByteArray(function Re(Fe){if((Fe=(Fe=Fe.split("=")[0]).trim().replace(be,"")).length<2)return"";for(;Fe.length%4!=0;)Fe+="=";return Fe}(Fe))}function we(Fe,Ne,ce,Le){for(var Pe=0;Pe=Ne.length||Pe>=Fe.length);++Pe)Ne[Pe+ce]=Fe[Pe];return Pe}function z(Fe,Ne){return Fe instanceof Ne||null!=Fe&&null!=Fe.constructor&&null!=Fe.constructor.name&&Fe.constructor.name===Ne.name}function Ze(Fe){return Fe!=Fe}var vt=function(){for(var Fe="0123456789abcdef",Ne=new Array(256),ce=0;ce<16;++ce)for(var Le=16*ce,Pe=0;Pe<16;++Pe)Ne[Le+Pe]=Fe[ce]+Fe[Pe];return Ne}()},1052:(Ge,Q,m)=>{var e=m(3502).Buffer,t=m(295).Transform,y=m(3054).s;function o(M){t.call(this),this.hashMode="string"==typeof M,this.hashMode?this[M]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}m(3894)(o,t),o.prototype.update=function(M,l,R){"string"==typeof M&&(M=e.from(M,l));var s=this._update(M);return this.hashMode?this:(R&&(s=this._toString(s,R)),s)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(M,l,R){var s;try{this.hashMode?this._update(M):this.push(this._update(M))}catch(L){s=L}finally{R(s)}},o.prototype._flush=function(M){var l;try{this.push(this.__final())}catch(R){l=R}M(l)},o.prototype._finalOrDigest=function(M){var l=this.__final()||e.alloc(0);return M&&(l=this._toString(l,M,!0)),l},o.prototype._toString=function(M,l,R){if(this._decoder||(this._decoder=new y(l),this._encoding=l),this._encoding!==l)throw new Error("can't switch encodings");var s=this._decoder.write(M);return R&&(s+=this._decoder.end()),s},Ge.exports=o},7293:(Ge,Q,m)=>{"use strict";const e=m(4315),t=m(2872),y=m(717);Ge.exports=function C(l,R){switch(t(l)){case"object":return function o(l,R){if("function"==typeof R)return R(l);if(R||y(l)){const s=new l.constructor;for(let L in l)s[L]=C(l[L],R);return s}return l}(l,R);case"array":return function M(l,R){const s=new l.constructor(l.length);for(let L=0;LC?y:Array(C-y.length+1).join("0")+y}(C.toString(16),2)}).join("")}(y)},hexToBytes:function(y){if(y.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===y.indexOf("0x")&&(y=y.slice(2)),y.match(/../g).map(function(C){return parseInt(C,16)})}};Ge.exports?Ge.exports=m:Q.convertHex=m}(this)},5612:function(Ge){!function(Q){"use strict";var m={bytesToString:function(e){return e.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(e){return e.split("").map(function(t){return t.charCodeAt(0)})}};m.UTF8={bytesToString:function(e){return decodeURIComponent(escape(m.bytesToString(e)))},stringToBytes:function(e){return m.stringToBytes(unescape(encodeURIComponent(e)))}},Ge.exports?Ge.exports=m:Q.convertString=m}(this)},4746:(Ge,Q,m)=>{var e=m(7715),t=m(6422);Ge.exports=function(l){return new C(l)};var y={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 C(M){this.curveType=y[M],this.curveType||(this.curveType={name:M}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function o(M,l,R){Array.isArray(M)||(M=M.toArray());var s=new Buffer(M);if(R&&s.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},6386:(Ge,Q,m)=>{"use strict";var e=m(3894),t=m(8095),y=m(5634),C=m(5244),o=m(1052);function M(l){o.call(this,"digest"),this._hash=l}e(M,o),M.prototype._update=function(l){this._hash.update(l)},M.prototype._final=function(){return this._hash.digest()},Ge.exports=function(R){return"md5"===(R=R.toLowerCase())?new t:"rmd160"===R||"ripemd160"===R?new y:new M(C(R))}},5640:(Ge,Q,m)=>{var e=m(8095);Ge.exports=function(t){return(new e).update(t).digest()}},4529:(Ge,Q,m)=>{"use strict";var e=m(3894),t=m(7309),y=m(1052),C=m(3502).Buffer,o=m(5640),M=m(5634),l=m(5244),R=C.alloc(128);function s(L,I){y.call(this,"digest"),"string"==typeof I&&(I=C.from(I));var A="sha512"===L||"sha384"===L?128:64;this._alg=L,this._key=I,I.length>A?I=("rmd160"===L?new M:l(L)).update(I).digest():I.length{"use strict";var e=m(3894),t=m(3502).Buffer,y=m(1052),C=t.alloc(128),o=64;function M(l,R){y.call(this,"digest"),"string"==typeof R&&(R=t.from(R)),this._alg=l,this._key=R,R.length>o?R=l(R):R.length{"use strict";Q.randomBytes=Q.rng=Q.pseudoRandomBytes=Q.prng=m(3753),Q.createHash=Q.Hash=m(6386),Q.createHmac=Q.Hmac=m(4529);var e=m(7793),t=Object.keys(e),y=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);Q.getHashes=function(){return y};var C=m(9357);Q.pbkdf2=C.pbkdf2,Q.pbkdf2Sync=C.pbkdf2Sync;var o=m(5255);Q.Cipher=o.Cipher,Q.createCipher=o.createCipher,Q.Cipheriv=o.Cipheriv,Q.createCipheriv=o.createCipheriv,Q.Decipher=o.Decipher,Q.createDecipher=o.createDecipher,Q.Decipheriv=o.Decipheriv,Q.createDecipheriv=o.createDecipheriv,Q.getCiphers=o.getCiphers,Q.listCiphers=o.listCiphers;var M=m(8829);Q.DiffieHellmanGroup=M.DiffieHellmanGroup,Q.createDiffieHellmanGroup=M.createDiffieHellmanGroup,Q.getDiffieHellman=M.getDiffieHellman,Q.createDiffieHellman=M.createDiffieHellman,Q.DiffieHellman=M.DiffieHellman;var l=m(3923);Q.createSign=l.createSign,Q.Sign=l.Sign,Q.createVerify=l.createVerify,Q.Verify=l.Verify,Q.createECDH=m(4746);var R=m(3701);Q.publicEncrypt=R.publicEncrypt,Q.privateEncrypt=R.privateEncrypt,Q.publicDecrypt=R.publicDecrypt,Q.privateDecrypt=R.privateDecrypt;var s=m(4275);Q.randomFill=s.randomFill,Q.randomFillSync=s.randomFillSync,Q.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},Q.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:(Ge,Q,m)=>{"use strict";Q.utils=m(7451),Q.Cipher=m(8170),Q.DES=m(4631),Q.CBC=m(9454),Q.EDE=m(1862)},9454:(Ge,Q,m)=>{"use strict";var e=m(2391),t=m(3894),y={};function C(M){e.equal(M.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l{"use strict";var e=m(2391);function t(y){this.options=y,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Ge.exports=t,t.prototype._init=function(){},t.prototype.update=function(C){return 0===C.length?[]:"decrypt"===this.type?this._updateDecrypt(C):this._updateEncrypt(C)},t.prototype._buffer=function(C,o){for(var M=Math.min(this.buffer.length-this.bufferOff,C.length-o),l=0;l0;l--)o+=this._buffer(C,o),M+=this._flushBuffer(R,M);return o+=this._buffer(C,o),R},t.prototype.final=function(C){var o,M;return C&&(o=this.update(C)),M="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),o?o.concat(M):M},t.prototype._pad=function(C,o){if(0===o)return!1;for(;o{"use strict";var e=m(2391),t=m(3894),y=m(7451),C=m(8170);function o(){this.tmp=new Array(2),this.keys=null}function M(R){C.call(this,R);var s=new o;this._desState=s,this.deriveKeys(s,R.key)}t(M,C),Ge.exports=M,M.create=function(s){return new M(s)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];M.prototype.deriveKeys=function(s,L){s.keys=new Array(32),e.equal(L.length,this.blockSize,"Invalid key length");var I=y.readUInt32BE(L,0),A=y.readUInt32BE(L,4);y.pc1(I,A,s.tmp,0),I=s.tmp[0],A=s.tmp[1];for(var E=0;E>>1];I=y.r28shl(I,P),A=y.r28shl(A,P),y.pc2(I,A,s.keys,E)}},M.prototype._update=function(s,L,I,A){var E=this._desState,P=y.readUInt32BE(s,L),w=y.readUInt32BE(s,L+4);y.ip(P,w,E.tmp,0),P=E.tmp[0],w=E.tmp[1],"encrypt"===this.type?this._encrypt(E,P,w,E.tmp,0):this._decrypt(E,P,w,E.tmp,0),w=E.tmp[1],y.writeUInt32BE(I,P=E.tmp[0],A),y.writeUInt32BE(I,w,A+4)},M.prototype._pad=function(s,L){for(var I=s.length-L,A=L;A>>0,P=ge}y.rip(w,P,A,E)},M.prototype._decrypt=function(s,L,I,A,E){for(var P=I,w=L,V=s.keys.length-2;V>=0;V-=2){var j=s.keys[V],W=s.keys[V+1];y.expand(P,s.tmp,0);var te=y.substitute(j^=s.tmp[0],W^=s.tmp[1]),ge=P;P=(w^y.permute(te))>>>0,w=ge}y.rip(P,w,A,E)}},1862:(Ge,Q,m)=>{"use strict";var e=m(2391),t=m(3894),y=m(8170),C=m(4631);function o(l,R){e.equal(R.length,24,"Invalid key length");var s=R.slice(0,8),L=R.slice(8,16),I=R.slice(16,24);this.ciphers="encrypt"===l?[C.create({type:"encrypt",key:s}),C.create({type:"decrypt",key:L}),C.create({type:"encrypt",key:I})]:[C.create({type:"decrypt",key:I}),C.create({type:"encrypt",key:L}),C.create({type:"decrypt",key:s})]}function M(l){y.call(this,l);var R=new o(this.type,this.options.key);this._edeState=R}t(M,y),Ge.exports=M,M.create=function(R){return new M(R)},M.prototype._update=function(R,s,L,I){var A=this._edeState;A.ciphers[0]._update(R,s,L,I),A.ciphers[1]._update(L,I,L,I),A.ciphers[2]._update(L,I,L,I)},M.prototype._pad=C.prototype._pad,M.prototype._unpad=C.prototype._unpad},7451:(Ge,Q)=>{"use strict";Q.readUInt32BE=function(C,o){return(C[0+o]<<24|C[1+o]<<16|C[2+o]<<8|C[3+o])>>>0},Q.writeUInt32BE=function(C,o,M){C[0+M]=o>>>24,C[1+M]=o>>>16&255,C[2+M]=o>>>8&255,C[3+M]=255&o},Q.ip=function(C,o,M,l){for(var R=0,s=0,L=6;L>=0;L-=2){for(var I=0;I<=24;I+=8)R<<=1,R|=o>>>I+L&1;for(I=0;I<=24;I+=8)R<<=1,R|=C>>>I+L&1}for(L=6;L>=0;L-=2){for(I=1;I<=25;I+=8)s<<=1,s|=o>>>I+L&1;for(I=1;I<=25;I+=8)s<<=1,s|=C>>>I+L&1}M[l+0]=R>>>0,M[l+1]=s>>>0},Q.rip=function(C,o,M,l){for(var R=0,s=0,L=0;L<4;L++)for(var I=24;I>=0;I-=8)R<<=1,R|=o>>>I+L&1,R<<=1,R|=C>>>I+L&1;for(L=4;L<8;L++)for(I=24;I>=0;I-=8)s<<=1,s|=o>>>I+L&1,s<<=1,s|=C>>>I+L&1;M[l+0]=R>>>0,M[l+1]=s>>>0},Q.pc1=function(C,o,M,l){for(var R=0,s=0,L=7;L>=5;L--){for(var I=0;I<=24;I+=8)R<<=1,R|=o>>I+L&1;for(I=0;I<=24;I+=8)R<<=1,R|=C>>I+L&1}for(I=0;I<=24;I+=8)R<<=1,R|=o>>I+L&1;for(L=1;L<=3;L++){for(I=0;I<=24;I+=8)s<<=1,s|=o>>I+L&1;for(I=0;I<=24;I+=8)s<<=1,s|=C>>I+L&1}for(I=0;I<=24;I+=8)s<<=1,s|=C>>I+L&1;M[l+0]=R>>>0,M[l+1]=s>>>0},Q.r28shl=function(C,o){return C<>>28-o};var m=[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];Q.pc2=function(C,o,M,l){for(var R=0,s=0,L=m.length>>>1,I=0;I>>m[I]&1;for(I=L;I>>m[I]&1;M[l+0]=R>>>0,M[l+1]=s>>>0},Q.expand=function(C,o,M){var l=0,R=0;l=(1&C)<<5|C>>>27;for(var s=23;s>=15;s-=4)l<<=6,l|=C>>>s&63;for(s=11;s>=3;s-=4)R|=C>>>s&63,R<<=6;R|=(31&C)<<1|C>>>31,o[M+0]=l>>>0,o[M+1]=R>>>0};var e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Q.substitute=function(C,o){for(var M=0,l=0;l<4;l++)M<<=4,M|=e[64*l+(C>>>18-6*l&63)];for(l=0;l<4;l++)M<<=4,M|=e[256+64*l+(o>>>18-6*l&63)];return M>>>0};var t=[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];Q.permute=function(C){for(var o=0,M=0;M>>t[M]&1;return o>>>0},Q.padSplit=function(C,o,M){for(var l=C.toString(2);l.length{var e=m(5563),t=m(9799),y=m(1419),o={binary:!0,hex:!0,base64:!0};Q.DiffieHellmanGroup=Q.createDiffieHellmanGroup=Q.getDiffieHellman=function C(l){var R=new Buffer(t[l].prime,"hex"),s=new Buffer(t[l].gen,"hex");return new y(R,s)},Q.createDiffieHellman=Q.DiffieHellman=function M(l,R,s,L){return Buffer.isBuffer(R)||void 0===o[R]?M(l,"binary",R,s):(R=R||"binary",L=L||"binary",s=s||new Buffer([2]),Buffer.isBuffer(s)||(s=new Buffer(s,L)),"number"==typeof l?new y(e(l,s),s,!0):(Buffer.isBuffer(l)||(l=new Buffer(l,R)),new y(l,s,!0)))}},1419:(Ge,Q,m)=>{var e=m(8313),y=new(m(7079)),C=new e(24),o=new e(11),M=new e(10),l=new e(3),R=new e(7),s=m(5563),L=m(3753);function I(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this._pub=new e(j),this}function A(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this._priv=new e(j),this}Ge.exports=w;var E={};function w(j,W,te){this.setGenerator(W),this.__prime=new e(j),this._prime=e.mont(this.__prime),this._primeLen=j.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,te?(this.setPublicKey=I,this.setPrivateKey=A):this._primeCode=8}function V(j,W){var te=new Buffer(j.toArray());return W?te.toString(W):te}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function P(j,W){var te=W.toString("hex"),ee=[te,j.toString(16)].join("_");if(ee in E)return E[ee];var le,ge=0;if(j.isEven()||!s.simpleSieve||!s.fermatTest(j)||!y.test(j))return ge+=1,E[ee]=ge+="02"===te||"05"===te?8:4,ge;switch(y.test(j.shrn(1))||(ge+=2),te){case"02":j.mod(C).cmp(o)&&(ge+=8);break;case"05":(le=j.mod(M)).cmp(l)&&le.cmp(R)&&(ge+=8);break;default:ge+=4}return E[ee]=ge,ge}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new e(L(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(j){var W=(j=(j=new e(j)).toRed(this._prime)).redPow(this._priv).fromRed(),te=new Buffer(W.toArray()),ee=this.getPrime();if(te.length{var e=m(3753);Ge.exports=ge,ge.simpleSieve=te,ge.fermatTest=ee;var t=m(8313),y=new t(24),o=new(m(7079)),M=new t(1),l=new t(2),R=new t(5),I=(new t(16),new t(8),new t(10)),A=new t(3),P=(new t(7),new t(11)),w=new t(4),j=(new t(12),null);function te(le){for(var re=function W(){if(null!==j)return j;var re=[];re[0]=2;for(var de=1,se=3;se<1048576;se+=2){for(var ye=Math.ceil(Math.sqrt(se)),v=0;vle;)de.ishrn(1);if(de.isEven()&&de.iadd(M),de.testn(1)||de.iadd(l),re.cmp(l)){if(!re.cmp(R))for(;de.mod(I).cmp(A);)de.iadd(w)}else for(;de.mod(y).cmp(P);)de.iadd(w);if(te(se=de.shrn(1))&&te(de)&&ee(se)&&ee(de)&&o.test(se)&&o.test(de))return de}}},8313:function(Ge,Q,m){!function(e,t){"use strict";function y(v,i){if(!v)throw new Error(i||"Assertion failed")}function C(v,i){v.super_=i;var a=function(){};a.prototype=i.prototype,v.prototype=new a,v.prototype.constructor=v}function o(v,i,a){if(o.isBN(v))return v;this.negative=0,this.words=null,this.length=0,this.red=null,null!==v&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(v||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(7748).Buffer}catch(v){}function l(v,i){var a=v.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},4901:Ge=>{"use strict";var Q={single_source_shortest_paths:function(m,e,t){var y={},C={};C[e]=0;var M,l,R,s,L,A,o=Q.PriorityQueue.make();for(o.push(e,0);!o.empty();)for(R in s=(M=o.pop()).cost,L=m[l=M.value]||{})L.hasOwnProperty(R)&&(A=s+L[R],(void 0===C[R]||C[R]>A)&&(C[R]=A,o.push(R,A),y[R]=l));if(void 0!==t&&void 0===C[t]){var w=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(w)}return y},extract_shortest_path_from_predecessor_list:function(m,e){for(var t=[],y=e;y;)t.push(y),y=m[y];return t.reverse(),t},find_path:function(m,e,t){var y=Q.single_source_shortest_paths(m,e,t);return Q.extract_shortest_path_from_predecessor_list(y,t)},PriorityQueue:{make:function(m){var y,e=Q.PriorityQueue,t={};for(y in m=m||{},e)e.hasOwnProperty(y)&&(t[y]=e[y]);return t.queue=[],t.sorter=m.sorter||e.default_sorter,t},default_sorter:function(m,e){return m.cost-e.cost},push:function(m,e){this.queue.push({value:m,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ge.exports=Q},7715:(Ge,Q,m)=>{"use strict";var e=Q;e.version=m(8597).i8,e.utils=m(1970),e.rand=m(7950),e.curve=m(6270),e.curves=m(2916),e.ec=m(7626),e.eddsa=m(1885)},7902:(Ge,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.getNAF,C=t.getJSF,o=t.assert;function M(R,s){this.type=R,this.p=new e(s.p,16),this.red=s.prime?e.red(s.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=s.n&&new e(s.n,16),this.g=s.g&&this.pointFromJSON(s.g,s.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 L=this.n&&this.p.div(this.n);!L||L.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(R,s){this.curve=R,this.type=s,this.precomputed=null}Ge.exports=M,M.prototype.point=function(){throw new Error("Not implemented")},M.prototype.validate=function(){throw new Error("Not implemented")},M.prototype._fixedNafMul=function(s,L){o(s.precomputed);var I=s._getDoubles(),A=y(L,1,this._bitLength),E=(1<=w;j--)V=(V<<1)+A[j];P.push(V)}for(var W=this.jpoint(null,null,null),te=this.jpoint(null,null,null),ee=E;ee>0;ee--){for(w=0;w=0;V--){for(var j=0;V>=0&&0===P[V];V--)j++;if(V>=0&&j++,w=w.dblp(j),V<0)break;var W=P[V];o(0!==W),w="affine"===s.type?w.mixedAdd(W>0?E[W-1>>1]:E[-W-1>>1].neg()):w.add(W>0?E[W-1>>1]:E[-W-1>>1].neg())}return"affine"===s.type?w.toP():w},M.prototype._wnafMulAdd=function(s,L,I,A,E){var W,te,ee,P=this._wnafT1,w=this._wnafT2,V=this._wnafT3,j=0;for(W=0;W=1;W-=2){var le=W-1,re=W;if(1===P[le]&&1===P[re]){var de=[L[le],null,null,L[re]];0===L[le].y.cmp(L[re].y)?(de[1]=L[le].add(L[re]),de[2]=L[le].toJ().mixedAdd(L[re].neg())):0===L[le].y.cmp(L[re].y.redNeg())?(de[1]=L[le].toJ().mixedAdd(L[re]),de[2]=L[le].add(L[re].neg())):(de[1]=L[le].toJ().mixedAdd(L[re]),de[2]=L[le].toJ().mixedAdd(L[re].neg()));var se=[-3,-1,-5,-7,0,7,5,1,3],ye=C(I[le],I[re]);for(j=Math.max(ye[0].length,j),V[le]=new Array(j),V[re]=new Array(j),te=0;te=0;W--){for(var u=0;W>=0;){var _=!0;for(te=0;te=0&&u++,a=a.dblp(u),W<0)break;for(te=0;te0?ee=w[te][D-1>>1]:D<0&&(ee=w[te][-D-1>>1].neg()),a="affine"===ee.type?a.mixedAdd(ee):a.add(ee))}}for(W=0;W=Math.ceil((s.bitLength()+1)/L.step)},l.prototype._getDoubles=function(s,L){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var I=[this],A=this,E=0;E{"use strict";var e=m(1970),t=m(7433),y=m(3894),C=m(7902),o=e.assert;function M(R){this.twisted=1!=(0|R.a),this.mOneA=this.twisted&&-1==(0|R.a),this.extended=this.mOneA,C.call(this,"edwards",R),this.a=new t(R.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(R.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(R.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|R.c)}function l(R,s,L,I,A){C.BasePoint.call(this,R,"projective"),null===s&&null===L&&null===I?(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 t(s,16),this.y=new t(L,16),this.z=I?new t(I,16):this.curve.one,this.t=A&&new t(A,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}y(M,C),Ge.exports=M,M.prototype._mulA=function(s){return this.mOneA?s.redNeg():this.a.redMul(s)},M.prototype._mulC=function(s){return this.oneC?s:this.c.redMul(s)},M.prototype.jpoint=function(s,L,I,A){return this.point(s,L,I,A)},M.prototype.pointFromX=function(s,L){(s=new t(s,16)).red||(s=s.toRed(this.red));var I=s.redSqr(),A=this.c2.redSub(this.a.redMul(I)),E=this.one.redSub(this.c2.redMul(this.d).redMul(I)),P=A.redMul(E.redInvm()),w=P.redSqrt();if(0!==w.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");var V=w.fromRed().isOdd();return(L&&!V||!L&&V)&&(w=w.redNeg()),this.point(s,w)},M.prototype.pointFromY=function(s,L){(s=new t(s,16)).red||(s=s.toRed(this.red));var I=s.redSqr(),A=I.redSub(this.c2),E=I.redMul(this.d).redMul(this.c2).redSub(this.a),P=A.redMul(E.redInvm());if(0===P.cmp(this.zero)){if(L)throw new Error("invalid point");return this.point(this.zero,s)}var w=P.redSqrt();if(0!==w.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==L&&(w=w.redNeg()),this.point(w,s)},M.prototype.validate=function(s){if(s.isInfinity())return!0;s.normalize();var L=s.x.redSqr(),I=s.y.redSqr(),A=L.redMul(this.a).redAdd(I),E=this.c2.redMul(this.one.redAdd(this.d.redMul(L).redMul(I)));return 0===A.cmp(E)},y(l,C.BasePoint),M.prototype.pointFromJSON=function(s){return l.fromJSON(this,s)},M.prototype.point=function(s,L,I,A){return new l(this,s,L,I,A)},l.fromJSON=function(s,L){return new l(s,L[0],L[1],L[2])},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var s=this.x.redSqr(),L=this.y.redSqr(),I=this.z.redSqr();I=I.redIAdd(I);var A=this.curve._mulA(s),E=this.x.redAdd(this.y).redSqr().redISub(s).redISub(L),P=A.redAdd(L),w=P.redSub(I),V=A.redSub(L),j=E.redMul(w),W=P.redMul(V),te=E.redMul(V),ee=w.redMul(P);return this.curve.point(j,W,ee,te)},l.prototype._projDbl=function(){var A,E,P,w,V,j,s=this.x.redAdd(this.y).redSqr(),L=this.x.redSqr(),I=this.y.redSqr();if(this.curve.twisted){var W=(w=this.curve._mulA(L)).redAdd(I);this.zOne?(A=s.redSub(L).redSub(I).redMul(W.redSub(this.curve.two)),E=W.redMul(w.redSub(I)),P=W.redSqr().redSub(W).redSub(W)):(V=this.z.redSqr(),j=W.redSub(V).redISub(V),A=s.redSub(L).redISub(I).redMul(j),E=W.redMul(w.redSub(I)),P=W.redMul(j))}else w=L.redAdd(I),V=this.curve._mulC(this.z).redSqr(),j=w.redSub(V).redSub(V),A=this.curve._mulC(s.redISub(w)).redMul(j),E=this.curve._mulC(w).redMul(L.redISub(I)),P=w.redMul(j);return this.curve.point(A,E,P)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(s){var L=this.y.redSub(this.x).redMul(s.y.redSub(s.x)),I=this.y.redAdd(this.x).redMul(s.y.redAdd(s.x)),A=this.t.redMul(this.curve.dd).redMul(s.t),E=this.z.redMul(s.z.redAdd(s.z)),P=I.redSub(L),w=E.redSub(A),V=E.redAdd(A),j=I.redAdd(L),W=P.redMul(w),te=V.redMul(j),ee=P.redMul(j),ge=w.redMul(V);return this.curve.point(W,te,ge,ee)},l.prototype._projAdd=function(s){var te,ee,L=this.z.redMul(s.z),I=L.redSqr(),A=this.x.redMul(s.x),E=this.y.redMul(s.y),P=this.curve.d.redMul(A).redMul(E),w=I.redSub(P),V=I.redAdd(P),j=this.x.redAdd(this.y).redMul(s.x.redAdd(s.y)).redISub(A).redISub(E),W=L.redMul(w).redMul(j);return this.curve.twisted?(te=L.redMul(V).redMul(E.redSub(this.curve._mulA(A))),ee=w.redMul(V)):(te=L.redMul(V).redMul(E.redSub(A)),ee=this.curve._mulC(w).redMul(V)),this.curve.point(W,te,ee)},l.prototype.add=function(s){return this.isInfinity()?s:s.isInfinity()?this:this.curve.extended?this._extAdd(s):this._projAdd(s)},l.prototype.mul=function(s){return this._hasDoubles(s)?this.curve._fixedNafMul(this,s):this.curve._wnafMul(this,s)},l.prototype.mulAdd=function(s,L,I){return this.curve._wnafMulAdd(1,[this,L],[s,I],2,!1)},l.prototype.jmulAdd=function(s,L,I){return this.curve._wnafMulAdd(1,[this,L],[s,I],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var s=this.z.redInvm();return this.x=this.x.redMul(s),this.y=this.y.redMul(s),this.t&&(this.t=this.t.redMul(s)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(s){return this===s||0===this.getX().cmp(s.getX())&&0===this.getY().cmp(s.getY())},l.prototype.eqXToP=function(s){var L=s.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(L))return!0;for(var I=s.clone(),A=this.curve.redN.redMul(this.z);;){if(I.iadd(this.curve.n),I.cmp(this.curve.p)>=0)return!1;if(L.redIAdd(A),0===this.x.cmp(L))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},6270:(Ge,Q,m)=>{"use strict";var e=Q;e.base=m(7902),e.short=m(1781),e.mont=m(7064),e.edwards=m(3835)},7064:(Ge,Q,m)=>{"use strict";var e=m(7433),t=m(3894),y=m(7902),C=m(1970);function o(l){y.call(this,"mont",l),this.a=new e(l.a,16).toRed(this.red),this.b=new e(l.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function M(l,R,s){y.BasePoint.call(this,l,"projective"),null===R&&null===s?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(R,16),this.z=new e(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}t(o,y),Ge.exports=o,o.prototype.validate=function(R){var s=R.normalize().x,L=s.redSqr(),I=L.redMul(s).redAdd(L.redMul(this.a)).redAdd(s);return 0===I.redSqrt().redSqr().cmp(I)},t(M,y.BasePoint),o.prototype.decodePoint=function(R,s){return this.point(C.toArray(R,s),1)},o.prototype.point=function(R,s){return new M(this,R,s)},o.prototype.pointFromJSON=function(R){return M.fromJSON(this,R)},M.prototype.precompute=function(){},M.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},M.fromJSON=function(R,s){return new M(R,s[0],s[1]||R.one)},M.prototype.inspect=function(){return this.isInfinity()?"":""},M.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},M.prototype.dbl=function(){var s=this.x.redAdd(this.z).redSqr(),I=this.x.redSub(this.z).redSqr(),A=s.redSub(I),E=s.redMul(I),P=A.redMul(I.redAdd(this.curve.a24.redMul(A)));return this.curve.point(E,P)},M.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.diffAdd=function(R,s){var L=this.x.redAdd(this.z),I=this.x.redSub(this.z),A=R.x.redAdd(R.z),P=R.x.redSub(R.z).redMul(L),w=A.redMul(I),V=s.z.redMul(P.redAdd(w).redSqr()),j=s.x.redMul(P.redISub(w).redSqr());return this.curve.point(V,j)},M.prototype.mul=function(R){for(var s=R.clone(),L=this,I=this.curve.point(null,null),E=[];0!==s.cmpn(0);s.iushrn(1))E.push(s.andln(1));for(var P=E.length-1;P>=0;P--)0===E[P]?(L=L.diffAdd(I,this),I=I.dbl()):(I=L.diffAdd(I,this),L=L.dbl());return I},M.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.eq=function(R){return 0===this.getX().cmp(R.getX())},M.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},M.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Ge,Q,m)=>{"use strict";var e=m(1970),t=m(7433),y=m(3894),C=m(7902),o=e.assert;function M(s){C.call(this,"short",s),this.a=new t(s.a,16).toRed(this.red),this.b=new t(s.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(s),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(s,L,I,A){C.BasePoint.call(this,s,"affine"),null===L&&null===I?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(L,16),this.y=new t(I,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function R(s,L,I,A){C.BasePoint.call(this,s,"jacobian"),null===L&&null===I&&null===A?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(L,16),this.y=new t(I,16),this.z=new t(A,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}y(M,C),Ge.exports=M,M.prototype._getEndomorphism=function(L){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var I,A;if(L.beta)I=new t(L.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);I=(I=E[0].cmp(E[1])<0?E[0]:E[1]).toRed(this.red)}if(L.lambda)A=new t(L.lambda,16);else{var P=this._getEndoRoots(this.n);0===this.g.mul(P[0]).x.cmp(this.g.x.redMul(I))?A=P[0]:o(0===this.g.mul(A=P[1]).x.cmp(this.g.x.redMul(I)))}return{beta:I,lambda:A,basis:L.basis?L.basis.map(function(V){return{a:new t(V.a,16),b:new t(V.b,16)}}):this._getEndoBasis(A)}}},M.prototype._getEndoRoots=function(L){var I=L===this.p?this.red:t.mont(L),A=new t(2).toRed(I).redInvm(),E=A.redNeg(),P=new t(3).toRed(I).redNeg().redSqrt().redMul(A);return[E.redAdd(P).fromRed(),E.redSub(P).fromRed()]},M.prototype._getEndoBasis=function(L){for(var W,te,ee,ge,le,re,de,ye,v,I=this.n.ushrn(Math.floor(this.n.bitLength()/2)),A=L,E=this.n.clone(),P=new t(1),w=new t(0),V=new t(0),j=new t(1),se=0;0!==A.cmpn(0);){var i=E.div(A);ye=E.sub(i.mul(A)),v=V.sub(i.mul(P));var a=j.sub(i.mul(w));if(!ee&&ye.cmp(I)<0)W=de.neg(),te=P,ee=ye.neg(),ge=v;else if(ee&&2==++se)break;de=ye,E=A,A=ye,V=P,P=v,j=w,w=a}le=ye.neg(),re=v;var p=ee.sqr().add(ge.sqr());return le.sqr().add(re.sqr()).cmp(p)>=0&&(le=W,re=te),ee.negative&&(ee=ee.neg(),ge=ge.neg()),le.negative&&(le=le.neg(),re=re.neg()),[{a:ee,b:ge},{a:le,b:re}]},M.prototype._endoSplit=function(L){var I=this.endo.basis,A=I[0],E=I[1],P=E.b.mul(L).divRound(this.n),w=A.b.neg().mul(L).divRound(this.n),V=P.mul(A.a),j=w.mul(E.a),W=P.mul(A.b),te=w.mul(E.b);return{k1:L.sub(V).sub(j),k2:W.add(te).neg()}},M.prototype.pointFromX=function(L,I){(L=new t(L,16)).red||(L=L.toRed(this.red));var A=L.redSqr().redMul(L).redIAdd(L.redMul(this.a)).redIAdd(this.b),E=A.redSqrt();if(0!==E.redSqr().redSub(A).cmp(this.zero))throw new Error("invalid point");var P=E.fromRed().isOdd();return(I&&!P||!I&&P)&&(E=E.redNeg()),this.point(L,E)},M.prototype.validate=function(L){if(L.inf)return!0;var I=L.x,A=L.y,E=this.a.redMul(I),P=I.redSqr().redMul(I).redIAdd(E).redIAdd(this.b);return 0===A.redSqr().redISub(P).cmpn(0)},M.prototype._endoWnafMulAdd=function(L,I,A){for(var E=this._endoWnafT1,P=this._endoWnafT2,w=0;w":""},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(L){if(this.inf)return L;if(L.inf)return this;if(this.eq(L))return this.dbl();if(this.neg().eq(L))return this.curve.point(null,null);if(0===this.x.cmp(L.x))return this.curve.point(null,null);var I=this.y.redSub(L.y);0!==I.cmpn(0)&&(I=I.redMul(this.x.redSub(L.x).redInvm()));var A=I.redSqr().redISub(this.x).redISub(L.x),E=I.redMul(this.x.redSub(A)).redISub(this.y);return this.curve.point(A,E)},l.prototype.dbl=function(){if(this.inf)return this;var L=this.y.redAdd(this.y);if(0===L.cmpn(0))return this.curve.point(null,null);var I=this.curve.a,A=this.x.redSqr(),E=L.redInvm(),P=A.redAdd(A).redIAdd(A).redIAdd(I).redMul(E),w=P.redSqr().redISub(this.x.redAdd(this.x)),V=P.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,V)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(L){return L=new t(L,16),this.isInfinity()?this:this._hasDoubles(L)?this.curve._fixedNafMul(this,L):this.curve.endo?this.curve._endoWnafMulAdd([this],[L]):this.curve._wnafMul(this,L)},l.prototype.mulAdd=function(L,I,A){var E=[this,I],P=[L,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,P):this.curve._wnafMulAdd(1,E,P,2)},l.prototype.jmulAdd=function(L,I,A){var E=[this,I],P=[L,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,P,!0):this.curve._wnafMulAdd(1,E,P,2,!0)},l.prototype.eq=function(L){return this===L||this.inf===L.inf&&(this.inf||0===this.x.cmp(L.x)&&0===this.y.cmp(L.y))},l.prototype.neg=function(L){if(this.inf)return this;var I=this.curve.point(this.x,this.y.redNeg());if(L&&this.precomputed){var A=this.precomputed,E=function(P){return P.neg()};I.precomputed={naf:A.naf&&{wnd:A.naf.wnd,points:A.naf.points.map(E)},doubles:A.doubles&&{step:A.doubles.step,points:A.doubles.points.map(E)}}}return I},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},y(R,C.BasePoint),M.prototype.jpoint=function(L,I,A){return new R(this,L,I,A)},R.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var L=this.z.redInvm(),I=L.redSqr(),A=this.x.redMul(I),E=this.y.redMul(I).redMul(L);return this.curve.point(A,E)},R.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},R.prototype.add=function(L){if(this.isInfinity())return L;if(L.isInfinity())return this;var I=L.z.redSqr(),A=this.z.redSqr(),E=this.x.redMul(I),P=L.x.redMul(A),w=this.y.redMul(I.redMul(L.z)),V=L.y.redMul(A.redMul(this.z)),j=E.redSub(P),W=w.redSub(V);if(0===j.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var te=j.redSqr(),ee=te.redMul(j),ge=E.redMul(te),le=W.redSqr().redIAdd(ee).redISub(ge).redISub(ge),re=W.redMul(ge.redISub(le)).redISub(w.redMul(ee)),de=this.z.redMul(L.z).redMul(j);return this.curve.jpoint(le,re,de)},R.prototype.mixedAdd=function(L){if(this.isInfinity())return L.toJ();if(L.isInfinity())return this;var I=this.z.redSqr(),A=this.x,E=L.x.redMul(I),P=this.y,w=L.y.redMul(I).redMul(this.z),V=A.redSub(E),j=P.redSub(w);if(0===V.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var W=V.redSqr(),te=W.redMul(V),ee=A.redMul(W),ge=j.redSqr().redIAdd(te).redISub(ee).redISub(ee),le=j.redMul(ee.redISub(ge)).redISub(P.redMul(te)),re=this.z.redMul(V);return this.curve.jpoint(ge,le,re)},R.prototype.dblp=function(L){if(0===L)return this;if(this.isInfinity())return this;if(!L)return this.dbl();var I;if(this.curve.zeroA||this.curve.threeA){var A=this;for(I=0;I=0)return!1;if(A.redIAdd(P),0===this.x.cmp(A))return!0}},R.prototype.inspect=function(){return this.isInfinity()?"":""},R.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Ge,Q,m)=>{"use strict";var R,e=Q,t=m(7084),y=m(6270),o=m(1970).assert;function M(s){this.curve="short"===s.type?new y.short(s):"edwards"===s.type?new y.edwards(s):new y.mont(s),this.g=this.curve.g,this.n=this.curve.n,this.hash=s.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(s,L){Object.defineProperty(e,s,{configurable:!0,enumerable:!0,get:function(){var I=new M(L);return Object.defineProperty(e,s,{configurable:!0,enumerable:!0,value:I}),I}})}e.PresetCurve=M,l("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:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("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:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("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:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("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:t.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"]}),l("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:t.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"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),l("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:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{R=m(5150)}catch(s){R=void 0}l("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:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",R]})},7626:(Ge,Q,m)=>{"use strict";var e=m(7433),t=m(2438),y=m(1970),C=m(2916),o=m(7950),M=y.assert,l=m(1259),R=m(5957);function s(L){if(!(this instanceof s))return new s(L);"string"==typeof L&&(M(Object.prototype.hasOwnProperty.call(C,L),"Unknown curve "+L),L=C[L]),L instanceof C.PresetCurve&&(L={curve:L}),this.curve=L.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=L.curve.g,this.g.precompute(L.curve.n.bitLength()+1),this.hash=L.hash||L.curve.hash}Ge.exports=s,s.prototype.keyPair=function(I){return new l(this,I)},s.prototype.keyFromPrivate=function(I,A){return l.fromPrivate(this,I,A)},s.prototype.keyFromPublic=function(I,A){return l.fromPublic(this,I,A)},s.prototype.genKeyPair=function(I){I||(I={});for(var A=new t({hash:this.hash,pers:I.pers,persEnc:I.persEnc||"utf8",entropy:I.entropy||o(this.hash.hmacStrength),entropyEnc:I.entropy&&I.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),P=this.n.sub(new e(2));;){var w=new e(A.generate(E));if(!(w.cmp(P)>0))return w.iaddn(1),this.keyFromPrivate(w)}},s.prototype._truncateToN=function(I,A){var E=8*I.byteLength()-this.n.bitLength();return E>0&&(I=I.ushrn(E)),!A&&I.cmp(this.n)>=0?I.sub(this.n):I},s.prototype.sign=function(I,A,E,P){"object"==typeof E&&(P=E,E=null),P||(P={}),A=this.keyFromPrivate(A,E),I=this._truncateToN(new e(I,16));for(var w=this.n.byteLength(),V=A.getPrivate().toArray("be",w),j=I.toArray("be",w),W=new t({hash:this.hash,entropy:V,nonce:j,pers:P.pers,persEnc:P.persEnc||"utf8"}),te=this.n.sub(new e(1)),ee=0;;ee++){var ge=P.k?P.k(ee):new e(W.generate(this.n.byteLength()));if(!((ge=this._truncateToN(ge,!0)).cmpn(1)<=0||ge.cmp(te)>=0)){var le=this.g.mul(ge);if(!le.isInfinity()){var re=le.getX(),de=re.umod(this.n);if(0!==de.cmpn(0)){var se=ge.invm(this.n).mul(de.mul(A.getPrivate()).iadd(I));if(0!==(se=se.umod(this.n)).cmpn(0)){var ye=(le.getY().isOdd()?1:0)|(0!==re.cmp(de)?2:0);return P.canonical&&se.cmp(this.nh)>0&&(se=this.n.sub(se),ye^=1),new R({r:de,s:se,recoveryParam:ye})}}}}}},s.prototype.verify=function(I,A,E,P){I=this._truncateToN(new e(I,16)),E=this.keyFromPublic(E,P);var w=(A=new R(A,"hex")).r,V=A.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||V.cmpn(1)<0||V.cmp(this.n)>=0)return!1;var ee,j=V.invm(this.n),W=j.mul(I).umod(this.n),te=j.mul(w).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(W,E.getPublic(),te)).isInfinity()&&ee.eqXToP(w):!(ee=this.g.mulAdd(W,E.getPublic(),te)).isInfinity()&&0===ee.getX().umod(this.n).cmp(w)},s.prototype.recoverPubKey=function(L,I,A,E){M((3&A)===A,"The recovery param is more than two bits"),I=new R(I,E);var P=this.n,w=new e(L),V=I.r,j=I.s,W=1&A,te=A>>1;if(V.cmp(this.curve.p.umod(this.curve.n))>=0&&te)throw new Error("Unable to find sencond key candinate");V=this.curve.pointFromX(te?V.add(this.curve.n):V,W);var ee=I.r.invm(P),ge=P.sub(w).mul(ee).umod(P),le=j.mul(ee).umod(P);return this.g.mulAdd(ge,V,le)},s.prototype.getKeyRecoveryParam=function(L,I,A,E){if(null!==(I=new R(I,E)).recoveryParam)return I.recoveryParam;for(var P=0;P<4;P++){var w;try{w=this.recoverPubKey(L,I,P)}catch(V){continue}if(w.eq(A))return P}throw new Error("Unable to find valid recovery factor")}},1259:(Ge,Q,m)=>{"use strict";var e=m(7433),y=m(1970).assert;function C(o,M){this.ec=o,this.priv=null,this.pub=null,M.priv&&this._importPrivate(M.priv,M.privEnc),M.pub&&this._importPublic(M.pub,M.pubEnc)}Ge.exports=C,C.fromPublic=function(M,l,R){return l instanceof C?l:new C(M,{pub:l,pubEnc:R})},C.fromPrivate=function(M,l,R){return l instanceof C?l:new C(M,{priv:l,privEnc:R})},C.prototype.validate=function(){var M=this.getPublic();return M.isInfinity()?{result:!1,reason:"Invalid public key"}:M.validate()?M.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"}},C.prototype.getPublic=function(M,l){return"string"==typeof M&&(l=M,M=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),l?this.pub.encode(l,M):this.pub},C.prototype.getPrivate=function(M){return"hex"===M?this.priv.toString(16,2):this.priv},C.prototype._importPrivate=function(M,l){this.priv=new e(M,l||16),this.priv=this.priv.umod(this.ec.curve.n)},C.prototype._importPublic=function(M,l){if(M.x||M.y)return"mont"===this.ec.curve.type?y(M.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&y(M.x&&M.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(M.x,M.y));this.pub=this.ec.curve.decodePoint(M,l)},C.prototype.derive=function(M){return M.validate()||y(M.validate(),"public point not validated"),M.mul(this.priv).getX()},C.prototype.sign=function(M,l,R){return this.ec.sign(M,this,l,R)},C.prototype.verify=function(M,l){return this.ec.verify(M,l,this)},C.prototype.inspect=function(){return""}},5957:(Ge,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.assert;function C(s,L){if(s instanceof C)return s;this._importDER(s,L)||(y(s.r&&s.s,"Signature without r or s"),this.r=new e(s.r,16),this.s=new e(s.s,16),this.recoveryParam=void 0===s.recoveryParam?null:s.recoveryParam)}function o(){this.place=0}function M(s,L){var I=s[L.place++];if(!(128&I))return I;var A=15&I;if(0===A||A>4)return!1;for(var E=0,P=0,w=L.place;P>>=0;return!(E<=127)&&(L.place=w,E)}function l(s){for(var L=0,I=s.length-1;!s[L]&&!(128&s[L+1])&&L>>3);for(s.push(128|I);--I;)s.push(L>>>(I<<3)&255);s.push(L)}}Ge.exports=C,C.prototype._importDER=function(L,I){L=t.toArray(L,I);var A=new o;if(48!==L[A.place++])return!1;var E=M(L,A);if(!1===E||E+A.place!==L.length||2!==L[A.place++])return!1;var P=M(L,A);if(!1===P)return!1;var w=L.slice(A.place,P+A.place);if(A.place+=P,2!==L[A.place++])return!1;var V=M(L,A);if(!1===V||L.length!==V+A.place)return!1;var j=L.slice(A.place,V+A.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===j[0]){if(!(128&j[1]))return!1;j=j.slice(1)}return this.r=new e(w),this.s=new e(j),this.recoveryParam=null,!0},C.prototype.toDER=function(L){var I=this.r.toArray(),A=this.s.toArray();for(128&I[0]&&(I=[0].concat(I)),128&A[0]&&(A=[0].concat(A)),I=l(I),A=l(A);!(A[0]||128&A[1]);)A=A.slice(1);var E=[2];R(E,I.length),(E=E.concat(I)).push(2),R(E,A.length);var P=E.concat(A),w=[48];return R(w,P.length),w=w.concat(P),t.encode(w,L)}},1885:(Ge,Q,m)=>{"use strict";var e=m(7084),t=m(2916),y=m(1970),C=y.assert,o=y.parseBytes,M=m(7535),l=m(8241);function R(s){if(C("ed25519"===s,"only tested with ed25519 so far"),!(this instanceof R))return new R(s);this.curve=s=t[s].curve,this.g=s.g,this.g.precompute(s.n.bitLength()+1),this.pointClass=s.point().constructor,this.encodingLength=Math.ceil(s.n.bitLength()/8),this.hash=e.sha512}Ge.exports=R,R.prototype.sign=function(L,I){L=o(L);var A=this.keyFromSecret(I),E=this.hashInt(A.messagePrefix(),L),P=this.g.mul(E),w=this.encodePoint(P),V=this.hashInt(w,A.pubBytes(),L).mul(A.priv()),j=E.add(V).umod(this.curve.n);return this.makeSignature({R:P,S:j,Rencoded:w})},R.prototype.verify=function(L,I,A){L=o(L),I=this.makeSignature(I);var E=this.keyFromPublic(A),P=this.hashInt(I.Rencoded(),E.pubBytes(),L),w=this.g.mul(I.S());return I.R().add(E.pub().mul(P)).eq(w)},R.prototype.hashInt=function(){for(var L=this.hash(),I=0;I{"use strict";var e=m(1970),t=e.assert,y=e.parseBytes,C=e.cachedProperty;function o(M,l){this.eddsa=M,this._secret=y(l.secret),M.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=y(l.pub)}o.fromPublic=function(l,R){return R instanceof o?R:new o(l,{pub:R})},o.fromSecret=function(l,R){return R instanceof o?R:new o(l,{secret:R})},o.prototype.secret=function(){return this._secret},C(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),C(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),C(o,"privBytes",function(){var l=this.eddsa,R=this.hash(),s=l.encodingLength-1,L=R.slice(0,l.encodingLength);return L[0]&=248,L[s]&=127,L[s]|=64,L}),C(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),C(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),C(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(l){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},o.prototype.verify=function(l,R){return this.eddsa.verify(l,R,this)},o.prototype.getSecret=function(l){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),l)},o.prototype.getPublic=function(l){return e.encode(this.pubBytes(),l)},Ge.exports=o},8241:(Ge,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.assert,C=t.cachedProperty,o=t.parseBytes;function M(l,R){this.eddsa=l,"object"!=typeof R&&(R=o(R)),Array.isArray(R)&&(R={R:R.slice(0,l.encodingLength),S:R.slice(l.encodingLength)}),y(R.R&&R.S,"Signature without R or S"),l.isPoint(R.R)&&(this._R=R.R),R.S instanceof e&&(this._S=R.S),this._Rencoded=Array.isArray(R.R)?R.R:R.Rencoded,this._Sencoded=Array.isArray(R.S)?R.S:R.Sencoded}C(M,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),C(M,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),C(M,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),C(M,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),M.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},M.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},Ge.exports=M},5150:Ge=>{Ge.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:(Ge,Q,m)=>{"use strict";var e=Q,t=m(7433),y=m(2391),C=m(8195);e.assert=y,e.toArray=C.toArray,e.zero2=C.zero2,e.toHex=C.toHex,e.encode=C.encode,e.getNAF=function o(L,I,A){var E=new Array(Math.max(L.bitLength(),A)+1);E.fill(0);for(var P=1<(P>>1)-1?(P>>1)-W:W):j=0,E[V]=j,w.iushrn(1)}return E},e.getJSF=function M(L,I){var A=[[],[]];L=L.clone(),I=I.clone();for(var w,E=0,P=0;L.cmpn(-E)>0||I.cmpn(-P)>0;){var W,te,V=L.andln(3)+E&3,j=I.andln(3)+P&3;3===V&&(V=-1),3===j&&(j=-1),W=0==(1&V)?0:3!=(w=L.andln(7)+E&7)&&5!==w||2!==j?V:-V,A[0].push(W),te=0==(1&j)?0:3!=(w=I.andln(7)+P&7)&&5!==w||2!==V?j:-j,A[1].push(te),2*E===W+1&&(E=1-E),2*P===te+1&&(P=1-P),L.iushrn(1),I.iushrn(1)}return A},e.cachedProperty=function l(L,I,A){var E="_"+I;L.prototype[I]=function(){return void 0!==this[E]?this[E]:this[E]=A.call(this)}},e.parseBytes=function R(L){return"string"==typeof L?e.toArray(L,"hex"):L},e.intFromLE=function s(L){return new t(L,"hex","le")}},7433:function(Ge,Q,m){!function(e,t){"use strict";function y(v,i){if(!v)throw new Error(i||"Assertion failed")}function C(v,i){v.super_=i;var a=function(){};a.prototype=i.prototype,v.prototype=new a,v.prototype.constructor=v}function o(v,i,a){if(o.isBN(v))return v;this.negative=0,this.words=null,this.length=0,this.red=null,null!==v&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(v||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(5568).Buffer}catch(v){}function l(v,i){var a=v.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},8419:Ge=>{"use strict";Ge.exports=function(m){for(var e=[],t=m.length,y=0;y=55296&&C<=56319&&t>y+1){var o=m.charCodeAt(y+1);o>=56320&&o<=57343&&(C=1024*(C-55296)+o-56320+65536,y+=1)}C<128?e.push(C):C<2048?(e.push(C>>6|192),e.push(63&C|128)):C<55296||C>=57344&&C<65536?(e.push(C>>12|224),e.push(C>>6&63|128),e.push(63&C|128)):C>=65536&&C<=1114111?(e.push(C>>18|240),e.push(C>>12&63|128),e.push(C>>6&63|128),e.push(63&C|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},9069:Ge=>{"use strict";var e,Q="object"==typeof Reflect?Reflect:null,m=Q&&"function"==typeof Q.apply?Q.apply:function(ee,ge,le){return Function.prototype.apply.call(ee,ge,le)};e=Q&&"function"==typeof Q.ownKeys?Q.ownKeys:Object.getOwnPropertySymbols?function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:function(ee){return Object.getOwnPropertyNames(ee)};var y=Number.isNaN||function(ee){return ee!=ee};function C(){C.init.call(this)}Ge.exports=C,Ge.exports.once=function V(te,ee){return new Promise(function(ge,le){function re(se){te.removeListener(ee,de),le(se)}function de(){"function"==typeof te.removeListener&&te.removeListener("error",re),ge([].slice.call(arguments))}W(te,ee,de,{once:!0}),"error"!==ee&&function j(te,ee,ge){"function"==typeof te.on&&W(te,"error",ee,ge)}(te,re,{once:!0})})},C.EventEmitter=C,C.prototype._events=void 0,C.prototype._eventsCount=0,C.prototype._maxListeners=void 0;var o=10;function M(te){if("function"!=typeof te)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof te)}function l(te){return void 0===te._maxListeners?C.defaultMaxListeners:te._maxListeners}function R(te,ee,ge,le){var re,de,se;if(M(ge),void 0===(de=te._events)?(de=te._events=Object.create(null),te._eventsCount=0):(void 0!==de.newListener&&(te.emit("newListener",ee,ge.listener?ge.listener:ge),de=te._events),se=de[ee]),void 0===se)se=de[ee]=ge,++te._eventsCount;else if("function"==typeof se?se=de[ee]=le?[ge,se]:[se,ge]:le?se.unshift(ge):se.push(ge),(re=l(te))>0&&se.length>re&&!se.warned){se.warned=!0;var ye=new Error("Possible EventEmitter memory leak detected. "+se.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");ye.name="MaxListenersExceededWarning",ye.emitter=te,ye.type=ee,ye.count=se.length,function t(te){console&&console.warn&&console.warn(te)}(ye)}return te}function s(){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 L(te,ee,ge){var le={fired:!1,wrapFn:void 0,target:te,type:ee,listener:ge},re=s.bind(le);return re.listener=ge,le.wrapFn=re,re}function I(te,ee,ge){var le=te._events;if(void 0===le)return[];var re=le[ee];return void 0===re?[]:"function"==typeof re?ge?[re.listener||re]:[re]:ge?function w(te){for(var ee=new Array(te.length),ge=0;ge0&&(se=ge[0]),se instanceof Error)throw se;var ye=new Error("Unhandled error."+(se?" ("+se.message+")":""));throw ye.context=se,ye}var v=de[ee];if(void 0===v)return!1;if("function"==typeof v)m(v,this,ge);else{var i=v.length,a=E(v,i);for(le=0;le=0;se--)if(le[se]===ge||le[se].listener===ge){ye=le[se].listener,de=se;break}if(de<0)return this;0===de?le.shift():function P(te,ee){for(;ee+1=0;re--)this.removeListener(ee,ge[re]);return this},C.prototype.listeners=function(ee){return I(this,ee,!0)},C.prototype.rawListeners=function(ee){return I(this,ee,!1)},C.listenerCount=function(te,ee){return"function"==typeof te.listenerCount?te.listenerCount(ee):A.call(te,ee)},C.prototype.listenerCount=A,C.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},347:(Ge,Q,m)=>{var e=m(3502).Buffer,t=m(8095);Ge.exports=function y(C,o,M,l){if(e.isBuffer(C)||(C=e.from(C,"binary")),o&&(e.isBuffer(o)||(o=e.from(o,"binary")),8!==o.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var R=M/8,s=e.alloc(R),L=e.alloc(l||0),I=e.alloc(0);R>0||l>0;){var A=new t;A.update(I),A.update(C),o&&A.update(o),I=A.digest();var E=0;if(R>0){var P=s.length-R;E=Math.min(R,I.length),I.copy(s,P,0,E),R-=E}if(E0){var w=L.length-l,V=Math.min(l,I.length-E);I.copy(L,w,E,E+V),l-=V}}return I.fill(0),{key:s,iv:L}}},9650:(Ge,Q,m)=>{"use strict";var e=m(8444).Buffer,t=m(5685).Transform;function o(M){t.call(this),this._block=e.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(3894)(o,t),o.prototype._transform=function(M,l,R){var s=null;try{this.update(M,l)}catch(L){s=L}R(s)},o.prototype._flush=function(M){var l=null;try{this.push(this.digest())}catch(R){l=R}M(l)},o.prototype.update=function(M,l){if(function C(M,l){if(!e.isBuffer(M)&&"string"!=typeof M)throw new TypeError(l+" must be a string or a buffer")}(M,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(M)||(M=e.from(M,l));for(var R=this._block,s=0;this._blockOffset+M.length-s>=this._blockSize;){for(var L=this._blockOffset;L0;++I)this._length[I]+=A,(A=this._length[I]/4294967296|0)>0&&(this._length[I]-=4294967296*A);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(M){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var l=this._digest();void 0!==M&&(l=l.toString(M)),this._block.fill(0),this._blockOffset=0;for(var R=0;R<4;++R)this._length[R]=0;return l},o.prototype._digest=function(){throw new Error("_digest is not implemented")},Ge.exports=o},8444:(Ge,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ge.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},7084:(Ge,Q,m)=>{var e=Q;e.utils=m(9299),e.common=m(3800),e.sha=m(4962),e.ripemd=m(9458),e.hmac=m(2194),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},3800:(Ge,Q,m)=>{"use strict";var e=m(9299),t=m(2391);function y(){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}Q.BlockHash=y,y.prototype.update=function(o,M){if(o=e.toArray(o,M),this.pending=this.pending?this.pending.concat(o):o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){var l=(o=this.pending).length%this._delta8;this.pending=o.slice(o.length-l,o.length),0===this.pending.length&&(this.pending=null),o=e.join32(o,0,o.length-l,this.endian);for(var R=0;R>>24&255,R[s++]=o>>>16&255,R[s++]=o>>>8&255,R[s++]=255&o}else for(R[s++]=255&o,R[s++]=o>>>8&255,R[s++]=o>>>16&255,R[s++]=o>>>24&255,R[s++]=0,R[s++]=0,R[s++]=0,R[s++]=0,L=8;L{"use strict";var e=m(9299),t=m(2391);function y(C,o,M){if(!(this instanceof y))return new y(C,o,M);this.Hash=C,this.blockSize=C.blockSize/8,this.outSize=C.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(o,M))}Ge.exports=y,y.prototype._init=function(o){o.length>this.blockSize&&(o=(new this.Hash).update(o).digest()),t(o.length<=this.blockSize);for(var M=o.length;M{"use strict";var e=m(9299),t=m(3800),y=e.rotl32,C=e.sum32,o=e.sum32_3,M=e.sum32_4,l=t.BlockHash;function R(){if(!(this instanceof R))return new R;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function s(V,j,W,te){return V<=15?j^W^te:V<=31?j&W|~j&te:V<=47?(j|~W)^te:V<=63?j&te|W&~te:j^(W|~te)}function I(V){return V<=15?1352829926:V<=31?1548603684:V<=47?1836072691:V<=63?2053994217:0}e.inherits(R,l),Q.ripemd160=R,R.blockSize=512,R.outSize=160,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(j,W){for(var te=this.h[0],ee=this.h[1],ge=this.h[2],le=this.h[3],re=this.h[4],de=te,se=ee,ye=ge,v=le,i=re,a=0;a<80;a++){var p=C(y(M(te,s(a,ee,ge,le),j[A[a]+W],(V=a)<=15?0:V<=31?1518500249:V<=47?1859775393:V<=63?2400959708:2840853838),P[a]),re);te=re,re=le,le=y(ge,10),ge=ee,ee=p,p=C(y(M(de,s(79-a,se,ye,v),j[E[a]+W],I(a)),w[a]),i),de=i,i=v,v=y(ye,10),ye=se,se=p}var V;p=o(this.h[1],ge,v),this.h[1]=o(this.h[2],le,i),this.h[2]=o(this.h[3],re,de),this.h[3]=o(this.h[4],te,se),this.h[4]=o(this.h[0],ee,ye),this.h[0]=p},R.prototype._digest=function(j){return"hex"===j?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],P=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},4962:(Ge,Q,m)=>{"use strict";Q.sha1=m(9007),Q.sha224=m(55),Q.sha256=m(9342),Q.sha384=m(8634),Q.sha512=m(39)},9007:(Ge,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(3113),C=e.rotl32,o=e.sum32,M=e.sum32_5,l=y.ft_1,R=t.BlockHash,s=[1518500249,1859775393,2400959708,3395469782];function L(){if(!(this instanceof L))return new L;R.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(L,R),Ge.exports=L,L.blockSize=512,L.outSize=160,L.hmacStrength=80,L.padLength=64,L.prototype._update=function(A,E){for(var P=this.W,w=0;w<16;w++)P[w]=A[E+w];for(;w{"use strict";var e=m(9299),t=m(9342);function y(){if(!(this instanceof y))return new y;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}e.inherits(y,t),Ge.exports=y,y.blockSize=512,y.outSize=224,y.hmacStrength=192,y.padLength=64,y.prototype._digest=function(o){return"hex"===o?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")}},9342:(Ge,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(3113),C=m(2391),o=e.sum32,M=e.sum32_4,l=e.sum32_5,R=y.ch32,s=y.maj32,L=y.s0_256,I=y.s1_256,A=y.g0_256,E=y.g1_256,P=t.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function V(){if(!(this instanceof V))return new V;P.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}e.inherits(V,P),Ge.exports=V,V.blockSize=512,V.outSize=256,V.hmacStrength=192,V.padLength=64,V.prototype._update=function(W,te){for(var ee=this.W,ge=0;ge<16;ge++)ee[ge]=W[te+ge];for(;ge{"use strict";var e=m(9299),t=m(39);function y(){if(!(this instanceof y))return new y;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}e.inherits(y,t),Ge.exports=y,y.blockSize=1024,y.outSize=384,y.hmacStrength=192,y.padLength=128,y.prototype._digest=function(o){return"hex"===o?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")}},39:(Ge,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(2391),C=e.rotr64_hi,o=e.rotr64_lo,M=e.shr64_hi,l=e.shr64_lo,R=e.sum64,s=e.sum64_hi,L=e.sum64_lo,I=e.sum64_4_hi,A=e.sum64_4_lo,E=e.sum64_5_hi,P=e.sum64_5_lo,w=t.BlockHash,V=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function j(){if(!(this instanceof j))return new j;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=V,this.W=new Array(160)}function W(p,u,_,D,O){var x=p&_^~p&O;return x<0&&(x+=4294967296),x}function te(p,u,_,D,O,x){var r=u&D^~u&x;return r<0&&(r+=4294967296),r}function ee(p,u,_,D,O){var x=p&_^p&O^_&O;return x<0&&(x+=4294967296),x}function ge(p,u,_,D,O,x){var r=u&D^u&x^D&x;return r<0&&(r+=4294967296),r}function le(p,u){var x=C(p,u,28)^C(u,p,2)^C(u,p,7);return x<0&&(x+=4294967296),x}function re(p,u){var x=o(p,u,28)^o(u,p,2)^o(u,p,7);return x<0&&(x+=4294967296),x}function de(p,u){var x=C(p,u,14)^C(p,u,18)^C(u,p,9);return x<0&&(x+=4294967296),x}function se(p,u){var x=o(p,u,14)^o(p,u,18)^o(u,p,9);return x<0&&(x+=4294967296),x}function ye(p,u){var x=C(p,u,1)^C(p,u,8)^M(p,u,7);return x<0&&(x+=4294967296),x}function v(p,u){var x=o(p,u,1)^o(p,u,8)^l(p,u,7);return x<0&&(x+=4294967296),x}function i(p,u){var x=C(p,u,19)^C(u,p,29)^M(p,u,6);return x<0&&(x+=4294967296),x}function a(p,u){var x=o(p,u,19)^o(u,p,29)^l(p,u,6);return x<0&&(x+=4294967296),x}e.inherits(j,w),Ge.exports=j,j.blockSize=1024,j.outSize=512,j.hmacStrength=192,j.padLength=128,j.prototype._prepareBlock=function(u,_){for(var D=this.W,O=0;O<32;O++)D[O]=u[_+O];for(;O{"use strict";var t=m(9299).rotr32;function C(I,A,E){return I&A^~I&E}function o(I,A,E){return I&A^I&E^A&E}function M(I,A,E){return I^A^E}Q.ft_1=function y(I,A,E,P){return 0===I?C(A,E,P):1===I||3===I?M(A,E,P):2===I?o(A,E,P):void 0},Q.ch32=C,Q.maj32=o,Q.p32=M,Q.s0_256=function l(I){return t(I,2)^t(I,13)^t(I,22)},Q.s1_256=function R(I){return t(I,6)^t(I,11)^t(I,25)},Q.g0_256=function s(I){return t(I,7)^t(I,18)^I>>>3},Q.g1_256=function L(I){return t(I,17)^t(I,19)^I>>>10}},9299:(Ge,Q,m)=>{"use strict";var e=m(2391),t=m(3894);function y(a,p){return!(55296!=(64512&a.charCodeAt(p))||p<0||p+1>=a.length)&&56320==(64512&a.charCodeAt(p+1))}function M(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function R(a){return 1===a.length?"0"+a:a}function s(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}Q.inherits=t,Q.toArray=function C(a,p){if(Array.isArray(a))return a.slice();if(!a)return[];var u=[];if("string"==typeof a)if(p){if("hex"===p)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),D=0;D>6|192,u[_++]=63&O|128):y(a,D)?(O=65536+((1023&O)<<10)+(1023&a.charCodeAt(++D)),u[_++]=O>>18|240,u[_++]=O>>12&63|128,u[_++]=O>>6&63|128,u[_++]=63&O|128):(u[_++]=O>>12|224,u[_++]=O>>6&63|128,u[_++]=63&O|128)}else for(D=0;D>>0;return O},Q.split32=function I(a,p){for(var u=new Array(4*a.length),_=0,D=0;_>>24,u[D+1]=O>>>16&255,u[D+2]=O>>>8&255,u[D+3]=255&O):(u[D+3]=O>>>24,u[D+2]=O>>>16&255,u[D+1]=O>>>8&255,u[D]=255&O)}return u},Q.rotr32=function A(a,p){return a>>>p|a<<32-p},Q.rotl32=function E(a,p){return a<>>32-p},Q.sum32=function P(a,p){return a+p>>>0},Q.sum32_3=function w(a,p,u){return a+p+u>>>0},Q.sum32_4=function V(a,p,u,_){return a+p+u+_>>>0},Q.sum32_5=function j(a,p,u,_,D){return a+p+u+_+D>>>0},Q.sum64=function W(a,p,u,_){var x=_+a[p+1]>>>0;a[p]=(x<_?1:0)+u+a[p]>>>0,a[p+1]=x},Q.sum64_hi=function te(a,p,u,_){return(p+_>>>0>>0},Q.sum64_lo=function ee(a,p,u,_){return p+_>>>0},Q.sum64_4_hi=function ge(a,p,u,_,D,O,x,r){var b=0,Z=p;return b+=(Z=Z+_>>>0)>>0)>>0)>>0},Q.sum64_4_lo=function le(a,p,u,_,D,O,x,r){return p+_+O+r>>>0},Q.sum64_5_hi=function re(a,p,u,_,D,O,x,r,b,Z){var N=0,U=p;return N+=(U=U+_>>>0)>>0)>>0)>>0)>>0},Q.sum64_5_lo=function de(a,p,u,_,D,O,x,r,b,Z){return p+_+O+r+Z>>>0},Q.rotr64_hi=function se(a,p,u){return(p<<32-u|a>>>u)>>>0},Q.rotr64_lo=function ye(a,p,u){return(a<<32-u|p>>>u)>>>0},Q.shr64_hi=function v(a,p,u){return a>>>u},Q.shr64_lo=function i(a,p,u){return(a<<32-u|p>>>u)>>>0}},2438:(Ge,Q,m)=>{"use strict";var e=m(7084),t=m(8195),y=m(2391);function C(o){if(!(this instanceof C))return new C(o);this.hash=o.hash,this.predResist=!!o.predResist,this.outLen=this.hash.outSize,this.minEntropy=o.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var M=t.toArray(o.entropy,o.entropyEnc||"hex"),l=t.toArray(o.nonce,o.nonceEnc||"hex"),R=t.toArray(o.pers,o.persEnc||"hex");y(M.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(M,l,R)}Ge.exports=C,C.prototype._init=function(M,l,R){var s=M.concat(l).concat(R);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var L=0;L=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(M.concat(R||[])),this._reseed=1},C.prototype.generate=function(M,l,R,s){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof l&&(s=R,R=l,l=null),R&&(R=t.toArray(R,s||"hex"),this._update(R));for(var L=[];L.length{Q.read=function(m,e,t,y,C){var o,M,l=8*C-y-1,R=(1<>1,L=-7,I=t?C-1:0,A=t?-1:1,E=m[e+I];for(I+=A,o=E&(1<<-L)-1,E>>=-L,L+=l;L>0;o=256*o+m[e+I],I+=A,L-=8);for(M=o&(1<<-L)-1,o>>=-L,L+=y;L>0;M=256*M+m[e+I],I+=A,L-=8);if(0===o)o=1-s;else{if(o===R)return M?NaN:1/0*(E?-1:1);M+=Math.pow(2,y),o-=s}return(E?-1:1)*M*Math.pow(2,o-y)},Q.write=function(m,e,t,y,C,o){var M,l,R,s=8*o-C-1,L=(1<>1,A=23===C?Math.pow(2,-24)-Math.pow(2,-77):0,E=y?0:o-1,P=y?1:-1,w=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,M=L):(M=Math.floor(Math.log(e)/Math.LN2),e*(R=Math.pow(2,-M))<1&&(M--,R*=2),(e+=M+I>=1?A/R:A*Math.pow(2,1-I))*R>=2&&(M++,R/=2),M+I>=L?(l=0,M=L):M+I>=1?(l=(e*R-1)*Math.pow(2,C),M+=I):(l=e*Math.pow(2,I-1)*Math.pow(2,C),M=0));C>=8;m[t+E]=255&l,E+=P,l/=256,C-=8);for(M=M<0;m[t+E]=255&M,E+=P,M/=256,s-=8);m[t+E-P]|=128*w}},3894:Ge=>{Ge.exports="function"==typeof Object.create?function(m,e){e&&(m.super_=e,m.prototype=Object.create(e.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:function(m,e){if(e){m.super_=e;var t=function(){};t.prototype=e.prototype,m.prototype=new t,m.prototype.constructor=m}}},717:(Ge,Q,m)=>{"use strict";var e=m(623);function t(y){return!0===e(y)&&"[object Object]"===Object.prototype.toString.call(y)}Ge.exports=function(C){var o,M;return!(!1===t(C)||(o=C.constructor,"function"!=typeof o)||(M=o.prototype,!1===t(M))||!1===M.hasOwnProperty("isPrototypeOf"))}},623:Ge=>{"use strict";Ge.exports=function(m){return null!=m&&"object"==typeof m&&!1===Array.isArray(m)}},2872:Ge=>{var Q=Object.prototype.toString;function m(s){return"function"==typeof s.constructor?s.constructor.name:null}Ge.exports=function(L){if(void 0===L)return"undefined";if(null===L)return"null";var I=typeof L;if("boolean"===I)return"boolean";if("string"===I)return"string";if("number"===I)return"number";if("symbol"===I)return"symbol";if("function"===I)return function o(s,L){return"GeneratorFunction"===m(s)}(L)?"generatorfunction":"function";if(function e(s){return Array.isArray?Array.isArray(s):s instanceof Array}(L))return"array";if(function R(s){return!(!s.constructor||"function"!=typeof s.constructor.isBuffer)&&s.constructor.isBuffer(s)}(L))return"buffer";if(function l(s){try{if("number"==typeof s.length&&"function"==typeof s.callee)return!0}catch(L){if(-1!==L.message.indexOf("callee"))return!0}return!1}(L))return"arguments";if(function y(s){return s instanceof Date||"function"==typeof s.toDateString&&"function"==typeof s.getDate&&"function"==typeof s.setDate}(L))return"date";if(function t(s){return s instanceof Error||"string"==typeof s.message&&s.constructor&&"number"==typeof s.constructor.stackTraceLimit}(L))return"error";if(function C(s){return s instanceof RegExp||"string"==typeof s.flags&&"boolean"==typeof s.ignoreCase&&"boolean"==typeof s.multiline&&"boolean"==typeof s.global}(L))return"regexp";switch(m(L)){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 M(s){return"function"==typeof s.throw&&"function"==typeof s.return&&"function"==typeof s.next}(L))return"generator";switch(I=Q.call(L)){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 I.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Ge,Q,m)=>{"use strict";var e=m(3894),t=m(9650),y=m(3502).Buffer,C=new Array(16);function o(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function M(I,A){return I<>>32-A}function l(I,A,E,P,w,V,j){return M(I+(A&E|~A&P)+w+V|0,j)+A|0}function R(I,A,E,P,w,V,j){return M(I+(A&P|E&~P)+w+V|0,j)+A|0}function s(I,A,E,P,w,V,j){return M(I+(A^E^P)+w+V|0,j)+A|0}function L(I,A,E,P,w,V,j){return M(I+(E^(A|~P))+w+V|0,j)+A|0}e(o,t),o.prototype._update=function(){for(var I=C,A=0;A<16;++A)I[A]=this._block.readInt32LE(4*A);var E=this._a,P=this._b,w=this._c,V=this._d;E=l(E,P,w,V,I[0],3614090360,7),V=l(V,E,P,w,I[1],3905402710,12),w=l(w,V,E,P,I[2],606105819,17),P=l(P,w,V,E,I[3],3250441966,22),E=l(E,P,w,V,I[4],4118548399,7),V=l(V,E,P,w,I[5],1200080426,12),w=l(w,V,E,P,I[6],2821735955,17),P=l(P,w,V,E,I[7],4249261313,22),E=l(E,P,w,V,I[8],1770035416,7),V=l(V,E,P,w,I[9],2336552879,12),w=l(w,V,E,P,I[10],4294925233,17),P=l(P,w,V,E,I[11],2304563134,22),E=l(E,P,w,V,I[12],1804603682,7),V=l(V,E,P,w,I[13],4254626195,12),w=l(w,V,E,P,I[14],2792965006,17),E=R(E,P=l(P,w,V,E,I[15],1236535329,22),w,V,I[1],4129170786,5),V=R(V,E,P,w,I[6],3225465664,9),w=R(w,V,E,P,I[11],643717713,14),P=R(P,w,V,E,I[0],3921069994,20),E=R(E,P,w,V,I[5],3593408605,5),V=R(V,E,P,w,I[10],38016083,9),w=R(w,V,E,P,I[15],3634488961,14),P=R(P,w,V,E,I[4],3889429448,20),E=R(E,P,w,V,I[9],568446438,5),V=R(V,E,P,w,I[14],3275163606,9),w=R(w,V,E,P,I[3],4107603335,14),P=R(P,w,V,E,I[8],1163531501,20),E=R(E,P,w,V,I[13],2850285829,5),V=R(V,E,P,w,I[2],4243563512,9),w=R(w,V,E,P,I[7],1735328473,14),E=s(E,P=R(P,w,V,E,I[12],2368359562,20),w,V,I[5],4294588738,4),V=s(V,E,P,w,I[8],2272392833,11),w=s(w,V,E,P,I[11],1839030562,16),P=s(P,w,V,E,I[14],4259657740,23),E=s(E,P,w,V,I[1],2763975236,4),V=s(V,E,P,w,I[4],1272893353,11),w=s(w,V,E,P,I[7],4139469664,16),P=s(P,w,V,E,I[10],3200236656,23),E=s(E,P,w,V,I[13],681279174,4),V=s(V,E,P,w,I[0],3936430074,11),w=s(w,V,E,P,I[3],3572445317,16),P=s(P,w,V,E,I[6],76029189,23),E=s(E,P,w,V,I[9],3654602809,4),V=s(V,E,P,w,I[12],3873151461,11),w=s(w,V,E,P,I[15],530742520,16),E=L(E,P=s(P,w,V,E,I[2],3299628645,23),w,V,I[0],4096336452,6),V=L(V,E,P,w,I[7],1126891415,10),w=L(w,V,E,P,I[14],2878612391,15),P=L(P,w,V,E,I[5],4237533241,21),E=L(E,P,w,V,I[12],1700485571,6),V=L(V,E,P,w,I[3],2399980690,10),w=L(w,V,E,P,I[10],4293915773,15),P=L(P,w,V,E,I[1],2240044497,21),E=L(E,P,w,V,I[8],1873313359,6),V=L(V,E,P,w,I[15],4264355552,10),w=L(w,V,E,P,I[6],2734768916,15),P=L(P,w,V,E,I[13],1309151649,21),E=L(E,P,w,V,I[4],4149444226,6),V=L(V,E,P,w,I[11],3174756917,10),w=L(w,V,E,P,I[2],718787259,15),P=L(P,w,V,E,I[9],3951481745,21),this._a=this._a+E|0,this._b=this._b+P|0,this._c=this._c+w|0,this._d=this._d+V|0},o.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 I=y.allocUnsafe(16);return I.writeInt32LE(this._a,0),I.writeInt32LE(this._b,4),I.writeInt32LE(this._c,8),I.writeInt32LE(this._d,12),I},Ge.exports=o},7079:(Ge,Q,m)=>{var e=m(1378),t=m(7950);function y(C){this.rand=C||new t.Rand}Ge.exports=y,y.create=function(o){return new y(o)},y.prototype._randbelow=function(o){var M=o.bitLength(),l=Math.ceil(M/8);do{var R=new e(this.rand.generate(l))}while(R.cmp(o)>=0);return R},y.prototype._randrange=function(o,M){var l=M.sub(o);return o.add(this._randbelow(l))},y.prototype.test=function(o,M,l){var R=o.bitLength(),s=e.mont(o),L=new e(1).toRed(s);M||(M=Math.max(1,R/48|0));for(var I=o.subn(1),A=0;!I.testn(A);A++);for(var E=o.shrn(A),P=I.toRed(s);M>0;M--){var V=this._randrange(new e(2),I);l&&l(V);var j=V.toRed(s).redPow(E);if(0!==j.cmp(L)&&0!==j.cmp(P)){for(var W=1;W0;M--){var P=this._randrange(new e(2),L),w=o.gcd(P);if(0!==w.cmpn(1))return w;var V=P.toRed(R).redPow(A);if(0!==V.cmp(s)&&0!==V.cmp(E)){for(var j=1;j=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},2391:Ge=>{function Q(m,e){if(!m)throw new Error(e||"Assertion failed")}Ge.exports=Q,Q.equal=function(e,t,y){if(e!=t)throw new Error(y||"Assertion failed: "+e+" != "+t)}},8195:(Ge,Q)=>{"use strict";var m=Q;function t(C){return 1===C.length?"0"+C:C}function y(C){for(var o="",M=0;M>8,L=255&R;s?M.push(s,L):M.push(L)}return M},m.zero2=t,m.toHex=y,m.encode=function(o,M){return"hex"===M?y(o):o}},644:(Ge,Q,m)=>{"use strict";m.d(Q,{op:()=>Ve,$V:()=>et,Xd:()=>Jt});var e=m(7579),t=m(4968),C=(m(6451),m(3601)),o=m(2722),R=(m(1884),m(9718),m(5e3)),s=m(9808);function L(ct){return getComputedStyle(ct)}function I(ct,ke){for(var Be in ke){var at=ke[Be];"number"==typeof at&&(at+="px"),ct.style[Be]=at}return ct}function A(ct){var ke=document.createElement("div");return ke.className=ct,ke}var E="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function P(ct,ke){if(!E)throw new Error("No element matching method supported");return E.call(ct,ke)}function w(ct){ct.remove?ct.remove():ct.parentNode&&ct.parentNode.removeChild(ct)}function V(ct,ke){return Array.prototype.filter.call(ct.children,function(Be){return P(Be,ke)})}var j_element_thumb=function(ct){return"ps__thumb-"+ct},j_element_rail=function(ct){return"ps__rail-"+ct},j_element_consuming="ps__child--consume",j_state_focus="ps--focus",j_state_clicking="ps--clicking",j_state_active=function(ct){return"ps--active-"+ct},j_state_scrolling=function(ct){return"ps--scrolling-"+ct},W={x:null,y:null};function te(ct,ke){var Be=ct.element.classList,at=j_state_scrolling(ke);Be.contains(at)?clearTimeout(W[ke]):Be.add(at)}function ee(ct,ke){W[ke]=setTimeout(function(){return ct.isAlive&&ct.element.classList.remove(j_state_scrolling(ke))},ct.settings.scrollingThreshold)}var le=function(ke){this.element=ke,this.handlers={}},re={isEmpty:{configurable:!0}};le.prototype.bind=function(ke,Be){void 0===this.handlers[ke]&&(this.handlers[ke]=[]),this.handlers[ke].push(Be),this.element.addEventListener(ke,Be,!1)},le.prototype.unbind=function(ke,Be){var at=this;this.handlers[ke]=this.handlers[ke].filter(function(st){return!(!Be||st===Be)||(at.element.removeEventListener(ke,st,!1),!1)})},le.prototype.unbindAll=function(){for(var ke in this.handlers)this.unbind(ke)},re.isEmpty.get=function(){var ct=this;return Object.keys(this.handlers).every(function(ke){return 0===ct.handlers[ke].length})},Object.defineProperties(le.prototype,re);var de=function(){this.eventElements=[]};function se(ct){if("function"==typeof window.CustomEvent)return new CustomEvent(ct);var ke=document.createEvent("CustomEvent");return ke.initCustomEvent(ct,!1,!1,void 0),ke}function ye(ct,ke,Be,at,st){var At;if(void 0===at&&(at=!0),void 0===st&&(st=!1),"top"===ke)At=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==ke)throw new Error("A proper axis should be provided");At=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function v(ct,ke,Be,at,st){var At=Be[0],li=Be[1],Bt=Be[2],Rt=Be[3],Li=Be[4],si=Be[5];void 0===at&&(at=!0),void 0===st&&(st=!1);var ci=ct.element;ct.reach[Rt]=null,ci[Bt]<1&&(ct.reach[Rt]="start"),ci[Bt]>ct[At]-ct[li]-1&&(ct.reach[Rt]="end"),ke&&(ci.dispatchEvent(se("ps-scroll-"+Rt)),ke<0?ci.dispatchEvent(se("ps-scroll-"+Li)):ke>0&&ci.dispatchEvent(se("ps-scroll-"+si)),at&&function ge(ct,ke){te(ct,ke),ee(ct,ke)}(ct,Rt)),ct.reach[Rt]&&(ke||st)&&ci.dispatchEvent(se("ps-"+Rt+"-reach-"+ct.reach[Rt]))}(ct,Be,At,at,st)}function i(ct){return parseInt(ct,10)||0}de.prototype.eventElement=function(ke){var Be=this.eventElements.filter(function(at){return at.element===ke})[0];return Be||(Be=new le(ke),this.eventElements.push(Be)),Be},de.prototype.bind=function(ke,Be,at){this.eventElement(ke).bind(Be,at)},de.prototype.unbind=function(ke,Be,at){var st=this.eventElement(ke);st.unbind(Be,at),st.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(st),1)},de.prototype.unbindAll=function(){this.eventElements.forEach(function(ke){return ke.unbindAll()}),this.eventElements=[]},de.prototype.once=function(ke,Be,at){var st=this.eventElement(ke),At=function(li){st.unbind(Be,At),at(li)};st.bind(Be,At)};var u={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 _(ct){var ke=ct.element,Be=Math.floor(ke.scrollTop),at=ke.getBoundingClientRect();ct.containerWidth=Math.ceil(at.width),ct.containerHeight=Math.ceil(at.height),ct.contentWidth=ke.scrollWidth,ct.contentHeight=ke.scrollHeight,ke.contains(ct.scrollbarXRail)||(V(ke,j_element_rail("x")).forEach(function(st){return w(st)}),ke.appendChild(ct.scrollbarXRail)),ke.contains(ct.scrollbarYRail)||(V(ke,j_element_rail("y")).forEach(function(st){return w(st)}),ke.appendChild(ct.scrollbarYRail)),!ct.settings.suppressScrollX&&ct.containerWidth+ct.settings.scrollXMarginOffset=ct.railXWidth-ct.scrollbarXWidth&&(ct.scrollbarXLeft=ct.railXWidth-ct.scrollbarXWidth),ct.scrollbarYTop>=ct.railYHeight-ct.scrollbarYHeight&&(ct.scrollbarYTop=ct.railYHeight-ct.scrollbarYHeight),function O(ct,ke){var Be={width:ke.railXWidth},at=Math.floor(ct.scrollTop);Be.left=ke.isRtl?ke.negativeScrollAdjustment+ct.scrollLeft+ke.containerWidth-ke.contentWidth:ct.scrollLeft,ke.isScrollbarXUsingBottom?Be.bottom=ke.scrollbarXBottom-at:Be.top=ke.scrollbarXTop+at,I(ke.scrollbarXRail,Be);var st={top:at,height:ke.railYHeight};ke.isScrollbarYUsingRight?st.right=ke.isRtl?ke.contentWidth-(ke.negativeScrollAdjustment+ct.scrollLeft)-ke.scrollbarYRight-ke.scrollbarYOuterWidth-9:ke.scrollbarYRight-ct.scrollLeft:st.left=ke.isRtl?ke.negativeScrollAdjustment+ct.scrollLeft+2*ke.containerWidth-ke.contentWidth-ke.scrollbarYLeft-ke.scrollbarYOuterWidth:ke.scrollbarYLeft+ct.scrollLeft,I(ke.scrollbarYRail,st),I(ke.scrollbarX,{left:ke.scrollbarXLeft,width:ke.scrollbarXWidth-ke.railBorderXWidth}),I(ke.scrollbarY,{top:ke.scrollbarYTop,height:ke.scrollbarYHeight-ke.railBorderYWidth})}(ke,ct),ct.scrollbarXActive?ke.classList.add(j_state_active("x")):(ke.classList.remove(j_state_active("x")),ct.scrollbarXWidth=0,ct.scrollbarXLeft=0,ke.scrollLeft=!0===ct.isRtl?ct.contentWidth:0),ct.scrollbarYActive?ke.classList.add(j_state_active("y")):(ke.classList.remove(j_state_active("y")),ct.scrollbarYHeight=0,ct.scrollbarYTop=0,ke.scrollTop=0)}function D(ct,ke){return ct.settings.minScrollbarLength&&(ke=Math.max(ke,ct.settings.minScrollbarLength)),ct.settings.maxScrollbarLength&&(ke=Math.min(ke,ct.settings.maxScrollbarLength)),ke}function b(ct,ke){var Be=ke[0],at=ke[1],st=ke[2],At=ke[3],li=ke[4],Bt=ke[5],Rt=ke[6],Li=ke[7],si=ke[8],ci=ct.element,sn=null,Ui=null,Di=null;function Xi(_e){_e.touches&&_e.touches[0]&&(_e[st]=_e.touches[0].pageY),ci[Rt]=sn+Di*(_e[st]-Ui),te(ct,Li),_(ct),_e.stopPropagation(),_e.preventDefault()}function Ke(){ee(ct,Li),ct[si].classList.remove(j_state_clicking),ct.event.unbind(ct.ownerDocument,"mousemove",Xi)}function _t(_e,qe){sn=ci[Rt],qe&&_e.touches&&(_e[st]=_e.touches[0].pageY),Ui=_e[st],Di=(ct[at]-ct[Be])/(ct[At]-ct[Bt]),qe?ct.event.bind(ct.ownerDocument,"touchmove",Xi):(ct.event.bind(ct.ownerDocument,"mousemove",Xi),ct.event.once(ct.ownerDocument,"mouseup",Ke),_e.preventDefault()),ct[si].classList.add(j_state_clicking),_e.stopPropagation()}ct.event.bind(ct[li],"mousedown",function(_e){_t(_e)}),ct.event.bind(ct[li],"touchstart",function(_e){_t(_e,!0)})}var be={"click-rail":function x(ct){ct.event.bind(ct.scrollbarY,"mousedown",function(Be){return Be.stopPropagation()}),ct.event.bind(ct.scrollbarYRail,"mousedown",function(Be){var at=Be.pageY-window.pageYOffset-ct.scrollbarYRail.getBoundingClientRect().top;ct.element.scrollTop+=(at>ct.scrollbarYTop?1:-1)*ct.containerHeight,_(ct),Be.stopPropagation()}),ct.event.bind(ct.scrollbarX,"mousedown",function(Be){return Be.stopPropagation()}),ct.event.bind(ct.scrollbarXRail,"mousedown",function(Be){var at=Be.pageX-window.pageXOffset-ct.scrollbarXRail.getBoundingClientRect().left;ct.element.scrollLeft+=(at>ct.scrollbarXLeft?1:-1)*ct.containerWidth,_(ct),Be.stopPropagation()})},"drag-thumb":function r(ct){b(ct,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),b(ct,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function Z(ct){var ke=ct.element;ct.event.bind(ct.ownerDocument,"keydown",function(At){if(!(At.isDefaultPrevented&&At.isDefaultPrevented()||At.defaultPrevented)&&(P(ke,":hover")||P(ct.scrollbarX,":focus")||P(ct.scrollbarY,":focus"))){var li=document.activeElement?document.activeElement:ct.ownerDocument.activeElement;if(li){if("IFRAME"===li.tagName)li=li.contentDocument.activeElement;else for(;li.shadowRoot;)li=li.shadowRoot.activeElement;if(function a(ct){return P(ct,"input,[contenteditable]")||P(ct,"select,[contenteditable]")||P(ct,"textarea,[contenteditable]")||P(ct,"button,[contenteditable]")}(li))return}var Bt=0,Rt=0;switch(At.which){case 37:Bt=At.metaKey?-ct.contentWidth:At.altKey?-ct.containerWidth:-30;break;case 38:Rt=At.metaKey?ct.contentHeight:At.altKey?ct.containerHeight:30;break;case 39:Bt=At.metaKey?ct.contentWidth:At.altKey?ct.containerWidth:30;break;case 40:Rt=At.metaKey?-ct.contentHeight:At.altKey?-ct.containerHeight:-30;break;case 32:Rt=At.shiftKey?ct.containerHeight:-ct.containerHeight;break;case 33:Rt=ct.containerHeight;break;case 34:Rt=-ct.containerHeight;break;case 36:Rt=ct.contentHeight;break;case 35:Rt=-ct.contentHeight;break;default:return}ct.settings.suppressScrollX&&0!==Bt||ct.settings.suppressScrollY&&0!==Rt||(ke.scrollTop-=Rt,ke.scrollLeft+=Bt,_(ct),function st(At,li){var Bt=Math.floor(ke.scrollTop);if(0===At){if(!ct.scrollbarYActive)return!1;if(0===Bt&&li>0||Bt>=ct.contentHeight-ct.containerHeight&&li<0)return!ct.settings.wheelPropagation}var Rt=ke.scrollLeft;if(0===li){if(!ct.scrollbarXActive)return!1;if(0===Rt&&At<0||Rt>=ct.contentWidth-ct.containerWidth&&At>0)return!ct.settings.wheelPropagation}return!0}(Bt,Rt)&&At.preventDefault())}})},wheel:function N(ct){var ke=ct.element;function At(li){var Bt=function at(li){var Bt=li.deltaX,Rt=-1*li.deltaY;return(void 0===Bt||void 0===Rt)&&(Bt=-1*li.wheelDeltaX/6,Rt=li.wheelDeltaY/6),li.deltaMode&&1===li.deltaMode&&(Bt*=10,Rt*=10),Bt!=Bt&&Rt!=Rt&&(Bt=0,Rt=li.wheelDelta),li.shiftKey?[-Rt,-Bt]:[Bt,Rt]}(li),Rt=Bt[0],Li=Bt[1];if(!function st(li,Bt,Rt){if(!u.isWebKit&&ke.querySelector("select:focus"))return!0;if(!ke.contains(li))return!1;for(var Li=li;Li&&Li!==ke;){if(Li.classList.contains(j_element_consuming))return!0;var si=L(Li);if(Rt&&si.overflowY.match(/(scroll|auto)/)){var ci=Li.scrollHeight-Li.clientHeight;if(ci>0&&(Li.scrollTop>0&&Rt<0||Li.scrollTop0))return!0}if(Bt&&si.overflowX.match(/(scroll|auto)/)){var sn=Li.scrollWidth-Li.clientWidth;if(sn>0&&(Li.scrollLeft>0&&Bt<0||Li.scrollLeft0))return!0}Li=Li.parentNode}return!1}(li.target,Rt,Li)){var si=!1;ct.settings.useBothWheelAxes?ct.scrollbarYActive&&!ct.scrollbarXActive?(Li?ke.scrollTop-=Li*ct.settings.wheelSpeed:ke.scrollTop+=Rt*ct.settings.wheelSpeed,si=!0):ct.scrollbarXActive&&!ct.scrollbarYActive&&(Rt?ke.scrollLeft+=Rt*ct.settings.wheelSpeed:ke.scrollLeft-=Li*ct.settings.wheelSpeed,si=!0):(ke.scrollTop-=Li*ct.settings.wheelSpeed,ke.scrollLeft+=Rt*ct.settings.wheelSpeed),_(ct),si=si||function Be(li,Bt){var Rt=Math.floor(ke.scrollTop),Li=0===ke.scrollTop,si=Rt+ke.offsetHeight===ke.scrollHeight,ci=0===ke.scrollLeft,sn=ke.scrollLeft+ke.offsetWidth===ke.scrollWidth;return!(Math.abs(Bt)>Math.abs(li)?Li||si:ci||sn)||!ct.settings.wheelPropagation}(Rt,Li),si&&!li.ctrlKey&&(li.stopPropagation(),li.preventDefault())}}void 0!==window.onwheel?ct.event.bind(ke,"wheel",At):void 0!==window.onmousewheel&&ct.event.bind(ke,"mousewheel",At)},touch:function U(ct){if(u.supportsTouch||u.supportsIePointer){var ke=ct.element,st={},At=0,li={},Bt=null;u.supportsTouch?(ct.event.bind(ke,"touchstart",si),ct.event.bind(ke,"touchmove",sn),ct.event.bind(ke,"touchend",Ui)):u.supportsIePointer&&(window.PointerEvent?(ct.event.bind(ke,"pointerdown",si),ct.event.bind(ke,"pointermove",sn),ct.event.bind(ke,"pointerup",Ui)):window.MSPointerEvent&&(ct.event.bind(ke,"MSPointerDown",si),ct.event.bind(ke,"MSPointerMove",sn),ct.event.bind(ke,"MSPointerUp",Ui)))}function at(Di,Xi){ke.scrollTop-=Xi,ke.scrollLeft-=Di,_(ct)}function Rt(Di){return Di.targetTouches?Di.targetTouches[0]:Di}function Li(Di){return!(Di.pointerType&&"pen"===Di.pointerType&&0===Di.buttons||!(Di.targetTouches&&1===Di.targetTouches.length||Di.pointerType&&"mouse"!==Di.pointerType&&Di.pointerType!==Di.MSPOINTER_TYPE_MOUSE))}function si(Di){if(Li(Di)){var Xi=Rt(Di);st.pageX=Xi.pageX,st.pageY=Xi.pageY,At=(new Date).getTime(),null!==Bt&&clearInterval(Bt)}}function sn(Di){if(Li(Di)){var Xi=Rt(Di),Ke={pageX:Xi.pageX,pageY:Xi.pageY},_t=Ke.pageX-st.pageX,_e=Ke.pageY-st.pageY;if(function ci(Di,Xi,Ke){if(!ke.contains(Di))return!1;for(var _t=Di;_t&&_t!==ke;){if(_t.classList.contains(j_element_consuming))return!0;var _e=L(_t);if(Ke&&_e.overflowY.match(/(scroll|auto)/)){var qe=_t.scrollHeight-_t.clientHeight;if(qe>0&&(_t.scrollTop>0&&Ke<0||_t.scrollTop0))return!0}if(Xi&&_e.overflowX.match(/(scroll|auto)/)){var yt=_t.scrollWidth-_t.clientWidth;if(yt>0&&(_t.scrollLeft>0&&Xi<0||_t.scrollLeft0))return!0}_t=_t.parentNode}return!1}(Di.target,_t,_e))return;at(_t,_e),st=Ke;var qe=(new Date).getTime(),yt=qe-At;yt>0&&(li.x=_t/yt,li.y=_e/yt,At=qe),function Be(Di,Xi){var Ke=Math.floor(ke.scrollTop),_t=ke.scrollLeft,_e=Math.abs(Di),qe=Math.abs(Xi);if(qe>_e){if(Xi<0&&Ke===ct.contentHeight-ct.containerHeight||Xi>0&&0===Ke)return 0===window.scrollY&&Xi>0&&u.isChrome}else if(_e>qe&&(Di<0&&_t===ct.contentWidth-ct.containerWidth||Di>0&&0===_t))return!0;return!0}(_t,_e)&&Di.preventDefault()}}function Ui(){ct.settings.swipeEasing&&(clearInterval(Bt),Bt=setInterval(function(){ct.isInitialized?clearInterval(Bt):li.x||li.y?Math.abs(li.x)<.01&&Math.abs(li.y)<.01?clearInterval(Bt):(at(30*li.x,30*li.y),li.x*=.8,li.y*=.8):clearInterval(Bt)},10))}}},Re=function(ke,Be){var at=this;if(void 0===Be&&(Be={}),"string"==typeof ke&&(ke=document.querySelector(ke)),!ke||!ke.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var st in this.element=ke,ke.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},Be)this.settings[st]=Be[st];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var si,Li,At=function(){return ke.classList.add(j_state_focus)},li=function(){return ke.classList.remove(j_state_focus)};this.isRtl="rtl"===L(ke).direction,!0===this.isRtl&&ke.classList.add("ps__rtl"),this.isNegativeScroll=(Li=ke.scrollLeft,ke.scrollLeft=-1,si=ke.scrollLeft<0,ke.scrollLeft=Li,si),this.negativeScrollAdjustment=this.isNegativeScroll?ke.scrollWidth-ke.clientWidth:0,this.event=new de,this.ownerDocument=ke.ownerDocument||document,this.scrollbarXRail=A(j_element_rail("x")),ke.appendChild(this.scrollbarXRail),this.scrollbarX=A(j_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",At),this.event.bind(this.scrollbarX,"blur",li),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Bt=L(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Bt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=i(Bt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=i(Bt.borderLeftWidth)+i(Bt.borderRightWidth),I(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(Bt.marginLeft)+i(Bt.marginRight),I(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=A(j_element_rail("y")),ke.appendChild(this.scrollbarYRail),this.scrollbarY=A(j_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",At),this.event.bind(this.scrollbarY,"blur",li),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var Rt=L(this.scrollbarYRail);this.scrollbarYRight=parseInt(Rt.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=i(Rt.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function p(ct){var ke=L(ct);return i(ke.width)+i(ke.paddingLeft)+i(ke.paddingRight)+i(ke.borderLeftWidth)+i(ke.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=i(Rt.borderTopWidth)+i(Rt.borderBottomWidth),I(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(Rt.marginTop)+i(Rt.marginBottom),I(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:ke.scrollLeft<=0?"start":ke.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:ke.scrollTop<=0?"start":ke.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Li){return be[Li](at)}),this.lastScrollTop=Math.floor(ke.scrollTop),this.lastScrollLeft=ke.scrollLeft,this.event.bind(this.element,"scroll",function(Li){return at.onScroll(Li)}),_(this)};Re.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,I(this.scrollbarXRail,{display:"block"}),I(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(L(this.scrollbarXRail).marginLeft)+i(L(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(L(this.scrollbarYRail).marginTop)+i(L(this.scrollbarYRail).marginBottom),I(this.scrollbarXRail,{display:"none"}),I(this.scrollbarYRail,{display:"none"}),_(this),ye(this,"top",0,!1,!0),ye(this,"left",0,!1,!0),I(this.scrollbarXRail,{display:""}),I(this.scrollbarYRail,{display:""}))},Re.prototype.onScroll=function(ke){!this.isAlive||(_(this),ye(this,"top",this.element.scrollTop-this.lastScrollTop),ye(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Re.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)},Re.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(ke){return!ke.match(/^ps([-_].+|)$/)}).join(" ")};const ze=Re;var Oe=function(){if("undefined"!=typeof Map)return Map;function ct(ke,Be){var at=-1;return ke.some(function(st,At){return st[0]===Be&&(at=At,!0)}),at}return function(){function ke(){this.__entries__=[]}return Object.defineProperty(ke.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),ke.prototype.get=function(Be){var at=ct(this.__entries__,Be),st=this.__entries__[at];return st&&st[1]},ke.prototype.set=function(Be,at){var st=ct(this.__entries__,Be);~st?this.__entries__[st][1]=at:this.__entries__.push([Be,at])},ke.prototype.delete=function(Be){var at=this.__entries__,st=ct(at,Be);~st&&at.splice(st,1)},ke.prototype.has=function(Be){return!!~ct(this.__entries__,Be)},ke.prototype.clear=function(){this.__entries__.splice(0)},ke.prototype.forEach=function(Be,at){void 0===at&&(at=null);for(var st=0,At=this.__entries__;st0},ct.prototype.connect_=function(){!K||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ne?(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)},ct.prototype.disconnect_=function(){!K||!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)},ct.prototype.onTransitionEnd_=function(ke){var Be=ke.propertyName,at=void 0===Be?"":Be;Fe.some(function(At){return!!~at.indexOf(At)})&&this.refresh()},ct.getInstance=function(){return this.instance_||(this.instance_=new ct),this.instance_},ct.instance_=null,ct}(),Le=function(ct,ke){for(var Be=0,at=Object.keys(ke);Be0},ct}(),Ii="undefined"!=typeof WeakMap?new WeakMap:new Oe,jt=function ct(ke){if(!(this instanceof ct))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Be=ce.getInstance(),at=new Vt(ke,Be,this);Ii.set(this,at)};["observe","unobserve","disconnect"].forEach(function(ct){jt.prototype[ct]=function(){var ke;return(ke=Ii.get(this))[ct].apply(ke,arguments)}});const ki=void 0!==Me.ResizeObserver?Me.ResizeObserver:jt,Ve=new R.OlP("PERFECT_SCROLLBAR_CONFIG");class Ee{constructor(ke,Be,at,st){this.x=ke,this.y=Be,this.w=at,this.h=st}}class Y{constructor(ke,Be){this.x=ke,this.y=Be}}const pe=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class De{constructor(ke={}){this.assign(ke)}assign(ke={}){for(const Be in ke)this[Be]=ke[Be]}}let et=(()=>{class ct{constructor(Be,at,st,At,li){this.zone=Be,this.differs=at,this.elementRef=st,this.platformId=At,this.defaults=li,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new e.x,this.disabled=!1,this.psScrollY=new R.vpe,this.psScrollX=new R.vpe,this.psScrollUp=new R.vpe,this.psScrollDown=new R.vpe,this.psScrollLeft=new R.vpe,this.psScrollRight=new R.vpe,this.psYReachEnd=new R.vpe,this.psYReachStart=new R.vpe,this.psXReachEnd=new R.vpe,this.psXReachStart=new R.vpe}ngOnInit(){if(!this.disabled&&(0,s.NF)(this.platformId)){const Be=new De(this.defaults);Be.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new ze(this.elementRef.nativeElement,Be)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new ki(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{pe.forEach(at=>{const st=at.replace(/([A-Z])/g,At=>`-${At.toLowerCase()}`);(0,t.R)(this.elementRef.nativeElement,st).pipe((0,C.e)(20),(0,o.R)(this.ngDestroy)).subscribe(At=>{this[at].emit(At)})})})}}ngOnDestroy(){(0,s.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,s.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Be){Be.disabled&&!Be.disabled.isFirstChange()&&(0,s.NF)(this.platformId)&&Be.disabled.currentValue!==Be.disabled.previousValue&&(!0===Be.disabled.currentValue?this.ngOnDestroy():!1===Be.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(Be){}},0))}geometry(Be="scroll"){return new Ee(this.elementRef.nativeElement[Be+"Left"],this.elementRef.nativeElement[Be+"Top"],this.elementRef.nativeElement[Be+"Width"],this.elementRef.nativeElement[Be+"Height"])}position(Be=!1){return!Be&&this.instance?new Y(this.instance.reach.x||0,this.instance.reach.y||0):new Y(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Be="any"){const at=this.elementRef.nativeElement;return"any"===Be?at.classList.contains("ps--active-x")||at.classList.contains("ps--active-y"):"both"===Be?at.classList.contains("ps--active-x")&&at.classList.contains("ps--active-y"):at.classList.contains("ps--active-"+Be)}scrollTo(Be,at,st){this.disabled||(null==at&&null==st?this.animateScrolling("scrollTop",Be,st):(null!=Be&&this.animateScrolling("scrollLeft",Be,st),null!=at&&this.animateScrolling("scrollTop",at,st)))}scrollToX(Be,at){this.animateScrolling("scrollLeft",Be,at)}scrollToY(Be,at){this.animateScrolling("scrollTop",Be,at)}scrollToTop(Be,at){this.animateScrolling("scrollTop",Be||0,at)}scrollToLeft(Be,at){this.animateScrolling("scrollLeft",Be||0,at)}scrollToRight(Be,at){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Be||0),at)}scrollToBottom(Be,at){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Be||0),at)}scrollToElement(Be,at,st){if("string"==typeof Be&&(Be=this.elementRef.nativeElement.querySelector(Be)),Be){const At=Be.getBoundingClientRect(),li=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",At.left-li.left+this.elementRef.nativeElement.scrollLeft+(at||0),st),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",At.top-li.top+this.elementRef.nativeElement.scrollTop+(at||0),st)}}animateScrolling(Be,at,st){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),st&&"undefined"!=typeof window){if(at!==this.elementRef.nativeElement[Be]){let At=0,li=0,Bt=performance.now(),Rt=this.elementRef.nativeElement[Be];const Li=(Rt-at)/2,si=ci=>{li+=Math.PI/(st/(ci-Bt)),At=Math.round(at+Li+Li*Math.cos(li)),this.elementRef.nativeElement[Be]===Rt&&(li>=Math.PI?this.animateScrolling(Be,at,0):(this.elementRef.nativeElement[Be]=At,Rt=this.elementRef.nativeElement[Be],Bt=ci,this.animation=window.requestAnimationFrame(si)))};window.requestAnimationFrame(si)}}else this.elementRef.nativeElement[Be]=at}}return ct.\u0275fac=function(Be){return new(Be||ct)(R.Y36(R.R0b),R.Y36(R.aQg),R.Y36(R.SBq),R.Y36(R.Lbi),R.Y36(Ve,8))},ct.\u0275dir=R.lG2({type:ct,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:[R.TTD]}),ct})(),Jt=(()=>{class ct{}return ct.\u0275fac=function(Be){return new(Be||ct)},ct.\u0275mod=R.oAB({type:ct}),ct.\u0275inj=R.cJS({imports:[[s.ez],s.ez]}),ct})()},5768:(Ge,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var e=m(842);Object.keys(e).forEach(function(t){"default"!==t&&Object.defineProperty(Q,t,{enumerable:!0,get:function(){return e[t]}})})},2999:(Ge,Q,m)=>{"use strict";var e=m(7977);Q.certificate=m(2390);var t=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Q.RSAPrivateKey=t;var y=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Q.RSAPublicKey=y;var C=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())});Q.PublicKey=C;var o=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),M=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())});Q.PrivateKey=M;var l=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Q.EncryptedPrivateKey=l;var R=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Q.DSAPrivateKey=R,Q.DSAparam=e.define("DSAparam",function(){this.int()});var s=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(L),this.key("publicKey").optional().explicit(1).bitstr())});Q.ECPrivateKey=s;var L=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Q.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Ge,Q,m)=>{"use strict";var e=m(7977),t=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),y=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),C=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(C),this.key("subjectPublicKey").bitstr())}),M=e.define("RelativeDistinguishedName",function(){this.setof(y)}),l=e.define("RDNSequence",function(){this.seqof(M)}),R=e.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),s=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(t),this.key("notAfter").use(t))}),L=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),I=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(C),this.key("issuer").use(R),this.key("validity").use(s),this.key("subject").use(R),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(L).optional())}),A=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(I),this.key("signatureAlgorithm").use(C),this.key("signatureValue").bitstr())});Ge.exports=A},5269:(Ge,Q,m)=>{var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,t=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,y=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,C=m(347),o=m(4330),M=m(3502).Buffer;Ge.exports=function(l,R){var I,s=l.toString(),L=s.match(e);if(L){var E="aes"+L[1],P=M.from(L[2],"hex"),w=M.from(L[3].replace(/[\r\n]/g,""),"base64"),V=C(R,P.slice(0,8),parseInt(L[1],10)).key,j=[],W=o.createDecipheriv(E,V,P);j.push(W.update(w)),j.push(W.final()),I=M.concat(j)}else{var A=s.match(y);I=M.from(A[2].replace(/[\r\n]/g,""),"base64")}return{tag:s.match(t)[1],data:I}}},2772:(Ge,Q,m)=>{var e=m(2999),t=m(2562),y=m(5269),C=m(4330),o=m(9357),M=m(3502).Buffer;function l(s){var L;"object"==typeof s&&!M.isBuffer(s)&&(L=s.passphrase,s=s.key),"string"==typeof s&&(s=M.from(s));var P,w,I=y(s,L),A=I.tag,E=I.data;switch(A){case"CERTIFICATE":w=e.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=e.PublicKey.decode(E,"der")),P=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=e.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw new Error("unknown key id "+P)}case"ENCRYPTED PRIVATE KEY":E=function R(s,L){var I=s.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(s.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=t[s.algorithm.decrypt.cipher.algo.join(".")],P=s.algorithm.decrypt.cipher.iv,w=s.subjectPrivateKey,V=parseInt(E.split("-")[1],10)/8,j=o.pbkdf2Sync(L,I,A,V,"sha1"),W=C.createDecipheriv(E,j,P),te=[];return te.push(W.update(w)),te.push(W.final()),M.concat(te)}(E=e.EncryptedPrivateKey.decode(E,"der"),L);case"PRIVATE KEY":switch(P=(w=e.PrivateKey.decode(E,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:e.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=e.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw new Error("unknown key id "+P)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(E,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(E,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(E,"der")};case"EC PRIVATE KEY":return{curve:(E=e.ECPrivateKey.decode(E,"der")).parameters.value,privateKey:E.privateKey};default:throw new Error("unknown key type "+A)}}Ge.exports=l,l.signature=e.signature},9357:(Ge,Q,m)=>{Q.pbkdf2=m(415),Q.pbkdf2Sync=m(7472)},415:(Ge,Q,m)=>{var M,I,e=m(3502).Buffer,t=m(2697),y=m(8867),C=m(7472),o=m(4566),l=global.crypto&&global.crypto.subtle,R={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"},s=[];function A(){return I||(I=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function E(w,V,j,W,te){return l.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return l.deriveBits({name:"PBKDF2",salt:V,iterations:j,hash:{name:te}},ee,W<<3)}).then(function(ee){return e.from(ee)})}Ge.exports=function(w,V,j,W,te,ee){"function"==typeof te&&(ee=te,te=void 0);var ge=R[(te=te||"sha1").toLowerCase()];if(ge&&"function"==typeof global.Promise){if(t(j,W),w=o(w,y,"Password"),V=o(V,y,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function P(w,V){w.then(function(j){A()(function(){V(null,j)})},function(j){A()(function(){V(j)})})}(function L(w){if(global.process&&!global.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==s[w])return s[w];var V=E(M=M||e.alloc(8),M,10,128,w).then(function(){return!0}).catch(function(){return!1});return s[w]=V,V}(ge).then(function(le){return le?E(w,V,j,W,ge):C(w,V,j,W,te)}),ee)}else A()(function(){var le;try{le=C(w,V,j,W,te)}catch(re){return ee(re)}ee(null,le)})}},8867:Ge=>{var Q;Q=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",Ge.exports=Q},2697:Ge=>{var Q=Math.pow(2,30)-1;Ge.exports=function(m,e){if("number"!=typeof m)throw new TypeError("Iterations not a number");if(m<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>Q||e!=e)throw new TypeError("Bad key length")}},7472:(Ge,Q,m)=>{var e=m(5640),t=m(5634),y=m(5244),C=m(3502).Buffer,o=m(2697),M=m(8867),l=m(4566),R=C.alloc(128),s={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function L(E,P,w){var V=function I(E){return"rmd160"===E||"ripemd160"===E?function w(V){return(new t).update(V).digest()}:"md5"===E?e:function P(V){return y(E).update(V).digest()}}(E),j="sha512"===E||"sha384"===E?128:64;P.length>j?P=V(P):P.length{var e=m(3502).Buffer;Ge.exports=function(t,y,C){if(e.isBuffer(t))return t;if("string"==typeof t)return e.from(t,y);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(C+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Ge,Q,m)=>{Q.publicEncrypt=m(6562),Q.privateDecrypt=m(6705),Q.privateEncrypt=function(t,y){return Q.publicEncrypt(t,y,!0)},Q.publicDecrypt=function(t,y){return Q.privateDecrypt(t,y,!0)}},6945:(Ge,Q,m)=>{var e=m(6386),t=m(3502).Buffer;function y(C){var o=t.allocUnsafe(4);return o.writeUInt32BE(C,0),o}Ge.exports=function(C,o){for(var R,M=t.alloc(0),l=0;M.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},6705:(Ge,Q,m)=>{var e=m(2772),t=m(6945),y=m(9401),C=m(2057),o=m(8466),M=m(6386),l=m(8651),R=m(3502).Buffer;Ge.exports=function(E,P,w){var V;V=E.padding?E.padding:w?1:4;var te,j=e(E),W=j.modulus.byteLength();if(P.length>W||new C(P).cmp(j.modulus)>=0)throw new Error("decryption error");te=w?l(new C(P),j):o(P,j);var ee=R.alloc(W-te.length);if(te=R.concat([ee,te],W),4===V)return function s(A,E){var P=A.modulus.byteLength(),w=M("sha1").update(R.alloc(0)).digest(),V=w.length;if(0!==E[0])throw new Error("decryption error");var j=E.slice(1,V+1),W=E.slice(V+1),te=y(j,t(W,V)),ee=y(W,t(te,P-V-1));if(function I(A,E){A=R.from(A),E=R.from(E);var P=0,w=A.length;A.length!==E.length&&(P++,w=Math.min(A.length,E.length));for(var V=-1;++V=E.length){j++;break}var W=E.slice(2,V-1);if(("0002"!==w.toString("hex")&&!P||"0001"!==w.toString("hex")&&P)&&j++,W.length<8&&j++,j)throw new Error("decryption error");return E.slice(V)}(0,te,w);if(3===V)return te;throw new Error("unknown padding")}},6562:(Ge,Q,m)=>{var e=m(2772),t=m(3753),y=m(6386),C=m(6945),o=m(9401),M=m(2057),l=m(8651),R=m(8466),s=m(3502).Buffer;Ge.exports=function(P,w,V){var j;j=P.padding?P.padding:V?1:4;var te,W=e(P);if(4===j)te=function L(E,P){var w=E.modulus.byteLength(),V=P.length,j=y("sha1").update(s.alloc(0)).digest(),W=j.length,te=2*W;if(V>w-te-2)throw new Error("message too long");var ee=s.alloc(w-V-te-2),ge=w-W-1,le=t(W),re=o(s.concat([j,ee,s.alloc(1,1),P],ge),C(le,ge)),de=o(le,C(re,W));return new M(s.concat([s.alloc(1),de,re],w))}(W,w);else if(1===j)te=function I(E,P,w){var W,V=P.length,j=E.modulus.byteLength();if(V>j-11)throw new Error("message too long");return W=w?s.alloc(j-V-3,255):function A(E){for(var W,P=s.allocUnsafe(E),w=0,V=t(2*E),j=0;w=0)throw new Error("data too long for modulus")}return V?R(te,W):l(te,W)}},8651:(Ge,Q,m)=>{var e=m(2057),t=m(3502).Buffer;Ge.exports=function y(C,o){return t.from(C.toRed(e.mont(o.modulus)).redPow(new e(o.publicExponent)).fromRed().toArray())}},9401:Ge=>{Ge.exports=function(m,e){for(var t=m.length,y=-1;++y{const e=m(8695),t=m(1465),y=m(3210),C=m(2334);function o(M,l,R,s,L){const I=[].slice.call(arguments,1),A=I.length,E="function"==typeof I[A-1];if(!E&&!e())throw new Error("Callback required as last argument");if(!E){if(A<1)throw new Error("Too few arguments provided");return 1===A?(R=l,l=s=void 0):2===A&&!l.getContext&&(s=R,R=l,l=void 0),new Promise(function(P,w){try{const V=t.create(R,s);P(M(V,l,s))}catch(V){w(V)}})}if(A<2)throw new Error("Too few arguments provided");2===A?(L=R,R=l,l=s=void 0):3===A&&(l.getContext&&void 0===L?(L=s,s=void 0):(L=s,s=R,R=l,l=void 0));try{const P=t.create(R,s);L(null,M(P,l,s))}catch(P){L(P)}}Q.create=t.create,Q.toCanvas=o.bind(null,y.render),Q.toDataURL=o.bind(null,y.renderToDataURL),Q.toString=o.bind(null,function(M,l,R){return C.render(M,R)})},8695:Ge=>{Ge.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Ge,Q,m)=>{const e=m(4792).getSymbolSize;Q.getRowColCoords=function(y){if(1===y)return[];const C=Math.floor(y/7)+2,o=e(y),M=145===o?26:2*Math.ceil((o-13)/(2*C-2)),l=[o-7];for(let R=1;R{const e=m(4016),t=["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 y(C){this.mode=e.ALPHANUMERIC,this.data=C}y.getBitsLength=function(o){return 11*Math.floor(o/2)+o%2*6},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(o){let M;for(M=0;M+2<=this.data.length;M+=2){let l=45*t.indexOf(this.data[M]);l+=t.indexOf(this.data[M+1]),o.put(l,11)}this.data.length%2&&o.put(t.indexOf(this.data[M]),6)},Ge.exports=y},2118:Ge=>{function Q(){this.buffer=[],this.length=0}Q.prototype={get:function(m){const e=Math.floor(m/8);return 1==(this.buffer[e]>>>7-m%8&1)},put:function(m,e){for(let t=0;t>>e-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(m){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),m&&(this.buffer[e]|=128>>>this.length%8),this.length++}},Ge.exports=Q},4425:Ge=>{function Q(m){if(!m||m<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=m,this.data=new Uint8Array(m*m),this.reservedBit=new Uint8Array(m*m)}Q.prototype.set=function(m,e,t,y){const C=m*this.size+e;this.data[C]=t,y&&(this.reservedBit[C]=!0)},Q.prototype.get=function(m,e){return this.data[m*this.size+e]},Q.prototype.xor=function(m,e,t){this.data[m*this.size+e]^=t},Q.prototype.isReserved=function(m,e){return this.reservedBit[m*this.size+e]},Ge.exports=Q},5663:(Ge,Q,m)=>{const e=m(8419),t=m(4016);function y(C){this.mode=t.BYTE,this.data=new Uint8Array(e(C))}y.getBitsLength=function(o){return 8*o},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(C){for(let o=0,M=this.data.length;o{const e=m(2259),t=[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],y=[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];Q.getBlocksCount=function(o,M){switch(M){case e.L:return t[4*(o-1)+0];case e.M:return t[4*(o-1)+1];case e.Q:return t[4*(o-1)+2];case e.H:return t[4*(o-1)+3];default:return}},Q.getTotalCodewordsCount=function(o,M){switch(M){case e.L:return y[4*(o-1)+0];case e.M:return y[4*(o-1)+1];case e.Q:return y[4*(o-1)+2];case e.H:return y[4*(o-1)+3];default:return}}},2259:(Ge,Q)=>{Q.L={bit:1},Q.M={bit:0},Q.Q={bit:3},Q.H={bit:2},Q.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},Q.from=function(t,y){if(Q.isValid(t))return t;try{return function m(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Q.L;case"m":case"medium":return Q.M;case"q":case"quartile":return Q.Q;case"h":case"high":return Q.H;default:throw new Error("Unknown EC Level: "+e)}}(t)}catch(C){return y}}},3114:(Ge,Q,m)=>{const e=m(4792).getSymbolSize;Q.getPositions=function(C){const o=e(C);return[[0,0],[o-7,0],[0,o-7]]}},7078:(Ge,Q,m)=>{const e=m(4792),C=e.getBCHDigit(1335);Q.getEncodedBits=function(M,l){const R=M.bit<<3|l;let s=R<<10;for(;e.getBCHDigit(s)-C>=0;)s^=1335<{const m=new Uint8Array(512),e=new Uint8Array(256);(function(){let y=1;for(let C=0;C<255;C++)m[C]=y,e[y]=C,y<<=1,256&y&&(y^=285);for(let C=255;C<512;C++)m[C]=m[C-255]})(),Q.log=function(y){if(y<1)throw new Error("log("+y+")");return e[y]},Q.exp=function(y){return m[y]},Q.mul=function(y,C){return 0===y||0===C?0:m[e[y]+e[C]]}},4388:(Ge,Q,m)=>{const e=m(4016),t=m(4792);function y(C){this.mode=e.KANJI,this.data=C}y.getBitsLength=function(o){return 13*o},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(C){let o;for(o=0;o=33088&&M<=40956)M-=33088;else{if(!(M>=57408&&M<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");M-=49472}M=192*(M>>>8&255)+(255&M),C.put(M,13)}},Ge.exports=y},3667:(Ge,Q)=>{Q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,y,C){switch(t){case Q.Patterns.PATTERN000:return(y+C)%2==0;case Q.Patterns.PATTERN001:return y%2==0;case Q.Patterns.PATTERN010:return C%3==0;case Q.Patterns.PATTERN011:return(y+C)%3==0;case Q.Patterns.PATTERN100:return(Math.floor(y/2)+Math.floor(C/3))%2==0;case Q.Patterns.PATTERN101:return y*C%2+y*C%3==0;case Q.Patterns.PATTERN110:return(y*C%2+y*C%3)%2==0;case Q.Patterns.PATTERN111:return(y*C%3+(y+C)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}Q.isValid=function(y){return null!=y&&""!==y&&!isNaN(y)&&y>=0&&y<=7},Q.from=function(y){return Q.isValid(y)?parseInt(y,10):void 0},Q.getPenaltyN1=function(y){const C=y.size;let o=0,M=0,l=0,R=null,s=null;for(let L=0;L=5&&(o+=M-5+3),R=A,M=1),A=y.get(I,L),A===s?l++:(l>=5&&(o+=l-5+3),s=A,l=1)}M>=5&&(o+=M-5+3),l>=5&&(o+=l-5+3)}return o},Q.getPenaltyN2=function(y){const C=y.size;let o=0;for(let M=0;M=10&&(1488===M||93===M)&&o++,l=l<<1&2047|y.get(s,R),s>=10&&(1488===l||93===l)&&o++}return 40*o},Q.getPenaltyN4=function(y){let C=0;const o=y.data.length;for(let l=0;l{const e=m(4406),t=m(2699);Q.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Q.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Q.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Q.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Q.MIXED={bit:-1},Q.getCharCountIndicator=function(o,M){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(M))throw new Error("Invalid version: "+M);return M>=1&&M<10?o.ccBits[0]:M<27?o.ccBits[1]:o.ccBits[2]},Q.getBestModeForData=function(o){return t.testNumeric(o)?Q.NUMERIC:t.testAlphanumeric(o)?Q.ALPHANUMERIC:t.testKanji(o)?Q.KANJI:Q.BYTE},Q.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},Q.isValid=function(o){return o&&o.bit&&o.ccBits},Q.from=function(o,M){if(Q.isValid(o))return o;try{return function y(C){if("string"!=typeof C)throw new Error("Param is not a string");switch(C.toLowerCase()){case"numeric":return Q.NUMERIC;case"alphanumeric":return Q.ALPHANUMERIC;case"kanji":return Q.KANJI;case"byte":return Q.BYTE;default:throw new Error("Unknown mode: "+C)}}(o)}catch(l){return M}}},7783:(Ge,Q,m)=>{const e=m(4016);function t(y){this.mode=e.NUMERIC,this.data=y.toString()}t.getBitsLength=function(C){return 10*Math.floor(C/3)+(C%3?C%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(C){let o,M,l;for(o=0;o+3<=this.data.length;o+=3)M=this.data.substr(o,3),l=parseInt(M,10),C.put(l,10);const R=this.data.length-o;R>0&&(M=this.data.substr(o),l=parseInt(M,10),C.put(l,3*R+1))},Ge.exports=t},1106:(Ge,Q,m)=>{const e=m(5339);Q.mul=function(y,C){const o=new Uint8Array(y.length+C.length-1);for(let M=0;M=0;){const M=o[0];for(let R=0;R{const e=m(4792),t=m(2259),y=m(2118),C=m(4425),o=m(6221),M=m(3114),l=m(3667),R=m(4655),s=m(2636),L=m(2088),I=m(7078),A=m(4016),E=m(2033);function W(re,de,se){const ye=re.size,v=I.getEncodedBits(de,se);let i,a;for(i=0;i<15;i++)a=1==(v>>i&1),re.set(i<6?i:i<8?i+1:ye-15+i,8,a,!0),re.set(8,i<8?ye-i-1:i<9?15-i-1+1:15-i-1,a,!0);re.set(ye-8,8,1,!0)}function le(re,de,se,ye){let v;if(Array.isArray(re))v=E.fromArray(re);else{if("string"!=typeof re)throw new Error("Invalid data");{let _=de;if(!_){const D=E.rawSplit(re);_=L.getBestVersionForData(D,se)}v=E.fromString(re,_||40)}}const i=L.getBestVersionForData(v,se);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(de){if(de=0&&p<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===p||6===p)||p>=2&&p<=4&&u>=2&&u<=4,!0)}}(u,de),function w(re){const de=re.size;for(let se=8;se=7&&function j(re,de){const se=re.size,ye=L.getEncodedBits(de);let v,i,a;for(let p=0;p<18;p++)v=Math.floor(p/3),i=p%3+se-8-3,a=1==(ye>>p&1),re.set(v,i,a,!0),re.set(i,v,a,!0)}(u,de),function te(re,de){const se=re.size;let ye=-1,v=se-1,i=7,a=0;for(let p=se-1;p>0;p-=2)for(6===p&&p--;;){for(let u=0;u<2;u++)if(!re.isReserved(v,p-u)){let _=!1;a>>i&1)),re.set(v,p-u,_),i--,-1===i&&(a++,i=7)}if(v+=ye,v<0||se<=v){v-=ye,ye=-ye;break}}}(u,a),isNaN(ye)&&(ye=l.getBestMask(u,W.bind(null,u,se))),l.applyMask(ye,u),W(u,se,ye),{modules:u,version:de,errorCorrectionLevel:se,maskPattern:ye,segments:v}}Q.create=function(de,se){if(void 0===de||""===de)throw new Error("No input text");let v,i,ye=t.M;return void 0!==se&&(ye=t.from(se.errorCorrectionLevel,t.M),v=L.from(se.version),i=l.from(se.maskPattern),se.toSJISFunc&&e.setToSJISFunction(se.toSJISFunc)),le(de,v,ye,i)}},2636:(Ge,Q,m)=>{const e=m(1106);function t(y){this.genPoly=void 0,this.degree=y,this.degree&&this.initialize(this.degree)}t.prototype.initialize=function(C){this.degree=C,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(C){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(C.length+this.degree);o.set(C);const M=e.mod(o,this.genPoly),l=this.degree-M.length;if(l>0){const R=new Uint8Array(this.degree);return R.set(M,l),R}return M},Ge.exports=t},2699:(Ge,Q)=>{const m="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const y="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Q.KANJI=new RegExp(t,"g"),Q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Q.BYTE=new RegExp(y,"g"),Q.NUMERIC=new RegExp(m,"g"),Q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const C=new RegExp("^"+t+"$"),o=new RegExp("^"+m+"$"),M=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Q.testKanji=function(R){return C.test(R)},Q.testNumeric=function(R){return o.test(R)},Q.testAlphanumeric=function(R){return M.test(R)}},2033:(Ge,Q,m)=>{const e=m(4016),t=m(7783),y=m(2424),C=m(5663),o=m(4388),M=m(2699),l=m(4792),R=m(4901);function s(j){return unescape(encodeURIComponent(j)).length}function L(j,W,te){const ee=[];let ge;for(;null!==(ge=j.exec(te));)ee.push({data:ge[0],index:ge.index,mode:W,length:ge[0].length});return ee}function I(j){const W=L(M.NUMERIC,e.NUMERIC,j),te=L(M.ALPHANUMERIC,e.ALPHANUMERIC,j);let ee,ge;return l.isKanjiModeEnabled()?(ee=L(M.BYTE,e.BYTE,j),ge=L(M.KANJI,e.KANJI,j)):(ee=L(M.BYTE_KANJI,e.BYTE,j),ge=[]),W.concat(te,ee,ge).sort(function(re,de){return re.index-de.index}).map(function(re){return{data:re.data,mode:re.mode,length:re.length}})}function A(j,W){switch(W){case e.NUMERIC:return t.getBitsLength(j);case e.ALPHANUMERIC:return y.getBitsLength(j);case e.KANJI:return o.getBitsLength(j);case e.BYTE:return C.getBitsLength(j)}}function V(j,W){let te;const ee=e.getBestModeForData(j);if(te=e.from(W,ee),te!==e.BYTE&&te.bit=0?W[W.length-1]:null;return ee&&ee.mode===te.mode?(W[W.length-1].data+=te.data,W):(W.push(te),W)},[])}(de))},Q.rawSplit=function(W){return Q.fromArray(I(W,l.isKanjiModeEnabled()))}},4792:(Ge,Q)=>{let m;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Q.getSymbolSize=function(y){if(!y)throw new Error('"version" cannot be null or undefined');if(y<1||y>40)throw new Error('"version" should be in range from 1 to 40');return 4*y+17},Q.getSymbolTotalCodewords=function(y){return e[y]},Q.getBCHDigit=function(t){let y=0;for(;0!==t;)y++,t>>>=1;return y},Q.setToSJISFunction=function(y){if("function"!=typeof y)throw new Error('"toSJISFunc" is not a valid function.');m=y},Q.isKanjiModeEnabled=function(){return void 0!==m},Q.toSJIS=function(y){return m(y)}},4406:(Ge,Q)=>{Q.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},2088:(Ge,Q,m)=>{const e=m(4792),t=m(4655),y=m(2259),C=m(4016),o=m(4406),l=e.getBCHDigit(7973);function s(A,E){return C.getCharCountIndicator(A,E)+4}function L(A,E){let P=0;return A.forEach(function(w){P+=s(w.mode,E)+w.getBitsLength()}),P}Q.from=function(E,P){return o.isValid(E)?parseInt(E,10):P},Q.getCapacity=function(E,P,w){if(!o.isValid(E))throw new Error("Invalid QR Code version");void 0===w&&(w=C.BYTE);const W=8*(e.getSymbolTotalCodewords(E)-t.getTotalCodewordsCount(E,P));if(w===C.MIXED)return W;const te=W-s(w,E);switch(w){case C.NUMERIC:return Math.floor(te/10*3);case C.ALPHANUMERIC:return Math.floor(te/11*2);case C.KANJI:return Math.floor(te/13);default:return Math.floor(te/8)}},Q.getBestVersionForData=function(E,P){let w;const V=y.from(P,y.M);if(Array.isArray(E)){if(E.length>1)return function I(A,E){for(let P=1;P<=40;P++)if(L(A,P)<=Q.getCapacity(P,E,C.MIXED))return P}(E,V);if(0===E.length)return 1;w=E[0]}else w=E;return function R(A,E,P){for(let w=1;w<=40;w++)if(E<=Q.getCapacity(w,P,A))return w}(w.mode,w.getLength(),V)},Q.getEncodedBits=function(E){if(!o.isValid(E)||E<7)throw new Error("Invalid QR Code version");let P=E<<12;for(;e.getBCHDigit(P)-l>=0;)P^=7973<{const e=m(6355);Q.render=function(o,M,l){let R=l,s=M;void 0===R&&(!M||!M.getContext)&&(R=M,M=void 0),M||(s=function y(){try{return document.createElement("canvas")}catch(C){throw new Error("You need to specify a canvas element")}}()),R=e.getOptions(R);const L=e.getImageWidth(o.modules.size,R),I=s.getContext("2d"),A=I.createImageData(L,L);return e.qrToImageData(A.data,o,R),function t(C,o,M){C.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=M,o.width=M,o.style.height=M+"px",o.style.width=M+"px"}(I,s,L),I.putImageData(A,0,0),s},Q.renderToDataURL=function(o,M,l){let R=l;return void 0===R&&(!M||!M.getContext)&&(R=M,M=void 0),R||(R={}),Q.render(o,M,R).toDataURL(R.type||"image/png",(R.rendererOpts||{}).quality)}},2334:(Ge,Q,m)=>{const e=m(6355);function t(o,M){const l=o.a/255,R=M+'="'+o.hex+'"';return l<1?R+" "+M+'-opacity="'+l.toFixed(2).slice(1)+'"':R}function y(o,M,l){let R=o+M;return void 0!==l&&(R+=" "+l),R}Q.render=function(M,l,R){const s=e.getOptions(l),L=M.modules.size,I=M.modules.data,A=L+2*s.margin,E=s.color.light.a?"':"",P="0&&E>0&&o[A-1]||(R+=L?y("M",E+l,.5+P+l):y("m",s,0),s=0,L=!1),E+1',j=''+E+P+"\n";return"function"==typeof R&&R(null,j),j}},6355:(Ge,Q)=>{function m(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(C){return[C,C]}))),6===t.length&&t.push("F","F");const y=parseInt(t.join(""),16);return{r:y>>24&255,g:y>>16&255,b:y>>8&255,a:255&y,hex:"#"+t.slice(0,6).join("")}}Q.getOptions=function(t){t||(t={}),t.color||(t.color={});const C=t.width&&t.width>=21?t.width:void 0;return{width:C,scale:C?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:m(t.color.dark||"#000000ff"),light:m(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},Q.getScale=function(t,y){return y.width&&y.width>=t+2*y.margin?y.width/(t+2*y.margin):y.scale},Q.getImageWidth=function(t,y){const C=Q.getScale(t,y);return Math.floor((t+2*y.margin)*C)},Q.qrToImageData=function(t,y,C){const o=y.modules.size,M=y.modules.data,l=Q.getScale(o,C),R=Math.floor((o+2*C.margin)*l),s=C.margin*l,L=[C.color.light,C.color.dark];for(let I=0;I=s&&A>=s&&I{"use strict";var e=65536,C=m(3502).Buffer,o=global.crypto||global.msCrypto;Ge.exports=o&&o.getRandomValues?function M(l,R){if(l>4294967295)throw new RangeError("requested too many random bytes");var s=C.allocUnsafe(l);if(l>0)if(l>e)for(var L=0;L{"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=m(3502),y=m(3753),C=t.Buffer,o=t.kMaxLength,M=global.crypto||global.msCrypto,l=Math.pow(2,32)-1;function R(E,P){if("number"!=typeof E||E!=E)throw new TypeError("offset must be a number");if(E>l||E<0)throw new TypeError("offset must be a uint32");if(E>o||E>P)throw new RangeError("offset out of range")}function s(E,P,w){if("number"!=typeof E||E!=E)throw new TypeError("size must be a number");if(E>l||E<0)throw new TypeError("size must be a uint32");if(E+P>w||E>o)throw new RangeError("buffer too small")}function I(E,P,w,V){if(process.browser){var W=new Uint8Array(E.buffer,P,w);return M.getRandomValues(W),V?void process.nextTick(function(){V(null,E)}):E}if(!V)return y(w).copy(E,P),E;y(w,function(ee,ge){if(ee)return V(ee);ge.copy(E,P),V(null,E)})}M&&M.getRandomValues||!process.browser?(Q.randomFill=function L(E,P,w,V){if(!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof P)V=P,P=0,w=E.length;else if("function"==typeof w)V=w,w=E.length-P;else if("function"!=typeof V)throw new TypeError('"cb" argument must be a function');return R(P,E.length),s(w,P,E.length),I(E,P,w,V)},Q.randomFillSync=function A(E,P,w){if(void 0===P&&(P=0),!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return R(P,E.length),void 0===w&&(w=E.length-P),s(w,P,E.length),I(E,P,w)}):(Q.randomFill=e,Q.randomFillSync=e)},891:Ge=>{"use strict";var m={};function e(M,l,R){R||(R=Error);var L=function(I){function A(E,P,w){return I.call(this,function s(I,A,E){return"string"==typeof l?l:l(I,A,E)}(E,P,w))||this}return function Q(M,l){M.prototype=Object.create(l.prototype),M.prototype.constructor=M,M.__proto__=l}(A,I),A}(R);L.prototype.name=R.name,L.prototype.code=M,m[M]=L}function t(M,l){if(Array.isArray(M)){var R=M.length;return M=M.map(function(s){return String(s)}),R>2?"one of ".concat(l," ").concat(M.slice(0,R-1).join(", "),", or ")+M[R-1]:2===R?"one of ".concat(l," ").concat(M[0]," or ").concat(M[1]):"of ".concat(l," ").concat(M[0])}return"of ".concat(l," ").concat(String(M))}e("ERR_INVALID_OPT_VALUE",function(M,l){return'The value "'+l+'" is invalid for option "'+M+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(M,l,R){var s,L;if("string"==typeof l&&function y(M,l,R){return M.substr(!R||R<0?0:+R,l.length)===l}(l,"not ")?(s="must not be",l=l.replace(/^not /,"")):s="must be",function C(M,l,R){return(void 0===R||R>M.length)&&(R=M.length),M.substring(R-l.length,R)===l}(M," argument"))L="The ".concat(M," ").concat(s," ").concat(t(l,"type"));else{var I=function o(M,l,R){return"number"!=typeof R&&(R=0),!(R+l.length>M.length)&&-1!==M.indexOf(l,R)}(M,".")?"property":"argument";L='The "'.concat(M,'" ').concat(I," ").concat(s," ").concat(t(l,"type"))}return L+". Received type ".concat(typeof R)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(M){return"The "+M+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(M){return"Cannot call "+M+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(M){return"Unknown encoding: "+M},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ge.exports.q=m},1339:(Ge,Q,m)=>{"use strict";var e=Object.keys||function(L){var I=[];for(var A in L)I.push(A);return I};Ge.exports=l;var t=m(3154),y=m(520);m(3894)(l,t);for(var C=e(y.prototype),o=0;o{"use strict";Ge.exports=t;var e=m(6025);function t(y){if(!(this instanceof t))return new t(y);e.call(this,y)}m(3894)(t,e),t.prototype._transform=function(y,C,o){o(null,y)}},3154:(Ge,Q,m)=>{"use strict";var e;Ge.exports=v,v.ReadableState=ye,m(9069);var L,y=function(Ze,vt){return Ze.listeners(vt).length},C=m(4970),o=m(3172).Buffer,M=global.Uint8Array||function(){},s=m(4616);L=s&&s.debuglog?s.debuglog("stream"):function(){};var ee,ge,le,I=m(5019),A=m(1920),P=m(7102).getHighWaterMark,w=m(891).q,V=w.ERR_INVALID_ARG_TYPE,j=w.ERR_STREAM_PUSH_AFTER_EOF,W=w.ERR_METHOD_NOT_IMPLEMENTED,te=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(3894)(v,C);var re=A.errorOrDestroy,de=["error","close","destroy","pause","resume"];function ye(z,Ze,vt){e=e||m(1339),"boolean"!=typeof vt&&(vt=Ze instanceof e),this.objectMode=!!(z=z||{}).objectMode,vt&&(this.objectMode=this.objectMode||!!z.readableObjectMode),this.highWaterMark=P(this,z,"readableHighWaterMark",vt),this.buffer=new I,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==z.emitClose,this.autoDestroy=!!z.autoDestroy,this.destroyed=!1,this.defaultEncoding=z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z.encoding&&(ee||(ee=m(3054).s),this.decoder=new ee(z.encoding),this.encoding=z.encoding)}function v(z){if(e=e||m(1339),!(this instanceof v))return new v(z);this._readableState=new ye(z,this,this instanceof e),this.readable=!0,z&&("function"==typeof z.read&&(this._read=z.read),"function"==typeof z.destroy&&(this._destroy=z.destroy)),C.call(this)}function i(z,Ze,vt,Fe,Ne){L("readableAddChunk",Ze);var Le,ce=z._readableState;if(null===Ze)ce.reading=!1,function O(z,Ze){if(L("onEofChunk"),!Ze.ended){if(Ze.decoder){var vt=Ze.decoder.end();vt&&vt.length&&(Ze.buffer.push(vt),Ze.length+=Ze.objectMode?1:vt.length)}Ze.ended=!0,Ze.sync?x(z):(Ze.needReadable=!1,Ze.emittedReadable||(Ze.emittedReadable=!0,r(z)))}}(z,ce);else if(Ne||(Le=function p(z,Ze){var vt;return!function R(z){return o.isBuffer(z)||z instanceof M}(Ze)&&"string"!=typeof Ze&&void 0!==Ze&&!z.objectMode&&(vt=new V("chunk",["string","Buffer","Uint8Array"],Ze)),vt}(ce,Ze)),Le)re(z,Le);else if(ce.objectMode||Ze&&Ze.length>0)if("string"!=typeof Ze&&!ce.objectMode&&Object.getPrototypeOf(Ze)!==o.prototype&&(Ze=function l(z){return o.from(z)}(Ze)),Fe)ce.endEmitted?re(z,new te):a(z,ce,Ze,!0);else if(ce.ended)re(z,new j);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!vt?(Ze=ce.decoder.write(Ze),ce.objectMode||0!==Ze.length?a(z,ce,Ze,!1):b(z,ce)):a(z,ce,Ze,!1)}else Fe||(ce.reading=!1,b(z,ce));return!ce.ended&&(ce.lengthZe.highWaterMark&&(Ze.highWaterMark=function _(z){return z>=u?z=u:(z--,z|=z>>>1,z|=z>>>2,z|=z>>>4,z|=z>>>8,z|=z>>>16,z++),z}(z)),z<=Ze.length?z:Ze.ended?Ze.length:(Ze.needReadable=!0,0))}function x(z){var Ze=z._readableState;L("emitReadable",Ze.needReadable,Ze.emittedReadable),Ze.needReadable=!1,Ze.emittedReadable||(L("emitReadable",Ze.flowing),Ze.emittedReadable=!0,process.nextTick(r,z))}function r(z){var Ze=z._readableState;L("emitReadable_",Ze.destroyed,Ze.length,Ze.ended),!Ze.destroyed&&(Ze.length||Ze.ended)&&(z.emit("readable"),Ze.emittedReadable=!1),Ze.needReadable=!Ze.flowing&&!Ze.ended&&Ze.length<=Ze.highWaterMark,ze(z)}function b(z,Ze){Ze.readingMore||(Ze.readingMore=!0,process.nextTick(Z,z,Ze))}function Z(z,Ze){for(;!Ze.reading&&!Ze.ended&&(Ze.length0,Ze.resumeScheduled&&!Ze.paused?Ze.flowing=!0:z.listenerCount("data")>0&&z.resume()}function ve(z){L("readable nexttick read 0"),z.read(0)}function Re(z,Ze){L("resume",Ze.reading),Ze.reading||z.read(0),Ze.resumeScheduled=!1,z.emit("resume"),ze(z),Ze.flowing&&!Ze.reading&&z.read(0)}function ze(z){var Ze=z._readableState;for(L("flow",Ze.flowing);Ze.flowing&&null!==z.read(););}function Oe(z,Ze){return 0===Ze.length?null:(Ze.objectMode?vt=Ze.buffer.shift():!z||z>=Ze.length?(vt=Ze.decoder?Ze.buffer.join(""):1===Ze.buffer.length?Ze.buffer.first():Ze.buffer.concat(Ze.length),Ze.buffer.clear()):vt=Ze.buffer.consume(z,Ze.decoder),vt);var vt}function K(z){var Ze=z._readableState;L("endReadable",Ze.endEmitted),Ze.endEmitted||(Ze.ended=!0,process.nextTick(Me,Ze,z))}function Me(z,Ze){if(L("endReadableNT",z.endEmitted,z.length),!z.endEmitted&&0===z.length&&(z.endEmitted=!0,Ze.readable=!1,Ze.emit("end"),z.autoDestroy)){var vt=Ze._writableState;(!vt||vt.autoDestroy&&vt.finished)&&Ze.destroy()}}function we(z,Ze){for(var vt=0,Fe=z.length;vt=Ze.highWaterMark:Ze.length>0)||Ze.ended))return L("read: emitReadable",Ze.length,Ze.ended),0===Ze.length&&Ze.ended?K(this):x(this),null;if(0===(z=D(z,Ze))&&Ze.ended)return 0===Ze.length&&K(this),null;var Ne,Fe=Ze.needReadable;return L("need readable",Fe),(0===Ze.length||Ze.length-z0?Oe(z,Ze):null)?(Ze.needReadable=Ze.length<=Ze.highWaterMark,z=0):(Ze.length-=z,Ze.awaitDrain=0),0===Ze.length&&(Ze.ended||(Ze.needReadable=!0),vt!==z&&Ze.ended&&K(this)),null!==Ne&&this.emit("data",Ne),Ne},v.prototype._read=function(z){re(this,new W("_read()"))},v.prototype.pipe=function(z,Ze){var vt=this,Fe=this._readableState;switch(Fe.pipesCount){case 0:Fe.pipes=z;break;case 1:Fe.pipes=[Fe.pipes,z];break;default:Fe.pipes.push(z)}Fe.pipesCount+=1,L("pipe count=%d opts=%j",Fe.pipesCount,Ze);var ce=Ze&&!1===Ze.end||z===process.stdout||z===process.stderr?ft:Pe;function Pe(){L("onend"),z.end()}Fe.endEmitted?process.nextTick(ce):vt.once("end",ce),z.on("unpipe",function Le(it,rt){L("onunpipe"),it===vt&&rt&&!1===rt.hasUnpiped&&(rt.hasUnpiped=!0,function oe(){L("cleanup"),z.removeListener("close",lt),z.removeListener("finish",nt),z.removeListener("drain",q),z.removeListener("error",Ue),z.removeListener("unpipe",Le),vt.removeListener("end",Pe),vt.removeListener("end",ft),vt.removeListener("data",Ce),$=!0,Fe.awaitDrain&&(!z._writableState||z._writableState.needDrain)&&q()}())});var q=function N(z){return function(){var vt=z._readableState;L("pipeOnDrain",vt.awaitDrain),vt.awaitDrain&&vt.awaitDrain--,0===vt.awaitDrain&&y(z,"data")&&(vt.flowing=!0,ze(z))}}(vt);z.on("drain",q);var $=!1;function Ce(it){L("ondata");var rt=z.write(it);L("dest.write",rt),!1===rt&&((1===Fe.pipesCount&&Fe.pipes===z||Fe.pipesCount>1&&-1!==we(Fe.pipes,z))&&!$&&(L("false write response, pause",Fe.awaitDrain),Fe.awaitDrain++),vt.pause())}function Ue(it){L("onerror",it),ft(),z.removeListener("error",Ue),0===y(z,"error")&&re(z,it)}function lt(){z.removeListener("finish",nt),ft()}function nt(){L("onfinish"),z.removeListener("close",lt),ft()}function ft(){L("unpipe"),vt.unpipe(z)}return vt.on("data",Ce),function se(z,Ze,vt){if("function"==typeof z.prependListener)return z.prependListener(Ze,vt);z._events&&z._events[Ze]?Array.isArray(z._events[Ze])?z._events[Ze].unshift(vt):z._events[Ze]=[vt,z._events[Ze]]:z.on(Ze,vt)}(z,"error",Ue),z.once("close",lt),z.once("finish",nt),z.emit("pipe",vt),Fe.flowing||(L("pipe resume"),vt.resume()),z},v.prototype.unpipe=function(z){var Ze=this._readableState,vt={hasUnpiped:!1};if(0===Ze.pipesCount)return this;if(1===Ze.pipesCount)return z&&z!==Ze.pipes||(z||(z=Ze.pipes),Ze.pipes=null,Ze.pipesCount=0,Ze.flowing=!1,z&&z.emit("unpipe",this,vt)),this;if(!z){var Fe=Ze.pipes,Ne=Ze.pipesCount;Ze.pipes=null,Ze.pipesCount=0,Ze.flowing=!1;for(var ce=0;ce0,!1!==Fe.flowing&&this.resume()):"readable"===z&&!Fe.endEmitted&&!Fe.readableListening&&(Fe.readableListening=Fe.needReadable=!0,Fe.flowing=!1,Fe.emittedReadable=!1,L("on readable",Fe.length,Fe.reading),Fe.length?x(this):Fe.reading||process.nextTick(ve,this)),vt},v.prototype.removeListener=function(z,Ze){var vt=C.prototype.removeListener.call(this,z,Ze);return"readable"===z&&process.nextTick(U,this),vt},v.prototype.removeAllListeners=function(z){var Ze=C.prototype.removeAllListeners.apply(this,arguments);return("readable"===z||void 0===z)&&process.nextTick(U,this),Ze},v.prototype.resume=function(){var z=this._readableState;return z.flowing||(L("resume"),z.flowing=!z.readableListening,function be(z,Ze){Ze.resumeScheduled||(Ze.resumeScheduled=!0,process.nextTick(Re,z,Ze))}(this,z)),z.paused=!1,this},v.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},v.prototype.wrap=function(z){var Ze=this,vt=this._readableState,Fe=!1;for(var Ne in z.on("end",function(){if(L("wrapped end"),vt.decoder&&!vt.ended){var Le=vt.decoder.end();Le&&Le.length&&Ze.push(Le)}Ze.push(null)}),z.on("data",function(Le){L("wrapped data"),vt.decoder&&(Le=vt.decoder.write(Le)),vt.objectMode&&null==Le||!(vt.objectMode||Le&&Le.length)||Ze.push(Le)||(Fe=!0,z.pause())}),z)void 0===this[Ne]&&"function"==typeof z[Ne]&&(this[Ne]=function(Pe){return function(){return z[Pe].apply(z,arguments)}}(Ne));for(var ce=0;ce{"use strict";Ge.exports=R;var e=m(891).q,t=e.ERR_METHOD_NOT_IMPLEMENTED,y=e.ERR_MULTIPLE_CALLBACK,C=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,M=m(1339);function l(I,A){var E=this._transformState;E.transforming=!1;var P=E.writecb;if(null===P)return this.emit("error",new y);E.writechunk=null,E.writecb=null,null!=A&&this.push(A),P(I);var w=this._readableState;w.reading=!1,(w.needReadable||w.length{"use strict";function t(ze){var Oe=this;this.next=null,this.entry=null,this.finish=function(){!function Re(ze,Oe,K){var Me=ze.entry;for(ze.entry=null;Me;){var we=Me.callback;Oe.pendingcb--,we(K),Me=Me.next}Oe.corkedRequestsFree.next=ze}(Oe,ze)}}var y;Ge.exports=ye,ye.WritableState=de;var se,C={deprecate:m(4364)},o=m(4970),M=m(3172).Buffer,l=global.Uint8Array||function(){},L=m(1920),A=m(7102).getHighWaterMark,E=m(891).q,P=E.ERR_INVALID_ARG_TYPE,w=E.ERR_METHOD_NOT_IMPLEMENTED,V=E.ERR_MULTIPLE_CALLBACK,j=E.ERR_STREAM_CANNOT_PIPE,W=E.ERR_STREAM_DESTROYED,te=E.ERR_STREAM_NULL_VALUES,ee=E.ERR_STREAM_WRITE_AFTER_END,ge=E.ERR_UNKNOWN_ENCODING,le=L.errorOrDestroy;function re(){}function de(ze,Oe,K){y=y||m(1339),"boolean"!=typeof K&&(K=Oe instanceof y),this.objectMode=!!(ze=ze||{}).objectMode,K&&(this.objectMode=this.objectMode||!!ze.writableObjectMode),this.highWaterMark=A(this,ze,"writableHighWaterMark",K),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===ze.decodeStrings),this.defaultEncoding=ze.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(we){!function O(ze,Oe){var K=ze._writableState,Me=K.sync,we=K.writecb;if("function"!=typeof we)throw new V;if(function D(ze){ze.writing=!1,ze.writecb=null,ze.length-=ze.writelen,ze.writelen=0}(K),Oe)!function _(ze,Oe,K,Me,we){--Oe.pendingcb,K?(process.nextTick(we,Me),process.nextTick(ve,ze,Oe),ze._writableState.errorEmitted=!0,le(ze,Me)):(we(Me),ze._writableState.errorEmitted=!0,le(ze,Me),ve(ze,Oe))}(ze,K,Me,Oe,we);else{var z=Z(K)||ze.destroyed;!z&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&b(ze,K),Me?process.nextTick(x,ze,K,z,we):x(ze,K,z,we)}}(Oe,we)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==ze.emitClose,this.autoDestroy=!!ze.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function ye(ze){var Oe=this instanceof(y=y||m(1339));if(!Oe&&!se.call(ye,this))return new ye(ze);this._writableState=new de(ze,this,Oe),this.writable=!0,ze&&("function"==typeof ze.write&&(this._write=ze.write),"function"==typeof ze.writev&&(this._writev=ze.writev),"function"==typeof ze.destroy&&(this._destroy=ze.destroy),"function"==typeof ze.final&&(this._final=ze.final)),o.call(this)}function u(ze,Oe,K,Me,we,z,Ze){Oe.writelen=Me,Oe.writecb=Ze,Oe.writing=!0,Oe.sync=!0,Oe.destroyed?Oe.onwrite(new W("write")):K?ze._writev(we,Oe.onwrite):ze._write(we,z,Oe.onwrite),Oe.sync=!1}function x(ze,Oe,K,Me){K||function r(ze,Oe){0===Oe.length&&Oe.needDrain&&(Oe.needDrain=!1,ze.emit("drain"))}(ze,Oe),Oe.pendingcb--,Me(),ve(ze,Oe)}function b(ze,Oe){Oe.bufferProcessing=!0;var K=Oe.bufferedRequest;if(ze._writev&&K&&K.next){var we=new Array(Oe.bufferedRequestCount),z=Oe.corkedRequestsFree;z.entry=K;for(var Ze=0,vt=!0;K;)we[Ze]=K,K.isBuf||(vt=!1),K=K.next,Ze+=1;we.allBuffers=vt,u(ze,Oe,!0,Oe.length,we,"",z.finish),Oe.pendingcb++,Oe.lastBufferedRequest=null,z.next?(Oe.corkedRequestsFree=z.next,z.next=null):Oe.corkedRequestsFree=new t(Oe),Oe.bufferedRequestCount=0}else{for(;K;){var Fe=K.chunk;if(u(ze,Oe,!1,Oe.objectMode?1:Fe.length,Fe,K.encoding,K.callback),K=K.next,Oe.bufferedRequestCount--,Oe.writing)break}null===K&&(Oe.lastBufferedRequest=null)}Oe.bufferedRequest=K,Oe.bufferProcessing=!1}function Z(ze){return ze.ending&&0===ze.length&&null===ze.bufferedRequest&&!ze.finished&&!ze.writing}function N(ze,Oe){ze._final(function(K){Oe.pendingcb--,K&&le(ze,K),Oe.prefinished=!0,ze.emit("prefinish"),ve(ze,Oe)})}function ve(ze,Oe){var K=Z(Oe);if(K&&(function U(ze,Oe){!Oe.prefinished&&!Oe.finalCalled&&("function"!=typeof ze._final||Oe.destroyed?(Oe.prefinished=!0,ze.emit("prefinish")):(Oe.pendingcb++,Oe.finalCalled=!0,process.nextTick(N,ze,Oe)))}(ze,Oe),0===Oe.pendingcb&&(Oe.finished=!0,ze.emit("finish"),Oe.autoDestroy))){var Me=ze._readableState;(!Me||Me.autoDestroy&&Me.endEmitted)&&ze.destroy()}return K}m(3894)(ye,o),de.prototype.getBuffer=function(){for(var Oe=this.bufferedRequest,K=[];Oe;)K.push(Oe),Oe=Oe.next;return K},function(){try{Object.defineProperty(de.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ze){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(se=Function.prototype[Symbol.hasInstance],Object.defineProperty(ye,Symbol.hasInstance,{value:function(Oe){return!!se.call(this,Oe)||this===ye&&Oe&&Oe._writableState instanceof de}})):se=function(Oe){return Oe instanceof this},ye.prototype.pipe=function(){le(this,new j)},ye.prototype.write=function(ze,Oe,K){var Me=this._writableState,we=!1,z=!Me.objectMode&&function s(ze){return M.isBuffer(ze)||ze instanceof l}(ze);return z&&!M.isBuffer(ze)&&(ze=function R(ze){return M.from(ze)}(ze)),"function"==typeof Oe&&(K=Oe,Oe=null),z?Oe="buffer":Oe||(Oe=Me.defaultEncoding),"function"!=typeof K&&(K=re),Me.ending?function v(ze,Oe){var K=new ee;le(ze,K),process.nextTick(Oe,K)}(this,K):(z||function i(ze,Oe,K,Me){var we;return null===K?we=new te:"string"!=typeof K&&!Oe.objectMode&&(we=new P("chunk",["string","Buffer"],K)),!we||(le(ze,we),process.nextTick(Me,we),!1)}(this,Me,ze,K))&&(Me.pendingcb++,we=function p(ze,Oe,K,Me,we,z){if(!K){var Ze=function a(ze,Oe,K){return!ze.objectMode&&!1!==ze.decodeStrings&&"string"==typeof Oe&&(Oe=M.from(Oe,K)),Oe}(Oe,Me,we);Me!==Ze&&(K=!0,we="buffer",Me=Ze)}var vt=Oe.objectMode?1:Me.length;Oe.length+=vt;var Fe=Oe.length-1))throw new ge(Oe);return this._writableState.defaultEncoding=Oe,this},Object.defineProperty(ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ye.prototype._write=function(ze,Oe,K){K(new w("_write()"))},ye.prototype._writev=null,ye.prototype.end=function(ze,Oe,K){var Me=this._writableState;return"function"==typeof ze?(K=ze,ze=null,Oe=null):"function"==typeof Oe&&(K=Oe,Oe=null),null!=ze&&this.write(ze,Oe),Me.corked&&(Me.corked=1,this.uncork()),Me.ending||function be(ze,Oe,K){Oe.ending=!0,ve(ze,Oe),K&&(Oe.finished?process.nextTick(K):ze.once("finish",K)),Oe.ended=!0,ze.writable=!1}(this,Me,K),this},Object.defineProperty(ye.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ye.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Oe){!this._writableState||(this._writableState.destroyed=Oe)}}),ye.prototype.destroy=L.destroy,ye.prototype._undestroy=L.undestroy,ye.prototype._destroy=function(ze,Oe){Oe(ze)}},3872:(Ge,Q,m)=>{"use strict";var e;function t(W,te,ee){return te in W?Object.defineProperty(W,te,{value:ee,enumerable:!0,configurable:!0,writable:!0}):W[te]=ee,W}var y=m(7542),C=Symbol("lastResolve"),o=Symbol("lastReject"),M=Symbol("error"),l=Symbol("ended"),R=Symbol("lastPromise"),s=Symbol("handlePromise"),L=Symbol("stream");function I(W,te){return{value:W,done:te}}function A(W){var te=W[C];if(null!==te){var ee=W[L].read();null!==ee&&(W[R]=null,W[C]=null,W[o]=null,te(I(ee,!1)))}}function E(W){process.nextTick(A,W)}var w=Object.getPrototypeOf(function(){}),V=Object.setPrototypeOf((t(e={get stream(){return this[L]},next:function(){var te=this,ee=this[M];if(null!==ee)return Promise.reject(ee);if(this[l])return Promise.resolve(I(void 0,!0));if(this[L].destroyed)return new Promise(function(de,se){process.nextTick(function(){te[M]?se(te[M]):de(I(void 0,!0))})});var le,ge=this[R];if(ge)le=new Promise(function P(W,te){return function(ee,ge){W.then(function(){te[l]?ee(I(void 0,!0)):te[s](ee,ge)},ge)}}(ge,this));else{var re=this[L].read();if(null!==re)return Promise.resolve(I(re,!1));le=new Promise(this[s])}return this[R]=le,le}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var te=this;return new Promise(function(ee,ge){te[L].destroy(null,function(le){le?ge(le):ee(I(void 0,!0))})})}),e),w);Ge.exports=function(te){var ee,ge=Object.create(V,(t(ee={},L,{value:te,writable:!0}),t(ee,C,{value:null,writable:!0}),t(ee,o,{value:null,writable:!0}),t(ee,M,{value:null,writable:!0}),t(ee,l,{value:te._readableState.endEmitted,writable:!0}),t(ee,s,{value:function(re,de){var se=ge[L].read();se?(ge[R]=null,ge[C]=null,ge[o]=null,re(I(se,!1))):(ge[C]=re,ge[o]=de)},writable:!0}),ee));return ge[R]=null,y(te,function(le){if(le&&"ERR_STREAM_PREMATURE_CLOSE"!==le.code){var re=ge[o];return null!==re&&(ge[R]=null,ge[C]=null,ge[o]=null,re(le)),void(ge[M]=le)}var de=ge[C];null!==de&&(ge[R]=null,ge[C]=null,ge[o]=null,de(I(void 0,!0))),ge[l]=!0}),te.on("readable",E.bind(null,ge)),ge}},5019:(Ge,Q,m)=>{"use strict";function e(E,P){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(E);P&&(V=V.filter(function(j){return Object.getOwnPropertyDescriptor(E,j).enumerable})),w.push.apply(w,V)}return w}function y(E,P,w){return P in E?Object.defineProperty(E,P,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[P]=w,E}function o(E,P){for(var w=0;w0?this.tail.next=V:this.head=V,this.tail=V,++this.length}},{key:"unshift",value:function(w){var V={data:w,next:this.head};0===this.length&&(this.tail=V),this.head=V,++this.length}},{key:"shift",value:function(){if(0!==this.length){var w=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(0===this.length)return"";for(var V=this.head,j=""+V.data;V=V.next;)j+=w+V.data;return j}},{key:"concat",value:function(w){if(0===this.length)return R.alloc(0);for(var V=R.allocUnsafe(w>>>0),j=this.head,W=0;j;)A(j.data,V,W),W+=j.data.length,j=j.next;return V}},{key:"consume",value:function(w,V){var j;return wte.length?te.length:w;if(W+=ee===te.length?te:te.slice(0,w),0==(w-=ee)){ee===te.length?(++j,this.head=V.next?V.next:this.tail=null):(this.head=V,V.data=te.slice(ee));break}++j}return this.length-=j,W}},{key:"_getBuffer",value:function(w){var V=R.allocUnsafe(w),j=this.head,W=1;for(j.data.copy(V),w-=j.data.length;j=j.next;){var te=j.data,ee=w>te.length?te.length:w;if(te.copy(V,V.length-w,0,ee),0==(w-=ee)){ee===te.length?(++W,this.head=j.next?j.next:this.tail=null):(this.head=j,j.data=te.slice(ee));break}++W}return this.length-=W,V}},{key:I,value:function(w,V){return L(this,function t(E){for(var P=1;P{"use strict";function m(o,M){y(o,M),e(o)}function e(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function y(o,M){o.emit("error",M)}Ge.exports={destroy:function Q(o,M){var l=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(M?M(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(y,this,o)):process.nextTick(y,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(L){!M&&L?l._writableState?l._writableState.errorEmitted?process.nextTick(e,l):(l._writableState.errorEmitted=!0,process.nextTick(m,l,L)):process.nextTick(m,l,L):M?(process.nextTick(e,l),M(L)):process.nextTick(e,l)}),this)},undestroy:function t(){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 C(o,M){var l=o._readableState,R=o._writableState;l&&l.autoDestroy||R&&R.autoDestroy?o.destroy(M):o.emit("error",M)}}},7542:(Ge,Q,m)=>{"use strict";var e=m(891).q.ERR_STREAM_PREMATURE_CLOSE;function y(){}Ge.exports=function o(M,l,R){if("function"==typeof l)return o(M,null,l);l||(l={}),R=function t(M){var l=!1;return function(){if(!l){l=!0;for(var R=arguments.length,s=new Array(R),L=0;L{Ge.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Ge,Q,m)=>{"use strict";var e,y=m(891).q,C=y.ERR_MISSING_ARGS,o=y.ERR_STREAM_DESTROYED;function M(E){if(E)throw E}function R(E,P,w,V){V=function t(E){var P=!1;return function(){P||(P=!0,E.apply(void 0,arguments))}}(V);var j=!1;E.on("close",function(){j=!0}),void 0===e&&(e=m(7542)),e(E,{readable:P,writable:w},function(te){if(te)return V(te);j=!0,V()});var W=!1;return function(te){if(!j&&!W){if(W=!0,function l(E){return E.setHeader&&"function"==typeof E.abort}(E))return E.abort();if("function"==typeof E.destroy)return E.destroy();V(te||new o("pipe"))}}}function s(E){E()}function L(E,P){return E.pipe(P)}function I(E){return E.length&&"function"==typeof E[E.length-1]?E.pop():M}Ge.exports=function A(){for(var E=arguments.length,P=new Array(E),w=0;w0,function(re){j||(j=re),re&&W.forEach(s),!ge&&(W.forEach(s),V(j))})});return P.reduce(L)}},7102:(Ge,Q,m)=>{"use strict";var e=m(891).q.ERR_INVALID_OPT_VALUE;Ge.exports={getHighWaterMark:function y(C,o,M,l){var R=function t(C,o,M){return null!=C.highWaterMark?C.highWaterMark:o?C[M]:null}(o,l,M);if(null!=R){if(!isFinite(R)||Math.floor(R)!==R||R<0)throw new e(l?M:"highWaterMark",R);return Math.floor(R)}return C.objectMode?16:16384}}},4970:(Ge,Q,m)=>{Ge.exports=m(9069).EventEmitter},5685:(Ge,Q,m)=>{(Q=Ge.exports=m(3154)).Stream=Q,Q.Readable=Q,Q.Writable=m(520),Q.Duplex=m(1339),Q.Transform=m(6025),Q.PassThrough=m(6071),Q.finished=m(7542),Q.pipeline=m(954)},5634:(Ge,Q,m)=>{"use strict";var e=m(3172).Buffer,t=m(3894),y=m(9650),C=new Array(16),o=[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],M=[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],l=[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],R=[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],s=[0,1518500249,1859775393,2400959708,2840853838],L=[1352829926,1548603684,1836072691,2053994217,0];function I(){y.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function A(W,te){return W<>>32-te}function E(W,te,ee,ge,le,re,de,se){return A(W+(te^ee^ge)+re+de|0,se)+le|0}function P(W,te,ee,ge,le,re,de,se){return A(W+(te&ee|~te&ge)+re+de|0,se)+le|0}function w(W,te,ee,ge,le,re,de,se){return A(W+((te|~ee)^ge)+re+de|0,se)+le|0}function V(W,te,ee,ge,le,re,de,se){return A(W+(te&ge|ee&~ge)+re+de|0,se)+le|0}function j(W,te,ee,ge,le,re,de,se){return A(W+(te^(ee|~ge))+re+de|0,se)+le|0}t(I,y),I.prototype._update=function(){for(var W=C,te=0;te<16;++te)W[te]=this._block.readInt32LE(4*te);for(var ee=0|this._a,ge=0|this._b,le=0|this._c,re=0|this._d,de=0|this._e,se=0|this._a,ye=0|this._b,v=0|this._c,i=0|this._d,a=0|this._e,p=0;p<80;p+=1){var u,_;p<16?(u=E(ee,ge,le,re,de,W[o[p]],s[0],l[p]),_=j(se,ye,v,i,a,W[M[p]],L[0],R[p])):p<32?(u=P(ee,ge,le,re,de,W[o[p]],s[1],l[p]),_=V(se,ye,v,i,a,W[M[p]],L[1],R[p])):p<48?(u=w(ee,ge,le,re,de,W[o[p]],s[2],l[p]),_=w(se,ye,v,i,a,W[M[p]],L[2],R[p])):p<64?(u=V(ee,ge,le,re,de,W[o[p]],s[3],l[p]),_=P(se,ye,v,i,a,W[M[p]],L[3],R[p])):(u=j(ee,ge,le,re,de,W[o[p]],s[4],l[p]),_=E(se,ye,v,i,a,W[M[p]],L[4],R[p])),ee=de,de=re,re=A(le,10),le=ge,ge=u,se=a,a=i,i=A(v,10),v=ye,ye=_}var D=this._b+le+i|0;this._b=this._c+re+a|0,this._c=this._d+de+se|0,this._d=this._e+ee+ye|0,this._e=this._a+ge+v|0,this._a=D},I.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var W=e.alloc?e.alloc(20):new e(20);return W.writeInt32LE(this._a,0),W.writeInt32LE(this._b,4),W.writeInt32LE(this._c,8),W.writeInt32LE(this._d,12),W.writeInt32LE(this._e,16),W},Ge.exports=I},1135:(Ge,Q,m)=>{"use strict";m.d(Q,{X:()=>t});var e=m(7579);class t extends e.x{constructor(C){super(),this._value=C}get value(){return this.getValue()}_subscribe(C){const o=super._subscribe(C);return!o.closed&&C.next(this._value),o}getValue(){const{hasError:C,thrownError:o,_value:M}=this;if(C)throw o;return this._throwIfClosed(),M}next(C){super.next(this._value=C)}}},8306:(Ge,Q,m)=>{"use strict";m.d(Q,{y:()=>L});var e=m(930),t=m(727),y=m(8822),C=m(4671);var l=m(2416),R=m(576),s=m(2806);let L=(()=>{class P{constructor(V){V&&(this._subscribe=V)}lift(V){const j=new P;return j.source=this,j.operator=V,j}subscribe(V,j,W){const te=function E(P){return P&&P instanceof e.Lv||function A(P){return P&&(0,R.m)(P.next)&&(0,R.m)(P.error)&&(0,R.m)(P.complete)}(P)&&(0,t.Nn)(P)}(V)?V:new e.Hp(V,j,W);return(0,s.x)(()=>{const{operator:ee,source:ge}=this;te.add(ee?ee.call(te,ge):ge?this._subscribe(te):this._trySubscribe(te))}),te}_trySubscribe(V){try{return this._subscribe(V)}catch(j){V.error(j)}}forEach(V,j){return new(j=I(j))((W,te)=>{let ee;ee=this.subscribe(ge=>{try{V(ge)}catch(le){te(le),null==ee||ee.unsubscribe()}},te,W)})}_subscribe(V){var j;return null===(j=this.source)||void 0===j?void 0:j.subscribe(V)}[y.L](){return this}pipe(...V){return function M(P){return 0===P.length?C.y:1===P.length?P[0]:function(V){return P.reduce((j,W)=>W(j),V)}}(V)(this)}toPromise(V){return new(V=I(V))((j,W)=>{let te;this.subscribe(ee=>te=ee,ee=>W(ee),()=>j(te))})}}return P.create=w=>new P(w),P})();function I(P){var w;return null!==(w=null!=P?P:l.v.Promise)&&void 0!==w?w:Promise}},4707:(Ge,Q,m)=>{"use strict";m.d(Q,{t:()=>y});var e=m(7579),t=m(6063);class y extends e.x{constructor(o=1/0,M=1/0,l=t.l){super(),this._bufferSize=o,this._windowTime=M,this._timestampProvider=l,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=M===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,M)}next(o){const{isStopped:M,_buffer:l,_infiniteTimeWindow:R,_timestampProvider:s,_windowTime:L}=this;M||(l.push(o),!R&&l.push(s.now()+L)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const M=this._innerSubscribe(o),{_infiniteTimeWindow:l,_buffer:R}=this,s=R.slice();for(let L=0;L{"use strict";m.d(Q,{u:()=>R,x:()=>l});var e=m(8306),t=m(727);const C=(0,m(3888).d)(s=>function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var o=m(8737),M=m(2806);let l=(()=>{class s extends e.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(I){const A=new R(this,this);return A.operator=I,A}_throwIfClosed(){if(this.closed)throw new C}next(I){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const A=this.observers.slice();for(const E of A)E.next(I)}})}error(I){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=I;const{observers:A}=this;for(;A.length;)A.shift().error(I)}})}complete(){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:I}=this;for(;I.length;)I.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var I;return(null===(I=this.observers)||void 0===I?void 0:I.length)>0}_trySubscribe(I){return this._throwIfClosed(),super._trySubscribe(I)}_subscribe(I){return this._throwIfClosed(),this._checkFinalizedStatuses(I),this._innerSubscribe(I)}_innerSubscribe(I){const{hasError:A,isStopped:E,observers:P}=this;return A||E?t.Lc:(P.push(I),new t.w0(()=>(0,o.P)(P,I)))}_checkFinalizedStatuses(I){const{hasError:A,thrownError:E,isStopped:P}=this;A?I.error(E):P&&I.complete()}asObservable(){const I=new e.y;return I.source=this,I}}return s.create=(L,I)=>new R(L,I),s})();class R extends l{constructor(L,I){super(),this.destination=L,this.source=I}next(L){var I,A;null===(A=null===(I=this.destination)||void 0===I?void 0:I.next)||void 0===A||A.call(I,L)}error(L){var I,A;null===(A=null===(I=this.destination)||void 0===I?void 0:I.error)||void 0===A||A.call(I,L)}complete(){var L,I;null===(I=null===(L=this.destination)||void 0===L?void 0:L.complete)||void 0===I||I.call(L)}_subscribe(L){var I,A;return null!==(A=null===(I=this.source)||void 0===I?void 0:I.subscribe(L))&&void 0!==A?A:t.Lc}}},930:(Ge,Q,m)=>{"use strict";m.d(Q,{Hp:()=>E,Lv:()=>A});var e=m(576),t=m(727),y=m(2416),C=m(7849),o=m(5032);const M=s("C",void 0,void 0);function s(W,te,ee){return{kind:W,value:te,error:ee}}var L=m(3410),I=m(2806);class A extends t.w0{constructor(te){super(),this.isStopped=!1,te?(this.destination=te,(0,t.Nn)(te)&&te.add(this)):this.destination=j}static create(te,ee,ge){return new E(te,ee,ge)}next(te){this.isStopped?V(function R(W){return s("N",W,void 0)}(te),this):this._next(te)}error(te){this.isStopped?V(function l(W){return s("E",void 0,W)}(te),this):(this.isStopped=!0,this._error(te))}complete(){this.isStopped?V(M,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(te){this.destination.next(te)}_error(te){try{this.destination.error(te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class E extends A{constructor(te,ee,ge){let le;if(super(),(0,e.m)(te))le=te;else if(te){let re;({next:le,error:ee,complete:ge}=te),this&&y.v.useDeprecatedNextContext?(re=Object.create(te),re.unsubscribe=()=>this.unsubscribe()):re=te,le=null==le?void 0:le.bind(re),ee=null==ee?void 0:ee.bind(re),ge=null==ge?void 0:ge.bind(re)}this.destination={next:le?P(le):o.Z,error:P(null!=ee?ee:w),complete:ge?P(ge):o.Z}}}function P(W,te){return(...ee)=>{try{W(...ee)}catch(ge){y.v.useDeprecatedSynchronousErrorHandling?(0,I.O)(ge):(0,C.h)(ge)}}}function w(W){throw W}function V(W,te){const{onStoppedNotification:ee}=y.v;ee&&L.z.setTimeout(()=>ee(W,te))}const j={closed:!0,next:o.Z,error:w,complete:o.Z}},727:(Ge,Q,m)=>{"use strict";m.d(Q,{Lc:()=>M,w0:()=>o,Nn:()=>l});var e=m(576);const y=(0,m(3888).d)(s=>function(I){s(this),this.message=I?`${I.length} errors occurred during unsubscription:\n${I.map((A,E)=>`${E+1}) ${A.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=I});var C=m(8737);class o{constructor(L){this.initialTeardown=L,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let L;if(!this.closed){this.closed=!0;const{_parentage:I}=this;if(I)if(this._parentage=null,Array.isArray(I))for(const P of I)P.remove(this);else I.remove(this);const{initialTeardown:A}=this;if((0,e.m)(A))try{A()}catch(P){L=P instanceof y?P.errors:[P]}const{_teardowns:E}=this;if(E){this._teardowns=null;for(const P of E)try{R(P)}catch(w){L=null!=L?L:[],w instanceof y?L=[...L,...w.errors]:L.push(w)}}if(L)throw new y(L)}}add(L){var I;if(L&&L!==this)if(this.closed)R(L);else{if(L instanceof o){if(L.closed||L._hasParent(this))return;L._addParent(this)}(this._teardowns=null!==(I=this._teardowns)&&void 0!==I?I:[]).push(L)}}_hasParent(L){const{_parentage:I}=this;return I===L||Array.isArray(I)&&I.includes(L)}_addParent(L){const{_parentage:I}=this;this._parentage=Array.isArray(I)?(I.push(L),I):I?[I,L]:L}_removeParent(L){const{_parentage:I}=this;I===L?this._parentage=null:Array.isArray(I)&&(0,C.P)(I,L)}remove(L){const{_teardowns:I}=this;I&&(0,C.P)(I,L),L instanceof o&&L._removeParent(this)}}o.EMPTY=(()=>{const s=new o;return s.closed=!0,s})();const M=o.EMPTY;function l(s){return s instanceof o||s&&"closed"in s&&(0,e.m)(s.remove)&&(0,e.m)(s.add)&&(0,e.m)(s.unsubscribe)}function R(s){(0,e.m)(s)?s():s.unsubscribe()}},2416:(Ge,Q,m)=>{"use strict";m.d(Q,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Ge,Q,m)=>{"use strict";m.d(Q,{a:()=>L});var e=m(8306),t=m(4742),y=m(457),C=m(4671),o=m(3268),M=m(3269),l=m(1810),R=m(5403),s=m(9672);function L(...E){const P=(0,M.yG)(E),w=(0,M.jO)(E),{args:V,keys:j}=(0,t.D)(E);if(0===V.length)return(0,y.D)([],P);const W=new e.y(function I(E,P,w=C.y){return V=>{A(P,()=>{const{length:j}=E,W=new Array(j);let te=j,ee=j;for(let ge=0;ge{const le=(0,y.D)(E[ge],P);let re=!1;le.subscribe(new R.Q(V,de=>{W[ge]=de,re||(re=!0,ee--),ee||V.next(w(W.slice()))},()=>{--te||V.complete()}))},V)},V)}}(V,P,j?te=>(0,l.n)(j,te):C.y));return w?W.pipe((0,o.Z)(w)):W}function A(E,P,w){E?(0,s.f)(w,E,P):P()}},7272:(Ge,Q,m)=>{"use strict";m.d(Q,{z:()=>o});var e=m(8189),y=m(3269),C=m(457);function o(...M){return function t(){return(0,e.J)(1)}()((0,C.D)(M,(0,y.yG)(M)))}},9770:(Ge,Q,m)=>{"use strict";m.d(Q,{P:()=>y});var e=m(8306),t=m(8421);function y(C){return new e.y(o=>{(0,t.Xf)(C()).subscribe(o)})}},515:(Ge,Q,m)=>{"use strict";m.d(Q,{E:()=>t});const t=new(m(8306).y)(o=>o.complete())},4128:(Ge,Q,m)=>{"use strict";m.d(Q,{D:()=>R});var e=m(8306),t=m(4742),y=m(8421),C=m(3269),o=m(5403),M=m(3268),l=m(1810);function R(...s){const L=(0,C.jO)(s),{args:I,keys:A}=(0,t.D)(s),E=new e.y(P=>{const{length:w}=I;if(!w)return void P.complete();const V=new Array(w);let j=w,W=w;for(let te=0;te{ee||(ee=!0,W--),V[te]=ge},()=>j--,void 0,()=>{(!j||!ee)&&(W||P.next(A?(0,l.n)(A,V):V),P.complete())}))}});return L?E.pipe((0,M.Z)(L)):E}},457:(Ge,Q,m)=>{"use strict";m.d(Q,{D:()=>re});var e=m(8421),t=m(5363),y=m(4482);function C(de,se=0){return(0,y.e)((ye,v)=>{v.add(de.schedule(()=>ye.subscribe(v),se))})}var l=m(8306),s=m(2202),L=m(576),I=m(9672);function E(de,se){if(!de)throw new Error("Iterable cannot be null");return new l.y(ye=>{(0,I.f)(ye,se,()=>{const v=de[Symbol.asyncIterator]();(0,I.f)(ye,se,()=>{v.next().then(i=>{i.done?ye.complete():ye.next(i.value)})},0,!0)})})}var P=m(3670),w=m(8239),V=m(1144),j=m(6495),W=m(2206),te=m(4532),ee=m(3260);function re(de,se){return se?function le(de,se){if(null!=de){if((0,P.c)(de))return function o(de,se){return(0,e.Xf)(de).pipe(C(se),(0,t.Q)(se))}(de,se);if((0,V.z)(de))return function R(de,se){return new l.y(ye=>{let v=0;return se.schedule(function(){v===de.length?ye.complete():(ye.next(de[v++]),ye.closed||this.schedule())})})}(de,se);if((0,w.t)(de))return function M(de,se){return(0,e.Xf)(de).pipe(C(se),(0,t.Q)(se))}(de,se);if((0,W.D)(de))return E(de,se);if((0,j.T)(de))return function A(de,se){return new l.y(ye=>{let v;return(0,I.f)(ye,se,()=>{v=de[s.h](),(0,I.f)(ye,se,()=>{let i,a;try{({value:i,done:a}=v.next())}catch(p){return void ye.error(p)}a?ye.complete():ye.next(i)},0,!0)}),()=>(0,L.m)(null==v?void 0:v.return)&&v.return()})}(de,se);if((0,ee.L)(de))return function ge(de,se){return E((0,ee.Q)(de),se)}(de,se)}throw(0,te.z)(de)}(de,se):(0,e.Xf)(de)}},4968:(Ge,Q,m)=>{"use strict";m.d(Q,{R:()=>L});var e=m(8421),t=m(8306),y=m(5577),C=m(1144),o=m(576),M=m(3268);const l=["addListener","removeListener"],R=["addEventListener","removeEventListener"],s=["on","off"];function L(w,V,j,W){if((0,o.m)(j)&&(W=j,j=void 0),W)return L(w,V,j).pipe((0,M.Z)(W));const[te,ee]=function P(w){return(0,o.m)(w.addEventListener)&&(0,o.m)(w.removeEventListener)}(w)?R.map(ge=>le=>w[ge](V,le,j)):function A(w){return(0,o.m)(w.addListener)&&(0,o.m)(w.removeListener)}(w)?l.map(I(w,V)):function E(w){return(0,o.m)(w.on)&&(0,o.m)(w.off)}(w)?s.map(I(w,V)):[];if(!te&&(0,C.z)(w))return(0,y.z)(ge=>L(ge,V,j))((0,e.Xf)(w));if(!te)throw new TypeError("Invalid event target");return new t.y(ge=>{const le=(...re)=>ge.next(1ee(le)})}function I(w,V){return j=>W=>w[j](V,W)}},8421:(Ge,Q,m)=>{"use strict";m.d(Q,{Xf:()=>E});var e=m(5987),t=m(1144),y=m(8239),C=m(8306),o=m(3670),M=m(2206),l=m(4532),R=m(6495),s=m(3260),L=m(576),I=m(7849),A=m(8822);function E(ge){if(ge instanceof C.y)return ge;if(null!=ge){if((0,o.c)(ge))return function P(ge){return new C.y(le=>{const re=ge[A.L]();if((0,L.m)(re.subscribe))return re.subscribe(le);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ge);if((0,t.z)(ge))return function w(ge){return new C.y(le=>{for(let re=0;re{ge.then(re=>{le.closed||(le.next(re),le.complete())},re=>le.error(re)).then(null,I.h)})}(ge);if((0,M.D)(ge))return W(ge);if((0,R.T)(ge))return function j(ge){return new C.y(le=>{for(const re of ge)if(le.next(re),le.closed)return;le.complete()})}(ge);if((0,s.L)(ge))return function te(ge){return W((0,s.Q)(ge))}(ge)}throw(0,l.z)(ge)}function W(ge){return new C.y(le=>{(function ee(ge,le){var re,de,se,ye;return(0,e.mG)(this,void 0,void 0,function*(){try{for(re=(0,e.KL)(ge);!(de=yield re.next()).done;)if(le.next(de.value),le.closed)return}catch(v){se={error:v}}finally{try{de&&!de.done&&(ye=re.return)&&(yield ye.call(re))}finally{if(se)throw se.error}}le.complete()})})(ge,le).catch(re=>le.error(re))})}},6451:(Ge,Q,m)=>{"use strict";m.d(Q,{T:()=>M});var e=m(8189),t=m(8421),y=m(515),C=m(3269),o=m(457);function M(...l){const R=(0,C.yG)(l),s=(0,C._6)(l,1/0),L=l;return L.length?1===L.length?(0,t.Xf)(L[0]):(0,e.J)(s)((0,o.D)(L,R)):y.E}},9646:(Ge,Q,m)=>{"use strict";m.d(Q,{of:()=>y});var e=m(3269),t=m(457);function y(...C){const o=(0,e.yG)(C);return(0,t.D)(C,o)}},2843:(Ge,Q,m)=>{"use strict";m.d(Q,{_:()=>y});var e=m(8306),t=m(576);function y(C,o){const M=(0,t.m)(C)?C:()=>C,l=R=>R.error(M());return new e.y(o?R=>o.schedule(l,0,R):l)}},2805:(Ge,Q,m)=>{"use strict";m.d(Q,{H:()=>o});var e=m(8306),t=m(4986),y=m(3532),C=m(1165);function o(M=0,l,R=t.P){let s=-1;return null!=l&&((0,y.K)(l)?R=l:s=l),new e.y(L=>{let I=(0,C.q)(M)?+M-R.now():M;I<0&&(I=0);let A=0;return R.schedule(function(){L.closed||(L.next(A++),0<=s?this.schedule(void 0,s):L.complete())},I)})}},5403:(Ge,Q,m)=>{"use strict";m.d(Q,{Q:()=>t});var e=m(930);class t extends e.Lv{constructor(C,o,M,l,R){super(C),this.onFinalize=R,this._next=o?function(s){try{o(s)}catch(L){C.error(L)}}:super._next,this._error=l?function(s){try{l(s)}catch(L){C.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=M?function(){try{M()}catch(s){C.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var C;const{closed:o}=this;super.unsubscribe(),!o&&(null===(C=this.onFinalize)||void 0===C||C.call(this))}}},3601:(Ge,Q,m)=>{"use strict";m.d(Q,{e:()=>l});var e=m(4986),t=m(4482),y=m(8421),C=m(5403),M=m(2805);function l(R,s=e.P){return function o(R){return(0,t.e)((s,L)=>{let I=!1,A=null,E=null,P=!1;const w=()=>{if(null==E||E.unsubscribe(),E=null,I){I=!1;const j=A;A=null,L.next(j)}P&&L.complete()},V=()=>{E=null,P&&L.complete()};s.subscribe(new C.Q(L,j=>{I=!0,A=j,E||(0,y.Xf)(R(j)).subscribe(E=new C.Q(L,w,V))},()=>{P=!0,(!I||!E||E.closed)&&L.complete()}))})}(()=>(0,M.H)(R,s))}},262:(Ge,Q,m)=>{"use strict";m.d(Q,{K:()=>C});var e=m(8421),t=m(5403),y=m(4482);function C(o){return(0,y.e)((M,l)=>{let L,R=null,s=!1;R=M.subscribe(new t.Q(l,void 0,void 0,I=>{L=(0,e.Xf)(o(I,C(o)(M))),R?(R.unsubscribe(),R=null,L.subscribe(l)):s=!0})),s&&(R.unsubscribe(),R=null,L.subscribe(l))})}},4351:(Ge,Q,m)=>{"use strict";m.d(Q,{b:()=>y});var e=m(5577),t=m(576);function y(C,o){return(0,t.m)(o)?(0,e.z)(C,o,1):(0,e.z)(C,1)}},8372:(Ge,Q,m)=>{"use strict";m.d(Q,{b:()=>C});var e=m(4986),t=m(4482),y=m(5403);function C(o,M=e.z){return(0,t.e)((l,R)=>{let s=null,L=null,I=null;const A=()=>{if(s){s.unsubscribe(),s=null;const P=L;L=null,R.next(P)}};function E(){const P=I+o,w=M.now();if(w{L=P,I=M.now(),s||(s=M.schedule(E,o),R.add(s))},()=>{A(),R.complete()},void 0,()=>{L=s=null}))})}},6590:(Ge,Q,m)=>{"use strict";m.d(Q,{d:()=>y});var e=m(4482),t=m(5403);function y(C){return(0,e.e)((o,M)=>{let l=!1;o.subscribe(new t.Q(M,R=>{l=!0,M.next(R)},()=>{l||M.next(C),M.complete()}))})}},4086:(Ge,Q,m)=>{"use strict";m.d(Q,{g:()=>s});var e=m(4986),t=m(7272),y=m(5698),C=m(8502),o=m(9718),M=m(5577);function l(L,I){return I?A=>(0,t.z)(I.pipe((0,y.q)(1),(0,C.l)()),A.pipe(l(L))):(0,M.z)((A,E)=>L(A,E).pipe((0,y.q)(1),(0,o.h)(A)))}var R=m(2805);function s(L,I=e.z){const A=(0,R.H)(L,I);return l(()=>A)}},1884:(Ge,Q,m)=>{"use strict";m.d(Q,{x:()=>C});var e=m(4671),t=m(4482),y=m(5403);function C(M,l=e.y){return M=null!=M?M:o,(0,t.e)((R,s)=>{let L,I=!0;R.subscribe(new y.Q(s,A=>{const E=l(A);(I||!M(L,E))&&(I=!1,L=E,s.next(A))}))})}function o(M,l){return M===l}},9300:(Ge,Q,m)=>{"use strict";m.d(Q,{h:()=>y});var e=m(4482),t=m(5403);function y(C,o){return(0,e.e)((M,l)=>{let R=0;M.subscribe(new t.Q(l,s=>C.call(o,s,R++)&&l.next(s)))})}},8746:(Ge,Q,m)=>{"use strict";m.d(Q,{x:()=>t});var e=m(4482);function t(y){return(0,e.e)((C,o)=>{try{C.subscribe(o)}finally{o.add(y)}})}},590:(Ge,Q,m)=>{"use strict";m.d(Q,{P:()=>l});var e=m(6805),t=m(9300),y=m(5698),C=m(6590),o=m(8068),M=m(4671);function l(R,s){const L=arguments.length>=2;return I=>I.pipe(R?(0,t.h)((A,E)=>R(A,E,I)):M.y,(0,y.q)(1),L?(0,C.d)(s):(0,o.T)(()=>new e.K))}},8502:(Ge,Q,m)=>{"use strict";m.d(Q,{l:()=>C});var e=m(4482),t=m(5403),y=m(5032);function C(){return(0,e.e)((o,M)=>{o.subscribe(new t.Q(M,y.Z))})}},4004:(Ge,Q,m)=>{"use strict";m.d(Q,{U:()=>y});var e=m(4482),t=m(5403);function y(C,o){return(0,e.e)((M,l)=>{let R=0;M.subscribe(new t.Q(l,s=>{l.next(C.call(o,s,R++))}))})}},9718:(Ge,Q,m)=>{"use strict";m.d(Q,{h:()=>t});var e=m(4004);function t(y){return(0,e.U)(()=>y)}},8189:(Ge,Q,m)=>{"use strict";m.d(Q,{J:()=>y});var e=m(5577),t=m(4671);function y(C=1/0){return(0,e.z)(t.y,C)}},5577:(Ge,Q,m)=>{"use strict";m.d(Q,{z:()=>R});var e=m(4004),t=m(8421),y=m(4482),C=m(9672),o=m(5403),l=m(576);function R(s,L,I=1/0){return(0,l.m)(L)?R((A,E)=>(0,e.U)((P,w)=>L(A,P,E,w))((0,t.Xf)(s(A,E))),I):("number"==typeof L&&(I=L),(0,y.e)((A,E)=>function M(s,L,I,A,E,P,w,V){const j=[];let W=0,te=0,ee=!1;const ge=()=>{ee&&!j.length&&!W&&L.complete()},le=de=>W{P&&L.next(de),W++;let se=!1;(0,t.Xf)(I(de,te++)).subscribe(new o.Q(L,ye=>{null==E||E(ye),P?le(ye):L.next(ye)},()=>{se=!0},void 0,()=>{if(se)try{for(W--;j.length&&Wre(ye)):re(ye)}ge()}catch(ye){L.error(ye)}}))};return s.subscribe(new o.Q(L,le,()=>{ee=!0,ge()})),()=>{null==V||V()}}(A,E,s,I)))}},5363:(Ge,Q,m)=>{"use strict";m.d(Q,{Q:()=>C});var e=m(9672),t=m(4482),y=m(5403);function C(o,M=0){return(0,t.e)((l,R)=>{l.subscribe(new y.Q(R,s=>(0,e.f)(R,o,()=>R.next(s),M),()=>(0,e.f)(R,o,()=>R.complete(),M),s=>(0,e.f)(R,o,()=>R.error(s),M)))})}},5026:(Ge,Q,m)=>{"use strict";m.d(Q,{R:()=>C});var e=m(4482),t=m(5403);function y(o,M,l,R,s){return(L,I)=>{let A=l,E=M,P=0;L.subscribe(new t.Q(I,w=>{const V=P++;E=A?o(E,w,V):(A=!0,w),R&&I.next(E)},s&&(()=>{A&&I.next(E),I.complete()})))}}function C(o,M){return(0,e.e)(y(o,M,arguments.length>=2,!0))}},3099:(Ge,Q,m)=>{"use strict";m.d(Q,{B:()=>M});var e=m(457),t=m(5698),y=m(7579),C=m(930),o=m(4482);function M(R={}){const{connector:s=(()=>new y.x),resetOnError:L=!0,resetOnComplete:I=!0,resetOnRefCountZero:A=!0}=R;return E=>{let P=null,w=null,V=null,j=0,W=!1,te=!1;const ee=()=>{null==w||w.unsubscribe(),w=null},ge=()=>{ee(),P=V=null,W=te=!1},le=()=>{const re=P;ge(),null==re||re.unsubscribe()};return(0,o.e)((re,de)=>{j++,!te&&!W&&ee();const se=V=null!=V?V:s();de.add(()=>{j--,0===j&&!te&&!W&&(w=l(le,A))}),se.subscribe(de),P||(P=new C.Hp({next:ye=>se.next(ye),error:ye=>{te=!0,ee(),w=l(ge,L,ye),se.error(ye)},complete:()=>{W=!0,ee(),w=l(ge,I),se.complete()}}),(0,e.D)(re).subscribe(P))})(E)}}function l(R,s,...L){return!0===s?(R(),null):!1===s?null:s(...L).pipe((0,t.q)(1)).subscribe(()=>R())}},5684:(Ge,Q,m)=>{"use strict";m.d(Q,{T:()=>t});var e=m(9300);function t(y){return(0,e.h)((C,o)=>y<=o)}},8675:(Ge,Q,m)=>{"use strict";m.d(Q,{O:()=>C});var e=m(7272),t=m(3269),y=m(4482);function C(...o){const M=(0,t.yG)(o);return(0,y.e)((l,R)=>{(M?(0,e.z)(o,l,M):(0,e.z)(o,l)).subscribe(R)})}},3900:(Ge,Q,m)=>{"use strict";m.d(Q,{w:()=>C});var e=m(8421),t=m(4482),y=m(5403);function C(o,M){return(0,t.e)((l,R)=>{let s=null,L=0,I=!1;const A=()=>I&&!s&&R.complete();l.subscribe(new y.Q(R,E=>{null==s||s.unsubscribe();let P=0;const w=L++;(0,e.Xf)(o(E,w)).subscribe(s=new y.Q(R,V=>R.next(M?M(E,V,w,P++):V),()=>{s=null,A()}))},()=>{I=!0,A()}))})}},5698:(Ge,Q,m)=>{"use strict";m.d(Q,{q:()=>C});var e=m(515),t=m(4482),y=m(5403);function C(o){return o<=0?()=>e.E:(0,t.e)((M,l)=>{let R=0;M.subscribe(new y.Q(l,s=>{++R<=o&&(l.next(s),o<=R&&l.complete())}))})}},2722:(Ge,Q,m)=>{"use strict";m.d(Q,{R:()=>o});var e=m(4482),t=m(5403),y=m(8421),C=m(5032);function o(M){return(0,e.e)((l,R)=>{(0,y.Xf)(M).subscribe(new t.Q(R,()=>R.complete(),C.Z)),!R.closed&&l.subscribe(R)})}},8505:(Ge,Q,m)=>{"use strict";m.d(Q,{b:()=>o});var e=m(576),t=m(4482),y=m(5403),C=m(4671);function o(M,l,R){const s=(0,e.m)(M)||l||R?{next:M,error:l,complete:R}:M;return s?(0,t.e)((L,I)=>{var A;null===(A=s.subscribe)||void 0===A||A.call(s);let E=!0;L.subscribe(new y.Q(I,P=>{var w;null===(w=s.next)||void 0===w||w.call(s,P),I.next(P)},()=>{var P;E=!1,null===(P=s.complete)||void 0===P||P.call(s),I.complete()},P=>{var w;E=!1,null===(w=s.error)||void 0===w||w.call(s,P),I.error(P)},()=>{var P,w;E&&(null===(P=s.unsubscribe)||void 0===P||P.call(s)),null===(w=s.finalize)||void 0===w||w.call(s)}))}):C.y}},8068:(Ge,Q,m)=>{"use strict";m.d(Q,{T:()=>C});var e=m(6805),t=m(4482),y=m(5403);function C(M=o){return(0,t.e)((l,R)=>{let s=!1;l.subscribe(new y.Q(R,L=>{s=!0,R.next(L)},()=>s?R.complete():R.error(M())))})}function o(){return new e.K}},7414:(Ge,Q,m)=>{"use strict";m.d(Q,{V:()=>s});var e=m(4986),t=m(1165),y=m(4482),C=m(8421),o=m(3888),M=m(5403),l=m(9672);const R=(0,o.d)(I=>function(E=null){I(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E});function s(I,A){const{first:E,each:P,with:w=L,scheduler:V=(null!=A?A:e.z),meta:j=null}=(0,t.q)(I)?{first:I}:"number"==typeof I?{each:I}:I;if(null==E&&null==P)throw new TypeError("No timeout provided.");return(0,y.e)((W,te)=>{let ee,ge,le=null,re=0;const de=se=>{ge=(0,l.f)(te,V,()=>{try{ee.unsubscribe(),(0,C.Xf)(w({meta:j,lastValue:le,seen:re})).subscribe(te)}catch(ye){te.error(ye)}},se)};ee=W.subscribe(new M.Q(te,se=>{null==ge||ge.unsubscribe(),re++,te.next(le=se),P>0&&de(P)},void 0,void 0,()=>{(null==ge?void 0:ge.closed)||null==ge||ge.unsubscribe(),le=null})),de(null!=E?"number"==typeof E?E:+E-V.now():P)})}function L(I){throw new R(I)}},1365:(Ge,Q,m)=>{"use strict";m.d(Q,{M:()=>l});var e=m(4482),t=m(5403),y=m(8421),C=m(4671),o=m(5032),M=m(3269);function l(...R){const s=(0,M.jO)(R);return(0,e.e)((L,I)=>{const A=R.length,E=new Array(A);let P=R.map(()=>!1),w=!1;for(let V=0;V{E[V]=j,!w&&!P[V]&&(P[V]=!0,(w=P.every(C.y))&&(P=null))},o.Z));L.subscribe(new t.Q(I,V=>{if(w){const j=[V,...E];I.next(s?s(...j):j)}}))})}},4408:(Ge,Q,m)=>{"use strict";m.d(Q,{o:()=>o});var e=m(727);class t extends e.w0{constructor(l,R){super()}schedule(l,R=0){return this}}const y={setInterval(...M){const{delegate:l}=y;return((null==l?void 0:l.setInterval)||setInterval)(...M)},clearInterval(M){const{delegate:l}=y;return((null==l?void 0:l.clearInterval)||clearInterval)(M)},delegate:void 0};var C=m(8737);class o extends t{constructor(l,R){super(l,R),this.scheduler=l,this.work=R,this.pending=!1}schedule(l,R=0){if(this.closed)return this;this.state=l;const s=this.id,L=this.scheduler;return null!=s&&(this.id=this.recycleAsyncId(L,s,R)),this.pending=!0,this.delay=R,this.id=this.id||this.requestAsyncId(L,this.id,R),this}requestAsyncId(l,R,s=0){return y.setInterval(l.flush.bind(l,this),s)}recycleAsyncId(l,R,s=0){if(null!=s&&this.delay===s&&!1===this.pending)return R;y.clearInterval(R)}execute(l,R){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const s=this._execute(l,R);if(s)return s;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(l,R){let L,s=!1;try{this.work(l)}catch(I){s=!0,L=I||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),L}unsubscribe(){if(!this.closed){const{id:l,scheduler:R}=this,{actions:s}=R;this.work=this.state=this.scheduler=null,this.pending=!1,(0,C.P)(s,this),null!=l&&(this.id=this.recycleAsyncId(R,l,null)),this.delay=null,super.unsubscribe()}}}},7565:(Ge,Q,m)=>{"use strict";m.d(Q,{v:()=>y});var e=m(6063);class t{constructor(o,M=t.now){this.schedulerActionCtor=o,this.now=M}schedule(o,M=0,l){return new this.schedulerActionCtor(this,o).schedule(l,M)}}t.now=e.l.now;class y extends t{constructor(o,M=t.now){super(o,M),this.actions=[],this._active=!1,this._scheduled=void 0}flush(o){const{actions:M}=this;if(this._active)return void M.push(o);let l;this._active=!0;do{if(l=o.execute(o.state,o.delay))break}while(o=M.shift());if(this._active=!1,l){for(;o=M.shift();)o.unsubscribe();throw l}}}},3101:(Ge,Q,m)=>{"use strict";m.d(Q,{E:()=>P});var e=m(4408);let y,t=1;const C={};function o(V){return V in C&&(delete C[V],!0)}const M={setImmediate(V){const j=t++;return C[j]=!0,y||(y=Promise.resolve()),y.then(()=>o(j)&&V()),j},clearImmediate(V){o(V)}},{setImmediate:R,clearImmediate:s}=M,L={setImmediate(...V){const{delegate:j}=L;return((null==j?void 0:j.setImmediate)||R)(...V)},clearImmediate(V){const{delegate:j}=L;return((null==j?void 0:j.clearImmediate)||s)(V)},delegate:void 0};var A=m(7565);const P=new class E extends A.v{flush(j){this._active=!0,this._scheduled=void 0;const{actions:W}=this;let te,ee=-1;j=j||W.shift();const ge=W.length;do{if(te=j.execute(j.state,j.delay))break}while(++ee0?super.requestAsyncId(j,W,te):(j.actions.push(this),j._scheduled||(j._scheduled=L.setImmediate(j.flush.bind(j,void 0))))}recycleAsyncId(j,W,te=0){if(null!=te&&te>0||null==te&&this.delay>0)return super.recycleAsyncId(j,W,te);0===j.actions.length&&(L.clearImmediate(W),j._scheduled=void 0)}})},4986:(Ge,Q,m)=>{"use strict";m.d(Q,{z:()=>y,P:()=>C});var e=m(4408);const y=new(m(7565).v)(e.o),C=y},6063:(Ge,Q,m)=>{"use strict";m.d(Q,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(Ge,Q,m)=>{"use strict";m.d(Q,{N:()=>o});var e=m(4408),y=m(7565);const o=new class C extends y.v{}(class t extends e.o{constructor(R,s){super(R,s),this.scheduler=R,this.work=s}schedule(R,s=0){return s>0?super.schedule(R,s):(this.delay=s,this.state=R,this.scheduler.flush(this),this)}execute(R,s){return s>0||this.closed?super.execute(R,s):this._execute(R,s)}requestAsyncId(R,s,L=0){return null!=L&&L>0||null==L&&this.delay>0?super.requestAsyncId(R,s,L):R.flush(this)}})},3410:(Ge,Q,m)=>{"use strict";m.d(Q,{z:()=>e});const e={setTimeout(...t){const{delegate:y}=e;return((null==y?void 0:y.setTimeout)||setTimeout)(...t)},clearTimeout(t){const{delegate:y}=e;return((null==y?void 0:y.clearTimeout)||clearTimeout)(t)},delegate:void 0}},2202:(Ge,Q,m)=>{"use strict";m.d(Q,{h:()=>t});const t=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Ge,Q,m)=>{"use strict";m.d(Q,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Ge,Q,m)=>{"use strict";m.d(Q,{K:()=>t});const t=(0,m(3888).d)(y=>function(){y(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Ge,Q,m)=>{"use strict";m.d(Q,{jO:()=>C,yG:()=>o,_6:()=>M});var e=m(576),t=m(3532);function y(l){return l[l.length-1]}function C(l){return(0,e.m)(y(l))?l.pop():void 0}function o(l){return(0,t.K)(y(l))?l.pop():void 0}function M(l,R){return"number"==typeof y(l)?l.pop():R}},4742:(Ge,Q,m)=>{"use strict";m.d(Q,{D:()=>o});const{isArray:e}=Array,{getPrototypeOf:t,prototype:y,keys:C}=Object;function o(l){if(1===l.length){const R=l[0];if(e(R))return{args:R,keys:null};if(function M(l){return l&&"object"==typeof l&&t(l)===y}(R)){const s=C(R);return{args:s.map(L=>R[L]),keys:s}}}return{args:l,keys:null}}},8737:(Ge,Q,m)=>{"use strict";function e(t,y){if(t){const C=t.indexOf(y);0<=C&&t.splice(C,1)}}m.d(Q,{P:()=>e})},3888:(Ge,Q,m)=>{"use strict";function e(t){const C=t(o=>{Error.call(o),o.stack=(new Error).stack});return C.prototype=Object.create(Error.prototype),C.prototype.constructor=C,C}m.d(Q,{d:()=>e})},1810:(Ge,Q,m)=>{"use strict";function e(t,y){return t.reduce((C,o,M)=>(C[o]=y[M],C),{})}m.d(Q,{n:()=>e})},2806:(Ge,Q,m)=>{"use strict";m.d(Q,{x:()=>y,O:()=>C});var e=m(2416);let t=null;function y(o){if(e.v.useDeprecatedSynchronousErrorHandling){const M=!t;if(M&&(t={errorThrown:!1,error:null}),o(),M){const{errorThrown:l,error:R}=t;if(t=null,l)throw R}}else o()}function C(o){e.v.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=o)}},9672:(Ge,Q,m)=>{"use strict";function e(t,y,C,o=0,M=!1){const l=y.schedule(function(){C(),M?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(l),!M)return l}m.d(Q,{f:()=>e})},4671:(Ge,Q,m)=>{"use strict";function e(t){return t}m.d(Q,{y:()=>e})},1144:(Ge,Q,m)=>{"use strict";m.d(Q,{z:()=>e});const e=t=>t&&"number"==typeof t.length&&"function"!=typeof t},2206:(Ge,Q,m)=>{"use strict";m.d(Q,{D:()=>t});var e=m(576);function t(y){return Symbol.asyncIterator&&(0,e.m)(null==y?void 0:y[Symbol.asyncIterator])}},1165:(Ge,Q,m)=>{"use strict";function e(t){return t instanceof Date&&!isNaN(t)}m.d(Q,{q:()=>e})},576:(Ge,Q,m)=>{"use strict";function e(t){return"function"==typeof t}m.d(Q,{m:()=>e})},3670:(Ge,Q,m)=>{"use strict";m.d(Q,{c:()=>y});var e=m(8822),t=m(576);function y(C){return(0,t.m)(C[e.L])}},6495:(Ge,Q,m)=>{"use strict";m.d(Q,{T:()=>y});var e=m(2202),t=m(576);function y(C){return(0,t.m)(null==C?void 0:C[e.h])}},5191:(Ge,Q,m)=>{"use strict";m.d(Q,{b:()=>y});var e=m(8306),t=m(576);function y(C){return!!C&&(C instanceof e.y||(0,t.m)(C.lift)&&(0,t.m)(C.subscribe))}},8239:(Ge,Q,m)=>{"use strict";m.d(Q,{t:()=>t});var e=m(576);function t(y){return(0,e.m)(null==y?void 0:y.then)}},3260:(Ge,Q,m)=>{"use strict";m.d(Q,{Q:()=>y,L:()=>C});var e=m(5987),t=m(576);function y(o){return(0,e.FC)(this,arguments,function*(){const l=o.getReader();try{for(;;){const{value:R,done:s}=yield(0,e.qq)(l.read());if(s)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(R)}}finally{l.releaseLock()}})}function C(o){return(0,t.m)(null==o?void 0:o.getReader)}},3532:(Ge,Q,m)=>{"use strict";m.d(Q,{K:()=>t});var e=m(576);function t(y){return y&&(0,e.m)(y.schedule)}},4482:(Ge,Q,m)=>{"use strict";m.d(Q,{A:()=>t,e:()=>y});var e=m(576);function t(C){return(0,e.m)(null==C?void 0:C.lift)}function y(C){return o=>{if(t(o))return o.lift(function(M){try{return C(M,this)}catch(l){this.error(l)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ge,Q,m)=>{"use strict";m.d(Q,{Z:()=>C});var e=m(4004);const{isArray:t}=Array;function C(o){return(0,e.U)(M=>function y(o,M){return t(M)?o(...M):o(M)}(o,M))}},5032:(Ge,Q,m)=>{"use strict";function e(){}m.d(Q,{Z:()=>e})},7849:(Ge,Q,m)=>{"use strict";m.d(Q,{h:()=>y});var e=m(2416),t=m(3410);function y(C){t.z.setTimeout(()=>{const{onUnhandledError:o}=e.v;if(!o)throw C;o(C)})}},4532:(Ge,Q,m)=>{"use strict";function e(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(Q,{z:()=>e})},3502:(Ge,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ge.exports=e:(y(e,Q),Q.Buffer=C),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},2038:(Ge,Q,m)=>{"use strict";var C,e=m(3172),t=e.Buffer,y={};for(C in e)!e.hasOwnProperty(C)||"SlowBuffer"===C||"Buffer"===C||(y[C]=e[C]);var o=y.Buffer={};for(C in t)!t.hasOwnProperty(C)||"allocUnsafe"===C||"allocUnsafeSlow"===C||(o[C]=t[C]);if(y.Buffer.prototype=t.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(M,l,R){if("number"==typeof M)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof M);if(M&&void 0===M.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);return t(M,l,R)}),o.alloc||(o.alloc=function(M,l,R){if("number"!=typeof M)throw new TypeError('The "size" argument must be of type number. Received type '+typeof M);if(M<0||M>=2*(1<<30))throw new RangeError('The value "'+M+'" is invalid for option "size"');var s=t(M);return l&&0!==l.length?"string"==typeof R?s.fill(l,R):s.fill(l):s.fill(0),s}),!y.kStringMaxLength)try{y.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(M){}y.constants||(y.constants={MAX_LENGTH:y.kMaxLength},y.kStringMaxLength&&(y.constants.MAX_STRING_LENGTH=y.kStringMaxLength)),Ge.exports=y},6692:(Ge,Q,m)=>{var e=m(3502).Buffer;function t(y,C){this._block=e.alloc(y),this._finalSize=C,this._blockSize=y,this._len=0}t.prototype.update=function(y,C){"string"==typeof y&&(y=e.from(y,C=C||"utf8"));for(var o=this._block,M=this._blockSize,l=y.length,R=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=8*this._len;if(o<=4294967295)this._block.writeUInt32BE(o,this._blockSize-4);else{var M=(4294967295&o)>>>0;this._block.writeUInt32BE((o-M)/4294967296,this._blockSize-8),this._block.writeUInt32BE(M,this._blockSize-4)}this._update(this._block);var R=this._hash();return y?R.toString(y):R},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ge.exports=t},5244:(Ge,Q,m)=>{var e=Ge.exports=function(y){y=y.toLowerCase();var C=e[y];if(!C)throw new Error(y+" is not supported (we accept pull requests)");return new C};e.sha=m(8932),e.sha1=m(7736),e.sha224=m(5044),e.sha256=m(5014),e.sha384=m(6540),e.sha512=m(117)},8932:(Ge,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(L){return L<<5|L>>>27}function R(L){return L<<30|L>>>2}function s(L,I,A,E){return 0===L?I&A|~I&E:2===L?I&A|I&E|A&E:I^A^E}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(L){for(var I=this._w,A=0|this._a,E=0|this._b,P=0|this._c,w=0|this._d,V=0|this._e,j=0;j<16;++j)I[j]=L.readInt32BE(4*j);for(;j<80;++j)I[j]=I[j-3]^I[j-8]^I[j-14]^I[j-16];for(var W=0;W<80;++W){var te=~~(W/20),ee=l(A)+s(te,E,P,w)+V+I[W]+C[te]|0;V=w,w=P,P=R(E),E=A,A=ee}this._a=A+this._a|0,this._b=E+this._b|0,this._c=P+this._c|0,this._d=w+this._d|0,this._e=V+this._e|0},M.prototype._hash=function(){var L=y.allocUnsafe(20);return L.writeInt32BE(0|this._a,0),L.writeInt32BE(0|this._b,4),L.writeInt32BE(0|this._c,8),L.writeInt32BE(0|this._d,12),L.writeInt32BE(0|this._e,16),L},Ge.exports=M},7736:(Ge,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(I){return I<<1|I>>>31}function R(I){return I<<5|I>>>27}function s(I){return I<<30|I>>>2}function L(I,A,E,P){return 0===I?A&E|~A&P:2===I?A&E|A&P|E&P:A^E^P}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(I){for(var A=this._w,E=0|this._a,P=0|this._b,w=0|this._c,V=0|this._d,j=0|this._e,W=0;W<16;++W)A[W]=I.readInt32BE(4*W);for(;W<80;++W)A[W]=l(A[W-3]^A[W-8]^A[W-14]^A[W-16]);for(var te=0;te<80;++te){var ee=~~(te/20),ge=R(E)+L(ee,P,w,V)+j+A[te]+C[ee]|0;j=V,V=w,w=s(P),P=E,E=ge}this._a=E+this._a|0,this._b=P+this._b|0,this._c=w+this._c|0,this._d=V+this._d|0,this._e=j+this._e|0},M.prototype._hash=function(){var I=y.allocUnsafe(20);return I.writeInt32BE(0|this._a,0),I.writeInt32BE(0|this._b,4),I.writeInt32BE(0|this._c,8),I.writeInt32BE(0|this._d,12),I.writeInt32BE(0|this._e,16),I},Ge.exports=M},5044:(Ge,Q,m)=>{var e=m(3894),t=m(5014),y=m(6692),C=m(3502).Buffer,o=new Array(64);function M(){this.init(),this._w=o,y.call(this,64,56)}e(M,t),M.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},M.prototype._hash=function(){var l=C.allocUnsafe(28);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},Ge.exports=M},5014:(Ge,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[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],o=new Array(64);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(E,P,w){return w^E&(P^w)}function R(E,P,w){return E&P|w&(E|P)}function s(E){return(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10)}function L(E){return(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7)}function I(E){return(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3}function A(E){return(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10}e(M,t),M.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},M.prototype._update=function(E){for(var P=this._w,w=0|this._a,V=0|this._b,j=0|this._c,W=0|this._d,te=0|this._e,ee=0|this._f,ge=0|this._g,le=0|this._h,re=0;re<16;++re)P[re]=E.readInt32BE(4*re);for(;re<64;++re)P[re]=A(P[re-2])+P[re-7]+I(P[re-15])+P[re-16]|0;for(var de=0;de<64;++de){var se=le+L(te)+l(te,ee,ge)+C[de]+P[de]|0,ye=s(w)+R(w,V,j)|0;le=ge,ge=ee,ee=te,te=W+se|0,W=j,j=V,V=w,w=se+ye|0}this._a=w+this._a|0,this._b=V+this._b|0,this._c=j+this._c|0,this._d=W+this._d|0,this._e=te+this._e|0,this._f=ee+this._f|0,this._g=ge+this._g|0,this._h=le+this._h|0},M.prototype._hash=function(){var E=y.allocUnsafe(32);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E.writeInt32BE(this._h,28),E},Ge.exports=M},6540:(Ge,Q,m)=>{var e=m(3894),t=m(117),y=m(6692),C=m(3502).Buffer,o=new Array(160);function M(){this.init(),this._w=o,y.call(this,128,112)}e(M,t),M.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},M.prototype._hash=function(){var l=C.allocUnsafe(48);function R(s,L,I){l.writeInt32BE(s,I),l.writeInt32BE(L,I+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),l},Ge.exports=M},117:(Ge,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[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],o=new Array(160);function M(){this.init(),this._w=o,t.call(this,128,112)}function l(V,j,W){return W^V&(j^W)}function R(V,j,W){return V&j|W&(V|j)}function s(V,j){return(V>>>28|j<<4)^(j>>>2|V<<30)^(j>>>7|V<<25)}function L(V,j){return(V>>>14|j<<18)^(V>>>18|j<<14)^(j>>>9|V<<23)}function I(V,j){return(V>>>1|j<<31)^(V>>>8|j<<24)^V>>>7}function A(V,j){return(V>>>1|j<<31)^(V>>>8|j<<24)^(V>>>7|j<<25)}function E(V,j){return(V>>>19|j<<13)^(j>>>29|V<<3)^V>>>6}function P(V,j){return(V>>>19|j<<13)^(j>>>29|V<<3)^(V>>>6|j<<26)}function w(V,j){return V>>>0>>0?1:0}e(M,t),M.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},M.prototype._update=function(V){for(var j=this._w,W=0|this._ah,te=0|this._bh,ee=0|this._ch,ge=0|this._dh,le=0|this._eh,re=0|this._fh,de=0|this._gh,se=0|this._hh,ye=0|this._al,v=0|this._bl,i=0|this._cl,a=0|this._dl,p=0|this._el,u=0|this._fl,_=0|this._gl,D=0|this._hl,O=0;O<32;O+=2)j[O]=V.readInt32BE(4*O),j[O+1]=V.readInt32BE(4*O+4);for(;O<160;O+=2){var x=j[O-30],r=j[O-30+1],b=I(x,r),Z=A(r,x),N=E(x=j[O-4],r=j[O-4+1]),U=P(r,x),Re=j[O-32],ze=j[O-32+1],Oe=Z+j[O-14+1]|0,K=b+j[O-14]+w(Oe,Z)|0;K=(K=K+N+w(Oe=Oe+U|0,U)|0)+Re+w(Oe=Oe+ze|0,ze)|0,j[O]=K,j[O+1]=Oe}for(var Me=0;Me<160;Me+=2){K=j[Me],Oe=j[Me+1];var we=R(W,te,ee),z=R(ye,v,i),Ze=s(W,ye),vt=s(ye,W),Fe=L(le,p),Ne=L(p,le),ce=C[Me],Le=C[Me+1],Pe=l(le,re,de),q=l(p,u,_),$=D+Ne|0,oe=se+Fe+w($,D)|0;oe=(oe=(oe=oe+Pe+w($=$+q|0,q)|0)+ce+w($=$+Le|0,Le)|0)+K+w($=$+Oe|0,Oe)|0;var Ce=vt+z|0,Ue=Ze+we+w(Ce,vt)|0;se=de,D=_,de=re,_=u,re=le,u=p,le=ge+oe+w(p=a+$|0,a)|0,ge=ee,a=i,ee=te,i=v,te=W,v=ye,W=oe+Ue+w(ye=$+Ce|0,$)|0}this._al=this._al+ye|0,this._bl=this._bl+v|0,this._cl=this._cl+i|0,this._dl=this._dl+a|0,this._el=this._el+p|0,this._fl=this._fl+u|0,this._gl=this._gl+_|0,this._hl=this._hl+D|0,this._ah=this._ah+W+w(this._al,ye)|0,this._bh=this._bh+te+w(this._bl,v)|0,this._ch=this._ch+ee+w(this._cl,i)|0,this._dh=this._dh+ge+w(this._dl,a)|0,this._eh=this._eh+le+w(this._el,p)|0,this._fh=this._fh+re+w(this._fl,u)|0,this._gh=this._gh+de+w(this._gl,_)|0,this._hh=this._hh+se+w(this._hl,D)|0},M.prototype._hash=function(){var V=y.allocUnsafe(64);function j(W,te,ee){V.writeInt32BE(W,ee),V.writeInt32BE(te,ee+4)}return j(this._ah,this._al,0),j(this._bh,this._bl,8),j(this._ch,this._cl,16),j(this._dh,this._dl,24),j(this._eh,this._el,32),j(this._fh,this._fl,40),j(this._gh,this._gl,48),j(this._hh,this._hl,56),V},Ge.exports=M},8012:function(Ge,Q,m){!function(e){"use strict";var t={};Ge.exports?(t.bytesToHex=m(6128).bytesToHex,t.convertString=m(5612),Ge.exports=R):(t.bytesToHex=e.convertHex.bytesToHex,t.convertString=e.convertString,e.sha256=R);var y=[];!function(){function s(E){for(var P=Math.sqrt(E),w=2;w<=P;w++)if(!(E%w))return!1;return!0}for(var I=2,A=0;A<64;)s(I)&&(y[A]=4294967296*((E=Math.pow(I,1/3))-(0|E))|0,A++),I++;var E}();var M=[],l=function(s,L,I){for(var A=s[0],E=s[1],P=s[2],w=s[3],V=s[4],j=s[5],W=s[6],te=s[7],ee=0;ee<64;ee++){if(ee<16)M[ee]=0|L[I+ee];else{var ge=M[ee-15],re=M[ee-2];M[ee]=((ge<<25|ge>>>7)^(ge<<14|ge>>>18)^ge>>>3)+M[ee-7]+((re<<15|re>>>17)^(re<<13|re>>>19)^re>>>10)+M[ee-16]}var ye=A&E^A&P^E&P,a=te+((V<<26|V>>>6)^(V<<21|V>>>11)^(V<<7|V>>>25))+(V&j^~V&W)+y[ee]+M[ee];te=W,W=j,j=V,V=w+a|0,w=P,P=E,E=A,A=a+(((A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22))+ye)|0}s[0]=s[0]+A|0,s[1]=s[1]+E|0,s[2]=s[2]+P|0,s[3]=s[3]+w|0,s[4]=s[4]+V|0,s[5]=s[5]+j|0,s[6]=s[6]+W|0,s[7]=s[7]+te|0};function R(s,L){s.constructor===String&&(s=t.convertString.UTF8.stringToBytes(s));var I=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],A=function(s){for(var L=[],I=0,A=0;I>>5]|=s[I]<<24-A%32;return L}(s),E=8*s.length;A[E>>5]|=128<<24-E%32,A[15+(E+64>>9<<4)]=E;for(var P=0;P>>5]>>>24-I%32&255);return L}(I);return L&&L.asBytes?w:L&&L.asString?t.convertString.bytesToString(w):t.bytesToHex(w)}R.x2=function(s,L){return R(R(s,{asBytes:!0}),L)}}(this)},4315:(Ge,Q,m)=>{"use strict";const e=Symbol.prototype.valueOf,t=m(2872);Ge.exports=function y(s,L){switch(t(s)){case"array":return s.slice();case"object":return Object.assign({},s);case"date":return new s.constructor(Number(s));case"map":return new Map(s);case"set":return new Set(s);case"buffer":return function l(s){const L=s.length,I=Buffer.allocUnsafe?Buffer.allocUnsafe(L):Buffer.from(L);return s.copy(I),I}(s);case"symbol":return function R(s){return e?Object(e.call(s)):{}}(s);case"arraybuffer":return function o(s){const L=new s.constructor(s.byteLength);return new Uint8Array(L).set(new Uint8Array(s)),L}(s);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function M(s,L){return new s.constructor(s.buffer,s.byteOffset,s.length)}(s);case"regexp":return function C(s){const L=void 0!==s.flags?s.flags:/\w+$/.exec(s)||void 0,I=new s.constructor(s.source,L);return I.lastIndex=s.lastIndex,I}(s);case"error":return Object.create(s);default:return s}}},295:(Ge,Q,m)=>{Ge.exports=y;var e=m(9069).EventEmitter;function y(){e.call(this)}m(3894)(y,e),y.Readable=m(3154),y.Writable=m(520),y.Duplex=m(1339),y.Transform=m(6025),y.PassThrough=m(6071),y.finished=m(7542),y.pipeline=m(954),y.Stream=y,y.prototype.pipe=function(C,o){var M=this;function l(P){C.writable&&!1===C.write(P)&&M.pause&&M.pause()}function R(){M.readable&&M.resume&&M.resume()}M.on("data",l),C.on("drain",R),!C._isStdio&&(!o||!1!==o.end)&&(M.on("end",L),M.on("close",I));var s=!1;function L(){s||(s=!0,C.end())}function I(){s||(s=!0,"function"==typeof C.destroy&&C.destroy())}function A(P){if(E(),0===e.listenerCount(this,"error"))throw P}function E(){M.removeListener("data",l),C.removeListener("drain",R),M.removeListener("end",L),M.removeListener("close",I),M.removeListener("error",A),C.removeListener("error",A),M.removeListener("end",E),M.removeListener("close",E),C.removeListener("close",E)}return M.on("error",A),C.on("error",A),M.on("end",E),M.on("close",E),C.on("close",E),C.emit("pipe",M),C}},3054:(Ge,Q,m)=>{"use strict";var e=m(858).Buffer,t=e.isEncoding||function(W){switch((W=""+W)&&W.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(W){var te;switch(this.encoding=function C(W){var te=function y(W){if(!W)return"utf8";for(var te;;)switch(W){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return W;default:if(te)return;W=(""+W).toLowerCase(),te=!0}}(W);if("string"!=typeof te&&(e.isEncoding===t||!t(W)))throw new Error("Unknown encoding: "+W);return te||W}(W),this.encoding){case"utf16le":this.text=A,this.end=E,te=4;break;case"utf8":this.fillLast=s,te=4;break;case"base64":this.text=P,this.end=w,te=3;break;default:return this.write=V,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(te)}function M(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function s(W){var te=this.lastTotal-this.lastNeed,ee=function R(W,te,ee){if(128!=(192&te[0]))return W.lastNeed=0,"\ufffd";if(W.lastNeed>1&&te.length>1){if(128!=(192&te[1]))return W.lastNeed=1,"\ufffd";if(W.lastNeed>2&&te.length>2&&128!=(192&te[2]))return W.lastNeed=2,"\ufffd"}}(this,W);return void 0!==ee?ee:this.lastNeed<=W.length?(W.copy(this.lastChar,te,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(W.copy(this.lastChar,te,0,W.length),void(this.lastNeed-=W.length))}function A(W,te){if((W.length-te)%2==0){var ee=W.toString("utf16le",te);if(ee){var ge=ee.charCodeAt(ee.length-1);if(ge>=55296&&ge<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",te,W.length-1)}function E(W){var te=W&&W.length?this.write(W):"";return this.lastNeed?te+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):te}function P(W,te){var ee=(W.length-te)%3;return 0===ee?W.toString("base64",te):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",te,W.length-ee))}function w(W){var te=W&&W.length?this.write(W):"";return this.lastNeed?te+this.lastChar.toString("base64",0,3-this.lastNeed):te}function V(W){return W.toString(this.encoding)}function j(W){return W&&W.length?this.write(W):""}Q.s=o,o.prototype.write=function(W){if(0===W.length)return"";var te,ee;if(this.lastNeed){if(void 0===(te=this.fillLast(W)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee=0?(le>0&&(W.lastNeed=le-1),le):--ge=0?(le>0&&(W.lastNeed=le-2),le):--ge=0?(le>0&&(2===le?le=0:W.lastNeed=le-3),le):0}(this,W,te);if(!this.lastNeed)return W.toString("utf8",te);this.lastTotal=ee;var ge=W.length-(ee-this.lastNeed);return W.copy(this.lastChar,0,ge),W.toString("utf8",te,ge)},o.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},858:(Ge,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ge.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},2167:(Ge,Q,m)=>{var e=m(4606);Q.encode=e.encode,Q.decode=e.decode},4606:(Ge,Q)=>{"use strict";var e=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];Q.encode=function(y){Buffer.isBuffer(y)||(y=new Buffer(y));for(var C=0,o=0,M=0,l=0,R=new Buffer(8*function t(y){var C=Math.floor(y.length/5);return y.length%5==0?C:C+1}(y));C3?(l=(l=s&255>>M)<<(M=(M+5)%8)|(C+1>8-M,C++):(l=s>>8-(M+5)&31,0==(M=(M+5)%8)&&C++),R[o]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(l),o++}for(C=o;C>>(C=(C+5)%8),l++,M=255&o<<8-C)}return R.slice(0,l)}},4364:Ge=>{function m(e){try{if(!global.localStorage)return!1}catch(y){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}Ge.exports=function Q(e,t){if(m("noDeprecation"))return e;var y=!1;return function C(){if(!y){if(m("throwDeprecation"))throw new Error(t);m("traceDeprecation")?console.trace(t):console.warn(t),y=!0}return e.apply(this,arguments)}}},5987:(Ge,Q,m)=>{"use strict";function R(v,i,a,p){return new(a||(a=Promise))(function(_,D){function O(b){try{r(p.next(b))}catch(Z){D(Z)}}function x(b){try{r(p.throw(b))}catch(Z){D(Z)}}function r(b){b.done?_(b.value):function u(_){return _ instanceof a?_:new a(function(D){D(_)})}(b.value).then(O,x)}r((p=p.apply(v,i||[])).next())})}function j(v){return this instanceof j?(this.v=v,this):new j(v)}function W(v,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,p=a.apply(v,i||[]),_=[];return u={},D("next"),D("throw"),D("return"),u[Symbol.asyncIterator]=function(){return this},u;function D(N){p[N]&&(u[N]=function(U){return new Promise(function(ve,be){_.push([N,U,ve,be])>1||O(N,U)})})}function O(N,U){try{!function x(N){N.value instanceof j?Promise.resolve(N.value.v).then(r,b):Z(_[0][2],N)}(p[N](U))}catch(ve){Z(_[0][3],ve)}}function r(N){O("next",N)}function b(N){O("throw",N)}function Z(N,U){N(U),_.shift(),_.length&&O(_[0][0],_[0][1])}}function ee(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=v[Symbol.asyncIterator];return i?i.call(v):(v=function A(v){var i="function"==typeof Symbol&&Symbol.iterator,a=i&&v[i],p=0;if(a)return a.call(v);if(v&&"number"==typeof v.length)return{next:function(){return v&&p>=v.length&&(v=void 0),{value:v&&v[p++],done:!v}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(v),a={},p("next"),p("throw"),p("return"),a[Symbol.asyncIterator]=function(){return this},a);function p(_){a[_]=v[_]&&function(D){return new Promise(function(O,x){!function u(_,D,O,x){Promise.resolve(x).then(function(r){_({value:r,done:O})},D)}(O,x,(D=v[_](D)).done,D.value)})}}}m.d(Q,{mG:()=>R,qq:()=>j,FC:()=>W,KL:()=>ee})},655:(Ge,Q,m)=>{"use strict";function o(v,i,a,p){var D,u=arguments.length,_=u<3?i:null===p?p=Object.getOwnPropertyDescriptor(i,a):p;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(v,i,a,p);else for(var O=v.length-1;O>=0;O--)(D=v[O])&&(_=(u<3?D(_):u>3?D(i,a,_):D(i,a))||_);return u>3&&_&&Object.defineProperty(i,a,_),_}function R(v,i,a,p){return new(a||(a=Promise))(function(_,D){function O(b){try{r(p.next(b))}catch(Z){D(Z)}}function x(b){try{r(p.throw(b))}catch(Z){D(Z)}}function r(b){b.done?_(b.value):function u(_){return _ instanceof a?_:new a(function(D){D(_)})}(b.value).then(O,x)}r((p=p.apply(v,i||[])).next())})}m.d(Q,{gn:()=>o,mG:()=>R})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Ge,Q,m)=>{"use strict";m.d(Q,{l3:()=>y,_j:()=>e,LC:()=>t,ZN:()=>W,jt:()=>o,pV:()=>E,ru:()=>M,F4:()=>L,IO:()=>w,vP:()=>l,SB:()=>s,oB:()=>R,eR:()=>I,X$:()=>C,ZE:()=>te,k1:()=>ee});class e{}class t{}const y="*";function C(ge,le){return{type:7,name:ge,definitions:le,options:{}}}function o(ge,le=null){return{type:4,styles:le,timings:ge}}function M(ge,le=null){return{type:3,steps:ge,options:le}}function l(ge,le=null){return{type:2,steps:ge,options:le}}function R(ge){return{type:6,styles:ge,offset:null}}function s(ge,le,re){return{type:0,name:ge,styles:le,options:re}}function L(ge){return{type:5,steps:ge}}function I(ge,le,re=null){return{type:1,expr:ge,animation:le,options:re}}function E(ge=null){return{type:9,options:ge}}function w(ge,le,re=null){return{type:11,selector:ge,animation:le,options:re}}function j(ge){Promise.resolve(null).then(ge)}class W{constructor(le=0,re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=le+re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(le=>le()),this._onDoneFns=[])}onStart(le){this._onStartFns.push(le)}onDone(le){this._onDoneFns.push(le)}onDestroy(le){this._onDestroyFns.push(le)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){j(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(le=>le()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(le=>le()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(le){this._position=this.totalTime?le*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(le){const re="start"==le?this._onStartFns:this._onDoneFns;re.forEach(de=>de()),re.length=0}}class te{constructor(le){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=le;let re=0,de=0,se=0;const ye=this.players.length;0==ye?j(()=>this._onFinish()):this.players.forEach(v=>{v.onDone(()=>{++re==ye&&this._onFinish()}),v.onDestroy(()=>{++de==ye&&this._onDestroy()}),v.onStart(()=>{++se==ye&&this._onStart()})}),this.totalTime=this.players.reduce((v,i)=>Math.max(v,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(le=>le()),this._onDoneFns=[])}init(){this.players.forEach(le=>le.init())}onStart(le){this._onStartFns.push(le)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(le=>le()),this._onStartFns=[])}onDone(le){this._onDoneFns.push(le)}onDestroy(le){this._onDestroyFns.push(le)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(le=>le.play())}pause(){this.players.forEach(le=>le.pause())}restart(){this.players.forEach(le=>le.restart())}finish(){this._onFinish(),this.players.forEach(le=>le.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(le=>le.destroy()),this._onDestroyFns.forEach(le=>le()),this._onDestroyFns=[])}reset(){this.players.forEach(le=>le.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(le){const re=le*this.totalTime;this.players.forEach(de=>{const se=de.totalTime?Math.min(1,re/de.totalTime):1;de.setPosition(se)})}getPosition(){const le=this.players.reduce((re,de)=>null===re||de.totalTime>re.totalTime?de:re,null);return null!=le?le.getPosition():0}beforeDestroy(){this.players.forEach(le=>{le.beforeDestroy&&le.beforeDestroy()})}triggerCallback(le){const re="start"==le?this._onStartFns:this._onDoneFns;re.forEach(de=>de()),re.length=0}}const ee="!"},5664:(Ge,Q,m)=>{"use strict";m.d(Q,{rt:()=>Ve,s1:()=>D,$s:()=>a,Qr:()=>Zt,kH:()=>jt,mK:()=>vt,Em:()=>O,tE:()=>Ii,qV:()=>Ze,qm:()=>hi,ic:()=>r,Kd:()=>Mt,X6:()=>q,yG:()=>$});var e=m(9808),t=m(5e3),y=m(7579),C=m(727),o=m(1135),M=m(9646),l=m(1159),R=m(8505),s=m(8372),L=m(9300),I=m(4004),A=m(5698),E=m(5684),P=m(1884),w=m(2722),V=m(3191),j=m(925),W=m(7144);function le(Ee,Y){return(Ee.getAttribute(Y)||"").match(/\S+/g)||[]}const re="cdk-describedby-message-container",de="cdk-describedby-message",se="cdk-describedby-host";let ye=0;const v=new Map;let i=null,a=(()=>{class Ee{constructor(pe){this._document=pe}describe(pe,De,et){if(!this._canBeDescribed(pe,De))return;const $t=p(De,et);"string"!=typeof De?(u(De),v.set($t,{messageElement:De,referenceCount:0})):v.has($t)||this._createMessageElement(De,et),this._isElementDescribedByMessage(pe,$t)||this._addMessageReference(pe,$t)}removeDescription(pe,De,et){if(!De||!this._isElementNode(pe))return;const $t=p(De,et);if(this._isElementDescribedByMessage(pe,$t)&&this._removeMessageReference(pe,$t),"string"==typeof De){const Nt=v.get($t);Nt&&0===Nt.referenceCount&&this._deleteMessageElement($t)}i&&0===i.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const pe=this._document.querySelectorAll(`[${se}]`);for(let De=0;De0!=et.indexOf(de));pe.setAttribute("aria-describedby",De.join(" "))}_addMessageReference(pe,De){const et=v.get(De);(function ee(Ee,Y,pe){const De=le(Ee,Y);De.some(et=>et.trim()==pe.trim())||(De.push(pe.trim()),Ee.setAttribute(Y,De.join(" ")))})(pe,"aria-describedby",et.messageElement.id),pe.setAttribute(se,""),et.referenceCount++}_removeMessageReference(pe,De){const et=v.get(De);et.referenceCount--,function ge(Ee,Y,pe){const et=le(Ee,Y).filter($t=>$t!=pe.trim());et.length?Ee.setAttribute(Y,et.join(" ")):Ee.removeAttribute(Y)}(pe,"aria-describedby",et.messageElement.id),pe.removeAttribute(se)}_isElementDescribedByMessage(pe,De){const et=le(pe,"aria-describedby"),$t=v.get(De),Nt=$t&&$t.messageElement.id;return!!Nt&&-1!=et.indexOf(Nt)}_canBeDescribed(pe,De){if(!this._isElementNode(pe))return!1;if(De&&"object"==typeof De)return!0;const et=null==De?"":`${De}`.trim(),$t=pe.getAttribute("aria-label");return!(!et||$t&&$t.trim()===et)}_isElementNode(pe){return pe.nodeType===this._document.ELEMENT_NODE}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function p(Ee,Y){return"string"==typeof Ee?`${Y||""}/${Ee}`:Ee}function u(Ee){Ee.id||(Ee.id=`${de}-${ye++}`)}class _{constructor(Y){this._items=Y,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new y.x,this._typeaheadSubscription=C.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=pe=>pe.disabled,this._pressedLetters=[],this.tabOut=new y.x,this.change=new y.x,Y instanceof t.n_E&&Y.changes.subscribe(pe=>{if(this._activeItem){const et=pe.toArray().indexOf(this._activeItem);et>-1&&et!==this._activeItemIndex&&(this._activeItemIndex=et)}})}skipPredicate(Y){return this._skipPredicateFn=Y,this}withWrap(Y=!0){return this._wrap=Y,this}withVerticalOrientation(Y=!0){return this._vertical=Y,this}withHorizontalOrientation(Y){return this._horizontal=Y,this}withAllowedModifierKeys(Y){return this._allowedModifierKeys=Y,this}withTypeAhead(Y=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,R.b)(pe=>this._pressedLetters.push(pe)),(0,s.b)(Y),(0,L.h)(()=>this._pressedLetters.length>0),(0,I.U)(()=>this._pressedLetters.join(""))).subscribe(pe=>{const De=this._getItemsArray();for(let et=1;et!Y[$t]||this._allowedModifierKeys.indexOf($t)>-1);switch(pe){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&et){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&et){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&et){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&et){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&et){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&et){this.setLastItemActive();break}return;default:return void((et||(0,l.Vb)(Y,"shiftKey"))&&(Y.key&&1===Y.key.length?this._letterKeyStream.next(Y.key.toLocaleUpperCase()):(pe>=l.A&&pe<=l.Z||pe>=l.xE&&pe<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(pe))))}this._pressedLetters=[],Y.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(Y){const pe=this._getItemsArray(),De="number"==typeof Y?Y:pe.indexOf(Y),et=pe[De];this._activeItem=null==et?null:et,this._activeItemIndex=De}_setActiveItemByDelta(Y){this._wrap?this._setActiveInWrapMode(Y):this._setActiveInDefaultMode(Y)}_setActiveInWrapMode(Y){const pe=this._getItemsArray();for(let De=1;De<=pe.length;De++){const et=(this._activeItemIndex+Y*De+pe.length)%pe.length;if(!this._skipPredicateFn(pe[et]))return void this.setActiveItem(et)}}_setActiveInDefaultMode(Y){this._setActiveItemByIndex(this._activeItemIndex+Y,Y)}_setActiveItemByIndex(Y,pe){const De=this._getItemsArray();if(De[Y]){for(;this._skipPredicateFn(De[Y]);)if(!De[Y+=pe])return;this.setActiveItem(Y)}}_getItemsArray(){return this._items instanceof t.n_E?this._items.toArray():this._items}}class D extends _{setActiveItem(Y){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Y),this.activeItem&&this.activeItem.setActiveStyles()}}class O extends _{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Y){return this._origin=Y,this}setActiveItem(Y){super.setActiveItem(Y),this.activeItem&&this.activeItem.focus(this._origin)}}let r=(()=>{class Ee{constructor(pe){this._platform=pe}isDisabled(pe){return pe.hasAttribute("disabled")}isVisible(pe){return function Z(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(pe)&&"visible"===getComputedStyle(pe).visibility}isTabbable(pe){if(!this._platform.isBrowser)return!1;const De=function b(Ee){try{return Ee.frameElement}catch(Y){return null}}(function we(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(pe));if(De&&(-1===Oe(De)||!this.isVisible(De)))return!1;let et=pe.nodeName.toLowerCase(),$t=Oe(pe);return pe.hasAttribute("contenteditable")?-1!==$t:!("iframe"===et||"object"===et||this._platform.WEBKIT&&this._platform.IOS&&!function K(Ee){let Y=Ee.nodeName.toLowerCase(),pe="input"===Y&&Ee.type;return"text"===pe||"password"===pe||"select"===Y||"textarea"===Y}(pe))&&("audio"===et?!!pe.hasAttribute("controls")&&-1!==$t:"video"===et?-1!==$t&&(null!==$t||this._platform.FIREFOX||pe.hasAttribute("controls")):pe.tabIndex>=0)}isFocusable(pe,De){return function Me(Ee){return!function U(Ee){return function be(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function N(Ee){let Y=Ee.nodeName.toLowerCase();return"input"===Y||"select"===Y||"button"===Y||"textarea"===Y}(Ee)||function ve(Ee){return function Re(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||ze(Ee))}(pe)&&!this.isDisabled(pe)&&((null==De?void 0:De.ignoreVisibility)||this.isVisible(pe))}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(j.t4))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function ze(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Y=Ee.getAttribute("tabindex");return!(!Y||isNaN(parseInt(Y,10)))}function Oe(Ee){if(!ze(Ee))return null;const Y=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Y)?-1:Y}class z{constructor(Y,pe,De,et,$t=!1){this._element=Y,this._checker=pe,this._ngZone=De,this._document=et,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,$t||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Y){this._enabled=Y,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}destroy(){const Y=this._startAnchor,pe=this._endAnchor;Y&&(Y.removeEventListener("focus",this.startAnchorListener),Y.remove()),pe&&(pe.removeEventListener("focus",this.endAnchorListener),pe.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(Y){return new Promise(pe=>{this._executeOnStable(()=>pe(this.focusInitialElement(Y)))})}focusFirstTabbableElementWhenReady(Y){return new Promise(pe=>{this._executeOnStable(()=>pe(this.focusFirstTabbableElement(Y)))})}focusLastTabbableElementWhenReady(Y){return new Promise(pe=>{this._executeOnStable(()=>pe(this.focusLastTabbableElement(Y)))})}_getRegionBoundary(Y){const pe=this._element.querySelectorAll(`[cdk-focus-region-${Y}], [cdkFocusRegion${Y}], [cdk-focus-${Y}]`);return"start"==Y?pe.length?pe[0]:this._getFirstTabbableElement(this._element):pe.length?pe[pe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Y){const pe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(pe){if(!this._checker.isFocusable(pe)){const De=this._getFirstTabbableElement(pe);return null==De||De.focus(Y),!!De}return pe.focus(Y),!0}return this.focusFirstTabbableElement(Y)}focusFirstTabbableElement(Y){const pe=this._getRegionBoundary("start");return pe&&pe.focus(Y),!!pe}focusLastTabbableElement(Y){const pe=this._getRegionBoundary("end");return pe&&pe.focus(Y),!!pe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Y){if(this._checker.isFocusable(Y)&&this._checker.isTabbable(Y))return Y;const pe=Y.children;for(let De=0;De=0;De--){const et=pe[De].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(pe[De]):null;if(et)return et}return null}_createAnchor(){const Y=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Y),Y.classList.add("cdk-visually-hidden"),Y.classList.add("cdk-focus-trap-anchor"),Y.setAttribute("aria-hidden","true"),Y}_toggleAnchorTabIndex(Y,pe){Y?pe.setAttribute("tabindex","0"):pe.removeAttribute("tabindex")}toggleAnchors(Y){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}_executeOnStable(Y){this._ngZone.isStable?Y():this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(Y)}}let Ze=(()=>{class Ee{constructor(pe,De,et){this._checker=pe,this._ngZone=De,this._document=et}create(pe,De=!1){return new z(pe,this._checker,this._ngZone,this._document,De)}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(r),t.LFG(t.R0b),t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),vt=(()=>{class Ee{constructor(pe,De,et){this._elementRef=pe,this._focusTrapFactory=De,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(pe){this.focusTrap.enabled=(0,V.Ig)(pe)}get autoCapture(){return this._autoCapture}set autoCapture(pe){this._autoCapture=(0,V.Ig)(pe)}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(pe){const De=pe.autoCapture;De&&!De.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,j.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.Y36(t.SBq),t.Y36(Ze),t.Y36(e.K0))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[t.TTD]}),Ee})();function q(Ee){return 0===Ee.offsetX&&0===Ee.offsetY}function $(Ee){const Y=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Y||-1!==Y.identifier||null!=Y.radiusX&&1!==Y.radiusX||null!=Y.radiusY&&1!==Y.radiusY)}const oe=new t.OlP("cdk-input-modality-detector-options"),Ce={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},lt=(0,j.i$)({passive:!0,capture:!0});let nt=(()=>{class Ee{constructor(pe,De,et,$t){this._platform=pe,this._mostRecentTarget=null,this._modality=new o.X(null),this._lastTouchMs=0,this._onKeydown=Nt=>{var Jt,ct;(null===(ct=null===(Jt=this._options)||void 0===Jt?void 0:Jt.ignoreKeys)||void 0===ct?void 0:ct.some(ke=>ke===Nt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,j.sA)(Nt))},this._onMousedown=Nt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(q(Nt)?"keyboard":"mouse"),this._mostRecentTarget=(0,j.sA)(Nt))},this._onTouchstart=Nt=>{$(Nt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,j.sA)(Nt))},this._options=Object.assign(Object.assign({},Ce),$t),this.modalityDetected=this._modality.pipe((0,E.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,P.x)()),pe.isBrowser&&De.runOutsideAngular(()=>{et.addEventListener("keydown",this._onKeydown,lt),et.addEventListener("mousedown",this._onMousedown,lt),et.addEventListener("touchstart",this._onTouchstart,lt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,lt),document.removeEventListener("mousedown",this._onMousedown,lt),document.removeEventListener("touchstart",this._onTouchstart,lt))}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(j.t4),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(oe,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const ft=new t.OlP("liveAnnouncerElement",{providedIn:"root",factory:function it(){return null}}),rt=new t.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Mt=(()=>{class Ee{constructor(pe,De,et,$t){this._ngZone=De,this._defaultOptions=$t,this._document=et,this._liveElement=pe||this._createLiveElement()}announce(pe,...De){const et=this._defaultOptions;let $t,Nt;return 1===De.length&&"number"==typeof De[0]?Nt=De[0]:[$t,Nt]=De,this.clear(),clearTimeout(this._previousTimeout),$t||($t=et&&et.politeness?et.politeness:"polite"),null==Nt&&et&&(Nt=et.duration),this._liveElement.setAttribute("aria-live",$t),this._ngZone.runOutsideAngular(()=>new Promise(Jt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=pe,Jt(),"number"==typeof Nt&&(this._previousTimeout=setTimeout(()=>this.clear(),Nt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var pe;clearTimeout(this._previousTimeout),null===(pe=this._liveElement)||void 0===pe||pe.remove(),this._liveElement=null}_createLiveElement(){const pe="cdk-live-announcer-element",De=this._document.getElementsByClassName(pe),et=this._document.createElement("div");for(let $t=0;$t{class Ee{constructor(pe,De,et,$t){this._elementRef=pe,this._liveAnnouncer=De,this._contentObserver=et,this._ngZone=$t,this._politeness="polite"}get politeness(){return this._politeness}set politeness(pe){this._politeness="off"===pe||"assertive"===pe?pe:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const De=this._elementRef.nativeElement.textContent;De!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(De,this._politeness),this._previousAnnouncedText=De)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.Y36(t.SBq),t.Y36(Mt),t.Y36(W.yq),t.Y36(t.R0b))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Ee})();const Ft=new t.OlP("cdk-focus-monitor-default-options"),Vt=(0,j.i$)({passive:!0,capture:!0});let Ii=(()=>{class Ee{constructor(pe,De,et,$t,Nt){this._ngZone=pe,this._platform=De,this._inputModalityDetector=et,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=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new y.x,this._rootNodeFocusAndBlurListener=Jt=>{const ct=(0,j.sA)(Jt),ke="focus"===Jt.type?this._onFocus:this._onBlur;for(let Be=ct;Be;Be=Be.parentElement)ke.call(this,Jt,Be)},this._document=$t,this._detectionMode=(null==Nt?void 0:Nt.detectionMode)||0}monitor(pe,De=!1){const et=(0,V.fI)(pe);if(!this._platform.isBrowser||1!==et.nodeType)return(0,M.of)(null);const $t=(0,j.kV)(et)||this._getDocument(),Nt=this._elementInfo.get(et);if(Nt)return De&&(Nt.checkChildren=!0),Nt.subject;const Jt={checkChildren:De,subject:new y.x,rootNode:$t};return this._elementInfo.set(et,Jt),this._registerGlobalListeners(Jt),Jt.subject}stopMonitoring(pe){const De=(0,V.fI)(pe),et=this._elementInfo.get(De);et&&(et.subject.complete(),this._setClasses(De),this._elementInfo.delete(De),this._removeGlobalListeners(et))}focusVia(pe,De,et){const $t=(0,V.fI)(pe);$t===this._getDocument().activeElement?this._getClosestElementsInfo($t).forEach(([Jt,ct])=>this._originChanged(Jt,De,ct)):(this._setOrigin(De),"function"==typeof $t.focus&&$t.focus(et))}ngOnDestroy(){this._elementInfo.forEach((pe,De)=>this.stopMonitoring(De))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(pe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(pe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(pe){return 1===this._detectionMode||!!(null==pe?void 0:pe.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(pe,De){pe.classList.toggle("cdk-focused",!!De),pe.classList.toggle("cdk-touch-focused","touch"===De),pe.classList.toggle("cdk-keyboard-focused","keyboard"===De),pe.classList.toggle("cdk-mouse-focused","mouse"===De),pe.classList.toggle("cdk-program-focused","program"===De)}_setOrigin(pe,De=!1){this._ngZone.runOutsideAngular(()=>{this._origin=pe,this._originFromTouchInteraction="touch"===pe&&De,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(pe,De){const et=this._elementInfo.get(De),$t=(0,j.sA)(pe);!et||!et.checkChildren&&De!==$t||this._originChanged(De,this._getFocusOrigin($t),et)}_onBlur(pe,De){const et=this._elementInfo.get(De);!et||et.checkChildren&&pe.relatedTarget instanceof Node&&De.contains(pe.relatedTarget)||(this._setClasses(De),this._emitOrigin(et.subject,null))}_emitOrigin(pe,De){this._ngZone.run(()=>pe.next(De))}_registerGlobalListeners(pe){if(!this._platform.isBrowser)return;const De=pe.rootNode,et=this._rootNodeFocusListenerCount.get(De)||0;et||this._ngZone.runOutsideAngular(()=>{De.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),De.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vt)}),this._rootNodeFocusListenerCount.set(De,et+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,w.R)(this._stopInputModalityDetector)).subscribe($t=>{this._setOrigin($t,!0)}))}_removeGlobalListeners(pe){const De=pe.rootNode;if(this._rootNodeFocusListenerCount.has(De)){const et=this._rootNodeFocusListenerCount.get(De);et>1?this._rootNodeFocusListenerCount.set(De,et-1):(De.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),De.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vt),this._rootNodeFocusListenerCount.delete(De))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(pe,De,et){this._setClasses(pe,De),this._emitOrigin(et.subject,De),this._lastFocusOrigin=De}_getClosestElementsInfo(pe){const De=[];return this._elementInfo.forEach((et,$t)=>{($t===pe||et.checkChildren&&$t.contains(pe))&&De.push([$t,et])}),De}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(t.R0b),t.LFG(j.t4),t.LFG(nt),t.LFG(e.K0,8),t.LFG(Ft,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),jt=(()=>{class Ee{constructor(pe,De){this._elementRef=pe,this._focusMonitor=De,this.cdkFocusChange=new t.vpe}ngAfterViewInit(){const pe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(pe,1===pe.nodeType&&pe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(De=>this.cdkFocusChange.emit(De))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.Y36(t.SBq),t.Y36(Ii))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const ei="cdk-high-contrast-black-on-white",ki="cdk-high-contrast-white-on-black",ai="cdk-high-contrast-active";let hi=(()=>{class Ee{constructor(pe,De){this._platform=pe,this._document=De}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const pe=this._document.createElement("div");pe.style.backgroundColor="rgb(1,2,3)",pe.style.position="absolute",this._document.body.appendChild(pe);const De=this._document.defaultView||window,et=De&&De.getComputedStyle?De.getComputedStyle(pe):null,$t=(et&&et.backgroundColor||"").replace(/ /g,"");switch(pe.remove(),$t){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 pe=this._document.body.classList;pe.remove(ai),pe.remove(ei),pe.remove(ki),this._hasCheckedHighContrastMode=!0;const De=this.getHighContrastMode();1===De?(pe.add(ai),pe.add(ei)):2===De&&(pe.add(ai),pe.add(ki))}}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(j.t4),t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Ve=(()=>{class Ee{constructor(pe){pe._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(hi))},Ee.\u0275mod=t.oAB({type:Ee}),Ee.\u0275inj=t.cJS({imports:[[j.ud,W.Q8]]}),Ee})()},226:(Ge,Q,m)=>{"use strict";m.d(Q,{vT:()=>s,Is:()=>l});var e=m(5e3),t=m(9808);const y=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function C(){return(0,e.f3M)(t.K0)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let l=(()=>{class L{constructor(A){if(this.value="ltr",this.change=new e.vpe,A){const P=A.documentElement?A.documentElement.dir:null;this.value=function M(L){const I=(null==L?void 0:L.toLowerCase())||"";return"auto"===I&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?o.test(navigator.language)?"rtl":"ltr":"rtl"===I?"rtl":"ltr"}((A.body?A.body.dir:null)||P||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(A){return new(A||L)(e.LFG(y,8))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),s=(()=>{class L{}return L.\u0275fac=function(A){return new(A||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({}),L})()},3191:(Ge,Q,m)=>{"use strict";m.d(Q,{t6:()=>C,Eq:()=>o,Ig:()=>t,HM:()=>M,fI:()=>l,su:()=>y,du:()=>R});var e=m(5e3);function t(s){return null!=s&&"false"!=`${s}`}function y(s,L=0){return C(s)?Number(s):L}function C(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}function o(s){return Array.isArray(s)?s:[s]}function M(s){return null==s?"":"string"==typeof s?s:`${s}px`}function l(s){return s instanceof e.SBq?s.nativeElement:s}function R(s,L=/\s+/){const I=[];if(null!=s){const A=Array.isArray(s)?s:`${s}`.split(L);for(const E of A){const P=`${E}`.trim();P&&I.push(P)}}return I}},449:(Ge,Q,m)=>{"use strict";m.d(Q,{o2:()=>y,Ov:()=>R,A8:()=>L,yy:()=>M,eX:()=>l,k:()=>I,Z9:()=>C});var e=m(7579),t=m(5e3);class y{}function C(A){return A&&"function"==typeof A.connect}class M{applyChanges(E,P,w,V,j){E.forEachOperation((W,te,ee)=>{let ge,le;if(null==W.previousIndex){const re=w(W,te,ee);ge=P.createEmbeddedView(re.templateRef,re.context,re.index),le=1}else null==ee?(P.remove(te),le=3):(ge=P.get(te),P.move(ge,ee),le=2);j&&j({context:null==ge?void 0:ge.context,operation:le,record:W})})}detach(){}}class l{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(E,P,w,V,j){E.forEachOperation((W,te,ee)=>{let ge,le;null==W.previousIndex?(ge=this._insertView(()=>w(W,te,ee),ee,P,V(W)),le=ge?1:0):null==ee?(this._detachAndCacheView(te,P),le=3):(ge=this._moveView(te,ee,P,V(W)),le=2),j&&j({context:null==ge?void 0:ge.context,operation:le,record:W})})}detach(){for(const E of this._viewCache)E.destroy();this._viewCache=[]}_insertView(E,P,w,V){const j=this._insertViewFromCache(P,w);if(j)return void(j.context.$implicit=V);const W=E();return w.createEmbeddedView(W.templateRef,W.context,W.index)}_detachAndCacheView(E,P){const w=P.detach(E);this._maybeCacheView(w,P)}_moveView(E,P,w,V){const j=w.get(E);return w.move(j,P),j.context.$implicit=V,j}_maybeCacheView(E,P){if(this._viewCache.lengththis._markSelected(V)):this._markSelected(P[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...E){this._verifyValueAssignment(E),E.forEach(P=>this._markSelected(P)),this._emitChangeEvent()}deselect(...E){this._verifyValueAssignment(E),E.forEach(P=>this._unmarkSelected(P)),this._emitChangeEvent()}toggle(E){this.isSelected(E)?this.deselect(E):this.select(E)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(E){return this._selection.has(E)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(E){this._multiple&&this.selected&&this._selected.sort(E)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(E){this.isSelected(E)||(this._multiple||this._unmarkAll(),this._selection.add(E),this._emitChanges&&this._selectedToEmit.push(E))}_unmarkSelected(E){this.isSelected(E)&&(this._selection.delete(E),this._emitChanges&&this._deselectedToEmit.push(E))}_unmarkAll(){this.isEmpty()||this._selection.forEach(E=>this._unmarkSelected(E))}_verifyValueAssignment(E){}}let L=(()=>{class A{constructor(){this._listeners=[]}notify(P,w){for(let V of this._listeners)V(P,w)}listen(P){return this._listeners.push(P),()=>{this._listeners=this._listeners.filter(w=>P!==w)}}ngOnDestroy(){this._listeners=[]}}return A.\u0275fac=function(P){return new(P||A)},A.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const I=new t.OlP("_ViewRepeater")},1159:(Ge,Q,m)=>{"use strict";m.d(Q,{A:()=>N,zL:()=>R,jx:()=>l,JH:()=>ee,uR:()=>w,K5:()=>o,hY:()=>I,Sd:()=>V,oh:()=>j,b2:()=>ui,MW:()=>it,aO:()=>O,VM:()=>P,Ku:()=>E,SV:()=>te,JU:()=>M,L_:()=>A,Mf:()=>y,LH:()=>W,Z:()=>ft,xE:()=>se,Vb:()=>Ci});const y=9,o=13,M=16,l=17,R=18,I=27,A=32,E=33,P=34,w=35,V=36,j=37,W=38,te=39,ee=40,se=48,O=57,N=65,ft=90,it=91,ui=224;function Ci(Yi,...$i){return $i.length?$i.some(Cn=>Yi[Cn]):Yi.altKey||Yi.shiftKey||Yi.ctrlKey||Yi.metaKey}},5113:(Ge,Q,m)=>{"use strict";m.d(Q,{Yg:()=>ee,u3:()=>le,xu:()=>P});var e=m(5e3),t=m(3191),y=m(7579),C=m(9841),o=m(7272),M=m(8306),l=m(5698),R=m(5684),s=m(8372),L=m(4004),I=m(8675),A=m(2722),E=m(925);let P=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})();const w=new Set;let V,j=(()=>{class re{constructor(se){this._platform=se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):te}matchMedia(se){return(this._platform.WEBKIT||this._platform.BLINK)&&function W(re){if(!w.has(re))try{V||(V=document.createElement("style"),V.setAttribute("type","text/css"),document.head.appendChild(V)),V.sheet&&(V.sheet.insertRule(`@media ${re} {body{ }}`,0),w.add(re))}catch(de){console.error(de)}}(se),this._matchMedia(se)}}return re.\u0275fac=function(se){return new(se||re)(e.LFG(E.t4))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function te(re){return{matches:"all"===re||""===re,media:re,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class re{constructor(se,ye){this._mediaMatcher=se,this._zone=ye,this._queries=new Map,this._destroySubject=new y.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(se){return ge((0,t.Eq)(se)).some(v=>this._registerQuery(v).mql.matches)}observe(se){const v=ge((0,t.Eq)(se)).map(a=>this._registerQuery(a).observable);let i=(0,C.a)(v);return i=(0,o.z)(i.pipe((0,l.q)(1)),i.pipe((0,R.T)(1),(0,s.b)(0))),i.pipe((0,L.U)(a=>{const p={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:_})=>{p.matches=p.matches||u,p.breakpoints[_]=u}),p}))}_registerQuery(se){if(this._queries.has(se))return this._queries.get(se);const ye=this._mediaMatcher.matchMedia(se),i={observable:new M.y(a=>{const p=u=>this._zone.run(()=>a.next(u));return ye.addListener(p),()=>{ye.removeListener(p)}}).pipe((0,I.O)(ye),(0,L.U)(({matches:a})=>({query:se,matches:a})),(0,A.R)(this._destroySubject)),mql:ye};return this._queries.set(se,i),i}}return re.\u0275fac=function(se){return new(se||re)(e.LFG(j),e.LFG(e.R0b))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ge(re){return re.map(de=>de.split(",")).reduce((de,se)=>de.concat(se)).map(de=>de.trim())}const le={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:(Ge,Q,m)=>{"use strict";m.d(Q,{wD:()=>R,yq:()=>l,Q8:()=>s});var e=m(3191),t=m(5e3),y=m(8306),C=m(7579),o=m(8372);let M=(()=>{class L{create(A){return"undefined"==typeof MutationObserver?null:new MutationObserver(A)}}return L.\u0275fac=function(A){return new(A||L)},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),l=(()=>{class L{constructor(A){this._mutationObserverFactory=A,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((A,E)=>this._cleanupObserver(E))}observe(A){const E=(0,e.fI)(A);return new y.y(P=>{const V=this._observeElement(E).subscribe(P);return()=>{V.unsubscribe(),this._unobserveElement(E)}})}_observeElement(A){if(this._observedElements.has(A))this._observedElements.get(A).count++;else{const E=new C.x,P=this._mutationObserverFactory.create(w=>E.next(w));P&&P.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:P,stream:E,count:1})}return this._observedElements.get(A).stream}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){const{observer:E,stream:P}=this._observedElements.get(A);E&&E.disconnect(),P.complete(),this._observedElements.delete(A)}}}return L.\u0275fac=function(A){return new(A||L)(t.LFG(M))},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),R=(()=>{class L{constructor(A,E,P){this._contentObserver=A,this._elementRef=E,this._ngZone=P,this.event=new t.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(A){this._disabled=(0,e.Ig)(A),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(A){this._debounce=(0,e.su)(A),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const A=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?A.pipe((0,o.b)(this.debounce)):A).subscribe(this.event)})}_unsubscribe(){var A;null===(A=this._currentSubscription)||void 0===A||A.unsubscribe()}}return L.\u0275fac=function(A){return new(A||L)(t.Y36(l),t.Y36(t.SBq),t.Y36(t.R0b))},L.\u0275dir=t.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),s=(()=>{class L{}return L.\u0275fac=function(A){return new(A||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({providers:[M]}),L})()},9776:(Ge,Q,m)=>{"use strict";m.d(Q,{pI:()=>vt,xu:()=>Ze,_G:()=>r,aV:()=>Me,X_:()=>ye,Xj:()=>D,U8:()=>ce});var e=m(5303),t=m(9808),y=m(5e3),C=m(3191),o=m(925),M=m(226),l=m(7429),R=m(7579),s=m(727),L=m(6451),I=m(4482),A=m(5403),P=m(5698),w=m(2722),V=m(1159);const j=(0,o.Mq)();class W{constructor(q,$){this._viewportRuler=q,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=$}attach(){}enable(){if(this._canBeEnabled()){const q=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=q.style.left||"",this._previousHTMLStyles.top=q.style.top||"",q.style.left=(0,C.HM)(-this._previousScrollPosition.left),q.style.top=(0,C.HM)(-this._previousScrollPosition.top),q.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const q=this._document.documentElement,oe=q.style,Ce=this._document.body.style,Ue=oe.scrollBehavior||"",lt=Ce.scrollBehavior||"";this._isEnabled=!1,oe.left=this._previousHTMLStyles.left,oe.top=this._previousHTMLStyles.top,q.classList.remove("cdk-global-scrollblock"),j&&(oe.scrollBehavior=Ce.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),j&&(oe.scrollBehavior=Ue,Ce.scrollBehavior=lt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const $=this._document.body,oe=this._viewportRuler.getViewportSize();return $.scrollHeight>oe.height||$.scrollWidth>oe.width}}class ee{constructor(q,$,oe,Ce){this._scrollDispatcher=q,this._ngZone=$,this._viewportRuler=oe,this._config=Ce,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(q){this._overlayRef=q}enable(){if(this._scrollSubscription)return;const q=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=q.subscribe(()=>{const $=this._viewportRuler.getViewportScrollPosition().top;Math.abs($-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=q.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ge{enable(){}disable(){}attach(){}}function le(Pe,q){return q.some($=>Pe.bottom<$.top||Pe.top>$.bottom||Pe.right<$.left||Pe.left>$.right)}function re(Pe,q){return q.some($=>Pe.top<$.top||Pe.bottom>$.bottom||Pe.left<$.left||Pe.right>$.right)}class de{constructor(q,$,oe,Ce){this._scrollDispatcher=q,this._viewportRuler=$,this._ngZone=oe,this._config=Ce,this._scrollSubscription=null}attach(q){this._overlayRef=q}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:oe,height:Ce}=this._viewportRuler.getViewportSize();le($,[{width:oe,height:Ce,bottom:Ce,right:oe,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 se=(()=>{class Pe{constructor($,oe,Ce,Ue){this._scrollDispatcher=$,this._viewportRuler=oe,this._ngZone=Ce,this.noop=()=>new ge,this.close=lt=>new ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,lt),this.block=()=>new W(this._viewportRuler,this._document),this.reposition=lt=>new de(this._scrollDispatcher,this._viewportRuler,this._ngZone,lt),this._document=Ue}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(e.mF),y.LFG(e.rL),y.LFG(y.R0b),y.LFG(t.K0))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class ye{constructor(q){if(this.scrollStrategy=new ge,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,q){const $=Object.keys(q);for(const oe of $)void 0!==q[oe]&&(this[oe]=q[oe])}}}class a{constructor(q,$){this.connectionPair=q,this.scrollableViewProperties=$}}class _{constructor(q,$,oe,Ce,Ue,lt,nt,ft,it){this._portalOutlet=q,this._host=$,this._pane=oe,this._config=Ce,this._ngZone=Ue,this._keyboardDispatcher=lt,this._document=nt,this._location=ft,this._outsideClickDispatcher=it,this._backdropElement=null,this._backdropClick=new R.x,this._attachments=new R.x,this._detachments=new R.x,this._locationChanges=s.w0.EMPTY,this._backdropClickHandler=rt=>this._backdropClick.next(rt),this._keydownEvents=new R.x,this._outsidePointerEvents=new R.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(q){let $=this._portalOutlet.attach(q);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.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 q=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),q}dispose(){var q;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===(q=this._host)||void 0===q||q.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(q){q!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=q,this.hasAttached()&&(q.attach(this),this.updatePosition()))}updateSize(q){this._config=Object.assign(Object.assign({},this._config),q),this._updateElementSize()}setDirection(q){this._config=Object.assign(Object.assign({},this._config),{direction:q}),this._updateElementDirection()}addPanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!0)}removePanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!1)}getDirection(){const q=this._config.direction;return q?"string"==typeof q?q:q.value:"ltr"}updateScrollStrategy(q){q!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=q,this.hasAttached()&&(q.attach(this),q.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const q=this._pane.style;q.width=(0,C.HM)(this._config.width),q.height=(0,C.HM)(this._config.height),q.minWidth=(0,C.HM)(this._config.minWidth),q.minHeight=(0,C.HM)(this._config.minHeight),q.maxWidth=(0,C.HM)(this._config.maxWidth),q.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(q){this._pane.style.pointerEvents=q?"":"none"}_attachBackdrop(){const q="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(q)})}):this._backdropElement.classList.add(q)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const q=this._backdropElement;if(!q)return;let $;const oe=()=>{q&&(q.removeEventListener("click",this._backdropClickHandler),q.removeEventListener("transitionend",oe),this._disposeBackdrop(q)),this._config.backdropClass&&this._toggleClasses(q,this._config.backdropClass,!1),clearTimeout($)};q.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{q.addEventListener("transitionend",oe)}),q.style.pointerEvents="none",$=this._ngZone.runOutsideAngular(()=>setTimeout(oe,500))}_toggleClasses(q,$,oe){const Ce=(0,C.Eq)($||[]).filter(Ue=>!!Ue);Ce.length&&(oe?q.classList.add(...Ce):q.classList.remove(...Ce))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const q=this._ngZone.onStable.pipe((0,w.R)((0,L.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()),q.unsubscribe())})})}_disposeScrollStrategy(){const q=this._scrollStrategy;q&&(q.disable(),q.detach&&q.detach())}_disposeBackdrop(q){q&&(q.remove(),this._backdropElement===q&&(this._backdropElement=null))}}let D=(()=>{class Pe{constructor($,oe){this._platform=oe,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,o.Oy)()){const Ce=this._document.querySelectorAll(`.${$}[platform="server"], .${$}[platform="test"]`);for(let Ue=0;Ue{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();const q=this._originRect,$=this._overlayRect,oe=this._viewportRect,Ce=[];let Ue;for(let lt of this._preferredPositions){let nt=this._getOriginPoint(q,lt),ft=this._getOverlayPoint(nt,$,lt),it=this._getOverlayFit(ft,$,oe,lt);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(lt,nt);this._canFitWithFlexibleDimensions(it,ft,oe)?Ce.push({position:lt,origin:nt,overlayRect:$,boundingBoxRect:this._calculateBoundingBoxRect(nt,lt)}):(!Ue||Ue.overlayFit.visibleAreant&&(nt=it,lt=ft)}return this._isPushed=!1,void this._applyPosition(lt.position,lt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ue.position,Ue.originPoint);this._applyPosition(Ue.position,Ue.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&b(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||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const q=this._lastPosition||this._preferredPositions[0],$=this._getOriginPoint(this._originRect,q);this._applyPosition(q,$)}}withScrollableContainers(q){return this._scrollables=q,this}withPositions(q){return this._preferredPositions=q,-1===q.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(q){return this._viewportMargin=q,this}withFlexibleDimensions(q=!0){return this._hasFlexibleDimensions=q,this}withGrowAfterOpen(q=!0){return this._growAfterOpen=q,this}withPush(q=!0){return this._canPush=q,this}withLockedPosition(q=!0){return this._positionLocked=q,this}setOrigin(q){return this._origin=q,this}withDefaultOffsetX(q){return this._offsetX=q,this}withDefaultOffsetY(q){return this._offsetY=q,this}withTransformOriginOn(q){return this._transformOriginSelector=q,this}_getOriginPoint(q,$){let oe,Ce;if("center"==$.originX)oe=q.left+q.width/2;else{const Ue=this._isRtl()?q.right:q.left,lt=this._isRtl()?q.left:q.right;oe="start"==$.originX?Ue:lt}return Ce="center"==$.originY?q.top+q.height/2:"top"==$.originY?q.top:q.bottom,{x:oe,y:Ce}}_getOverlayPoint(q,$,oe){let Ce,Ue;return Ce="center"==oe.overlayX?-$.width/2:"start"===oe.overlayX?this._isRtl()?-$.width:0:this._isRtl()?0:-$.width,Ue="center"==oe.overlayY?-$.height/2:"top"==oe.overlayY?0:-$.height,{x:q.x+Ce,y:q.y+Ue}}_getOverlayFit(q,$,oe,Ce){const Ue=N($);let{x:lt,y:nt}=q,ft=this._getOffset(Ce,"x"),it=this._getOffset(Ce,"y");ft&&(lt+=ft),it&&(nt+=it);let Zt=0-nt,Ft=nt+Ue.height-oe.height,Vt=this._subtractOverflows(Ue.width,0-lt,lt+Ue.width-oe.width),Ii=this._subtractOverflows(Ue.height,Zt,Ft),jt=Vt*Ii;return{visibleArea:jt,isCompletelyWithinViewport:Ue.width*Ue.height===jt,fitsInViewportVertically:Ii===Ue.height,fitsInViewportHorizontally:Vt==Ue.width}}_canFitWithFlexibleDimensions(q,$,oe){if(this._hasFlexibleDimensions){const Ce=oe.bottom-$.y,Ue=oe.right-$.x,lt=Z(this._overlayRef.getConfig().minHeight),nt=Z(this._overlayRef.getConfig().minWidth),it=q.fitsInViewportHorizontally||null!=nt&&nt<=Ue;return(q.fitsInViewportVertically||null!=lt&<<=Ce)&&it}return!1}_pushOverlayOnScreen(q,$,oe){if(this._previousPushAmount&&this._positionLocked)return{x:q.x+this._previousPushAmount.x,y:q.y+this._previousPushAmount.y};const Ce=N($),Ue=this._viewportRect,lt=Math.max(q.x+Ce.width-Ue.width,0),nt=Math.max(q.y+Ce.height-Ue.height,0),ft=Math.max(Ue.top-oe.top-q.y,0),it=Math.max(Ue.left-oe.left-q.x,0);let rt=0,Mt=0;return rt=Ce.width<=Ue.width?it||-lt:q.xVt&&!this._isInitialRender&&!this._growAfterOpen&&(lt=q.y-Vt/2)}if("end"===$.overlayX&&!Ce||"start"===$.overlayX&&Ce)Zt=oe.width-q.x+this._viewportMargin,rt=q.x-this._viewportMargin;else if("start"===$.overlayX&&!Ce||"end"===$.overlayX&&Ce)Mt=q.x,rt=oe.right-q.x;else{const Ft=Math.min(oe.right-q.x+oe.left,q.x),Vt=this._lastBoundingBoxSize.width;rt=2*Ft,Mt=q.x-Ft,rt>Vt&&!this._isInitialRender&&!this._growAfterOpen&&(Mt=q.x-Vt/2)}return{top:lt,left:Mt,bottom:nt,right:Zt,width:rt,height:Ue}}_setBoundingBoxStyles(q,$){const oe=this._calculateBoundingBoxRect(q,$);!this._isInitialRender&&!this._growAfterOpen&&(oe.height=Math.min(oe.height,this._lastBoundingBoxSize.height),oe.width=Math.min(oe.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 Ue=this._overlayRef.getConfig().maxHeight,lt=this._overlayRef.getConfig().maxWidth;Ce.height=(0,C.HM)(oe.height),Ce.top=(0,C.HM)(oe.top),Ce.bottom=(0,C.HM)(oe.bottom),Ce.width=(0,C.HM)(oe.width),Ce.left=(0,C.HM)(oe.left),Ce.right=(0,C.HM)(oe.right),Ce.alignItems="center"===$.overlayX?"center":"end"===$.overlayX?"flex-end":"flex-start",Ce.justifyContent="center"===$.overlayY?"center":"bottom"===$.overlayY?"flex-end":"flex-start",Ue&&(Ce.maxHeight=(0,C.HM)(Ue)),lt&&(Ce.maxWidth=(0,C.HM)(lt))}this._lastBoundingBoxSize=oe,b(this._boundingBox.style,Ce)}_resetBoundingBoxStyles(){b(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){b(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(q,$){const oe={},Ce=this._hasExactPosition(),Ue=this._hasFlexibleDimensions,lt=this._overlayRef.getConfig();if(Ce){const rt=this._viewportRuler.getViewportScrollPosition();b(oe,this._getExactOverlayY($,q,rt)),b(oe,this._getExactOverlayX($,q,rt))}else oe.position="static";let nt="",ft=this._getOffset($,"x"),it=this._getOffset($,"y");ft&&(nt+=`translateX(${ft}px) `),it&&(nt+=`translateY(${it}px)`),oe.transform=nt.trim(),lt.maxHeight&&(Ce?oe.maxHeight=(0,C.HM)(lt.maxHeight):Ue&&(oe.maxHeight="")),lt.maxWidth&&(Ce?oe.maxWidth=(0,C.HM)(lt.maxWidth):Ue&&(oe.maxWidth="")),b(this._pane.style,oe)}_getExactOverlayY(q,$,oe){let Ce={top:"",bottom:""},Ue=this._getOverlayPoint($,this._overlayRect,q);this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,oe));let lt=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Ue.y-=lt,"bottom"===q.overlayY?Ce.bottom=this._document.documentElement.clientHeight-(Ue.y+this._overlayRect.height)+"px":Ce.top=(0,C.HM)(Ue.y),Ce}_getExactOverlayX(q,$,oe){let lt,Ce={left:"",right:""},Ue=this._getOverlayPoint($,this._overlayRect,q);return this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,oe)),lt=this._isRtl()?"end"===q.overlayX?"left":"right":"end"===q.overlayX?"right":"left","right"===lt?Ce.right=this._document.documentElement.clientWidth-(Ue.x+this._overlayRect.width)+"px":Ce.left=(0,C.HM)(Ue.x),Ce}_getScrollVisibility(){const q=this._getOriginRect(),$=this._pane.getBoundingClientRect(),oe=this._scrollables.map(Ce=>Ce.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(q,oe),isOriginOutsideView:le(q,oe),isOverlayClipped:re($,oe),isOverlayOutsideView:le($,oe)}}_subtractOverflows(q,...$){return $.reduce((oe,Ce)=>oe-Math.max(Ce,0),q)}_getNarrowedViewportRect(){const q=this._document.documentElement.clientWidth,$=this._document.documentElement.clientHeight,oe=this._viewportRuler.getViewportScrollPosition();return{top:oe.top+this._viewportMargin,left:oe.left+this._viewportMargin,right:oe.left+q-this._viewportMargin,bottom:oe.top+$-this._viewportMargin,width:q-2*this._viewportMargin,height:$-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(q,$){return"x"===$?null==q.offsetX?this._offsetX:q.offsetX:null==q.offsetY?this._offsetY:q.offsetY}_validatePositions(){}_addPanelClasses(q){this._pane&&(0,C.Eq)(q).forEach($=>{""!==$&&-1===this._appliedPanelClasses.indexOf($)&&(this._appliedPanelClasses.push($),this._pane.classList.add($))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(q=>{this._pane.classList.remove(q)}),this._appliedPanelClasses=[])}_getOriginRect(){const q=this._origin;if(q instanceof y.SBq)return q.nativeElement.getBoundingClientRect();if(q instanceof Element)return q.getBoundingClientRect();const $=q.width||0,oe=q.height||0;return{top:q.y,bottom:q.y+oe,left:q.x,right:q.x+$,height:oe,width:$}}}function b(Pe,q){for(let $ in q)q.hasOwnProperty($)&&(Pe[$]=q[$]);return Pe}function Z(Pe){if("number"!=typeof Pe&&null!=Pe){const[q,$]=Pe.split(x);return $&&"px"!==$?null:parseFloat(q)}return Pe||null}function N(Pe){return{top:Math.floor(Pe.top),right:Math.floor(Pe.right),bottom:Math.floor(Pe.bottom),left:Math.floor(Pe.left),width:Math.floor(Pe.width),height:Math.floor(Pe.height)}}const U="cdk-global-overlay-wrapper";class ve{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(q){const $=q.getConfig();this._overlayRef=q,this._width&&!$.width&&q.updateSize({width:this._width}),this._height&&!$.height&&q.updateSize({height:this._height}),q.hostElement.classList.add(U),this._isDisposed=!1}top(q=""){return this._bottomOffset="",this._topOffset=q,this._alignItems="flex-start",this}left(q=""){return this._rightOffset="",this._leftOffset=q,this._justifyContent="flex-start",this}bottom(q=""){return this._topOffset="",this._bottomOffset=q,this._alignItems="flex-end",this}right(q=""){return this._leftOffset="",this._rightOffset=q,this._justifyContent="flex-end",this}width(q=""){return this._overlayRef?this._overlayRef.updateSize({width:q}):this._width=q,this}height(q=""){return this._overlayRef?this._overlayRef.updateSize({height:q}):this._height=q,this}centerHorizontally(q=""){return this.left(q),this._justifyContent="center",this}centerVertically(q=""){return this.top(q),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const q=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement.style,oe=this._overlayRef.getConfig(),{width:Ce,height:Ue,maxWidth:lt,maxHeight:nt}=oe,ft=!("100%"!==Ce&&"100vw"!==Ce||lt&&"100%"!==lt&&"100vw"!==lt),it=!("100%"!==Ue&&"100vh"!==Ue||nt&&"100%"!==nt&&"100vh"!==nt);q.position=this._cssPosition,q.marginLeft=ft?"0":this._leftOffset,q.marginTop=it?"0":this._topOffset,q.marginBottom=this._bottomOffset,q.marginRight=this._rightOffset,ft?$.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=it?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const q=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement,oe=$.style;$.classList.remove(U),oe.justifyContent=oe.alignItems=q.marginTop=q.marginBottom=q.marginLeft=q.marginRight=q.position="",this._overlayRef=null,this._isDisposed=!0}}let be=(()=>{class Pe{constructor($,oe,Ce,Ue){this._viewportRuler=$,this._document=oe,this._platform=Ce,this._overlayContainer=Ue}global(){return new ve}flexibleConnectedTo($){return new r($,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(e.rL),y.LFG(t.K0),y.LFG(o.t4),y.LFG(D))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Re=(()=>{class Pe{constructor($){this._attachedOverlays=[],this._document=$}ngOnDestroy(){this.detach()}add($){this.remove($),this._attachedOverlays.push($)}remove($){const oe=this._attachedOverlays.indexOf($);oe>-1&&this._attachedOverlays.splice(oe,1),0===this._attachedOverlays.length&&this.detach()}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(t.K0))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),ze=(()=>{class Pe extends Re{constructor($){super($),this._keydownListener=oe=>{const Ce=this._attachedOverlays;for(let Ue=Ce.length-1;Ue>-1;Ue--)if(Ce[Ue]._keydownEvents.observers.length>0){Ce[Ue]._keydownEvents.next(oe);break}}}add($){super.add($),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(t.K0))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Oe=(()=>{class Pe extends Re{constructor($,oe){super($),this._platform=oe,this._cursorStyleIsSet=!1,this._pointerDownListener=Ce=>{this._pointerDownEventTarget=(0,o.sA)(Ce)},this._clickListener=Ce=>{const Ue=(0,o.sA)(Ce),lt="click"===Ce.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ue;this._pointerDownEventTarget=null;const nt=this._attachedOverlays.slice();for(let ft=nt.length-1;ft>-1;ft--){const it=nt[ft];if(!(it._outsidePointerEvents.observers.length<1)&&it.hasAttached()){if(it.overlayElement.contains(Ue)||it.overlayElement.contains(lt))break;it._outsidePointerEvents.next(Ce)}}}}add($){if(super.add($),!this._isAttached){const oe=this._document.body;oe.addEventListener("pointerdown",this._pointerDownListener,!0),oe.addEventListener("click",this._clickListener,!0),oe.addEventListener("auxclick",this._clickListener,!0),oe.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=oe.style.cursor,oe.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}}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(t.K0),y.LFG(o.t4))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),K=0,Me=(()=>{class Pe{constructor($,oe,Ce,Ue,lt,nt,ft,it,rt,Mt,Zt){this.scrollStrategies=$,this._overlayContainer=oe,this._componentFactoryResolver=Ce,this._positionBuilder=Ue,this._keyboardDispatcher=lt,this._injector=nt,this._ngZone=ft,this._document=it,this._directionality=rt,this._location=Mt,this._outsideClickDispatcher=Zt}create($){const oe=this._createHostElement(),Ce=this._createPaneElement(oe),Ue=this._createPortalOutlet(Ce),lt=new ye($);return lt.direction=lt.direction||this._directionality.value,new _(Ue,oe,Ce,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement($){const oe=this._document.createElement("div");return oe.id="cdk-overlay-"+K++,oe.classList.add("cdk-overlay-pane"),$.appendChild(oe),oe}_createHostElement(){const $=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild($),$}_createPortalOutlet($){return this._appRef||(this._appRef=this._injector.get(y.z2F)),new l.u0($,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(se),y.LFG(D),y.LFG(y._Vd),y.LFG(be),y.LFG(ze),y.LFG(y.zs3),y.LFG(y.R0b),y.LFG(t.K0),y.LFG(M.Is),y.LFG(t.Ye),y.LFG(Oe))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const we=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],z=new y.OlP("cdk-connected-overlay-scroll-strategy");let Ze=(()=>{class Pe{constructor($){this.elementRef=$}}return Pe.\u0275fac=function($){return new($||Pe)(y.Y36(y.SBq))},Pe.\u0275dir=y.lG2({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Pe})(),vt=(()=>{class Pe{constructor($,oe,Ce,Ue,lt){this._overlay=$,this._dir=lt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=s.w0.EMPTY,this._attachSubscription=s.w0.EMPTY,this._detachSubscription=s.w0.EMPTY,this._positionSubscription=s.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new y.vpe,this.positionChange=new y.vpe,this.attach=new y.vpe,this.detach=new y.vpe,this.overlayKeydown=new y.vpe,this.overlayOutsideClick=new y.vpe,this._templatePortal=new l.UE(oe,Ce),this._scrollStrategyFactory=Ue,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,C.Ig)($)}get lockPosition(){return this._lockPosition}set lockPosition($){this._lockPosition=(0,C.Ig)($)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions($){this._flexibleDimensions=(0,C.Ig)($)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen($){this._growAfterOpen=(0,C.Ig)($)}get push(){return this._push}set push($){this._push=(0,C.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=we);const $=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=$.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=$.detachments().subscribe(()=>this.detach.emit()),$.keydownEvents().subscribe(oe=>{this.overlayKeydown.next(oe),oe.keyCode===V.hY&&!this.disableClose&&!(0,V.Vb)(oe)&&(oe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(oe=>{this.overlayOutsideClick.next(oe)})}_buildConfig(){const $=this._position=this.positionStrategy||this._createPositionStrategy(),oe=new ye({direction:this._dir,positionStrategy:$,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(oe.width=this.width),(this.height||0===this.height)&&(oe.height=this.height),(this.minWidth||0===this.minWidth)&&(oe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(oe.minHeight=this.minHeight),this.backdropClass&&(oe.backdropClass=this.backdropClass),this.panelClass&&(oe.panelClass=this.panelClass),oe}_updatePositionStrategy($){const oe=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(oe).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 Ze?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 E(Pe,q=!1){return(0,I.e)(($,oe)=>{let Ce=0;$.subscribe(new A.Q(oe,Ue=>{const lt=Pe(Ue,Ce++);(lt||q)&&oe.next(Ue),!lt&&oe.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 Pe.\u0275fac=function($){return new($||Pe)(y.Y36(Me),y.Y36(y.Rgc),y.Y36(y.s_b),y.Y36(z),y.Y36(M.Is,8))},Pe.\u0275dir=y.lG2({type:Pe,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:[y.TTD]}),Pe})();const Ne={provide:z,deps:[Me],useFactory:function Fe(Pe){return()=>Pe.scrollStrategies.reposition()}};let ce=(()=>{class Pe{}return Pe.\u0275fac=function($){return new($||Pe)},Pe.\u0275mod=y.oAB({type:Pe}),Pe.\u0275inj=y.cJS({providers:[Me,Ne],imports:[[M.vT,l.eL,e.Cl],e.Cl]}),Pe})()},925:(Ge,Q,m)=>{"use strict";m.d(Q,{t4:()=>C,ud:()=>o,sA:()=>ee,ht:()=>te,kV:()=>W,Oy:()=>ge,_i:()=>w,qK:()=>R,i$:()=>I,Mq:()=>P});var e=m(5e3),t=m(9808);let y;try{y="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(le){y=!1}let M,C=(()=>{class le{constructor(de){this._platformId=de,this.isBrowser=this._platformId?(0,t.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&&!y)&&"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 le.\u0275fac=function(de){return new(de||le)(e.LFG(e.Lbi))},le.\u0275prov=e.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),o=(()=>{class le{}return le.\u0275fac=function(de){return new(de||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({}),le})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R(){if(M)return M;if("object"!=typeof document||!document)return M=new Set(l),M;let le=document.createElement("input");return M=new Set(l.filter(re=>(le.setAttribute("type",re),le.type===re))),M}let s,A,E,V;function I(le){return function L(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>s=!0}))}finally{s=s||!1}return s}()?le:!!le.capture}function P(){if(null==E){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{const le=Element.prototype.scrollTo;E=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return E}function w(){if("object"!=typeof document||!document)return 0;if(null==A){const le=document.createElement("div"),re=le.style;le.dir="rtl",re.width="1px",re.overflow="auto",re.visibility="hidden",re.pointerEvents="none",re.position="absolute";const de=document.createElement("div"),se=de.style;se.width="2px",se.height="1px",le.appendChild(de),document.body.appendChild(le),A=0,0===le.scrollLeft&&(le.scrollLeft=1,A=0===le.scrollLeft?1:2),le.remove()}return A}function W(le){if(function j(){if(null==V){const le="undefined"!=typeof document?document.head:null;V=!(!le||!le.createShadowRoot&&!le.attachShadow)}return V}()){const re=le.getRootNode?le.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&re instanceof ShadowRoot)return re}return null}function te(){let le="undefined"!=typeof document&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const re=le.shadowRoot.activeElement;if(re===le)break;le=re}return le}function ee(le){return le.composedPath?le.composedPath()[0]:le.target}function ge(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ge,Q,m)=>{"use strict";m.d(Q,{en:()=>E,ig:()=>j,Pl:()=>te,C5:()=>L,u0:()=>w,eL:()=>ge,UE:()=>I});var e=m(5e3),t=m(9808);class s{attach(de){return this._attachedHost=de,de.attach(this)}detach(){let de=this._attachedHost;null!=de&&(this._attachedHost=null,de.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(de){this._attachedHost=de}}class L extends s{constructor(de,se,ye,v){super(),this.component=de,this.viewContainerRef=se,this.injector=ye,this.componentFactoryResolver=v}}class I extends s{constructor(de,se,ye){super(),this.templateRef=de,this.viewContainerRef=se,this.context=ye}get origin(){return this.templateRef.elementRef}attach(de,se=this.context){return this.context=se,super.attach(de)}detach(){return this.context=void 0,super.detach()}}class A extends s{constructor(de){super(),this.element=de instanceof e.SBq?de.nativeElement:de}}class E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(de){return de instanceof L?(this._attachedPortal=de,this.attachComponentPortal(de)):de instanceof I?(this._attachedPortal=de,this.attachTemplatePortal(de)):this.attachDomPortal&&de instanceof A?(this._attachedPortal=de,this.attachDomPortal(de)):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(de){this._disposeFn=de}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends E{constructor(de,se,ye,v,i){super(),this.outletElement=de,this._componentFactoryResolver=se,this._appRef=ye,this._defaultInjector=v,this.attachDomPortal=a=>{const p=a.element,u=this._document.createComment("dom-portal");p.parentNode.insertBefore(u,p),this.outletElement.appendChild(p),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(p,u)})},this._document=i}attachComponentPortal(de){const ye=(de.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(de.component);let v;return de.viewContainerRef?(v=de.viewContainerRef.createComponent(ye,de.viewContainerRef.length,de.injector||de.viewContainerRef.injector),this.setDisposeFn(()=>v.destroy())):(v=ye.create(de.injector||this._defaultInjector),this._appRef.attachView(v.hostView),this.setDisposeFn(()=>{this._appRef.detachView(v.hostView),v.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(v)),this._attachedPortal=de,v}attachTemplatePortal(de){let se=de.viewContainerRef,ye=se.createEmbeddedView(de.templateRef,de.context);return ye.rootNodes.forEach(v=>this.outletElement.appendChild(v)),ye.detectChanges(),this.setDisposeFn(()=>{let v=se.indexOf(ye);-1!==v&&se.remove(v)}),this._attachedPortal=de,ye}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(de){return de.hostView.rootNodes[0]}}let j=(()=>{class re extends I{constructor(se,ye){super(se,ye)}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.Rgc),e.Y36(e.s_b))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),re})(),te=(()=>{class re extends E{constructor(se,ye,v){super(),this._componentFactoryResolver=se,this._viewContainerRef=ye,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=i=>{const a=i.element,p=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(p,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{p.parentNode&&p.parentNode.replaceChild(a,p)})},this._document=v}get portal(){return this._attachedPortal}set portal(se){this.hasAttached()&&!se&&!this._isInitialized||(this.hasAttached()&&super.detach(),se&&super.attach(se),this._attachedPortal=se)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(se){se.setAttachedHost(this);const ye=null!=se.viewContainerRef?se.viewContainerRef:this._viewContainerRef,i=(se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(se.component),a=ye.createComponent(i,ye.length,se.injector||ye.injector);return ye!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=se,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(se){se.setAttachedHost(this);const ye=this._viewContainerRef.createEmbeddedView(se.templateRef,se.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=se,this._attachedRef=ye,this.attached.emit(ye),ye}_getRootNode(){const se=this._viewContainerRef.element.nativeElement;return se.nodeType===se.ELEMENT_NODE?se:se.parentNode}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(t.K0))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),re})(),ge=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})()},5303:(Ge,Q,m)=>{"use strict";m.d(Q,{PQ:()=>p,ZD:()=>Z,mF:()=>a,Cl:()=>N,rL:()=>_});var e=m(3191),t=m(5e3),y=m(4408),C=m(727);const o={schedule(U){let ve=requestAnimationFrame,be=cancelAnimationFrame;const{delegate:Re}=o;Re&&(ve=Re.requestAnimationFrame,be=Re.cancelAnimationFrame);const ze=ve(Oe=>{be=void 0,U(Oe)});return new C.w0(()=>null==be?void 0:be(ze))},requestAnimationFrame(...U){const{delegate:ve}=o;return((null==ve?void 0:ve.requestAnimationFrame)||requestAnimationFrame)(...U)},cancelAnimationFrame(...U){const{delegate:ve}=o;return((null==ve?void 0:ve.cancelAnimationFrame)||cancelAnimationFrame)(...U)},delegate:void 0};var l=m(7565);new class R extends l.v{flush(ve){this._active=!0,this._scheduled=void 0;const{actions:be}=this;let Re,ze=-1;ve=ve||be.shift();const Oe=be.length;do{if(Re=ve.execute(ve.state,ve.delay))break}while(++ze0?super.requestAsyncId(ve,be,Re):(ve.actions.push(this),ve._scheduled||(ve._scheduled=o.requestAnimationFrame(()=>ve.flush(void 0))))}recycleAsyncId(ve,be,Re=0){if(null!=Re&&Re>0||null==Re&&this.delay>0)return super.recycleAsyncId(ve,be,Re);0===ve.actions.length&&(o.cancelAnimationFrame(be),ve._scheduled=void 0)}});var I=m(7579),A=m(9646),E=m(8306),P=m(4968),V=(m(3101),m(3601)),j=m(9300),W=m(2722),te=m(9808),ee=m(925),ge=m(226);let a=(()=>{class U{constructor(be,Re,ze){this._ngZone=be,this._platform=Re,this._scrolled=new I.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ze}register(be){this.scrollContainers.has(be)||this.scrollContainers.set(be,be.elementScrolled().subscribe(()=>this._scrolled.next(be)))}deregister(be){const Re=this.scrollContainers.get(be);Re&&(Re.unsubscribe(),this.scrollContainers.delete(be))}scrolled(be=20){return this._platform.isBrowser?new E.y(Re=>{this._globalSubscription||this._addGlobalListener();const ze=be>0?this._scrolled.pipe((0,V.e)(be)).subscribe(Re):this._scrolled.subscribe(Re);return this._scrolledCount++,()=>{ze.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,A.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((be,Re)=>this.deregister(Re)),this._scrolled.complete()}ancestorScrolled(be,Re){const ze=this.getAncestorScrollContainers(be);return this.scrolled(Re).pipe((0,j.h)(Oe=>!Oe||ze.indexOf(Oe)>-1))}getAncestorScrollContainers(be){const Re=[];return this.scrollContainers.forEach((ze,Oe)=>{this._scrollableContainsElement(Oe,be)&&Re.push(Oe)}),Re}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(be,Re){let ze=(0,e.fI)(Re),Oe=be.getElementRef().nativeElement;do{if(ze==Oe)return!0}while(ze=ze.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const be=this._getWindow();return(0,P.R)(be.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return U.\u0275fac=function(be){return new(be||U)(t.LFG(t.R0b),t.LFG(ee.t4),t.LFG(te.K0,8))},U.\u0275prov=t.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),p=(()=>{class U{constructor(be,Re,ze,Oe){this.elementRef=be,this.scrollDispatcher=Re,this.ngZone=ze,this.dir=Oe,this._destroyed=new I.x,this._elementScrolled=new E.y(K=>this.ngZone.runOutsideAngular(()=>(0,P.R)(this.elementRef.nativeElement,"scroll").pipe((0,W.R)(this._destroyed)).subscribe(K)))}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(be){const Re=this.elementRef.nativeElement,ze=this.dir&&"rtl"==this.dir.value;null==be.left&&(be.left=ze?be.end:be.start),null==be.right&&(be.right=ze?be.start:be.end),null!=be.bottom&&(be.top=Re.scrollHeight-Re.clientHeight-be.bottom),ze&&0!=(0,ee._i)()?(null!=be.left&&(be.right=Re.scrollWidth-Re.clientWidth-be.left),2==(0,ee._i)()?be.left=be.right:1==(0,ee._i)()&&(be.left=be.right?-be.right:be.right)):null!=be.right&&(be.left=Re.scrollWidth-Re.clientWidth-be.right),this._applyScrollToOptions(be)}_applyScrollToOptions(be){const Re=this.elementRef.nativeElement;(0,ee.Mq)()?Re.scrollTo(be):(null!=be.top&&(Re.scrollTop=be.top),null!=be.left&&(Re.scrollLeft=be.left))}measureScrollOffset(be){const Re="left",Oe=this.elementRef.nativeElement;if("top"==be)return Oe.scrollTop;if("bottom"==be)return Oe.scrollHeight-Oe.clientHeight-Oe.scrollTop;const K=this.dir&&"rtl"==this.dir.value;return"start"==be?be=K?"right":Re:"end"==be&&(be=K?Re:"right"),K&&2==(0,ee._i)()?be==Re?Oe.scrollWidth-Oe.clientWidth-Oe.scrollLeft:Oe.scrollLeft:K&&1==(0,ee._i)()?be==Re?Oe.scrollLeft+Oe.scrollWidth-Oe.clientWidth:-Oe.scrollLeft:be==Re?Oe.scrollLeft:Oe.scrollWidth-Oe.clientWidth-Oe.scrollLeft}}return U.\u0275fac=function(be){return new(be||U)(t.Y36(t.SBq),t.Y36(a),t.Y36(t.R0b),t.Y36(ge.Is,8))},U.\u0275dir=t.lG2({type:U,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),U})(),_=(()=>{class U{constructor(be,Re,ze){this._platform=be,this._change=new I.x,this._changeListener=Oe=>{this._change.next(Oe)},this._document=ze,Re.runOutsideAngular(()=>{if(be.isBrowser){const Oe=this._getWindow();Oe.addEventListener("resize",this._changeListener),Oe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const be=this._getWindow();be.removeEventListener("resize",this._changeListener),be.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const be={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),be}getViewportRect(){const be=this.getViewportScrollPosition(),{width:Re,height:ze}=this.getViewportSize();return{top:be.top,left:be.left,bottom:be.top+ze,right:be.left+Re,height:ze,width:Re}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const be=this._document,Re=this._getWindow(),ze=be.documentElement,Oe=ze.getBoundingClientRect();return{top:-Oe.top||be.body.scrollTop||Re.scrollY||ze.scrollTop||0,left:-Oe.left||be.body.scrollLeft||Re.scrollX||ze.scrollLeft||0}}change(be=20){return be>0?this._change.pipe((0,V.e)(be)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const be=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:be.innerWidth,height:be.innerHeight}:{width:0,height:0}}}return U.\u0275fac=function(be){return new(be||U)(t.LFG(ee.t4),t.LFG(t.R0b),t.LFG(te.K0,8))},U.\u0275prov=t.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Z=(()=>{class U{}return U.\u0275fac=function(be){return new(be||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({}),U})(),N=(()=>{class U{}return U.\u0275fac=function(be){return new(be||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({imports:[[ge.vT,ee.ud,Z],ge.vT,Z]}),U})()},1555:(Ge,Q,m)=>{"use strict";m.d(Q,{be:()=>ee,KL:()=>P,u6:()=>w,B8:()=>ge,U5:()=>de,st:()=>le,po:()=>re,gx:()=>te});var e=m(5664),t=m(3191),y=m(1159),C=m(9808),o=m(5e3),M=m(925),l=m(7579),R=m(9646),s=m(8675),L=m(2722),I=m(226);function A(se,ye){1&se&&o.Hsn(0)}const E=["*"];let P=(()=>{class se{constructor(v){this._elementRef=v}focus(){this._elementRef.nativeElement.focus()}}return se.\u0275fac=function(v){return new(v||se)(o.Y36(o.SBq))},se.\u0275dir=o.lG2({type:se,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),se})(),w=(()=>{class se{constructor(v){this.template=v}}return se.\u0275fac=function(v){return new(v||se)(o.Y36(o.Rgc))},se.\u0275dir=o.lG2({type:se,selectors:[["","cdkStepLabel",""]]}),se})(),V=0;const te=new o.OlP("STEPPER_GLOBAL_OPTIONS");let ee=(()=>{class se{constructor(v,i){this._stepper=v,this.interacted=!1,this.interactedStream=new o.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(v){this._editable=(0,t.Ig)(v)}get optional(){return this._optional}set optional(v){this._optional=(0,t.Ig)(v)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(v){this._completedOverride=(0,t.Ig)(v)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(v){this._customError=(0,t.Ig)(v)}_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 v;return null!==(v=this._stepperOptions.showError)&&void 0!==v?v:null!=this._customError}}return se.\u0275fac=function(v){return new(v||se)(o.Y36((0,o.Gpc)(()=>ge)),o.Y36(te,8))},se.\u0275cmp=o.Xpm({type:se,selectors:[["cdk-step"]],contentQueries:function(v,i,a){if(1&v&&o.Suo(a,w,5),2&v){let p;o.iGM(p=o.CRH())&&(i.stepLabel=p.first)}},viewQuery:function(v,i){if(1&v&&o.Gf(o.Rgc,7),2&v){let a;o.iGM(a=o.CRH())&&(i.content=a.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:[o.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(v,i){1&v&&(o.F$t(),o.YNc(0,A,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),se})(),ge=(()=>{class se{constructor(v,i,a,p){this._dir=v,this._changeDetectorRef=i,this._elementRef=a,this._destroyed=new l.x,this.steps=new o.n_E,this._sortedHeaders=new o.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new o.vpe,this._orientation="horizontal",this._groupId=V++}get linear(){return this._linear}set linear(v){this._linear=(0,t.Ig)(v)}get selectedIndex(){return this._selectedIndex}set selectedIndex(v){var i;const a=(0,t.su)(v);this.steps&&this._steps?(this._isValidIndex(v),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==a&&!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(v)):this._selectedIndex=a}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(v){this.selectedIndex=v&&this.steps?this.steps.toArray().indexOf(v):-1}get orientation(){return this._orientation}set orientation(v){this._orientation=v,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===v)}ngAfterContentInit(){this._steps.changes.pipe((0,s.O)(this._steps),(0,L.R)(this._destroyed)).subscribe(v=>{this.steps.reset(v.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,s.O)(this._stepHeader),(0,L.R)(this._destroyed)).subscribe(v=>{this._sortedHeaders.reset(v.toArray().sort((i,a)=>i._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new e.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,s.O)(this._layoutDirection()),(0,L.R)(this._destroyed)).subscribe(v=>this._keyManager.withHorizontalOrientation(v)),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(v=>v.reset()),this._stateChanged()}_getStepLabelId(v){return`cdk-step-label-${this._groupId}-${v}`}_getStepContentId(v){return`cdk-step-content-${this._groupId}-${v}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(v){const i=v-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(v,i="number"){const a=this.steps.toArray()[v],p=this._isCurrentStep(v);return a._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(a,p):this._getGuidelineLogic(a,p,i)}_getDefaultIndicatorLogic(v,i){return v._showError()&&v.hasError&&!i?"error":!v.completed||i?"number":v.editable?"edit":"done"}_getGuidelineLogic(v,i,a="number"){return v._showError()&&v.hasError&&!i?"error":v.completed&&!i?"done":v.completed&&i?a:v.editable&&i?"edit":a}_isCurrentStep(v){return this._selectedIndex===v}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(v){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:v,previouslySelectedIndex:this._selectedIndex,selectedStep:i[v],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(v):this._keyManager.updateActiveItem(v),this._selectedIndex=v,this._stateChanged()}_onKeydown(v){const i=(0,y.Vb)(v),a=v.keyCode,p=this._keyManager;null==p.activeItemIndex||i||a!==y.L_&&a!==y.K5?p.onKeydown(v):(this.selectedIndex=p.activeItemIndex,v.preventDefault())}_anyControlsInvalidOrPending(v){return!!(this._linear&&v>=0)&&this.steps.toArray().slice(0,v).some(i=>{const a=i.stepControl;return(a?a.invalid||a.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const v=this._elementRef.nativeElement,i=(0,M.ht)();return v===i||v.contains(i)}_isValidIndex(v){return v>-1&&(!this.steps||v{class se{constructor(v){this._stepper=v,this.type="submit"}}return se.\u0275fac=function(v){return new(v||se)(o.Y36(ge))},se.\u0275dir=o.lG2({type:se,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(v,i){1&v&&o.NdJ("click",function(){return i._stepper.next()}),2&v&&o.Ikx("type",i.type)},inputs:{type:"type"}}),se})(),re=(()=>{class se{constructor(v){this._stepper=v,this.type="button"}}return se.\u0275fac=function(v){return new(v||se)(o.Y36(ge))},se.\u0275dir=o.lG2({type:se,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(v,i){1&v&&o.NdJ("click",function(){return i._stepper.previous()}),2&v&&o.Ikx("type",i.type)},inputs:{type:"type"}}),se})(),de=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275mod=o.oAB({type:se}),se.\u0275inj=o.cJS({imports:[[I.vT]]}),se})()},8258:(Ge,Q,m)=>{"use strict";m.d(Q,{HI:()=>w,Xx:()=>i,_0:()=>de,nZ:()=>D,Hs:()=>se,rO:()=>W,cu:()=>V,XJ:()=>p,Ud:()=>u,VY:()=>P});var e=m(449),t=m(5191),y=m(7579),C=m(1135),o=m(9646),M=m(5698),l=m(9300),R=m(2722),s=m(5e3),L=m(3191),I=m(226);class P extends class A{constructor(){this.expansionModel=new e.Ov(!0)}toggle(x){this.expansionModel.toggle(this._trackByValue(x))}expand(x){this.expansionModel.select(this._trackByValue(x))}collapse(x){this.expansionModel.deselect(this._trackByValue(x))}isExpanded(x){return this.expansionModel.isSelected(this._trackByValue(x))}toggleDescendants(x){this.expansionModel.isSelected(this._trackByValue(x))?this.collapseDescendants(x):this.expandDescendants(x)}collapseAll(){this.expansionModel.clear()}expandDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.select(...r.map(b=>this._trackByValue(b)))}collapseDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.deselect(...r.map(b=>this._trackByValue(b)))}_trackByValue(x){return this.trackBy?this.trackBy(x):x}}{constructor(x,r){super(),this.getChildren=x,this.options=r,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const x=this.dataNodes.reduce((r,b)=>[...r,...this.getDescendants(b),b],[]);this.expansionModel.select(...x.map(r=>this._trackByValue(r)))}getDescendants(x){const r=[];return this._getDescendants(r,x),r.splice(1)}_getDescendants(x,r){x.push(r);const b=this.getChildren(r);Array.isArray(b)?b.forEach(Z=>this._getDescendants(x,Z)):(0,t.b)(b)&&b.pipe((0,M.q)(1),(0,l.h)(Boolean)).subscribe(Z=>{for(const N of Z)this._getDescendants(x,N)})}}const w=new s.OlP("CDK_TREE_NODE_OUTLET_NODE");let V=(()=>{class O{constructor(r,b){this.viewContainer=r,this._node=b}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(s.s_b),s.Y36(w,8))},O.\u0275dir=s.lG2({type:O,selectors:[["","cdkTreeNodeOutlet",""]]}),O})();class j{constructor(x){this.$implicit=x}}let W=(()=>{class O{constructor(r){this.template=r}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(s.Rgc))},O.\u0275dir=s.lG2({type:O,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),O})(),de=(()=>{class O{constructor(r,b){this._differs=r,this._changeDetectorRef=b,this._onDestroy=new y.x,this._levels=new Map,this.viewChange=new C.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(r){this._dataSource!==r&&this._switchDataSource(r)}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 r=this._nodeDefs.filter(b=>!b.when);this._defaultNodeDef=r[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(r){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),r||this._nodeOutlet.viewContainer.clear(),this._dataSource=r,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let r;(0,e.Z9)(this._dataSource)?r=this._dataSource.connect(this):(0,t.b)(this._dataSource)?r=this._dataSource:Array.isArray(this._dataSource)&&(r=(0,o.of)(this._dataSource)),r&&(this._dataSubscription=r.pipe((0,R.R)(this._onDestroy)).subscribe(b=>this.renderNodeChanges(b)))}renderNodeChanges(r,b=this._dataDiffer,Z=this._nodeOutlet.viewContainer,N){const U=b.diff(r);!U||(U.forEachOperation((ve,be,Re)=>{if(null==ve.previousIndex)this.insertNode(r[Re],Re,Z,N);else if(null==Re)Z.remove(be),this._levels.delete(ve.item);else{const ze=Z.get(be);Z.move(ze,Re)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(r,b){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(N=>N.when&&N.when(b,r))||this._defaultNodeDef}insertNode(r,b,Z,N){const U=this._getNodeDef(r,b),ve=new j(r);ve.level=this.treeControl.getLevel?this.treeControl.getLevel(r):void 0!==N&&this._levels.has(N)?this._levels.get(N)+1:0,this._levels.set(r,ve.level),(Z||this._nodeOutlet.viewContainer).createEmbeddedView(U.template,ve,b),se.mostRecentTreeNode&&(se.mostRecentTreeNode.data=r)}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(s.ZZ4),s.Y36(s.sBO))},O.\u0275cmp=s.Xpm({type:O,selectors:[["cdk-tree"]],contentQueries:function(r,b,Z){if(1&r&&s.Suo(Z,W,5),2&r){let N;s.iGM(N=s.CRH())&&(b._nodeDefs=N)}},viewQuery:function(r,b){if(1&r&&s.Gf(V,7),2&r){let Z;s.iGM(Z=s.CRH())&&(b._nodeOutlet=Z.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,b){1&r&&s.GkF(0,0)},directives:[V],encapsulation:2}),O})(),se=(()=>{class O{constructor(r,b){this._elementRef=r,this._tree=b,this._destroyed=new y.x,this._dataChanges=new y.x,O.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(r){this._elementRef.nativeElement.setAttribute("role",r)}get data(){return this._data}set data(r){r!==this._data&&(this._data=r,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 ye(O){let x=O.parentElement;for(;x&&!v(x);)x=x.parentElement;return x?x.classList.contains("cdk-nested-tree-node")?(0,L.su)(x.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(r){return new(r||O)(s.Y36(s.SBq),s.Y36(de))},O.\u0275dir=s.lG2({type:O,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,b){2&r&&s.uIk("aria-expanded",b.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),O})();function v(O){const x=O.classList;return!(!(null==x?void 0:x.contains("cdk-nested-tree-node"))&&!(null==x?void 0:x.contains("cdk-tree")))}let i=(()=>{class O extends se{constructor(r,b,Z){super(r,b),this._differs=Z}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const r=this._tree.treeControl.getChildren(this.data);Array.isArray(r)?this.updateChildrenNodes(r):(0,t.b)(r)&&r.pipe((0,R.R)(this._destroyed)).subscribe(b=>this.updateChildrenNodes(b)),this.nodeOutlet.changes.pipe((0,R.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(r){const b=this._getNodeOutlet();r&&(this._children=r),b&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,b.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const r=this._getNodeOutlet();r&&(r.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const r=this.nodeOutlet;return r&&r.find(b=>!b._node||b._node===this)}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(s.SBq),s.Y36(de),s.Y36(s.ZZ4))},O.\u0275dir=s.lG2({type:O,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,b,Z){if(1&r&&s.Suo(Z,V,5),2&r){let N;s.iGM(N=s.CRH())&&(b.nodeOutlet=N)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[s._Bn([{provide:se,useExisting:O},{provide:w,useExisting:O}]),s.qOj]}),O})();const a=/([A-Za-z%]+)$/;let p=(()=>{class O{constructor(r,b,Z,N){this._treeNode=r,this._tree=b,this._element=Z,this._dir=N,this._destroyed=new y.x,this.indentUnits="px",this._indent=40,this._setPadding(),N&&N.change.pipe((0,R.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),r._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(r){this._setLevelInput(r)}get indent(){return this._indent}set indent(r){this._setIndentInput(r)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const r=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,b=null==this._level?r:this._level;return"number"==typeof b?`${b*this._indent}${this.indentUnits}`:null}_setPadding(r=!1){const b=this._paddingIndent();if(b!==this._currentPadding||r){const Z=this._element.nativeElement,N=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",U="paddingLeft"===N?"paddingRight":"paddingLeft";Z.style[N]=b||"",Z.style[U]="",this._currentPadding=b}}_setLevelInput(r){this._level=(0,L.su)(r,null),this._setPadding()}_setIndentInput(r){let b=r,Z="px";if("string"==typeof r){const N=r.split(a);b=N[0],Z=N[1]||Z}this.indentUnits=Z,this._indent=(0,L.su)(b),this._setPadding()}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(se),s.Y36(de),s.Y36(s.SBq),s.Y36(I.Is,8))},O.\u0275dir=s.lG2({type:O,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),O})(),u=(()=>{class O{constructor(r,b){this._tree=r,this._treeNode=b,this._recursive=!1}get recursive(){return this._recursive}set recursive(r){this._recursive=(0,L.Ig)(r)}_toggle(r){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),r.stopPropagation()}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(de),s.Y36(se))},O.\u0275dir=s.lG2({type:O,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,b){1&r&&s.NdJ("click",function(N){return b._toggle(N)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),O})(),D=(()=>{class O{}return O.\u0275fac=function(r){return new(r||O)},O.\u0275mod=s.oAB({type:O}),O.\u0275inj=s.cJS({}),O})()},9808:(Ge,Q,m)=>{"use strict";m.d(Q,{mr:()=>te,Ov:()=>xr,ez:()=>wa,K0:()=>l,uU:()=>Ga,JJ:()=>Ba,Do:()=>ge,Ts:()=>Kn,Nd:()=>Qn,V_:()=>L,Ye:()=>le,S$:()=>j,i8:()=>hs,mk:()=>qi,sg:()=>gt,O5:()=>Ci,PC:()=>dn,RF:()=>Ln,n9:()=>_n,ED:()=>kn,tP:()=>Lr,b0:()=>ee,lw:()=>R,OU:()=>ga,rS:()=>pa,gd:()=>ma,EM:()=>ra,JF:()=>ja,NF:()=>ha,PM:()=>pr,w_:()=>M,bD:()=>Nr,q:()=>y,Mx:()=>Si,HT:()=>o});var e=m(5e3);let t=null;function y(){return t}function o(Xe){t||(t=Xe)}class M{}const l=new e.OlP("DocumentToken");let R=(()=>{class Xe{historyGo(J){throw new Error("Not implemented")}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function s(){return(0,e.LFG)(I)}()},providedIn:"platform"}),Xe})();const L=new e.OlP("Location Initialized");let I=(()=>{class Xe extends R{constructor(J){super(),this._doc=J,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(J){const ne=y().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",J,!1),()=>ne.removeEventListener("popstate",J)}onHashChange(J){const ne=y().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",J,!1),()=>ne.removeEventListener("hashchange",J)}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(J){this.location.pathname=J}pushState(J,ne,Qe){A()?this._history.pushState(J,ne,Qe):this.location.hash=Qe}replaceState(J,ne,Qe){A()?this._history.replaceState(J,ne,Qe):this.location.hash=Qe}forward(){this._history.forward()}back(){this._history.back()}historyGo(J=0){this._history.go(J)}getState(){return this._history.state}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(l))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function E(){return new I((0,e.LFG)(l))}()},providedIn:"platform"}),Xe})();function A(){return!!window.history.pushState}function P(Xe,me){if(0==Xe.length)return me;if(0==me.length)return Xe;let J=0;return Xe.endsWith("/")&&J++,me.startsWith("/")&&J++,2==J?Xe+me.substring(1):1==J?Xe+me:Xe+"/"+me}function w(Xe){const me=Xe.match(/#|\?|$/),J=me&&me.index||Xe.length;return Xe.slice(0,J-("/"===Xe[J-1]?1:0))+Xe.slice(J)}function V(Xe){return Xe&&"?"!==Xe[0]?"?"+Xe:Xe}let j=(()=>{class Xe{historyGo(J){throw new Error("Not implemented")}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function W(Xe){const me=(0,e.LFG)(l).location;return new ee((0,e.LFG)(R),me&&me.origin||"")}()},providedIn:"root"}),Xe})();const te=new e.OlP("appBaseHref");let ee=(()=>{class Xe extends j{constructor(J,ne){if(super(),this._platformLocation=J,this._removeListenerFns=[],null==ne&&(ne=this._platformLocation.getBaseHrefFromDOM()),null==ne)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=ne}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}prepareExternalUrl(J){return P(this._baseHref,J)}path(J=!1){const ne=this._platformLocation.pathname+V(this._platformLocation.search),Qe=this._platformLocation.hash;return Qe&&J?`${ne}${Qe}`:ne}pushState(J,ne,Qe,Wt){const mi=this.prepareExternalUrl(Qe+V(Wt));this._platformLocation.pushState(J,ne,mi)}replaceState(J,ne,Qe,Wt){const mi=this.prepareExternalUrl(Qe+V(Wt));this._platformLocation.replaceState(J,ne,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,J)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(R),e.LFG(te,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),ge=(()=>{class Xe extends j{constructor(J,ne){super(),this._platformLocation=J,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}path(J=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(J){const ne=P(this._baseHref,J);return ne.length>0?"#"+ne:ne}pushState(J,ne,Qe,Wt){let mi=this.prepareExternalUrl(Qe+V(Wt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.pushState(J,ne,mi)}replaceState(J,ne,Qe,Wt){let mi=this.prepareExternalUrl(Qe+V(Wt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.replaceState(J,ne,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,J)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(R),e.LFG(te,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),le=(()=>{class Xe{constructor(J,ne){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=J;const Qe=this._platformStrategy.getBaseHref();this._platformLocation=ne,this._baseHref=w(se(Qe)),this._platformStrategy.onPopState(Wt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Wt.state,type:Wt.type})})}path(J=!1){return this.normalize(this._platformStrategy.path(J))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(J,ne=""){return this.path()==this.normalize(J+V(ne))}normalize(J){return Xe.stripTrailingSlash(function de(Xe,me){return Xe&&me.startsWith(Xe)?me.substring(Xe.length):me}(this._baseHref,se(J)))}prepareExternalUrl(J){return J&&"/"!==J[0]&&(J="/"+J),this._platformStrategy.prepareExternalUrl(J)}go(J,ne="",Qe=null){this._platformStrategy.pushState(Qe,"",J,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+V(ne)),Qe)}replaceState(J,ne="",Qe=null){this._platformStrategy.replaceState(Qe,"",J,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+V(ne)),Qe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformStrategy).historyGo)||void 0===Qe||Qe.call(ne,J)}onUrlChange(J){this._urlChangeListeners.push(J),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)}))}_notifyUrlChangeListeners(J="",ne){this._urlChangeListeners.forEach(Qe=>Qe(J,ne))}subscribe(J,ne,Qe){return this._subject.subscribe({next:J,error:ne,complete:Qe})}}return Xe.normalizeQueryParams=V,Xe.joinWithSlash=P,Xe.stripTrailingSlash=w,Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(j),e.LFG(R))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function re(){return new le((0,e.LFG)(j),(0,e.LFG)(R))}()},providedIn:"root"}),Xe})();function se(Xe){return Xe.replace(/\/index.html$/,"")}var v=(()=>((v=v||{})[v.Decimal=0]="Decimal",v[v.Percent=1]="Percent",v[v.Currency=2]="Currency",v[v.Scientific=3]="Scientific",v))(),i=(()=>((i=i||{})[i.Zero=0]="Zero",i[i.One=1]="One",i[i.Two=2]="Two",i[i.Few=3]="Few",i[i.Many=4]="Many",i[i.Other=5]="Other",i))(),a=(()=>((a=a||{})[a.Format=0]="Format",a[a.Standalone=1]="Standalone",a))(),p=(()=>((p=p||{})[p.Narrow=0]="Narrow",p[p.Abbreviated=1]="Abbreviated",p[p.Wide=2]="Wide",p[p.Short=3]="Short",p))(),u=(()=>((u=u||{})[u.Short=0]="Short",u[u.Medium=1]="Medium",u[u.Long=2]="Long",u[u.Full=3]="Full",u))(),_=(()=>((_=_||{})[_.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 ve(Xe,me){return Le((0,e.cg1)(Xe)[e.wAp.DateFormat],me)}function be(Xe,me){return Le((0,e.cg1)(Xe)[e.wAp.TimeFormat],me)}function Re(Xe,me){return Le((0,e.cg1)(Xe)[e.wAp.DateTimeFormat],me)}function ze(Xe,me){const J=(0,e.cg1)(Xe),ne=J[e.wAp.NumberSymbols][me];if(void 0===ne){if(me===_.CurrencyDecimal)return J[e.wAp.NumberSymbols][_.Decimal];if(me===_.CurrencyGroup)return J[e.wAp.NumberSymbols][_.Group]}return ne}const Ze=e.kL8;function vt(Xe){if(!Xe[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Xe[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Le(Xe,me){for(let J=me;J>-1;J--)if(void 0!==Xe[J])return Xe[J];throw new Error("Locale data API: locale data undefined")}function Pe(Xe){const[me,J]=Xe.split(":");return{hours:+me,minutes:+J}}const Ce=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ue={},lt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var nt=(()=>((nt=nt||{})[nt.Short=0]="Short",nt[nt.ShortGMT=1]="ShortGMT",nt[nt.Long=2]="Long",nt[nt.Extended=3]="Extended",nt))(),ft=(()=>((ft=ft||{})[ft.FullYear=0]="FullYear",ft[ft.Month=1]="Month",ft[ft.Date=2]="Date",ft[ft.Hours=3]="Hours",ft[ft.Minutes=4]="Minutes",ft[ft.Seconds=5]="Seconds",ft[ft.FractionalSeconds=6]="FractionalSeconds",ft[ft.Day=7]="Day",ft))(),it=(()=>((it=it||{})[it.DayPeriods=0]="DayPeriods",it[it.Days=1]="Days",it[it.Months=2]="Months",it[it.Eras=3]="Eras",it))();function rt(Xe,me,J,ne){let Qe=function Be(Xe){if(st(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[Qe,Wt=1,mi=1]=Xe.split("-").map(Ct=>+Ct);return Mt(Qe,Wt-1,mi)}const J=parseFloat(Xe);if(!isNaN(Xe-J))return new Date(J);let ne;if(ne=Xe.match(Ce))return function at(Xe){const me=new Date(0);let J=0,ne=0;const Qe=Xe[8]?me.setUTCFullYear:me.setFullYear,Wt=Xe[8]?me.setUTCHours:me.setHours;Xe[9]&&(J=Number(Xe[9]+Xe[10]),ne=Number(Xe[9]+Xe[11])),Qe.call(me,Number(Xe[1]),Number(Xe[2])-1,Number(Xe[3]));const mi=Number(Xe[4]||0)-J,Ct=Number(Xe[5]||0)-ne,ti=Number(Xe[6]||0),bt=Math.floor(1e3*parseFloat("0."+(Xe[7]||0)));return Wt.call(me,mi,Ct,ti,bt),me}(ne)}const me=new Date(Xe);if(!st(me))throw new Error(`Unable to convert "${Xe}" into a date`);return me}(Xe);me=Zt(J,me)||me;let Ct,mi=[];for(;me;){if(Ct=lt.exec(me),!Ct){mi.push(me);break}{mi=mi.concat(Ct.slice(1));const Yt=mi.pop();if(!Yt)break;me=Yt}}let ti=Qe.getTimezoneOffset();ne&&(ti=Jt(ne,ti),Qe=function ke(Xe,me,J){const ne=J?-1:1,Qe=Xe.getTimezoneOffset();return function ct(Xe,me){return(Xe=new Date(Xe.getTime())).setMinutes(Xe.getMinutes()+me),Xe}(Xe,ne*(Jt(me,Qe)-Qe))}(Qe,ne,!0));let bt="";return mi.forEach(Yt=>{const xi=function Nt(Xe){if($t[Xe])return $t[Xe];let me;switch(Xe){case"G":case"GG":case"GGG":me=ki(it.Eras,p.Abbreviated);break;case"GGGG":me=ki(it.Eras,p.Wide);break;case"GGGGG":me=ki(it.Eras,p.Narrow);break;case"y":me=jt(ft.FullYear,1,0,!1,!0);break;case"yy":me=jt(ft.FullYear,2,0,!0,!0);break;case"yyy":me=jt(ft.FullYear,3,0,!1,!0);break;case"yyyy":me=jt(ft.FullYear,4,0,!1,!0);break;case"Y":me=et(1);break;case"YY":me=et(2,!0);break;case"YYY":me=et(3);break;case"YYYY":me=et(4);break;case"M":case"L":me=jt(ft.Month,1,1);break;case"MM":case"LL":me=jt(ft.Month,2,1);break;case"MMM":me=ki(it.Months,p.Abbreviated);break;case"MMMM":me=ki(it.Months,p.Wide);break;case"MMMMM":me=ki(it.Months,p.Narrow);break;case"LLL":me=ki(it.Months,p.Abbreviated,a.Standalone);break;case"LLLL":me=ki(it.Months,p.Wide,a.Standalone);break;case"LLLLL":me=ki(it.Months,p.Narrow,a.Standalone);break;case"w":me=De(1);break;case"ww":me=De(2);break;case"W":me=De(1,!0);break;case"d":me=jt(ft.Date,1);break;case"dd":me=jt(ft.Date,2);break;case"c":case"cc":me=jt(ft.Day,1);break;case"ccc":me=ki(it.Days,p.Abbreviated,a.Standalone);break;case"cccc":me=ki(it.Days,p.Wide,a.Standalone);break;case"ccccc":me=ki(it.Days,p.Narrow,a.Standalone);break;case"cccccc":me=ki(it.Days,p.Short,a.Standalone);break;case"E":case"EE":case"EEE":me=ki(it.Days,p.Abbreviated);break;case"EEEE":me=ki(it.Days,p.Wide);break;case"EEEEE":me=ki(it.Days,p.Narrow);break;case"EEEEEE":me=ki(it.Days,p.Short);break;case"a":case"aa":case"aaa":me=ki(it.DayPeriods,p.Abbreviated);break;case"aaaa":me=ki(it.DayPeriods,p.Wide);break;case"aaaaa":me=ki(it.DayPeriods,p.Narrow);break;case"b":case"bb":case"bbb":me=ki(it.DayPeriods,p.Abbreviated,a.Standalone,!0);break;case"bbbb":me=ki(it.DayPeriods,p.Wide,a.Standalone,!0);break;case"bbbbb":me=ki(it.DayPeriods,p.Narrow,a.Standalone,!0);break;case"B":case"BB":case"BBB":me=ki(it.DayPeriods,p.Abbreviated,a.Format,!0);break;case"BBBB":me=ki(it.DayPeriods,p.Wide,a.Format,!0);break;case"BBBBB":me=ki(it.DayPeriods,p.Narrow,a.Format,!0);break;case"h":me=jt(ft.Hours,1,-12);break;case"hh":me=jt(ft.Hours,2,-12);break;case"H":me=jt(ft.Hours,1);break;case"HH":me=jt(ft.Hours,2);break;case"m":me=jt(ft.Minutes,1);break;case"mm":me=jt(ft.Minutes,2);break;case"s":me=jt(ft.Seconds,1);break;case"ss":me=jt(ft.Seconds,2);break;case"S":me=jt(ft.FractionalSeconds,1);break;case"SS":me=jt(ft.FractionalSeconds,2);break;case"SSS":me=jt(ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":me=hi(nt.Short);break;case"ZZZZZ":me=hi(nt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":me=hi(nt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":me=hi(nt.Long);break;default:return null}return $t[Xe]=me,me}(Yt);bt+=xi?xi(Qe,J,ti):"''"===Yt?"'":Yt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bt}function Mt(Xe,me,J){const ne=new Date(0);return ne.setFullYear(Xe,me,J),ne.setHours(0,0,0),ne}function Zt(Xe,me){const J=function O(Xe){return(0,e.cg1)(Xe)[e.wAp.LocaleId]}(Xe);if(Ue[J]=Ue[J]||{},Ue[J][me])return Ue[J][me];let ne="";switch(me){case"shortDate":ne=ve(Xe,u.Short);break;case"mediumDate":ne=ve(Xe,u.Medium);break;case"longDate":ne=ve(Xe,u.Long);break;case"fullDate":ne=ve(Xe,u.Full);break;case"shortTime":ne=be(Xe,u.Short);break;case"mediumTime":ne=be(Xe,u.Medium);break;case"longTime":ne=be(Xe,u.Long);break;case"fullTime":ne=be(Xe,u.Full);break;case"short":const Qe=Zt(Xe,"shortTime"),Wt=Zt(Xe,"shortDate");ne=Ft(Re(Xe,u.Short),[Qe,Wt]);break;case"medium":const mi=Zt(Xe,"mediumTime"),Ct=Zt(Xe,"mediumDate");ne=Ft(Re(Xe,u.Medium),[mi,Ct]);break;case"long":const ti=Zt(Xe,"longTime"),bt=Zt(Xe,"longDate");ne=Ft(Re(Xe,u.Long),[ti,bt]);break;case"full":const Yt=Zt(Xe,"fullTime"),xi=Zt(Xe,"fullDate");ne=Ft(Re(Xe,u.Full),[Yt,xi])}return ne&&(Ue[J][me]=ne),ne}function Ft(Xe,me){return me&&(Xe=Xe.replace(/\{([^}]+)}/g,function(J,ne){return null!=me&&ne in me?me[ne]:J})),Xe}function Vt(Xe,me,J="-",ne,Qe){let Wt="";(Xe<0||Qe&&Xe<=0)&&(Qe?Xe=1-Xe:(Xe=-Xe,Wt=J));let mi=String(Xe);for(;mi.length0||Ct>-J)&&(Ct+=J),Xe===ft.Hours)0===Ct&&-12===J&&(Ct=12);else if(Xe===ft.FractionalSeconds)return function Ii(Xe,me){return Vt(Xe,3).substr(0,me)}(Ct,me);const ti=ze(mi,_.MinusSign);return Vt(Ct,me,ti,ne,Qe)}}function ki(Xe,me,J=a.Format,ne=!1){return function(Qe,Wt){return function ai(Xe,me,J,ne,Qe,Wt){switch(J){case it.Months:return function b(Xe,me,J){const ne=(0,e.cg1)(Xe),Wt=Le([ne[e.wAp.MonthsFormat],ne[e.wAp.MonthsStandalone]],me);return Le(Wt,J)}(me,Qe,ne)[Xe.getMonth()];case it.Days:return function r(Xe,me,J){const ne=(0,e.cg1)(Xe),Wt=Le([ne[e.wAp.DaysFormat],ne[e.wAp.DaysStandalone]],me);return Le(Wt,J)}(me,Qe,ne)[Xe.getDay()];case it.DayPeriods:const mi=Xe.getHours(),Ct=Xe.getMinutes();if(Wt){const bt=function Fe(Xe){const me=(0,e.cg1)(Xe);return vt(me),(me[e.wAp.ExtraData][2]||[]).map(ne=>"string"==typeof ne?Pe(ne):[Pe(ne[0]),Pe(ne[1])])}(me),Yt=function Ne(Xe,me,J){const ne=(0,e.cg1)(Xe);vt(ne);const Wt=Le([ne[e.wAp.ExtraData][0],ne[e.wAp.ExtraData][1]],me)||[];return Le(Wt,J)||[]}(me,Qe,ne),xi=bt.findIndex(Bi=>{if(Array.isArray(Bi)){const[yn,An]=Bi,Wi=mi>=yn.hours&&Ct>=yn.minutes,Cr=mi0?Math.floor(Qe/60):Math.ceil(Qe/60);switch(Xe){case nt.Short:return(Qe>=0?"+":"")+Vt(mi,2,Wt)+Vt(Math.abs(Qe%60),2,Wt);case nt.ShortGMT:return"GMT"+(Qe>=0?"+":"")+Vt(mi,1,Wt);case nt.Long:return"GMT"+(Qe>=0?"+":"")+Vt(mi,2,Wt)+":"+Vt(Math.abs(Qe%60),2,Wt);case nt.Extended:return 0===ne?"Z":(Qe>=0?"+":"")+Vt(mi,2,Wt)+":"+Vt(Math.abs(Qe%60),2,Wt);default:throw new Error(`Unknown zone width "${Xe}"`)}}}function pe(Xe){return Mt(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()+(4-Xe.getDay()))}function De(Xe,me=!1){return function(J,ne){let Qe;if(me){const Wt=new Date(J.getFullYear(),J.getMonth(),1).getDay()-1,mi=J.getDate();Qe=1+Math.floor((mi+Wt)/7)}else{const Wt=pe(J),mi=function Y(Xe){const me=Mt(Xe,0,1).getDay();return Mt(Xe,0,1+(me<=4?4:11)-me)}(Wt.getFullYear()),Ct=Wt.getTime()-mi.getTime();Qe=1+Math.round(Ct/6048e5)}return Vt(Qe,Xe,ze(ne,_.MinusSign))}}function et(Xe,me=!1){return function(J,ne){return Vt(pe(J).getFullYear(),Xe,ze(ne,_.MinusSign),me)}}const $t={};function Jt(Xe,me){Xe=Xe.replace(/:/g,"");const J=Date.parse("Jan 01, 1970 00:00:00 "+Xe)/6e4;return isNaN(J)?me:J}function st(Xe){return Xe instanceof Date&&!isNaN(Xe.valueOf())}const At=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Je(Xe){const me=parseInt(Xe);if(isNaN(me))throw new Error("Invalid integer literal when parsing "+Xe);return me}class St{}let yi=(()=>{class Xe extends St{constructor(J){super(),this.locale=J}getPluralCategory(J,ne){switch(Ze(ne||this.locale)(J)){case i.Zero:return"zero";case i.One:return"one";case i.Two:return"two";case i.Few:return"few";case i.Many:return"many";default:return"other"}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(e.soG))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();function Si(Xe,me){me=encodeURIComponent(me);for(const J of Xe.split(";")){const ne=J.indexOf("="),[Qe,Wt]=-1==ne?[J,""]:[J.slice(0,ne),J.slice(ne+1)];if(Qe.trim()===me)return decodeURIComponent(Wt)}return null}let qi=(()=>{class Xe{constructor(J,ne,Qe,Wt){this._iterableDiffers=J,this._keyValueDiffers=ne,this._ngEl=Qe,this._renderer=Wt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(J){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof J?J.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(J){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof J?J.split(/\s+/):J,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const J=this._iterableDiffer.diff(this._rawClass);J&&this._applyIterableChanges(J)}else if(this._keyValueDiffer){const J=this._keyValueDiffer.diff(this._rawClass);J&&this._applyKeyValueChanges(J)}}_applyKeyValueChanges(J){J.forEachAddedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),J.forEachChangedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),J.forEachRemovedItem(ne=>{ne.previousValue&&this._toggleClass(ne.key,!1)})}_applyIterableChanges(J){J.forEachAddedItem(ne=>{if("string"!=typeof ne.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(ne.item)}`);this._toggleClass(ne.item,!0)}),J.forEachRemovedItem(ne=>this._toggleClass(ne.item,!1))}_applyClasses(J){J&&(Array.isArray(J)||J instanceof Set?J.forEach(ne=>this._toggleClass(ne,!0)):Object.keys(J).forEach(ne=>this._toggleClass(ne,!!J[ne])))}_removeClasses(J){J&&(Array.isArray(J)||J instanceof Set?J.forEach(ne=>this._toggleClass(ne,!1)):Object.keys(J).forEach(ne=>this._toggleClass(ne,!1)))}_toggleClass(J,ne){(J=J.trim())&&J.split(/\s+/g).forEach(Qe=>{ne?this._renderer.addClass(this._ngEl.nativeElement,Qe):this._renderer.removeClass(this._ngEl.nativeElement,Qe)})}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Xe})();class Kt{constructor(me,J,ne,Qe){this.$implicit=me,this.ngForOf=J,this.index=ne,this.count=Qe}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 gt=(()=>{class Xe{constructor(J,ne,Qe){this._viewContainer=J,this._template=ne,this._differs=Qe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(J){this._ngForOf=J,this._ngForOfDirty=!0}set ngForTrackBy(J){this._trackByFn=J}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(J){J&&(this._template=J)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const J=this._ngForOf;if(!this._differ&&J)try{this._differ=this._differs.find(J).create(this.ngForTrackBy)}catch(ne){throw new Error(`Cannot find a differ supporting object '${J}' of type '${function ui(Xe){return Xe.name||typeof Xe}(J)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const J=this._differ.diff(this._ngForOf);J&&this._applyChanges(J)}}_applyChanges(J){const ne=[];J.forEachOperation((Qe,Wt,mi)=>{if(null==Qe.previousIndex){const Ct=this._viewContainer.createEmbeddedView(this._template,new Kt(null,this._ngForOf,-1,-1),null===mi?void 0:mi),ti=new Lt(Qe,Ct);ne.push(ti)}else if(null==mi)this._viewContainer.remove(null===Wt?void 0:Wt);else if(null!==Wt){const Ct=this._viewContainer.get(Wt);this._viewContainer.move(Ct,mi);const ti=new Lt(Qe,Ct);ne.push(ti)}});for(let Qe=0;Qe{this._viewContainer.get(Qe.currentIndex).context.$implicit=Qe.item})}_perViewChange(J,ne){J.context.$implicit=ne.item}static ngTemplateContextGuard(J,ne){return!0}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Xe})();class Lt{constructor(me,J){this.record=me,this.view=J}}let Ci=(()=>{class Xe{constructor(J,ne){this._viewContainer=J,this._context=new Yi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(J){this._context.$implicit=this._context.ngIf=J,this._updateView()}set ngIfThen(J){$i("ngIfThen",J),this._thenTemplateRef=J,this._thenViewRef=null,this._updateView()}set ngIfElse(J){$i("ngIfElse",J),this._elseTemplateRef=J,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(J,ne){return!0}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Xe})();class Yi{constructor(){this.$implicit=null,this.ngIf=null}}function $i(Xe,me){if(me&&!me.createEmbeddedView)throw new Error(`${Xe} must be a TemplateRef, but received '${(0,e.AaK)(me)}'.`)}class Cn{constructor(me,J){this._viewContainerRef=me,this._templateRef=J,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(me){me&&!this._created?this.create():!me&&this._created&&this.destroy()}}let Ln=(()=>{class Xe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(J){this._ngSwitch=J,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(J){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(J)}_matchCase(J){const ne=J==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(J){if(this._defaultViews&&J!==this._defaultUsed){this._defaultUsed=J;for(let ne=0;ne{class Xe{constructor(J,ne,Qe){this.ngSwitch=Qe,Qe._addCase(),this._view=new Cn(J,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ln,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Xe})(),kn=(()=>{class Xe{constructor(J,ne,Qe){Qe._addDefault(new Cn(J,ne))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ln,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchDefault",""]]}),Xe})(),dn=(()=>{class Xe{constructor(J,ne,Qe){this._ngEl=J,this._differs=ne,this._renderer=Qe,this._ngStyle=null,this._differ=null}set ngStyle(J){this._ngStyle=J,!this._differ&&J&&(this._differ=this._differs.find(J).create())}ngDoCheck(){if(this._differ){const J=this._differ.diff(this._ngStyle);J&&this._applyChanges(J)}}_setStyle(J,ne){const[Qe,Wt]=J.split(".");null!=(ne=null!=ne&&Wt?`${ne}${Wt}`:ne)?this._renderer.setStyle(this._ngEl.nativeElement,Qe,ne):this._renderer.removeStyle(this._ngEl.nativeElement,Qe)}_applyChanges(J){J.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),J.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),J.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Xe})(),Lr=(()=>{class Xe{constructor(J){this._viewContainerRef=J,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(J){if(J.ngTemplateOutlet){const ne=this._viewContainerRef;this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ne.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&J.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),Xe})();function Gn(Xe,me){return Error(`InvalidPipeArgument: '${me}' for pipe '${(0,e.AaK)(Xe)}'`)}class Or{createSubscription(me,J){return me.subscribe({next:J,error:ne=>{throw ne}})}dispose(me){me.unsubscribe()}onDestroy(me){me.unsubscribe()}}class Ra{createSubscription(me,J){return me.then(J,ne=>{throw ne})}dispose(me){}onDestroy(me){}}const Ma=new Ra,Fa=new Or;let xr=(()=>{class Xe{constructor(J){this._ref=J,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(J){return this._obj?J!==this._obj?(this._dispose(),this.transform(J)):this._latestValue:(J&&this._subscribe(J),this._latestValue)}_subscribe(J){this._obj=J,this._strategy=this._selectStrategy(J),this._subscription=this._strategy.createSubscription(J,ne=>this._updateLatestValue(J,ne))}_selectStrategy(J){if((0,e.QGY)(J))return Ma;if((0,e.F4k)(J))return Fa;throw Gn(Xe,J)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(J,ne){J===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.sBO,16))},Xe.\u0275pipe=e.Yjl({name:"async",type:Xe,pure:!1}),Xe})(),hs=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.toLowerCase()}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"lowercase",type:Xe,pure:!0}),Xe})();const ur=/(?:[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 pa=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.replace(ur,ne=>ne[0].toUpperCase()+ne.substr(1).toLowerCase())}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"titlecase",type:Xe,pure:!0}),Xe})(),ma=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.toUpperCase()}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"uppercase",type:Xe,pure:!0}),Xe})();const Ir=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ga=(()=>{class Xe{constructor(J,ne){this.locale=J,this.defaultTimezone=ne}transform(J,ne="mediumDate",Qe,Wt){var mi;if(null==J||""===J||J!=J)return null;try{return rt(J,ne,Wt||this.locale,null!==(mi=null!=Qe?Qe:this.defaultTimezone)&&void 0!==mi?mi:void 0)}catch(Ct){throw Gn(Xe,Ct.message)}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.soG,16),e.Y36(Ir,24))},Xe.\u0275pipe=e.Yjl({name:"date",type:Xe,pure:!0}),Xe})(),Kn=(()=>{class Xe{transform(J){return JSON.stringify(J,null,2)}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"json",type:Xe,pure:!1}),Xe})(),Qn=(()=>{class Xe{constructor(J){this.differs=J,this.keyValues=[],this.compareFn=Tr}transform(J,ne=Tr){if(!J||!(J instanceof Map)&&"object"!=typeof J)return null;this.differ||(this.differ=this.differs.find(J).create());const Qe=this.differ.diff(J),Wt=ne!==this.compareFn;return Qe&&(this.keyValues=[],Qe.forEachItem(mi=>{this.keyValues.push(function vn(Xe,me){return{key:Xe,value:me}}(mi.key,mi.currentValue))})),(Qe||Wt)&&(this.keyValues.sort(ne),this.compareFn=ne),this.keyValues}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.aQg,16))},Xe.\u0275pipe=e.Yjl({name:"keyvalue",type:Xe,pure:!1}),Xe})();function Tr(Xe,me){const J=Xe.key,ne=me.key;if(J===ne)return 0;if(void 0===J)return 1;if(void 0===ne)return-1;if(null===J)return 1;if(null===ne)return-1;if("string"==typeof J&&"string"==typeof ne)return J{class Xe{constructor(J){this._locale=J}transform(J,ne,Qe){if(!function la(Xe){return!(null==Xe||""===Xe||Xe!=Xe)}(J))return null;Qe=Qe||this._locale;try{return function _t(Xe,me,J){return function Di(Xe,me,J,ne,Qe,Wt,mi=!1){let Ct="",ti=!1;if(isFinite(Xe)){let bt=function yt(Xe){let ne,Qe,Wt,mi,Ct,me=Math.abs(Xe)+"",J=0;for((Qe=me.indexOf("."))>-1&&(me=me.replace(".","")),(Wt=me.search(/e/i))>0?(Qe<0&&(Qe=Wt),Qe+=+me.slice(Wt+1),me=me.substring(0,Wt)):Qe<0&&(Qe=me.length),Wt=0;"0"===me.charAt(Wt);Wt++);if(Wt===(Ct=me.length))ne=[0],Qe=1;else{for(Ct--;"0"===me.charAt(Ct);)Ct--;for(Qe-=Wt,ne=[],mi=0;Wt<=Ct;Wt++,mi++)ne[mi]=Number(me.charAt(Wt))}return Qe>22&&(ne=ne.splice(0,21),J=Qe-1,Qe=1),{digits:ne,exponent:J,integerLen:Qe}}(Xe);mi&&(bt=function qe(Xe){if(0===Xe.digits[0])return Xe;const me=Xe.digits.length-Xe.integerLen;return Xe.exponent?Xe.exponent+=2:(0===me?Xe.digits.push(0,0):1===me&&Xe.digits.push(0),Xe.integerLen+=2),Xe}(bt));let Yt=me.minInt,xi=me.minFrac,Bi=me.maxFrac;if(Wt){const Rn=Wt.match(At);if(null===Rn)throw new Error(`${Wt} is not a valid digit info`);const _a=Rn[1],Mr=Rn[3],ds=Rn[5];null!=_a&&(Yt=Je(_a)),null!=Mr&&(xi=Je(Mr)),null!=ds?Bi=Je(ds):null!=Mr&&xi>Bi&&(Bi=xi)}!function ue(Xe,me,J){if(me>J)throw new Error(`The minimum number of digits after fraction (${me}) is higher than the maximum (${J}).`);let ne=Xe.digits,Qe=ne.length-Xe.integerLen;const Wt=Math.min(Math.max(me,Qe),J);let mi=Wt+Xe.integerLen,Ct=ne[mi];if(mi>0){ne.splice(Math.max(Xe.integerLen,mi));for(let xi=mi;xi=5)if(mi-1<0){for(let xi=0;xi>mi;xi--)ne.unshift(0),Xe.integerLen++;ne.unshift(1),Xe.integerLen++}else ne[mi-1]++;for(;Qe=bt?An.pop():ti=!1),Bi>=10?1:0},0);Yt&&(ne.unshift(Yt),Xe.integerLen++)}(bt,xi,Bi);let yn=bt.digits,An=bt.integerLen;const Wi=bt.exponent;let Cr=[];for(ti=yn.every(Rn=>!Rn);An0?Cr=yn.splice(An,yn.length):(Cr=yn,yn=[0]);const Un=[];for(yn.length>=me.lgSize&&Un.unshift(yn.splice(-me.lgSize,yn.length).join(""));yn.length>me.gSize;)Un.unshift(yn.splice(-me.gSize,yn.length).join(""));yn.length&&Un.unshift(yn.join("")),Ct=Un.join(ze(J,ne)),Cr.length&&(Ct+=ze(J,Qe)+Cr.join("")),Wi&&(Ct+=ze(J,_.Exponential)+"+"+Wi)}else Ct=ze(J,_.Infinity);return Ct=Xe<0&&!ti?me.negPre+Ct+me.negSuf:me.posPre+Ct+me.posSuf,Ct}(Xe,function _e(Xe,me="-"){const J={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ne=Xe.split(";"),Qe=ne[0],Wt=ne[1],mi=-1!==Qe.indexOf(".")?Qe.split("."):[Qe.substring(0,Qe.lastIndexOf("0")+1),Qe.substring(Qe.lastIndexOf("0")+1)],Ct=mi[0],ti=mi[1]||"";J.posPre=Ct.substr(0,Ct.indexOf("#"));for(let Yt=0;Yt{class Xe{transform(J,ne,Qe){if(null==J)return null;if(!this.supports(J))throw Gn(Xe,J);return J.slice(ne,Qe)}supports(J){return"string"==typeof J||Array.isArray(J)}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"slice",type:Xe,pure:!1}),Xe})(),wa=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275mod=e.oAB({type:Xe}),Xe.\u0275inj=e.cJS({providers:[{provide:St,useClass:yi}]}),Xe})();const Nr="browser";function ha(Xe){return Xe===Nr}function pr(Xe){return"server"===Xe}let ra=(()=>{class Xe{}return Xe.\u0275prov=(0,e.Yz7)({token:Xe,providedIn:"root",factory:()=>new Gr((0,e.LFG)(l),window)}),Xe})();class Gr{constructor(me,J){this.document=me,this.window=J,this.offset=()=>[0,0]}setOffset(me){this.offset=Array.isArray(me)?()=>me:me}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(me){this.supportsScrolling()&&this.window.scrollTo(me[0],me[1])}scrollToAnchor(me){if(!this.supportsScrolling())return;const J=function Zn(Xe,me){const J=Xe.getElementById(me)||Xe.getElementsByName(me)[0];if(J)return J;if("function"==typeof Xe.createTreeWalker&&Xe.body&&(Xe.body.createShadowRoot||Xe.body.attachShadow)){const ne=Xe.createTreeWalker(Xe.body,NodeFilter.SHOW_ELEMENT);let Qe=ne.currentNode;for(;Qe;){const Wt=Qe.shadowRoot;if(Wt){const mi=Wt.getElementById(me)||Wt.querySelector(`[name="${me}"]`);if(mi)return mi}Qe=ne.nextNode()}}return null}(this.document,me);J&&(this.scrollToElement(J),this.attemptFocus(J))}setHistoryScrollRestoration(me){if(this.supportScrollRestoration()){const J=this.window.history;J&&J.scrollRestoration&&(J.scrollRestoration=me)}}scrollToElement(me){const J=me.getBoundingClientRect(),ne=J.left+this.window.pageXOffset,Qe=J.top+this.window.pageYOffset,Wt=this.offset();this.window.scrollTo(ne-Wt[0],Qe-Wt[1])}attemptFocus(me){return me.focus(),this.document.activeElement===me}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const me=Ha(this.window.history)||Ha(Object.getPrototypeOf(this.window.history));return!(!me||!me.writable&&!me.set)}catch(me){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(me){return!1}}}function Ha(Xe){return Object.getOwnPropertyDescriptor(Xe,"scrollRestoration")}class ja{}},8138:(Ge,Q,m)=>{"use strict";m.d(Q,{TP:()=>O,eN:()=>_,JF:()=>Le,LE:()=>j});var e=m(9808),t=m(5e3),y=m(9646),C=m(8306),o=m(4351),M=m(9300),l=m(4004);class R{}class s{}class L{constructor(oe){this.normalizedNames=new Map,this.lazyUpdate=null,oe?this.lazyInit="string"==typeof oe?()=>{this.headers=new Map,oe.split("\n").forEach(Ce=>{const Ue=Ce.indexOf(":");if(Ue>0){const lt=Ce.slice(0,Ue),nt=lt.toLowerCase(),ft=Ce.slice(Ue+1).trim();this.maybeSetNormalizedName(lt,nt),this.headers.has(nt)?this.headers.get(nt).push(ft):this.headers.set(nt,[ft])}})}:()=>{this.headers=new Map,Object.keys(oe).forEach(Ce=>{let Ue=oe[Ce];const lt=Ce.toLowerCase();"string"==typeof Ue&&(Ue=[Ue]),Ue.length>0&&(this.headers.set(lt,Ue),this.maybeSetNormalizedName(Ce,lt))})}:this.headers=new Map}has(oe){return this.init(),this.headers.has(oe.toLowerCase())}get(oe){this.init();const Ce=this.headers.get(oe.toLowerCase());return Ce&&Ce.length>0?Ce[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(oe){return this.init(),this.headers.get(oe.toLowerCase())||null}append(oe,Ce){return this.clone({name:oe,value:Ce,op:"a"})}set(oe,Ce){return this.clone({name:oe,value:Ce,op:"s"})}delete(oe,Ce){return this.clone({name:oe,value:Ce,op:"d"})}maybeSetNormalizedName(oe,Ce){this.normalizedNames.has(Ce)||this.normalizedNames.set(Ce,oe)}init(){this.lazyInit&&(this.lazyInit instanceof L?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(oe=>this.applyUpdate(oe)),this.lazyUpdate=null))}copyFrom(oe){oe.init(),Array.from(oe.headers.keys()).forEach(Ce=>{this.headers.set(Ce,oe.headers.get(Ce)),this.normalizedNames.set(Ce,oe.normalizedNames.get(Ce))})}clone(oe){const Ce=new L;return Ce.lazyInit=this.lazyInit&&this.lazyInit instanceof L?this.lazyInit:this,Ce.lazyUpdate=(this.lazyUpdate||[]).concat([oe]),Ce}applyUpdate(oe){const Ce=oe.name.toLowerCase();switch(oe.op){case"a":case"s":let Ue=oe.value;if("string"==typeof Ue&&(Ue=[Ue]),0===Ue.length)return;this.maybeSetNormalizedName(oe.name,Ce);const lt=("a"===oe.op?this.headers.get(Ce):void 0)||[];lt.push(...Ue),this.headers.set(Ce,lt);break;case"d":const nt=oe.value;if(nt){let ft=this.headers.get(Ce);if(!ft)return;ft=ft.filter(it=>-1===nt.indexOf(it)),0===ft.length?(this.headers.delete(Ce),this.normalizedNames.delete(Ce)):this.headers.set(Ce,ft)}else this.headers.delete(Ce),this.normalizedNames.delete(Ce)}}forEach(oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ce=>oe(this.normalizedNames.get(Ce),this.headers.get(Ce)))}}class I{encodeKey(oe){return w(oe)}encodeValue(oe){return w(oe)}decodeKey(oe){return decodeURIComponent(oe)}decodeValue(oe){return decodeURIComponent(oe)}}const E=/%(\d[a-f0-9])/gi,P={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function w($){return encodeURIComponent($).replace(E,(oe,Ce)=>{var Ue;return null!==(Ue=P[Ce])&&void 0!==Ue?Ue:oe})}function V($){return`${$}`}class j{constructor(oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=oe.encoder||new I,oe.fromString){if(oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function A($,oe){const Ce=new Map;return $.length>0&&$.replace(/^\?/,"").split("&").forEach(lt=>{const nt=lt.indexOf("="),[ft,it]=-1==nt?[oe.decodeKey(lt),""]:[oe.decodeKey(lt.slice(0,nt)),oe.decodeValue(lt.slice(nt+1))],rt=Ce.get(ft)||[];rt.push(it),Ce.set(ft,rt)}),Ce}(oe.fromString,this.encoder)}else oe.fromObject?(this.map=new Map,Object.keys(oe.fromObject).forEach(Ce=>{const Ue=oe.fromObject[Ce];this.map.set(Ce,Array.isArray(Ue)?Ue:[Ue])})):this.map=null}has(oe){return this.init(),this.map.has(oe)}get(oe){this.init();const Ce=this.map.get(oe);return Ce?Ce[0]:null}getAll(oe){return this.init(),this.map.get(oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(oe,Ce){return this.clone({param:oe,value:Ce,op:"a"})}appendAll(oe){const Ce=[];return Object.keys(oe).forEach(Ue=>{const lt=oe[Ue];Array.isArray(lt)?lt.forEach(nt=>{Ce.push({param:Ue,value:nt,op:"a"})}):Ce.push({param:Ue,value:lt,op:"a"})}),this.clone(Ce)}set(oe,Ce){return this.clone({param:oe,value:Ce,op:"s"})}delete(oe,Ce){return this.clone({param:oe,value:Ce,op:"d"})}toString(){return this.init(),this.keys().map(oe=>{const Ce=this.encoder.encodeKey(oe);return this.map.get(oe).map(Ue=>Ce+"="+this.encoder.encodeValue(Ue)).join("&")}).filter(oe=>""!==oe).join("&")}clone(oe){const Ce=new j({encoder:this.encoder});return Ce.cloneFrom=this.cloneFrom||this,Ce.updates=(this.updates||[]).concat(oe),Ce}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(oe=>this.map.set(oe,this.cloneFrom.map.get(oe))),this.updates.forEach(oe=>{switch(oe.op){case"a":case"s":const Ce=("a"===oe.op?this.map.get(oe.param):void 0)||[];Ce.push(V(oe.value)),this.map.set(oe.param,Ce);break;case"d":if(void 0===oe.value){this.map.delete(oe.param);break}{let Ue=this.map.get(oe.param)||[];const lt=Ue.indexOf(V(oe.value));-1!==lt&&Ue.splice(lt,1),Ue.length>0?this.map.set(oe.param,Ue):this.map.delete(oe.param)}}}),this.cloneFrom=this.updates=null)}}class te{constructor(){this.map=new Map}set(oe,Ce){return this.map.set(oe,Ce),this}get(oe){return this.map.has(oe)||this.map.set(oe,oe.defaultValue()),this.map.get(oe)}delete(oe){return this.map.delete(oe),this}keys(){return this.map.keys()}}function ge($){return"undefined"!=typeof ArrayBuffer&&$ instanceof ArrayBuffer}function le($){return"undefined"!=typeof Blob&&$ instanceof Blob}function re($){return"undefined"!=typeof FormData&&$ instanceof FormData}class se{constructor(oe,Ce,Ue,lt){let nt;if(this.url=Ce,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=oe.toUpperCase(),function ee($){switch($){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||lt?(this.body=void 0!==Ue?Ue:null,nt=lt):nt=Ue,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new L),this.context||(this.context=new te),this.params){const ft=this.params.toString();if(0===ft.length)this.urlWithParams=Ce;else{const it=Ce.indexOf("?");this.urlWithParams=Ce+(-1===it?"?":itVt.set(Ii,oe.setHeaders[Ii]),Mt)),oe.setParams&&(Zt=Object.keys(oe.setParams).reduce((Vt,Ii)=>Vt.set(Ii,oe.setParams[Ii]),Zt)),new se(Ue,lt,ft,{params:Zt,headers:Mt,context:Ft,reportProgress:rt,responseType:nt,withCredentials:it})}}var ye=(()=>((ye=ye||{})[ye.Sent=0]="Sent",ye[ye.UploadProgress=1]="UploadProgress",ye[ye.ResponseHeader=2]="ResponseHeader",ye[ye.DownloadProgress=3]="DownloadProgress",ye[ye.Response=4]="Response",ye[ye.User=5]="User",ye))();class v{constructor(oe,Ce=200,Ue="OK"){this.headers=oe.headers||new L,this.status=void 0!==oe.status?oe.status:Ce,this.statusText=oe.statusText||Ue,this.url=oe.url||null,this.ok=this.status>=200&&this.status<300}}class i extends v{constructor(oe={}){super(oe),this.type=ye.ResponseHeader}clone(oe={}){return new i({headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class a extends v{constructor(oe={}){super(oe),this.type=ye.Response,this.body=void 0!==oe.body?oe.body:null}clone(oe={}){return new a({body:void 0!==oe.body?oe.body:this.body,headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class p extends v{constructor(oe){super(oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${oe.url||"(unknown url)"}`:`Http failure response for ${oe.url||"(unknown url)"}: ${oe.status} ${oe.statusText}`,this.error=oe.error||null}}function u($,oe){return{body:oe,headers:$.headers,context:$.context,observe:$.observe,params:$.params,reportProgress:$.reportProgress,responseType:$.responseType,withCredentials:$.withCredentials}}let _=(()=>{class ${constructor(Ce){this.handler=Ce}request(Ce,Ue,lt={}){let nt;if(Ce instanceof se)nt=Ce;else{let rt,Mt;rt=lt.headers instanceof L?lt.headers:new L(lt.headers),lt.params&&(Mt=lt.params instanceof j?lt.params:new j({fromObject:lt.params})),nt=new se(Ce,Ue,void 0!==lt.body?lt.body:null,{headers:rt,context:lt.context,params:Mt,reportProgress:lt.reportProgress,responseType:lt.responseType||"json",withCredentials:lt.withCredentials})}const ft=(0,y.of)(nt).pipe((0,o.b)(rt=>this.handler.handle(rt)));if(Ce instanceof se||"events"===lt.observe)return ft;const it=ft.pipe((0,M.h)(rt=>rt instanceof a));switch(lt.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return rt.body}));case"blob":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof Blob))throw new Error("Response is not a Blob.");return rt.body}));case"text":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&"string"!=typeof rt.body)throw new Error("Response is not a string.");return rt.body}));default:return it.pipe((0,l.U)(rt=>rt.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${lt.observe}}`)}}delete(Ce,Ue={}){return this.request("DELETE",Ce,Ue)}get(Ce,Ue={}){return this.request("GET",Ce,Ue)}head(Ce,Ue={}){return this.request("HEAD",Ce,Ue)}jsonp(Ce,Ue){return this.request("JSONP",Ce,{params:(new j).append(Ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ce,Ue={}){return this.request("OPTIONS",Ce,Ue)}patch(Ce,Ue,lt={}){return this.request("PATCH",Ce,u(lt,Ue))}post(Ce,Ue,lt={}){return this.request("POST",Ce,u(lt,Ue))}put(Ce,Ue,lt={}){return this.request("PUT",Ce,u(lt,Ue))}}return $.\u0275fac=function(Ce){return new(Ce||$)(t.LFG(R))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();class D{constructor(oe,Ce){this.next=oe,this.interceptor=Ce}handle(oe){return this.interceptor.intercept(oe,this.next)}}const O=new t.OlP("HTTP_INTERCEPTORS");let x=(()=>{class ${intercept(Ce,Ue){return Ue.handle(Ce)}}return $.\u0275fac=function(Ce){return new(Ce||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();const Re=/^\)\]\}',?\n/;let Oe=(()=>{class ${constructor(Ce){this.xhrFactory=Ce}handle(Ce){if("JSONP"===Ce.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new C.y(Ue=>{const lt=this.xhrFactory.build();if(lt.open(Ce.method,Ce.urlWithParams),Ce.withCredentials&&(lt.withCredentials=!0),Ce.headers.forEach((Ii,jt)=>lt.setRequestHeader(Ii,jt.join(","))),Ce.headers.has("Accept")||lt.setRequestHeader("Accept","application/json, text/plain, */*"),!Ce.headers.has("Content-Type")){const Ii=Ce.detectContentTypeHeader();null!==Ii&<.setRequestHeader("Content-Type",Ii)}if(Ce.responseType){const Ii=Ce.responseType.toLowerCase();lt.responseType="json"!==Ii?Ii:"text"}const nt=Ce.serializeBody();let ft=null;const it=()=>{if(null!==ft)return ft;const Ii=1223===lt.status?204:lt.status,jt=lt.statusText||"OK",ei=new L(lt.getAllResponseHeaders()),ki=function ze($){return"responseURL"in $&&$.responseURL?$.responseURL:/^X-Request-URL:/m.test($.getAllResponseHeaders())?$.getResponseHeader("X-Request-URL"):null}(lt)||Ce.url;return ft=new i({headers:ei,status:Ii,statusText:jt,url:ki}),ft},rt=()=>{let{headers:Ii,status:jt,statusText:ei,url:ki}=it(),ai=null;204!==jt&&(ai=void 0===lt.response?lt.responseText:lt.response),0===jt&&(jt=ai?200:0);let hi=jt>=200&&jt<300;if("json"===Ce.responseType&&"string"==typeof ai){const Ve=ai;ai=ai.replace(Re,"");try{ai=""!==ai?JSON.parse(ai):null}catch(Ee){ai=Ve,hi&&(hi=!1,ai={error:Ee,text:ai})}}hi?(Ue.next(new a({body:ai,headers:Ii,status:jt,statusText:ei,url:ki||void 0})),Ue.complete()):Ue.error(new p({error:ai,headers:Ii,status:jt,statusText:ei,url:ki||void 0}))},Mt=Ii=>{const{url:jt}=it(),ei=new p({error:Ii,status:lt.status||0,statusText:lt.statusText||"Unknown Error",url:jt||void 0});Ue.error(ei)};let Zt=!1;const Ft=Ii=>{Zt||(Ue.next(it()),Zt=!0);let jt={type:ye.DownloadProgress,loaded:Ii.loaded};Ii.lengthComputable&&(jt.total=Ii.total),"text"===Ce.responseType&&!!lt.responseText&&(jt.partialText=lt.responseText),Ue.next(jt)},Vt=Ii=>{let jt={type:ye.UploadProgress,loaded:Ii.loaded};Ii.lengthComputable&&(jt.total=Ii.total),Ue.next(jt)};return lt.addEventListener("load",rt),lt.addEventListener("error",Mt),lt.addEventListener("timeout",Mt),lt.addEventListener("abort",Mt),Ce.reportProgress&&(lt.addEventListener("progress",Ft),null!==nt&<.upload&<.upload.addEventListener("progress",Vt)),lt.send(nt),Ue.next({type:ye.Sent}),()=>{lt.removeEventListener("error",Mt),lt.removeEventListener("abort",Mt),lt.removeEventListener("load",rt),lt.removeEventListener("timeout",Mt),Ce.reportProgress&&(lt.removeEventListener("progress",Ft),null!==nt&<.upload&<.upload.removeEventListener("progress",Vt)),lt.readyState!==lt.DONE&<.abort()}})}}return $.\u0275fac=function(Ce){return new(Ce||$)(t.LFG(e.JF))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();const K=new t.OlP("XSRF_COOKIE_NAME"),Me=new t.OlP("XSRF_HEADER_NAME");class we{}let z=(()=>{class ${constructor(Ce,Ue,lt){this.doc=Ce,this.platform=Ue,this.cookieName=lt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ce=this.doc.cookie||"";return Ce!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(Ce,this.cookieName),this.lastCookieString=Ce),this.lastToken}}return $.\u0275fac=function(Ce){return new(Ce||$)(t.LFG(e.K0),t.LFG(t.Lbi),t.LFG(K))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),Ze=(()=>{class ${constructor(Ce,Ue){this.tokenService=Ce,this.headerName=Ue}intercept(Ce,Ue){const lt=Ce.url.toLowerCase();if("GET"===Ce.method||"HEAD"===Ce.method||lt.startsWith("http://")||lt.startsWith("https://"))return Ue.handle(Ce);const nt=this.tokenService.getToken();return null!==nt&&!Ce.headers.has(this.headerName)&&(Ce=Ce.clone({headers:Ce.headers.set(this.headerName,nt)})),Ue.handle(Ce)}}return $.\u0275fac=function(Ce){return new(Ce||$)(t.LFG(we),t.LFG(Me))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),vt=(()=>{class ${constructor(Ce,Ue){this.backend=Ce,this.injector=Ue,this.chain=null}handle(Ce){if(null===this.chain){const Ue=this.injector.get(O,[]);this.chain=Ue.reduceRight((lt,nt)=>new D(lt,nt),this.backend)}return this.chain.handle(Ce)}}return $.\u0275fac=function(Ce){return new(Ce||$)(t.LFG(s),t.LFG(t.zs3))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),ce=(()=>{class ${static disable(){return{ngModule:$,providers:[{provide:Ze,useClass:x}]}}static withOptions(Ce={}){return{ngModule:$,providers:[Ce.cookieName?{provide:K,useValue:Ce.cookieName}:[],Ce.headerName?{provide:Me,useValue:Ce.headerName}:[]]}}}return $.\u0275fac=function(Ce){return new(Ce||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[Ze,{provide:O,useExisting:Ze,multi:!0},{provide:we,useClass:z},{provide:K,useValue:"XSRF-TOKEN"},{provide:Me,useValue:"X-XSRF-TOKEN"}]}),$})(),Le=(()=>{class ${}return $.\u0275fac=function(Ce){return new(Ce||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[_,{provide:R,useClass:vt},Oe,{provide:s,useExisting:Oe}],imports:[[ce.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),$})()},5e3:(Ge,Q,m)=>{"use strict";m.d(Q,{deG:()=>fc,tb:()=>Vm,AFp:()=>zm,ip1:()=>_p,CZH:()=>$u,hGG:()=>x5,z2F:()=>k4,sBO:()=>Qg,Sil:()=>yp,_Vd:()=>T4,EJc:()=>Ym,SBq:()=>S4,qLn:()=>Ec,vpe:()=>lc,tBr:()=>Ho,XFs:()=>ce,OlP:()=>Yr,zs3:()=>Rs,ZZ4:()=>W3,aQg:()=>j3,soG:()=>G3,YKP:()=>qp,h0i:()=>Qu,PXZ:()=>Zg,R0b:()=>So,FiY:()=>zo,Lbi:()=>Zm,g9A:()=>Um,n_E:()=>B3,Qsj:()=>D8,FYo:()=>Gp,JOm:()=>os,q3G:()=>ua,PiD:()=>Bl,tp0:()=>qs,Rgc:()=>I4,dDg:()=>qm,GfV:()=>Yp,s_b:()=>z3,ifc:()=>ft,eFA:()=>Jm,Ez6:()=>Re,G48:()=>Kg,Gpc:()=>I,f3M:()=>cl,X6Q:()=>qg,_c5:()=>p5,VLi:()=>Hg,c2e:()=>Gm,zSh:()=>y2,wAp:()=>wn,vHH:()=>w,EiD:()=>Eh,mCW:()=>hl,qzn:()=>sr,JVY:()=>Wo,pB0:()=>w0,eBb:()=>xc,L6k:()=>fo,LAX:()=>jo,cg1:()=>l0,kL8:()=>Gu,yhl:()=>Na,dqk:()=>Ft,sIi:()=>zc,CqO:()=>xu,QGY:()=>H2,F4k:()=>bu,RDi:()=>ra,AaK:()=>R,z3N:()=>ya,qOj:()=>A2,TTD:()=>Jr,_Bn:()=>Up,xp6:()=>R1,uIk:()=>S2,Tol:()=>e0,Gre:()=>a0,ekj:()=>rc,Suo:()=>vm,Xpm:()=>De,lG2:()=>at,Yz7:()=>be,cJS:()=>ze,oAB:()=>ct,Yjl:()=>st,Y36:()=>Zc,_UZ:()=>R2,GkF:()=>vu,BQk:()=>B2,ynx:()=>F2,qZA:()=>J1,TgZ:()=>N2,EpF:()=>yu,n5z:()=>so,Ikx:()=>ih,LFG:()=>ka,$8M:()=>t1,$Z:()=>_u,NdJ:()=>X1,CRH:()=>ym,kcU:()=>Pn,O4$:()=>on,oxw:()=>U2,ALo:()=>om,lcZ:()=>lm,xi3:()=>cm,Dn7:()=>hm,Hsn:()=>Mu,F$t:()=>Cu,Q6J:()=>P2,s9C:()=>Vc,MGl:()=>yr,DdM:()=>Xp,VKq:()=>$p,WLB:()=>em,kEZ:()=>tm,iGM:()=>gm,MAs:()=>au,Jf7:()=>Hh,CHM:()=>zs,oJD:()=>T0,LSH:()=>S0,kYT:()=>ke,Udp:()=>wl,WFA:()=>z2,d8E:()=>Zu,YNc:()=>ru,W1O:()=>Mm,_uU:()=>X2,Oqu:()=>Kr,hij:()=>Al,AsE:()=>$s,lnq:()=>Iu,HOy:()=>$2,Gf:()=>_m});var e=m(7579),t=m(727),y=m(8306),C=m(6451),o=m(3099);function M(c){for(let h in c)if(c[h]===M)return h;throw Error("Could not find renamed property on target object.")}function l(c,h){for(const g in h)h.hasOwnProperty(g)&&!c.hasOwnProperty(g)&&(c[g]=h[g])}function R(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(R).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return`${c.overriddenName}`;if(c.name)return`${c.name}`;const h=c.toString();if(null==h)return""+h;const g=h.indexOf("\n");return-1===g?h:h.substring(0,g)}function s(c,h){return null==c||""===c?null===h?"":h:null==h||""===h?c:c+" "+h}const L=M({__forward_ref__:M});function I(c){return c.__forward_ref__=I,c.toString=function(){return R(this())},c}function A(c){return E(c)?c():c}function E(c){return"function"==typeof c&&c.hasOwnProperty(L)&&c.__forward_ref__===I}class w extends Error{constructor(h,g){super(function j(c,h){return`${c?`NG0${c}: `:""}${h}`}(h,g)),this.code=h}}function W(c){return"string"==typeof c?c:null==c?"":String(c)}function te(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():W(c)}function re(c,h){const g=h?` in ${h}`:"";throw new w("201",`No provider for ${te(c)} found${g}`)}function b(c,h){null==c&&function Z(c,h,g,S){throw new Error(`ASSERTION ERROR: ${c}`+(null==S?"":` [Expected=> ${g} ${S} ${h} <=Actual]`))}(h,c,null,"!=")}function be(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}const Re=be;function ze(c){return{providers:c.providers||[],imports:c.imports||[]}}function Oe(c){return K(c,Ze)||K(c,Fe)}function K(c,h){return c.hasOwnProperty(h)?c[h]:null}function z(c){return c&&(c.hasOwnProperty(vt)||c.hasOwnProperty(Ne))?c[vt]:null}const Ze=M({\u0275prov:M}),vt=M({\u0275inj:M}),Fe=M({ngInjectableDef:M}),Ne=M({ngInjectorDef:M});var ce=(()=>((ce=ce||{})[ce.Default=0]="Default",ce[ce.Host=1]="Host",ce[ce.Self=2]="Self",ce[ce.SkipSelf=4]="SkipSelf",ce[ce.Optional=8]="Optional",ce))();let Le;function q(c){const h=Le;return Le=c,h}function $(c,h,g){const S=Oe(c);return S&&"root"==S.providedIn?void 0===S.value?S.value=S.factory():S.value:g&ce.Optional?null:void 0!==h?h:void re(R(c),"Injector")}function Ce(c){return{toString:c}.toString()}var Ue=(()=>((Ue=Ue||{})[Ue.OnPush=0]="OnPush",Ue[Ue.Default=1]="Default",Ue))(),ft=(()=>{return(c=ft||(ft={}))[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom",ft;var c})();const it="undefined"!=typeof globalThis&&globalThis,rt="undefined"!=typeof window&&window,Mt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ft=it||"undefined"!=typeof global&&global||rt||Mt,jt={},ei=[],ki=M({\u0275cmp:M}),ai=M({\u0275dir:M}),hi=M({\u0275pipe:M}),Ve=M({\u0275mod:M}),Ee=M({\u0275fac:M}),Y=M({__NG_ELEMENT_ID__:M});let pe=0;function De(c){return Ce(()=>{const g={},S={type:c.type,providersResolver:null,decls:c.decls,vars:c.vars,factory:null,template:c.template||null,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===Ue.OnPush,directiveDefs:null,pipeDefs:null,selectors:c.selectors||ei,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||ft.Emulated,id:"c",styles:c.styles||ei,_:null,setInput:null,schemas:c.schemas||null,tView:null},F=c.directives,G=c.features,fe=c.pipes;return S.id+=pe++,S.inputs=Be(c.inputs,g),S.outputs=Be(c.outputs),G&&G.forEach(Ie=>Ie(S)),S.directiveDefs=F?()=>("function"==typeof F?F():F).map($t):null,S.pipeDefs=fe?()=>("function"==typeof fe?fe():fe).map(Nt):null,S})}function $t(c){return At(c)||function li(c){return c[ai]||null}(c)}function Nt(c){return function Bt(c){return c[hi]||null}(c)}const Jt={};function ct(c){return Ce(()=>{const h={type:c.type,bootstrap:c.bootstrap||ei,declarations:c.declarations||ei,imports:c.imports||ei,exports:c.exports||ei,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null};return null!=c.id&&(Jt[c.id]=c.type),h})}function ke(c,h){return Ce(()=>{const g=Rt(c,!0);g.declarations=h.declarations||ei,g.imports=h.imports||ei,g.exports=h.exports||ei})}function Be(c,h){if(null==c)return jt;const g={};for(const S in c)if(c.hasOwnProperty(S)){let F=c[S],G=F;Array.isArray(F)&&(G=F[1],F=F[0]),g[F]=S,h&&(h[F]=G)}return g}const at=De;function st(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,onDestroy:c.type.prototype.ngOnDestroy||null}}function At(c){return c[ki]||null}function Rt(c,h){const g=c[Ve]||null;if(!g&&!0===h)throw new Error(`Type ${R(c)} does not have '\u0275mod' property.`);return g}function _n(c){return Array.isArray(c)&&"object"==typeof c[1]}function kn(c){return Array.isArray(c)&&!0===c[1]}function dr(c){return 0!=(8&c.flags)}function wi(c){return 2==(2&c.flags)}function Fi(c){return 1==(1&c.flags)}function dn(c){return null!==c.template}function Lr(c){return 0!=(512&c[2])}function kr(c,h){return c.hasOwnProperty(Ee)?c[Ee]:null}class la{constructor(h,g,S){this.previousValue=h,this.currentValue=g,this.firstChange=S}isFirstChange(){return this.firstChange}}function Jr(){return ga}function ga(c){return c.type.prototype.ngOnChanges&&(c.setInput=wa),$n}function $n(){const c=ca(this),h=null==c?void 0:c.current;if(h){const g=c.previous;if(g===jt)c.previous=h;else for(let S in h)g[S]=h[S];c.current=null,this.ngOnChanges(h)}}function wa(c,h,g,S){const F=ca(c)||function Aa(c,h){return c[Nr]=h}(c,{previous:jt,current:null}),G=F.current||(F.current={}),fe=F.previous,Ie=this.declaredInputs[g],We=fe[Ie];G[Ie]=new la(We&&We.currentValue,h,fe===jt),c[S]=h}Jr.ngInherit=!0;const Nr="__ngSimpleChanges__";function ca(c){return c[Nr]||null}const Sr="http://www.w3.org/2000/svg";let Oa;function ra(c){Oa=c}function Gr(){return void 0!==Oa?Oa:"undefined"!=typeof document?document:void 0}function Zn(c){return!!c.listen}const ns={createRenderer:(c,h)=>Gr()};function Xe(c){for(;Array.isArray(c);)c=c[0];return c}function ne(c,h){return Xe(h[c])}function Qe(c,h){return Xe(h[c.index])}function mi(c,h){return c.data[h]}function Ct(c,h){return c[h]}function ti(c,h){const g=h[c];return _n(g)?g:g[0]}function bt(c){return 4==(4&c[2])}function Yt(c){return 128==(128&c[2])}function Bi(c,h){return null==h?null:c[h]}function yn(c){c[18]=0}function An(c,h){c[5]+=h;let g=c,S=c[3];for(;null!==S&&(1===h&&1===g[5]||-1===h&&0===g[5]);)S[5]+=h,g=S,S=S[3]}const Wi={lFrame:gn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Mr(){return Wi.bindingsEnabled}function Pi(){return Wi.lFrame.lView}function Nn(){return Wi.lFrame.tView}function zs(c){return Wi.lFrame.contextLView=c,c[8]}function fr(){let c=Us();for(;null!==c&&64===c.type;)c=c.parent;return c}function Us(){return Wi.lFrame.currentTNode}function xt(c,h){const g=Wi.lFrame;g.currentTNode=c,g.isParent=h}function ie(){return Wi.lFrame.isParent}function he(){Wi.lFrame.isParent=!1}function Pt(){return Wi.isInCheckNoChangesMode}function Qt(c){Wi.isInCheckNoChangesMode=c}function Xt(){const c=Wi.lFrame;let h=c.bindingRootIndex;return-1===h&&(h=c.bindingRootIndex=c.tView.bindingStartIndex),h}function pi(){return Wi.lFrame.bindingIndex}function Zi(){return Wi.lFrame.bindingIndex++}function tn(c){const h=Wi.lFrame,g=h.bindingIndex;return h.bindingIndex=h.bindingIndex+c,g}function tt(c,h){const g=Wi.lFrame;g.bindingIndex=g.bindingRootIndex=c,It(h)}function It(c){Wi.lFrame.currentDirectiveIndex=c}function zt(c){const h=Wi.lFrame.currentDirectiveIndex;return-1===h?null:c[h]}function ri(){return Wi.lFrame.currentQueryIndex}function vi(c){Wi.lFrame.currentQueryIndex=c}function Mi(c){const h=c[1];return 2===h.type?h.declTNode:1===h.type?c[6]:null}function Ai(c,h,g){if(g&ce.SkipSelf){let F=h,G=c;for(;!(F=F.parent,null!==F||g&ce.Host||(F=Mi(G),null===F||(G=G[15],10&F.type))););if(null===F)return!1;h=F,c=G}const S=Wi.lFrame=un();return S.currentTNode=h,S.lView=c,!0}function Ki(c){const h=un(),g=c[1];Wi.lFrame=h,h.currentTNode=g.firstChild,h.lView=c,h.tView=g,h.contextLView=c,h.bindingIndex=g.bindingStartIndex,h.inI18n=!1}function un(){const c=Wi.lFrame,h=null===c?null:c.child;return null===h?gn(c):h}function gn(c){const h={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:c,child:null,inI18n:!1};return null!==c&&(c.child=h),h}function En(){const c=Wi.lFrame;return Wi.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}const zn=En;function Rr(){const c=En();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function Vn(){return Wi.lFrame.selectedIndex}function mr(c){Wi.lFrame.selectedIndex=c}function Hi(){const c=Wi.lFrame;return mi(c.tView,c.selectedIndex)}function on(){Wi.lFrame.currentNamespace=Sr}function Pn(){!function jn(){Wi.lFrame.currentNamespace=null}()}function $r(c,h){for(let g=h.directiveStart,S=h.directiveEnd;g=S)break}else h[We]<0&&(c[18]+=65536),(Ie>11>16&&(3&c[2])===h){c[2]+=2048;try{G.call(Ie)}finally{}}}else try{G.call(Ie)}finally{}}class us{constructor(h,g,S){this.factory=h,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=S}}function Lo(c,h,g){const S=Zn(c);let F=0;for(;Fh){fe=G-1;break}}}for(;G>16}(c),S=h;for(;g>0;)S=S[15],g--;return S}let rl=!0;function al(c){const h=rl;return rl=c,h}let $e=0;function Ot(c,h){const g=ii(c,h);if(-1!==g)return g;const S=h[1];S.firstCreatePass&&(c.injectorIndex=h.length,qt(S.data,c),qt(h,null),qt(S.blueprint,null));const F=Ei(c,h),G=c.injectorIndex;if(Io(F)){const fe=ro(F),Ie=Gs(F,h),We=Ie[1].data;for(let ut=0;ut<8;ut++)h[G+ut]=Ie[fe+ut]|We[fe+ut]}return h[G+8]=F,G}function qt(c,h){c.push(0,0,0,0,0,0,0,0,h)}function ii(c,h){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===h[c.injectorIndex+8]?-1:c.injectorIndex}function Ei(c,h){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;let g=0,S=null,F=h;for(;null!==F;){const G=F[1],fe=G.type;if(S=2===fe?G.declTNode:1===fe?F[6]:null,null===S)return-1;if(g++,F=F[15],-1!==S.injectorIndex)return S.injectorIndex|g<<16}return-1}function an(c,h,g){!function dt(c,h,g){let S;"string"==typeof g?S=g.charCodeAt(0)||0:g.hasOwnProperty(Y)&&(S=g[Y]),null==S&&(S=g[Y]=$e++);const F=255&S;h.data[c+(F>>5)]|=1<=0?255&h:ea:h}(g);if("function"==typeof G){if(!Ai(h,c,S))return S&ce.Host?xn(F,g,S):er(h,g,S,F);try{const fe=G(S);if(null!=fe||S&ce.Optional)return fe;re(g)}finally{zn()}}else if("number"==typeof G){let fe=null,Ie=ii(c,h),We=-1,ut=S&ce.Host?h[16][6]:null;for((-1===Ie||S&ce.SkipSelf)&&(We=-1===Ie?Ei(c,h):h[Ie+8],-1!==We&&Ol(S,!1)?(fe=h[1],Ie=ro(We),h=Gs(We,h)):Ie=-1);-1!==Ie;){const Tt=h[1];if(Ea(G,Ie,Tt.data)){const Gt=ys(Ie,h,g,fe,S,ut);if(Gt!==ao)return Gt}We=h[Ie+8],-1!==We&&Ol(S,h[1].data[Ie+8]===ut)&&Ea(G,Ie,h)?(fe=Tt,Ie=ro(We),h=Gs(We,h)):Ie=-1}}}return er(h,g,S,F)}const ao={};function ea(){return new yo(fr(),Pi())}function ys(c,h,g,S,F,G){const fe=h[1],Ie=fe.data[c+8],Tt=fs(Ie,fe,g,null==S?wi(Ie)&&rl:S!=fe&&0!=(3&Ie.type),F&ce.Host&&G===Ie);return null!==Tt?ks(h,fe,Tt,Ie):ao}function fs(c,h,g,S,F){const G=c.providerIndexes,fe=h.data,Ie=1048575&G,We=c.directiveStart,Tt=G>>20,oi=F?Ie+Tt:c.directiveEnd;for(let gi=S?Ie:Ie+Tt;gi=We&&Oi.type===g)return gi}if(F){const gi=fe[We];if(gi&&dn(gi)&&gi.type===g)return We}return null}function ks(c,h,g,S){let F=c[g];const G=h.data;if(function Jc(c){return c instanceof us}(F)){const fe=F;fe.resolving&&function ee(c,h){const g=h?`. Dependency path: ${h.join(" > ")} > ${c}`:"";throw new w("200",`Circular dependency in DI detected for ${c}${g}`)}(te(G[g]));const Ie=al(fe.canSeeViewProviders);fe.resolving=!0;const We=fe.injectImpl?q(fe.injectImpl):null;Ai(c,S,ce.Default);try{F=c[g]=fe.factory(void 0,G,c,S),h.firstCreatePass&&g>=S.directiveStart&&function Xr(c,h,g){const{ngOnChanges:S,ngOnInit:F,ngDoCheck:G}=h.type.prototype;if(S){const fe=ga(h);(g.preOrderHooks||(g.preOrderHooks=[])).push(c,fe),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(c,fe)}F&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-c,F),G&&((g.preOrderHooks||(g.preOrderHooks=[])).push(c,G),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(c,G))}(g,G[g],h)}finally{null!==We&&q(We),al(Ie),fe.resolving=!1,zn()}}return F}function Ea(c,h,g){return!!(g[h+(c>>5)]&1<{const h=c.prototype.constructor,g=h[Ee]||e1(h),S=Object.prototype;let F=Object.getPrototypeOf(c.prototype).constructor;for(;F&&F!==S;){const G=F[Ee]||e1(F);if(G&&G!==g)return G;F=Object.getPrototypeOf(F)}return G=>new G})}function e1(c){return E(c)?()=>{const h=e1(A(c));return h&&h()}:kr(c)}function t1(c){return function Wn(c,h){if("class"===h)return c.classes;if("style"===h)return c.styles;const g=c.attrs;if(g){const S=g.length;let F=0;for(;F{const S=function uc(c){return function(...g){if(c){const S=c(...g);for(const F in S)this[F]=S[F]}}}(h);function F(...G){if(this instanceof F)return S.apply(this,G),this;const fe=new F(...G);return Ie.annotation=fe,Ie;function Ie(We,ut,Tt){const Gt=We.hasOwnProperty(ko)?We[ko]:Object.defineProperty(We,ko,{value:[]})[ko];for(;Gt.length<=Tt;)Gt.push(null);return(Gt[Tt]=Gt[Tt]||[]).push(fe),We}}return g&&(F.prototype=Object.create(g.prototype)),F.prototype.ngMetadataName=c,F.annotationCls=F,F})}class Yr{constructor(h,g){this._desc=h,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=be({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const fc=new Yr("AnalyzeForEntryComponents");function ps(c,h){void 0===h&&(h=c);for(let g=0;gArray.isArray(g)?xs(g,h):h(g))}function s1(c,h,g){h>=c.length?c.push(g):c.splice(h,0,g)}function Il(c,h){return h>=c.length-1?c.pop():c.splice(h,1)[0]}function Ws(c,h){const g=[];for(let S=0;S=0?c[1|S]=g:(S=~S,function m0(c,h,g,S){let F=c.length;if(F==h)c.push(g,S);else if(1===F)c.push(S,c[0]),c[0]=g;else{for(F--,c.push(c[F-1],c[F]);F>h;)c[F]=c[F-2],F--;c[h]=g,c[h+1]=S}}(c,S,h,g)),S}function kl(c,h){const g=as(c,h);if(g>=0)return c[1|g]}function as(c,h){return function Nl(c,h,g){let S=0,F=c.length>>g;for(;F!==S;){const G=S+(F-S>>1),fe=c[G<h?F=G:S=G+1}return~(F<({token:c})),-1),zo=Bo(bo("Optional"),8),Bl=Bo(bo("Self"),2),qs=Bo(bo("SkipSelf"),4);let Yo,Hl;function ho(c){var h;return(null===(h=function g1(){if(void 0===Yo&&(Yo=null,Ft.trustedTypes))try{Yo=Ft.trustedTypes.createPolicy("angular",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch(c){}return Yo}())||void 0===h?void 0:h.createHTML(c))||c}function He(c){var h;return(null===(h=function X(){if(void 0===Hl&&(Hl=null,Ft.trustedTypes))try{Hl=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch(c){}return Hl}())||void 0===h?void 0:h.createHTML(c))||c}class pt{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class fi extends pt{getTypeName(){return"HTML"}}class In extends pt{getTypeName(){return"Style"}}class tr extends pt{getTypeName(){return"Script"}}class Fn extends pt{getTypeName(){return"URL"}}class Br extends pt{getTypeName(){return"ResourceURL"}}function ya(c){return c instanceof pt?c.changingThisBreaksApplicationSecurity:c}function sr(c,h){const g=Na(c);if(null!=g&&g!==h){if("ResourceURL"===g&&"URL"===h)return!0;throw new Error(`Required a safe ${h}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===h}function Na(c){return c instanceof pt&&c.getTypeName()||null}function Wo(c){return new fi(c)}function fo(c){return new In(c)}function xc(c){return new tr(c)}function jo(c){return new Fn(c)}function w0(c){return new Br(c)}class N4{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h=""+h;try{const g=(new window.DOMParser).parseFromString(ho(h),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(h):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class R4{constructor(h){if(this.defaultDoc=h,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const S=this.inertDocument.createElement("body");g.appendChild(S)}}getInertBodyElement(h){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=ho(h),g;const S=this.inertDocument.createElement("body");return S.innerHTML=ho(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(S),S}stripCustomNsAttrs(h){const g=h.attributes;for(let F=g.length-1;0hl(h.trim())).join(", ")),this.buf.push(" ",fe,'="',Ah(We),'"')}var c;return this.buf.push(">"),!0}endElement(h){const g=h.nodeName.toLowerCase();ul.hasOwnProperty(g)&&!tf.hasOwnProperty(g)&&(this.buf.push(""))}chars(h){this.buf.push(Ah(h))}checkClobberedElement(h,g){if(g&&(h.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${h.outerHTML}`);return g}}const Cc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mc=/([^\#-~ |!])/g;function Ah(c){return c.replace(/&/g,"&").replace(Cc,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(Mc,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(//g,">")}let y1;function Eh(c,h){let g=null;try{y1=y1||function ef(c){const h=new R4(c);return function F4(){try{return!!(new window.DOMParser).parseFromString(ho(""),"text/html")}catch(c){return!1}}()?new N4(h):h}(c);let S=h?String(h):"";g=y1.getInertBodyElement(S);let F=5,G=S;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,S=G,G=g.innerHTML,g=y1.getInertBodyElement(S)}while(S!==G);return ho((new rf).sanitizeChildren(E0(g)||g))}finally{if(g){const S=E0(g)||g;for(;S.firstChild;)S.removeChild(S.firstChild)}}}function E0(c){return"content"in c&&function af(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}var ua=(()=>((ua=ua||{})[ua.NONE=0]="NONE",ua[ua.HTML=1]="HTML",ua[ua.STYLE=2]="STYLE",ua[ua.SCRIPT=3]="SCRIPT",ua[ua.URL=4]="URL",ua[ua.RESOURCE_URL=5]="RESOURCE_URL",ua))();function T0(c){const h=wc();return h?He(h.sanitize(ua.HTML,c)||""):sr(c,"HTML")?He(ya(c)):Eh(Gr(),W(c))}function S0(c){const h=wc();return h?h.sanitize(ua.URL,c)||"":sr(c,"URL")?ya(c):hl(W(c))}function wc(){const c=Pi();return c&&c[12]}const Lh="__ngContext__";function ss(c,h){c[Lh]=h}function b1(c){const h=function Ac(c){return c[Lh]||null}(c);return h?Array.isArray(h)?h:h.lView:null}function P0(c){return c.ngOriginalError}function yf(c,...h){c.error(...h)}class Ec{constructor(){this._console=console}handleError(h){const g=this._findOriginalError(h),S=function kh(c){return c&&c.ngErrorLogger||yf}(h);S(this._console,"ERROR",h),g&&S(this._console,"ORIGINAL ERROR",g)}_findOriginalError(h){let g=h&&P0(h);for(;g&&P0(g);)g=P0(g);return g||null}}const Bh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ft))();function Hh(c){return c.ownerDocument.defaultView}function po(c){return c instanceof Function?c():c}var os=(()=>((os=os||{})[os.Important=1]="Important",os[os.DashCase=2]="DashCase",os))();function C1(c,h){return undefined(c,h)}function Tc(c){const h=c[3];return kn(h)?h[3]:h}function M1(c){return If(c[13])}function R0(c){return If(c[4])}function If(c){for(;null!==c&&!kn(c);)c=c[4];return c}function fl(c,h,g,S,F){if(null!=S){let G,fe=!1;kn(S)?G=S:_n(S)&&(fe=!0,S=S[0]);const Ie=Xe(S);0===c&&null!==g?null==F?z0(h,g,Ie):Ms(h,g,Ie,F||null,!0):1===c&&null!==g?Ms(h,g,Ie,F||null,!0):2===c?function G0(c,h,g){const S=T1(c,h);S&&function E1(c,h,g,S){Zn(c)?c.removeChild(h,g,S):h.removeChild(g)}(c,S,h,g)}(h,Ie,fe):3===c&&h.destroyNode(Ie),null!=G&&function Y0(c,h,g,S,F){const G=g[7];G!==Xe(g)&&fl(h,c,S,G,F);for(let Ie=10;Ie0&&(c[g-1][4]=S[4]);const G=Il(c,10+h);!function Zl(c,h){Vl(c,h,h[11],2,null,null),h[0]=null,h[6]=null}(S[1],S);const fe=G[19];null!==fe&&fe.detachView(G[1]),S[3]=null,S[4]=null,S[2]&=-129}return S}function pl(c,h){if(!(256&h[2])){const g=h[11];Zn(g)&&g.destroyNode&&Vl(c,h,g,3,null,null),function Nf(c){let h=c[13];if(!h)return Yh(c[1],c);for(;h;){let g=null;if(_n(h))g=h[13];else{const S=h[10];S&&(g=S)}if(!g){for(;h&&!h[4]&&h!==c;)_n(h)&&Yh(h[1],h),h=h[3];null===h&&(h=c),_n(h)&&Yh(h[1],h),g=h&&h[4]}h=g}}(h)}}function Yh(c,h){if(!(256&h[2])){h[2]&=-129,h[2]|=256,function Bf(c,h){let g;if(null!=c&&null!=(g=c.destroyHooks))for(let S=0;S=0?S[F=ut]():S[F=-ut].unsubscribe(),G+=2}else{const fe=S[F=g[G+1]];g[G].call(fe)}if(null!==S){for(let G=F+1;GG?"":F[Gt+1].toLowerCase();const gi=8&S?oi:null;if(gi&&-1!==Jh(gi,ut,0)||2&S&&ut!==oi){if(Er(S))return!1;fe=!0}}}}else{if(!fe&&!Er(S)&&!Er(We))return!1;if(fe&&Er(We))continue;fe=!1,S=We|1&S}}return Er(S)||fe}function Er(c){return 0==(1&c)}function ed(c,h,g,S){if(null===h)return-1;let F=0;if(S||!g){let G=!1;for(;F-1)for(g++;g0?'="'+Ie+'"':"")+"]"}else 8&S?F+="."+fe:4&S&&(F+=" "+fe);else""!==F&&!Er(fe)&&(h+=N1(G,F),F=""),S=fe,G=G||!Er(S);g++}return""!==F&&(h+=N1(G,F)),h}const Sn={};function R1(c){F1(Nn(),Pi(),Vn()+c,Pt())}function F1(c,h,g,S){if(!S)if(3==(3&h[2])){const G=c.preOrderCheckHooks;null!==G&&Yn(h,G,g)}else{const G=c.preOrderHooks;null!==G&&io(h,G,0,g)}mr(g)}function B1(c,h){return c<<17|h<<2}function ws(c){return c>>17&32767}function rd(c){return 2|c}function Ks(c){return(131068&c)>>2}function Jn(c,h){return-131069&c|h<<2}function H1(c){return 1|c}function hd(c,h){const g=c.contentQueries;if(null!==g)for(let S=0;S20&&F1(c,h,20,Pt()),g(S,F)}finally{mr(G)}}function ud(c,h,g){if(dr(h)){const F=h.directiveEnd;for(let G=h.directiveStart;G0;){const g=c[--h];if("number"==typeof g&&g<0)return g}return 0})(Ie)!=We&&Ie.push(We),Ie.push(S,F,fe)}}function xd(c,h){null!==c.hostBindings&&c.hostBindings(1,h)}function Cd(c,h){h.flags|=2,(c.components||(c.components=[])).push(h.index)}function a6(c,h,g){if(g){if(h.exportAs)for(let S=0;S0&&f2(g)}}function f2(c){for(let S=M1(c);null!==S;S=R0(S))for(let F=10;F0&&f2(G)}const g=c[1].components;if(null!==g)for(let S=0;S0&&f2(F)}}function h6(c,h){const g=ti(h,c),S=g[1];(function d6(c,h){for(let g=h.length;gPromise.resolve(null))();function _2(c){return c[7]||(c[7]=[])}function Dd(c){return c.cleanup||(c.cleanup=[])}function Ld(c,h,g){return(null===c||dn(c))&&(g=function me(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(g[h.index])),g[11]}function Od(c,h){const g=c[9],S=g?g.get(Ec,null):null;S&&S.handleError(h)}function Id(c,h,g,S,F){for(let G=0;Gthis.processProvider(Ie,h,g)),xs([h],Ie=>this.processInjectorType(Ie,[],G)),this.records.set(v2,jl(void 0,this));const fe=this.records.get(y2);this.scope=null!=fe?fe.value:null,this.source=F||("object"==typeof h?null:R(h))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(h=>h.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(h,g=za,S=ce.Default){this.assertNotDestroyed();const F=ll(this),G=q(void 0);try{if(!(S&ce.SkipSelf)){let Ie=this.records.get(h);if(void 0===Ie){const We=function E6(c){return"function"==typeof c||"object"==typeof c&&c instanceof Yr}(h)&&Oe(h);Ie=We&&this.injectableDefInScope(We)?jl(C2(h),Hc):null,this.records.set(h,Ie)}if(null!=Ie)return this.hydrate(h,Ie)}return(S&ce.Self?kd():this.parent).get(h,g=S&ce.Optional&&g===za?null:g)}catch(fe){if("NullInjectorError"===fe.name){if((fe[Ns]=fe[Ns]||[]).unshift(R(h)),F)throw fe;return function ph(c,h,g,S){const F=c[Ns];throw h[Fl]&&F.unshift(h[Fl]),c.message=function f1(c,h,g,S=null){c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.substr(2):c;let F=R(h);if(Array.isArray(h))F=h.map(R).join(" -> ");else if("object"==typeof h){let G=[];for(let fe in h)if(h.hasOwnProperty(fe)){let Ie=h[fe];G.push(fe+":"+("string"==typeof Ie?JSON.stringify(Ie):R(Ie)))}F=`{${G.join(", ")}}`}return`${g}${S?"("+S+")":""}[${F}]: ${c.replace(h1,"\n ")}`}("\n"+c.message,F,g,S),c.ngTokenPath=F,c[Ns]=null,c}(fe,h,"R3InjectorError",this.source)}throw fe}finally{q(G),ll(F)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(h=>this.get(h))}toString(){const h=[];return this.records.forEach((S,F)=>h.push(R(F))),`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(h,g,S){if(!(h=A(h)))return!1;let F=z(h);const G=null==F&&h.ngModule||void 0,fe=void 0===G?h:G,Ie=-1!==S.indexOf(fe);if(void 0!==G&&(F=z(G)),null==F)return!1;if(null!=F.imports&&!Ie){let Tt;S.push(fe);try{xs(F.imports,Gt=>{this.processInjectorType(Gt,g,S)&&(void 0===Tt&&(Tt=[]),Tt.push(Gt))})}finally{}if(void 0!==Tt)for(let Gt=0;Gtthis.processProvider(Oi,oi,gi||ei))}}this.injectorDefTypes.add(fe);const We=kr(fe)||(()=>new fe);this.records.set(fe,jl(We,Hc));const ut=F.providers;if(null!=ut&&!Ie){const Tt=h;xs(ut,Gt=>this.processProvider(Gt,Tt,ut))}return void 0!==G&&void 0!==h.providers}processProvider(h,g,S){let F=Hr(h=A(h))?h:A(h&&h.provide);const G=function x6(c,h,g){return Fd(c)?jl(void 0,c.useValue):jl(Rd(c),Hc)}(h);if(Hr(h)||!0!==h.multi)this.records.get(F);else{let fe=this.records.get(F);fe||(fe=jl(void 0,Hc,!0),fe.factory=()=>d1(fe.multi),this.records.set(F,fe)),F=h,fe.multi.push(h)}this.records.set(F,G)}hydrate(h,g){return g.value===Hc&&(g.value=v6,g.value=g.factory()),"object"==typeof g.value&&g.value&&function A6(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(h){if(!h.providedIn)return!1;const g=A(h.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function C2(c){const h=Oe(c),g=null!==h?h.factory:kr(c);if(null!==g)return g;if(c instanceof Yr)throw new Error(`Token ${R(c)} is missing a \u0275prov definition.`);if(c instanceof Function)return function b6(c){const h=c.length;if(h>0){const S=Ws(h,"?");throw new Error(`Can't resolve all parameters for ${R(c)}: (${S.join(", ")}).`)}const g=function Me(c){const h=c&&(c[Ze]||c[Fe]);if(h){const g=function we(c){if(c.hasOwnProperty("name"))return c.name;const h=(""+c).match(/^function\s*([^\s(]+)/);return null===h?"":h[1]}(c);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.`),h}return null}(c);return null!==g?()=>g.factory(c):()=>new c}(c);throw new Error("unreachable")}function Rd(c,h,g){let S;if(Hr(c)){const F=A(c);return kr(F)||C2(F)}if(Fd(c))S=()=>A(c.useValue);else if(function M6(c){return!(!c||!c.useFactory)}(c))S=()=>c.useFactory(...d1(c.deps||[]));else if(function C6(c){return!(!c||!c.useExisting)}(c))S=()=>ka(A(c.useExisting));else{const F=A(c&&(c.useClass||c.provide));if(!function w6(c){return!!c.deps}(c))return kr(F)||C2(F);S=()=>new F(...d1(c.deps))}return S}function jl(c,h,g=!1){return{factory:c,value:h,multi:g?[]:void 0}}function Fd(c){return null!==c&&"object"==typeof c&&yc in c}function Hr(c){return"function"==typeof c}let Rs=(()=>{class c{static create(g,S){var F;if(Array.isArray(g))return x2({name:""},S,g,"");{const G=null!==(F=g.name)&&void 0!==F?F:"";return x2({name:G},g.parent,g.providers,G)}}}return c.THROW_IF_NOT_FOUND=za,c.NULL=new Pd,c.\u0275prov=be({token:c,providedIn:"any",factory:()=>ka(v2)}),c.__NG_ELEMENT_ID__=-1,c})();function P6(c,h){$r(b1(c)[1],fr())}function A2(c){let h=function qd(c){return Object.getPrototypeOf(c.prototype).constructor}(c.type),g=!0;const S=[c];for(;h;){let F;if(dn(c))F=h.\u0275cmp||h.\u0275dir;else{if(h.\u0275cmp)throw new Error("Directives cannot inherit Components");F=h.\u0275dir}if(F){if(g){S.push(F);const fe=c;fe.inputs=E2(c.inputs),fe.declaredInputs=E2(c.declaredInputs),fe.outputs=E2(c.outputs);const Ie=F.hostBindings;Ie&&F6(c,Ie);const We=F.viewQuery,ut=F.contentQueries;if(We&&N6(c,We),ut&&R6(c,ut),l(c.inputs,F.inputs),l(c.declaredInputs,F.declaredInputs),l(c.outputs,F.outputs),dn(F)&&F.data.animation){const Tt=c.data;Tt.animation=(Tt.animation||[]).concat(F.data.animation)}}const G=F.features;if(G)for(let fe=0;fe=0;S--){const F=c[S];F.hostVars=h+=F.hostVars,F.hostAttrs=Oo(F.hostAttrs,g=Oo(g,F.hostAttrs))}}(S)}function E2(c){return c===jt?{}:c===ei?[]:c}function N6(c,h){const g=c.viewQuery;c.viewQuery=g?(S,F)=>{h(S,F),g(S,F)}:h}function R6(c,h){const g=c.contentQueries;c.contentQueries=g?(S,F,G)=>{h(S,F,G),g(S,F,G)}:h}function F6(c,h){const g=c.hostBindings;c.hostBindings=g?(S,F)=>{h(S,F),g(S,F)}:h}let q1=null;function ql(){if(!q1){const c=Ft.Symbol;if(c&&c.iterator)q1=c.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gIe(Xe(rr[S.index])):S.index;if(Zn(g)){let rr=null;if(!Ie&&We&&(rr=function f4(c,h,g,S){const F=c.cleanup;if(null!=F)for(let G=0;GWe?Ie[We]:null}"string"==typeof fe&&(G+=2)}return null}(c,h,F,S.index)),null!==rr)(rr.__ngLastListenerFn__||rr).__ngNextListenerFn__=G,rr.__ngLastListenerFn__=G,gi=!1;else{G=$1(S,h,Gt,G,!1);const Ur=g.listen(pn,F,G);oi.push(G,Ur),Tt&&Tt.push(F,Tn,Ri,Ri+1)}}else G=$1(S,h,Gt,G,!0),pn.addEventListener(F,G,fe),oi.push(G),Tt&&Tt.push(F,Tn,Ri,fe)}else G=$1(S,h,Gt,G,!1);const Oi=S.outputs;let Ji;if(gi&&null!==Oi&&(Ji=Oi[F])){const rn=Ji.length;if(rn)for(let pn=0;pn0;)h=h[15],c--;return h}(c,Wi.lFrame.contextLView))[8]}(c)}function Es(c,h){let g=null;const S=function P1(c){const h=c.attrs;if(null!=h){const g=h.indexOf(5);if(0==(1&g))return h[g+1]}return null}(c);for(let F=0;F=0}const ir={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bs(c){return c.substring(ir.key,ir.keyEnd)}function V2(c,h){const g=ir.textEnd;return g===h?-1:(h=ir.keyEnd=function Ua(c,h,g){for(;h32;)h++;return h}(c,ir.key=h,g),Cl(c,h,g))}function Cl(c,h,g){for(;h=0;g=V2(h,g))Ka(c,Bs(h),!0)}function Ss(c,h,g,S){const F=Pi(),G=Nn(),fe=tn(2);G.firstUpdatePass&&W2(G,c,fe,S),h!==Sn&&ls(F,fe,h)&&K2(G,G.data[Vn()],F,F[11],c,F[fe+1]=function Hs(c,h){return null==c||("string"==typeof h?c+=h:"object"==typeof c&&(c=R(ya(c)))),c}(h,g),S,fe)}function Ds(c,h,g,S){const F=Nn(),G=tn(2);F.firstUpdatePass&&W2(F,null,G,S);const fe=Pi();if(g!==Sn&&ls(fe,G,g)){const Ie=F.data[Vn()];if(qr(Ie,S)&&!Y2(F,G)){let We=S?Ie.classesWithoutHost:Ie.stylesWithoutHost;null!==We&&(g=s(We,g||"")),k2(F,Ie,fe,g,S)}else!function Ou(c,h,g,S,F,G,fe,Ie){F===Sn&&(F=ei);let We=0,ut=0,Tt=0=c.expandoStartIndex}function W2(c,h,g,S){const F=c.data;if(null===F[g+1]){const G=F[Vn()],fe=Y2(c,g);qr(G,S)&&null===h&&!fe&&(h=!1),h=function Du(c,h,g,S){const F=zt(c);let G=S?h.residualClasses:h.residualStyles;if(null===F)0===(S?h.classBindings:h.styleBindings)&&(g=Eo(g=Yc(null,c,h,g,S),h.attrs,S),G=null);else{const fe=h.directiveStylingLast;if(-1===fe||c[fe]!==F)if(g=Yc(F,c,h,g,S),null===G){let We=function t0(c,h,g){const S=g?h.classBindings:h.styleBindings;if(0!==Ks(S))return c[ws(S)]}(c,h,S);void 0!==We&&Array.isArray(We)&&(We=Yc(null,c,h,We[1],S),We=Eo(We,h.attrs,S),function j2(c,h,g,S){c[ws(g?h.classBindings:h.styleBindings)]=S}(c,h,S,We))}else G=function Lu(c,h,g){let S;const F=h.directiveEnd;for(let G=1+h.directiveStylingLast;G0)&&(ut=!0)}else Tt=g;if(F)if(0!==We){const oi=ws(c[Ie+1]);c[S+1]=B1(oi,Ie),0!==oi&&(c[oi+1]=Jn(c[oi+1],S)),c[Ie+1]=function K0(c,h){return 131071&c|h<<17}(c[Ie+1],S)}else c[S+1]=B1(Ie,0),0!==Ie&&(c[Ie+1]=Jn(c[Ie+1],S)),Ie=S;else c[S+1]=B1(We,0),0===Ie?Ie=S:c[We+1]=Jn(c[We+1],S),We=S;ut&&(c[S+1]=rd(c[S+1])),Xa(c,Tt,S,!0),Xa(c,Tt,S,!1),function Eu(c,h,g,S,F){const G=F?c.residualClasses:c.residualStyles;null!=G&&"string"==typeof h&&as(G,h)>=0&&(g[S+1]=H1(g[S+1]))}(h,Tt,c,S,G),fe=B1(Ie,We),G?h.classBindings=fe:h.styleBindings=fe}(F,G,h,g,fe,S)}}function Yc(c,h,g,S,F){let G=null;const fe=g.directiveEnd;let Ie=g.directiveStylingLast;for(-1===Ie?Ie=g.directiveStart:Ie++;Ie0;){const We=c[F],ut=Array.isArray(We),Tt=ut?We[1]:We,Gt=null===Tt;let oi=g[F+1];oi===Sn&&(oi=Gt?ei:void 0);let gi=Gt?kl(oi,S):Tt===S?oi:void 0;if(ut&&!J2(gi)&&(gi=kl(We,S)),J2(gi)&&(Ie=gi,fe))return Ie;const Oi=c[F+1];F=fe?ws(Oi):Ks(Oi)}if(null!==h){let We=G?h.residualClasses:h.residualStyles;null!=We&&(Ie=kl(We,S))}return Ie}function J2(c){return void 0!==c}function qr(c,h){return 0!=(c.flags&(h?16:32))}function X2(c,h=""){const g=Pi(),S=Nn(),F=c+20,G=S.firstCreatePass?Wl(S,F,1,h,null):S.data[F],fe=g[F]=function F0(c,h){return Zn(c)?c.createText(h):c.createTextNode(h)}(g[11],h);Dc(S,g,fe,G),xt(G,!1)}function Kr(c){return Al("",c,""),Kr}function Al(c,h,g){const S=Pi(),F=Ql(S,c,h,g);return F!==Sn&&Mo(S,Vn(),F),Al}function $s(c,h,g,S,F){const G=Pi(),fe=function Jl(c,h,g,S,F,G){const Ie=bl(c,pi(),g,F);return tn(2),Ie?h+W(g)+S+W(F)+G:Sn}(G,c,h,g,S,F);return fe!==Sn&&Mo(G,Vn(),fe),$s}function Iu(c,h,g,S,F,G,fe){const Ie=Pi(),We=function Xl(c,h,g,S,F,G,fe,Ie){const ut=K1(c,pi(),g,F,fe);return tn(3),ut?h+W(g)+S+W(F)+G+W(fe)+Ie:Sn}(Ie,c,h,g,S,F,G,fe);return We!==Sn&&Mo(Ie,Vn(),We),Iu}function $2(c,h,g,S,F,G,fe,Ie,We){const ut=Pi(),Tt=$l(ut,c,h,g,S,F,G,fe,Ie,We);return Tt!==Sn&&Mo(ut,Vn(),Tt),$2}function a0(c,h,g){Ds(Ka,ts,Ql(Pi(),c,h,g),!0)}function ih(c,h,g){const S=Pi();return ls(S,Zi(),h)&&As(Nn(),Hi(),S,c,h,S[11],g,!0),ih}function Zu(c,h,g){const S=Pi();if(ls(S,Zi(),h)){const G=Nn(),fe=Hi();As(G,fe,S,c,h,Ld(zt(G.data),fe,S),g,!0)}return Zu}const El=void 0;var D3=["en",[["a","p"],["AM","PM"],El],[["AM","PM"],El,El],[["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"]],El,[["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"]],El,[["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}",El,"{1} 'at' {0}",El],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Vu(c){const g=Math.floor(Math.abs(c)),S=c.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===S?1:5}];let sc={};function l0(c){const h=function L3(c){return c.toLowerCase().replace(/_/g,"-")}(c);let g=b4(h);if(g)return g;const S=h.split("-")[0];if(g=b4(S),g)return g;if("en"===S)return D3;throw new Error(`Missing locale data for the locale "${c}".`)}function Gu(c){return l0(c)[wn.PluralCase]}function b4(c){return c in sc||(sc[c]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[c]),sc[c]}var wn=(()=>((wn=wn||{})[wn.LocaleId=0]="LocaleId",wn[wn.DayPeriodsFormat=1]="DayPeriodsFormat",wn[wn.DayPeriodsStandalone=2]="DayPeriodsStandalone",wn[wn.DaysFormat=3]="DaysFormat",wn[wn.DaysStandalone=4]="DaysStandalone",wn[wn.MonthsFormat=5]="MonthsFormat",wn[wn.MonthsStandalone=6]="MonthsStandalone",wn[wn.Eras=7]="Eras",wn[wn.FirstDayOfWeek=8]="FirstDayOfWeek",wn[wn.WeekendRange=9]="WeekendRange",wn[wn.DateFormat=10]="DateFormat",wn[wn.TimeFormat=11]="TimeFormat",wn[wn.DateTimeFormat=12]="DateTimeFormat",wn[wn.NumberSymbols=13]="NumberSymbols",wn[wn.NumberFormats=14]="NumberFormats",wn[wn.CurrencyCode=15]="CurrencyCode",wn[wn.CurrencySymbol=16]="CurrencySymbol",wn[wn.CurrencyName=17]="CurrencyName",wn[wn.Currencies=18]="Currencies",wn[wn.Directionality=19]="Directionality",wn[wn.PluralCase=20]="PluralCase",wn[wn.ExtraData=21]="ExtraData",wn))();const c0="en-US";let rh=c0;function X3(c,h,g,S,F){if(c=A(c),Array.isArray(c))for(let G=0;G>20;if(Hr(c)||!c.multi){const gi=new us(We,F,Zc),Oi=ep(Ie,h,F?Tt:Tt+oi,Gt);-1===Oi?(an(Ot(ut,fe),G,Ie),$3(G,c,h.length),h.push(Ie),ut.directiveStart++,ut.directiveEnd++,F&&(ut.providerIndexes+=1048576),g.push(gi),fe.push(gi)):(g[Oi]=gi,fe[Oi]=gi)}else{const gi=ep(Ie,h,Tt+oi,Gt),Oi=ep(Ie,h,Tt,Tt+oi),Ji=gi>=0&&g[gi],rn=Oi>=0&&g[Oi];if(F&&!rn||!F&&!Ji){an(Ot(ut,fe),G,Ie);const pn=function M8(c,h,g,S,F){const G=new us(c,g,Zc);return G.multi=[],G.index=h,G.componentProviders=0,zp(G,F,S&&!g),G}(F?C8:x8,g.length,F,S,We);!F&&rn&&(g[Oi].providerFactory=pn),$3(G,c,h.length,0),h.push(Ie),ut.directiveStart++,ut.directiveEnd++,F&&(ut.providerIndexes+=1048576),g.push(pn),fe.push(pn)}else $3(G,c,gi>-1?gi:Oi,zp(g[F?Oi:gi],We,!F&&S));!F&&S&&rn&&g[Oi].componentProviders++}}}function $3(c,h,g,S){const F=Hr(h),G=function j1(c){return!!c.useClass}(h);if(F||G){const We=(G?A(h.useClass):h).prototype.ngOnDestroy;if(We){const ut=c.destroyHooks||(c.destroyHooks=[]);if(!F&&h.multi){const Tt=ut.indexOf(g);-1===Tt?ut.push(g,[S,We]):ut[Tt+1].push(S,We)}else ut.push(g,We)}}}function zp(c,h,g){return g&&c.componentProviders++,c.multi.push(h)-1}function ep(c,h,g,S){for(let F=g;F{g.providersResolver=(S,F)=>function b8(c,h,g){const S=Nn();if(S.firstCreatePass){const F=dn(c);X3(g,S.data,S.blueprint,F,!0),X3(h,S.data,S.blueprint,F,!1)}}(S,F?F(c):c,h)}}class Zp{}class E8{resolveComponentFactory(h){throw function A8(c){const h=Error(`No component factory found for ${R(c)}. Did you add it to @NgModule.entryComponents?`);return h.ngComponent=c,h}(h)}}let T4=(()=>{class c{}return c.NULL=new E8,c})();function T8(){return Ku(fr(),Pi())}function Ku(c,h){return new S4(Qe(c,h))}let S4=(()=>{class c{constructor(g){this.nativeElement=g}}return c.__NG_ELEMENT_ID__=T8,c})();function S8(c){return c instanceof S4?c.nativeElement:c}class Gp{}let D8=(()=>{class c{}return c.__NG_ELEMENT_ID__=()=>function O8(){const c=Pi(),g=ti(fr().index,c);return function L8(c){return c[11]}(_n(g)?g:c)}(),c})(),I8=(()=>{class c{}return c.\u0275prov=be({token:c,providedIn:"root",factory:()=>null}),c})();class Yp{constructor(h){this.full=h,this.major=h.split(".")[0],this.minor=h.split(".")[1],this.patch=h.split(".").slice(2).join(".")}}const P8=new Yp("13.0.3"),ip={};function F3(c,h,g,S,F=!1){for(;null!==g;){const G=h[g.index];if(null!==G&&S.push(Xe(G)),kn(G))for(let Ie=10;Ie-1&&(A1(h,S),Il(g,S))}this._attachedToViewContainer=!1}pl(this._lView[1],this._lView)}onDestroy(h){gd(this._lView[1],this._lView,null,h)}markForCheck(){Y1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){m2(this._lView[1],this._lView,this.context)}checkNoChanges(){!function f6(c,h,g){Qt(!0);try{m2(c,h,g)}finally{Qt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kf(c,h){Vl(c,h,h[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(h){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=h}}class k8 extends D4{constructor(h){super(h),this._view=h}detectChanges(){Sd(this._view)}checkNoChanges(){!function p6(c){Qt(!0);try{Sd(c)}finally{Qt(!1)}}(this._view)}get context(){return null}}class Wp extends T4{constructor(h){super(),this.ngModule=h}resolveComponentFactory(h){const g=At(h);return new np(g,this.ngModule)}}function jp(c){const h=[];for(let g in c)c.hasOwnProperty(g)&&h.push({propName:c[g],templateName:g});return h}const R8=new Yr("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Bh});class np extends Zp{constructor(h,g){super(),this.componentDef=h,this.ngModule=g,this.componentType=h.type,this.selector=function id(c){return c.map(zf).join(",")}(h.selectors),this.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return jp(this.componentDef.inputs)}get outputs(){return jp(this.componentDef.outputs)}create(h,g,S,F){const G=(F=F||this.ngModule)?function F8(c,h){return{get:(g,S,F)=>{const G=c.get(g,ip,F);return G!==ip||S===ip?G:h.get(g,S,F)}}}(h,F.injector):h,fe=G.get(Gp,ns),Ie=G.get(I8,null),We=fe.createRenderer(null,this.componentDef),ut=this.componentDef.selectors[0][0]||"div",Tt=S?function md(c,h,g){if(Zn(c))return c.selectRootElement(h,g===ft.ShadowDom);let S="string"==typeof h?c.querySelector(h):h;return S.textContent="",S}(We,S,this.componentDef.encapsulation):w1(fe.createRenderer(null,this.componentDef),ut,function N8(c){const h=c.toLowerCase();return"svg"===h?Sr:"math"===h?"http://www.w3.org/1998/MathML/":null}(ut)),Gt=this.componentDef.onPush?576:528,oi=function jd(c,h){return{components:[],scheduler:c||Bh,clean:m6,playerHandler:h||null,flags:0}}(),gi=Fc(0,null,null,1,0,null,null,null,null,null),Oi=kc(null,gi,oi,Gt,null,null,fe,We,Ie,G);let Ji,rn;Ki(Oi);try{const pn=function Yd(c,h,g,S,F,G){const fe=g[1];g[20]=c;const We=Wl(fe,20,2,"#host",null),ut=We.mergedAttrs=h.hostAttrs;null!==ut&&(W1(We,ut,!0),null!==c&&(Lo(F,c,ut),null!==We.classes&&W0(F,c,We.classes),null!==We.styles&&Qh(F,c,We.styles)));const Tt=S.createRenderer(c,h),Gt=kc(g,fd(h),null,h.onPush?64:16,g[20],We,S,Tt,G||null,null);return fe.firstCreatePass&&(an(Ot(We,g),fe,h.type),Cd(fe,We),Md(We,g.length,1)),G1(g,Gt),g[20]=Gt}(Tt,this.componentDef,Oi,fe,We);if(Tt)if(S)Lo(We,Tt,["ng-version",P8.full]);else{const{attrs:Ri,classes:Tn}=function nd(c){const h=[],g=[];let S=1,F=2;for(;S0&&W0(We,Tt,Tn.join(" "))}if(rn=mi(gi,20),void 0!==g){const Ri=rn.projection=[];for(let Tn=0;TnWe(fe,h)),h.contentQueries){const We=fr();h.contentQueries(1,fe,We.directiveStart)}const Ie=fr();return!G.firstCreatePass||null===h.hostBindings&&null===h.hostAttrs||(mr(Ie.index),u2(g[1],Ie,0,Ie.directiveStart,Ie.directiveEnd,h),xd(h,fe)),fe}(pn,this.componentDef,Oi,oi,[P6]),Jo(gi,Oi,null)}finally{Rr()}return new H8(this.componentType,Ji,Ku(rn,Oi),Oi,rn)}}class H8 extends class w8{}{constructor(h,g,S,F,G){super(),this.location=S,this._rootLView=F,this._tNode=G,this.instance=g,this.hostView=this.changeDetectorRef=new k8(F),this.componentType=h}get injector(){return new yo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(h){this.hostView.onDestroy(h)}}class Qu{}class qp{}const Ju=new Map;class Jp extends Qu{constructor(h,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Wp(this);const S=Rt(h);this._bootstrapComponents=po(S.bootstrap),this._r3Injector=Nd(h,g,[{provide:Qu,useValue:this},{provide:T4,useValue:this.componentFactoryResolver}],R(h)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(h)}get(h,g=Rs.THROW_IF_NOT_FOUND,S=ce.Default){return h===Rs||h===Qu||h===v2?this:this._r3Injector.get(h,g,S)}destroy(){const h=this._r3Injector;!h.destroyed&&h.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(h){this.destroyCbs.push(h)}}class rp extends qp{constructor(h){super(),this.moduleType=h,null!==Rt(h)&&function U8(c){const h=new Set;!function g(S){const F=Rt(S,!0),G=F.id;null!==G&&(function Kp(c,h,g){if(h&&h!==g)throw new Error(`Duplicate module registered for ${c} - ${R(h)} vs ${R(h.name)}`)}(G,Ju.get(G),S),Ju.set(G,S));const fe=po(F.imports);for(const Ie of fe)h.has(Ie)||(h.add(Ie),g(Ie))}(c)}(h)}create(h){return new Jp(this.moduleType,h)}}function Xp(c,h,g){const S=Xt()+c,F=Pi();return F[S]===Sn?_o(F,S,g?h.call(g):h()):function Uc(c,h){return c[h]}(F,S)}function $p(c,h,g,S){return im(Pi(),Xt(),c,h,g,S)}function em(c,h,g,S,F){return nm(Pi(),Xt(),c,h,g,S,F)}function tm(c,h,g,S,F,G){return rm(Pi(),Xt(),c,h,g,S,F,G)}function L4(c,h){const g=c[h];return g===Sn?void 0:g}function im(c,h,g,S,F,G){const fe=h+g;return ls(c,fe,F)?_o(c,fe+1,G?S.call(G,F):S(F)):L4(c,fe+1)}function nm(c,h,g,S,F,G,fe){const Ie=h+g;return bl(c,Ie,F,G)?_o(c,Ie+2,fe?S.call(fe,F,G):S(F,G)):L4(c,Ie+2)}function rm(c,h,g,S,F,G,fe,Ie){const We=h+g;return K1(c,We,F,G,fe)?_o(c,We+3,Ie?S.call(Ie,F,G,fe):S(F,G,fe)):L4(c,We+3)}function om(c,h){const g=Nn();let S;const F=c+20;g.firstCreatePass?(S=function q8(c,h){if(h)for(let g=h.length-1;g>=0;g--){const S=h[g];if(c===S.name)return S}}(h,g.pipeRegistry),g.data[F]=S,S.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(F,S.onDestroy)):S=g.data[F];const G=S.factory||(S.factory=kr(S.type)),fe=q(Zc);try{const Ie=al(!1),We=G();return al(Ie),function Y6(c,h,g,S){g>=c.data.length&&(c.data[g]=null,c.blueprint[g]=null),h[g]=S}(g,Pi(),F,We),We}finally{q(fe)}}function lm(c,h,g){const S=c+20,F=Pi(),G=Ct(F,S);return O4(F,S)?im(F,Xt(),h,G.transform,g,G):G.transform(g)}function cm(c,h,g,S){const F=c+20,G=Pi(),fe=Ct(G,F);return O4(G,F)?nm(G,Xt(),h,fe.transform,g,S,fe):fe.transform(g,S)}function hm(c,h,g,S,F){const G=c+20,fe=Pi(),Ie=Ct(fe,G);return O4(fe,G)?rm(fe,Xt(),h,Ie.transform,g,S,F,Ie):Ie.transform(g,S,F)}function O4(c,h){return c[1].data[h].pure}function ap(c){return h=>{setTimeout(c,void 0,h)}}const lc=class J8 extends e.x{constructor(h=!1){super(),this.__isAsync=h}emit(h){super.next(h)}subscribe(h,g,S){var F,G,fe;let Ie=h,We=g||(()=>null),ut=S;if(h&&"object"==typeof h){const Gt=h;Ie=null===(F=Gt.next)||void 0===F?void 0:F.bind(Gt),We=null===(G=Gt.error)||void 0===G?void 0:G.bind(Gt),ut=null===(fe=Gt.complete)||void 0===fe?void 0:fe.bind(Gt)}this.__isAsync&&(We=ap(We),Ie&&(Ie=ap(Ie)),ut&&(ut=ap(ut)));const Tt=super.subscribe({next:Ie,error:We,complete:ut});return h instanceof t.w0&&h.add(Tt),Tt}};function X8(){return this._results[ql()]()}class B3{constructor(h=!1){this._emitDistinctChangesOnly=h,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=ql(),S=B3.prototype;S[g]||(S[g]=X8)}get changes(){return this._changes||(this._changes=new lc)}get(h){return this._results[h]}map(h){return this._results.map(h)}filter(h){return this._results.filter(h)}find(h){return this._results.find(h)}reduce(h,g){return this._results.reduce(h,g)}forEach(h){this._results.forEach(h)}some(h){return this._results.some(h)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(h,g){const S=this;S.dirty=!1;const F=ps(h);(this._changesDetected=!function Ys(c,h,g){if(c.length!==h.length)return!1;for(let S=0;S{class c{}return c.__NG_ELEMENT_ID__=tg,c})();const $8=I4,eg=class extends $8{constructor(h,g,S){super(),this._declarationLView=h,this._declarationTContainer=g,this.elementRef=S}createEmbeddedView(h){const g=this._declarationTContainer.tViews,S=kc(this._declarationLView,g,h,16,null,g.declTNode,null,null,null,null);S[17]=this._declarationLView[this._declarationTContainer.index];const G=this._declarationLView[19];return null!==G&&(S[19]=G.createEmbeddedView(g)),Jo(g,S,h),new D4(S)}};function tg(){return H3(fr(),Pi())}function H3(c,h){return 4&c.type?new eg(h,c,Ku(c,h)):null}let z3=(()=>{class c{}return c.__NG_ELEMENT_ID__=ig,c})();function ig(){return fm(fr(),Pi())}const ng=z3,dm=class extends ng{constructor(h,g,S){super(),this._lContainer=h,this._hostTNode=g,this._hostLView=S}get element(){return Ku(this._hostTNode,this._hostLView)}get injector(){return new yo(this._hostTNode,this._hostLView)}get parentInjector(){const h=Ei(this._hostTNode,this._hostLView);if(Io(h)){const g=Gs(h,this._hostLView),S=ro(h);return new yo(g[1].data[S+8],g)}return new yo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(h){const g=um(this._lContainer);return null!==g&&g[h]||null}get length(){return this._lContainer.length-10}createEmbeddedView(h,g,S){const F=h.createEmbeddedView(g||{});return this.insert(F,S),F}createComponent(h,g,S,F,G){const fe=h&&!function oo(c){return"function"==typeof c}(h);let Ie;if(fe)Ie=g;else{const Gt=g||{};Ie=Gt.index,S=Gt.injector,F=Gt.projectableNodes,G=Gt.ngModuleRef}const We=fe?h:new np(At(h)),ut=S||this.parentInjector;if(!G&&null==We.ngModule&&ut){const Gt=ut.get(Qu,null);Gt&&(G=Gt)}const Tt=We.create(ut,F,void 0,G);return this.insert(Tt.hostView,Ie),Tt}insert(h,g){const S=h._lView,F=S[1];if(function xi(c){return kn(c[3])}(S)){const Tt=this.indexOf(h);if(-1!==Tt)this.detach(Tt);else{const Gt=S[3],oi=new dm(Gt,Gt[6],Gt[3]);oi.detach(oi.indexOf(h))}}const G=this._adjustIndex(g),fe=this._lContainer;!function Rf(c,h,g,S){const F=10+S,G=g.length;S>0&&(g[F-1][4]=h),S0)S.push(fe[Ie/2]);else{const ut=G[Ie+1],Tt=h[-We];for(let Gt=10;Gt{class c{constructor(g){this.appInits=g,this.resolve=V3,this.reject=V3,this.initialized=!1,this.done=!1,this.donePromise=new Promise((S,F)=>{this.resolve=S,this.reject=F})}runInitializers(){if(this.initialized)return;const g=[],S=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{G.subscribe({complete:Ie,error:We})});g.push(fe)}}Promise.all(g).then(()=>{S()}).catch(F=>{this.reject(F)}),0===g.length&&S(),this.initialized=!0}}return c.\u0275fac=function(g){return new(g||c)(ka(_p,8))},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();const zm=new Yr("AppId"),Dg={provide:zm,useFactory:function Sg(){return`${vp()}${vp()}${vp()}`},deps:[]};function vp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Um=new Yr("Platform Initializer"),Zm=new Yr("Platform ID"),Vm=new Yr("appBootstrapListener");let Gm=(()=>{class c{log(g){console.log(g)}warn(g){console.warn(g)}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();const G3=new Yr("LocaleId"),Ym=new Yr("DefaultCurrencyCode");class Lg{constructor(h,g){this.ngModuleFactory=h,this.componentFactories=g}}let yp=(()=>{class c{compileModuleSync(g){return new rp(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const S=this.compileModuleSync(g),G=po(Rt(g).declarations).reduce((fe,Ie)=>{const We=At(Ie);return We&&fe.push(new np(We)),fe},[]);return new Lg(S,G)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();const Ig=(()=>Promise.resolve(0))();function bp(c){"undefined"==typeof Zone?Ig.then(()=>{c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}class So{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:S=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lc(!1),this.onMicrotaskEmpty=new lc(!1),this.onStable=new lc(!1),this.onError=new lc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const F=this;F._nesting=0,F._outer=F._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!S&&g,F.shouldCoalesceRunChangeDetection=S,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function Pg(){let c=Ft.requestAnimationFrame,h=Ft.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&h){const g=c[Zone.__symbol__("OriginalDelegate")];g&&(c=g);const S=h[Zone.__symbol__("OriginalDelegate")];S&&(h=S)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function Rg(c){const h=()=>{!function Ng(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(Ft,()=>{c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{c.lastRequestAnimationFrameId=-1,Cp(c),c.isCheckStableRunning=!0,xp(c),c.isCheckStableRunning=!1},void 0,()=>{},()=>{})),c.fakeTopEventTask.invoke()}),Cp(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,S,F,G,fe,Ie)=>{try{return Wm(c),g.invokeTask(F,G,fe,Ie)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===G.type||c.shouldCoalesceRunChangeDetection)&&h(),jm(c)}},onInvoke:(g,S,F,G,fe,Ie,We)=>{try{return Wm(c),g.invoke(F,G,fe,Ie,We)}finally{c.shouldCoalesceRunChangeDetection&&h(),jm(c)}},onHasTask:(g,S,F,G)=>{g.hasTask(F,G),S===F&&("microTask"==G.change?(c._hasPendingMicrotasks=G.microTask,Cp(c),xp(c)):"macroTask"==G.change&&(c.hasPendingMacrotasks=G.macroTask))},onHandleError:(g,S,F,G)=>(g.handleError(F,G),c.runOutsideAngular(()=>c.onError.emit(G)),!1)})}(F)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!So.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(So.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(h,g,S){return this._inner.run(h,g,S)}runTask(h,g,S,F){const G=this._inner,fe=G.scheduleEventTask("NgZoneEvent: "+F,h,kg,V3,V3);try{return G.runTask(fe,g,S)}finally{G.cancelTask(fe)}}runGuarded(h,g,S){return this._inner.runGuarded(h,g,S)}runOutsideAngular(h){return this._outer.run(h)}}const kg={};function xp(c){if(0==c._nesting&&!c.hasPendingMicrotasks&&!c.isStable)try{c._nesting++,c.onMicrotaskEmpty.emit(null)}finally{if(c._nesting--,!c.hasPendingMicrotasks)try{c.runOutsideAngular(()=>c.onStable.emit(null))}finally{c.isStable=!0}}}function Cp(c){c.hasPendingMicrotasks=!!(c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId)}function Wm(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function jm(c){c._nesting--,xp(c)}class Fg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lc,this.onMicrotaskEmpty=new lc,this.onStable=new lc,this.onError=new lc}run(h,g,S){return h.apply(g,S)}runGuarded(h,g,S){return h.apply(g,S)}runOutsideAngular(h){return h()}runTask(h,g,S,F){return h.apply(g,S)}}let qm=(()=>{class c{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:()=>{So.assertNotInAngularZone(),bp(()=>{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())bp(()=>{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(S=>!S.updateCb||!S.updateCb(g)||(clearTimeout(S.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,S,F){let G=-1;S&&S>0&&(G=setTimeout(()=>{this._callbacks=this._callbacks.filter(fe=>fe.timeoutId!==G),g(this._didWork,this.getPendingTasks())},S)),this._callbacks.push({doneCb:g,timeoutId:G,updateCb:F})}whenStable(g,S,F){if(F&&!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,S,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,S,F){return[]}}return c.\u0275fac=function(g){return new(g||c)(ka(So))},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})(),Km=(()=>{class c{constructor(){this._applications=new Map,Mp.addToWindow(this)}registerApplication(g,S){this._applications.set(g,S)}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,S=!0){return Mp.findTestabilityInTree(this,g,S)}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();class Bg{addToWindow(h){}findTestabilityInTree(h,g,S){return null}}function Hg(c){Mp=c}let Dl,Mp=new Bg;const Qm=new Yr("AllowMultipleToken");class Zg{constructor(h,g){this.name=h,this.token=g}}function Jm(c,h,g=[]){const S=`Platform: ${h}`,F=new Yr(S);return(G=[])=>{let fe=Xm();if(!fe||fe.injector.get(Qm,!1))if(c)c(g.concat(G).concat({provide:F,useValue:!0}));else{const Ie=g.concat(G).concat({provide:F,useValue:!0},{provide:y2,useValue:"platform"});!function Vg(c){if(Dl&&!Dl.destroyed&&!Dl.injector.get(Qm,!1))throw new w("400","");Dl=c.get($m);const h=c.get(Um,null);h&&h.forEach(g=>g())}(Rs.create({providers:Ie,name:S}))}return function Gg(c){const h=Xm();if(!h)throw new w("401","");return h}()}}function Xm(){return Dl&&!Dl.destroyed?Dl:null}let $m=(()=>{class c{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,S){const Ie=function Yg(c,h){let g;return g="noop"===c?new Fg:("zone.js"===c?void 0:c)||new So({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==h?void 0:h.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==h?void 0:h.ngZoneRunCoalescing)}),g}(S?S.ngZone:void 0,{ngZoneEventCoalescing:S&&S.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:S&&S.ngZoneRunCoalescing||!1}),We=[{provide:So,useValue:Ie}];return Ie.run(()=>{const ut=Rs.create({providers:We,parent:this.injector,name:g.moduleType.name}),Tt=g.create(ut),Gt=Tt.injector.get(Ec,null);if(!Gt)throw new w("402","");return Ie.runOutsideAngular(()=>{const oi=Ie.onError.subscribe({next:gi=>{Gt.handleError(gi)}});Tt.onDestroy(()=>{wp(this._modules,Tt),oi.unsubscribe()})}),function Wg(c,h,g){try{const S=g();return H2(S)?S.catch(F=>{throw h.runOutsideAngular(()=>c.handleError(F)),F}):S}catch(S){throw h.runOutsideAngular(()=>c.handleError(S)),S}}(Gt,Ie,()=>{const oi=Tt.injector.get($u);return oi.runInitializers(),oi.donePromise.then(()=>(function Wu(c){b(c,"Expected localeId to be defined"),"string"==typeof c&&(rh=c.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(G3,c0)||c0),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule(g,S=[]){const F=e8({},S);return function zg(c,h,g){const S=new rp(g);return Promise.resolve(S)}(0,0,g).then(G=>this.bootstrapModuleFactory(G,F))}_moduleDoBootstrap(g){const S=g.injector.get(k4);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(F=>S.bootstrap(F));else{if(!g.instance.ngDoBootstrap)throw new w("403","");g.instance.ngDoBootstrap(S)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w("404","");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return c.\u0275fac=function(g){return new(g||c)(ka(Rs))},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();function e8(c,h){return Array.isArray(h)?h.reduce(e8,c):Object.assign(Object.assign({},c),h)}let k4=(()=>{class c{constructor(g,S,F,G,fe){this._zone=g,this._injector=S,this._exceptionHandler=F,this._componentFactoryResolver=G,this._initStatus=fe,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 Ie=new y.y(ut=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ut.next(this._stable),ut.complete()})}),We=new y.y(ut=>{let Tt;this._zone.runOutsideAngular(()=>{Tt=this._zone.onStable.subscribe(()=>{So.assertNotInAngularZone(),bp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ut.next(!0))})})});const Gt=this._zone.onUnstable.subscribe(()=>{So.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ut.next(!1)}))});return()=>{Tt.unsubscribe(),Gt.unsubscribe()}});this.isStable=(0,C.T)(Ie,We.pipe((0,o.B)()))}bootstrap(g,S){if(!this._initStatus.done)throw new w("405","");let F;F=g instanceof Zp?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(F.componentType);const G=function Ug(c){return c.isBoundToModule}(F)?void 0:this._injector.get(Qu),Ie=F.create(Rs.NULL,[],S||F.selector,G),We=Ie.location.nativeElement,ut=Ie.injector.get(qm,null),Tt=ut&&Ie.injector.get(Km);return ut&&Tt&&Tt.registerApplication(We,ut),Ie.onDestroy(()=>{this.detachView(Ie.hostView),wp(this.components,Ie),Tt&&Tt.unregisterApplication(We)}),this._loadComponent(Ie),Ie}tick(){if(this._runningTick)throw new w("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 S=g;this._views.push(S),S.attachToAppRef(this)}detachView(g){const S=g;wp(this._views,S),S.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Vm,[]).concat(this._bootstrapListeners).forEach(F=>F(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return c.\u0275fac=function(g){return new(g||c)(ka(So),ka(Rs),ka(Ec),ka(T4),ka($u))},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();function wp(c,h){const g=c.indexOf(h);g>-1&&c.splice(g,1)}let i8=!0,n8=!1;function qg(){return n8=!0,i8}function Kg(){if(n8)throw new Error("Cannot enable prod mode after platform setup.");i8=!1}let Qg=(()=>{class c{}return c.__NG_ELEMENT_ID__=Jg,c})();function Jg(c){return function Xg(c,h,g){if(wi(c)&&!g){const S=ti(c.index,h);return new D4(S,S)}return 47&c.type?new D4(h[16],h):null}(fr(),Pi(),16==(16&c))}class c8{constructor(){}supports(h){return zc(h)}create(h){return new r5(h)}}const n5=(c,h)=>h;class r5{constructor(h){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=h||n5}forEachItem(h){let g;for(g=this._itHead;null!==g;g=g._next)h(g)}forEachOperation(h){let g=this._itHead,S=this._removalsHead,F=0,G=null;for(;g||S;){const fe=!S||g&&g.currentIndex{fe=this._trackByFn(F,Ie),null!==g&&Object.is(g.trackById,fe)?(S&&(g=this._verifyReinsertion(g,Ie,fe,F)),Object.is(g.item,Ie)||this._addIdentityChange(g,Ie)):(g=this._mismatch(g,Ie,fe,F),S=!0),g=g._next,F++}),this.length=F;return this._truncate(g),this.collection=h,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let h;for(h=this._previousItHead=this._itHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._additionsHead;null!==h;h=h._nextAdded)h.previousIndex=h.currentIndex;for(this._additionsHead=this._additionsTail=null,h=this._movesHead;null!==h;h=h._nextMoved)h.previousIndex=h.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(h,g,S,F){let G;return null===h?G=this._itTail:(G=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._reinsertAfter(h,G,F)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(S,F))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._moveAfter(h,G,F)):h=this._addAfter(new a5(g,S),G,F),h}_verifyReinsertion(h,g,S,F){let G=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null);return null!==G?h=this._reinsertAfter(G,h._prev,F):h.currentIndex!=F&&(h.currentIndex=F,this._addToMoves(h,F)),h}_truncate(h){for(;null!==h;){const g=h._next;this._addToRemovals(this._unlink(h)),h=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(h,g,S){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const F=h._prevRemoved,G=h._nextRemoved;return null===F?this._removalsHead=G:F._nextRemoved=G,null===G?this._removalsTail=F:G._prevRemoved=F,this._insertAfter(h,g,S),this._addToMoves(h,S),h}_moveAfter(h,g,S){return this._unlink(h),this._insertAfter(h,g,S),this._addToMoves(h,S),h}_addAfter(h,g,S){return this._insertAfter(h,g,S),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,g,S){const F=null===g?this._itHead:g._next;return h._next=F,h._prev=g,null===F?this._itTail=h:F._prev=h,null===g?this._itHead=h:g._next=h,null===this._linkedRecords&&(this._linkedRecords=new h8),this._linkedRecords.put(h),h.currentIndex=S,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const g=h._prev,S=h._next;return null===g?this._itHead=S:g._next=S,null===S?this._itTail=g:S._prev=g,h}_addToMoves(h,g){return h.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=h:this._movesTail._nextMoved=h),h}_addToRemovals(h){return null===this._unlinkedRecords&&(this._unlinkedRecords=new h8),this._unlinkedRecords.put(h),h.currentIndex=null,h._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=h,h._prevRemoved=null):(h._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=h),h}_addIdentityChange(h,g){return h.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=h:this._identityChangesTail._nextIdentityChange=h,h}}class a5{constructor(h,g){this.item=h,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 s5{constructor(){this._head=null,this._tail=null}add(h){null===this._head?(this._head=this._tail=h,h._nextDup=null,h._prevDup=null):(this._tail._nextDup=h,h._prevDup=this._tail,h._nextDup=null,this._tail=h)}get(h,g){let S;for(S=this._head;null!==S;S=S._nextDup)if((null===g||g<=S.currentIndex)&&Object.is(S.trackById,h))return S;return null}remove(h){const g=h._prevDup,S=h._nextDup;return null===g?this._head=S:g._nextDup=S,null===S?this._tail=g:S._prevDup=g,null===this._head}}class h8{constructor(){this.map=new Map}put(h){const g=h.trackById;let S=this.map.get(g);S||(S=new s5,this.map.set(g,S)),S.add(h)}get(h,g){const F=this.map.get(h);return F?F.get(h,g):null}remove(h){const g=h.trackById;return this.map.get(g).remove(h)&&this.map.delete(g),h}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function d8(c,h,g){const S=c.previousIndex;if(null===S)return S;let F=0;return g&&S{if(g&&g.key===F)this._maybeAddToChanges(g,S),this._appendAfter=g,g=g._next;else{const G=this._getOrCreateRecordForKey(F,S);g=this._insertBeforeOrAppend(g,G)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let S=g;null!==S;S=S._nextRemoved)S===this._mapHead&&(this._mapHead=null),this._records.delete(S.key),S._nextRemoved=S._next,S.previousValue=S.currentValue,S.currentValue=null,S._prev=null,S._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,g){if(h){const S=h._prev;return g._next=h,g._prev=S,h._prev=g,S&&(S._next=g),h===this._mapHead&&(this._mapHead=g),this._appendAfter=h,h}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(h,g){if(this._records.has(h)){const F=this._records.get(h);this._maybeAddToChanges(F,g);const G=F._prev,fe=F._next;return G&&(G._next=fe),fe&&(fe._prev=G),F._next=null,F._prev=null,F}const S=new l5(h);return this._records.set(h,S),S.currentValue=g,this._addToAdditions(S),S}_reset(){if(this.isDirty){let h;for(this._previousMapHead=this._mapHead,h=this._previousMapHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._changesHead;null!==h;h=h._nextChanged)h.previousValue=h.currentValue;for(h=this._additionsHead;null!=h;h=h._nextAdded)h.previousValue=h.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(h,g){Object.is(g,h.currentValue)||(h.previousValue=h.currentValue,h.currentValue=g,this._addToChanges(h))}_addToAdditions(h){null===this._additionsHead?this._additionsHead=this._additionsTail=h:(this._additionsTail._nextAdded=h,this._additionsTail=h)}_addToChanges(h){null===this._changesHead?this._changesHead=this._changesTail=h:(this._changesTail._nextChanged=h,this._changesTail=h)}_forEach(h,g){h instanceof Map?h.forEach(g):Object.keys(h).forEach(S=>g(h[S],S))}}class l5{constructor(h){this.key=h,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 f8(){return new W3([new c8])}let W3=(()=>{class c{constructor(g){this.factories=g}static create(g,S){if(null!=S){const F=S.factories.slice();g=g.concat(F)}return new c(g)}static extend(g){return{provide:c,useFactory:S=>c.create(g,S||f8()),deps:[[c,new qs,new zo]]}}find(g){const S=this.factories.find(F=>F.supports(g));if(null!=S)return S;throw new Error(`Cannot find a differ supporting object '${g}' of type '${function c5(c){return c.name||typeof c}(g)}'`)}}return c.\u0275prov=be({token:c,providedIn:"root",factory:f8}),c})();function p8(){return new j3([new u8])}let j3=(()=>{class c{constructor(g){this.factories=g}static create(g,S){if(S){const F=S.factories.slice();g=g.concat(F)}return new c(g)}static extend(g){return{provide:c,useFactory:S=>c.create(g,S||p8()),deps:[[c,new qs,new zo]]}}find(g){const S=this.factories.find(F=>F.supports(g));if(S)return S;throw new Error(`Cannot find a differ supporting object '${g}'`)}}return c.\u0275prov=be({token:c,providedIn:"root",factory:p8}),c})();const h5=[new u8],u5=new W3([new c8]),f5=new j3(h5),p5=Jm(null,"core",[{provide:Zm,useValue:"unknown"},{provide:$m,deps:[Rs]},{provide:Km,deps:[]},{provide:Gm,deps:[]}]),y5=[{provide:k4,useClass:k4,deps:[So,Rs,Ec,T4,$u]},{provide:R8,deps:[So],useFactory:function b5(c){let h=[];return c.onStable.subscribe(()=>{for(;h.length;)h.pop()()}),function(g){h.push(g)}}},{provide:$u,useClass:$u,deps:[[new zo,_p]]},{provide:yp,useClass:yp,deps:[]},Dg,{provide:W3,useFactory:function m5(){return u5},deps:[]},{provide:j3,useFactory:function g5(){return f5},deps:[]},{provide:G3,useFactory:function _5(c){return c||function v5(){return"undefined"!=typeof $localize&&$localize.locale||c0}()},deps:[[new Ho(G3),new zo,new qs]]},{provide:Ym,useValue:"USD"}];let x5=(()=>{class c{constructor(g){}}return c.\u0275fac=function(g){return new(g||c)(ka(k4))},c.\u0275mod=ct({type:c}),c.\u0275inj=ze({providers:y5}),c})()},9042:(Ge,Q,m)=>{"use strict";function e(L){for(let I in L){let A=L[I]||"";switch(I){case"display":L.display="flex"===A?["-webkit-flex","flex"]:"inline-flex"===A?["-webkit-inline-flex","inline-flex"]:A;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":L["-webkit-"+I]=A;break;case"flex-direction":A=A||"row",L["-webkit-flex-direction"]=A,L["flex-direction"]=A;break;case"order":L.order=L["-webkit-"+I]=isNaN(+A)?"0":A}}return L}m.d(Q,{iQ:()=>y,GK:()=>e,Ar:()=>C,kt:()=>s,tj:()=>M});const t="inline",y=["row","column","row-reverse","column-reverse"];function C(L){let[I,A,E]=o(L);return function R(L,I=null,A=!1){return{display:A?"inline-flex":"flex","box-sizing":"border-box","flex-direction":L,"flex-wrap":I||null}}(I,A,E)}function o(L){L=L?L.toLowerCase():"";let[I,A,E]=L.split(" ");return y.find(P=>P===I)||(I=y[0]),A===t&&(A=E!==t?E:"",E=t),[I,l(A),!!E]}function M(L){let[I]=o(L);return I.indexOf("row")>-1}function l(L){if(L)switch(L.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":L="wrap-reverse";break;case"no":case"none":case"nowrap":L="nowrap";break;default:L="wrap"}return L}function s(L,...I){if(null==L)throw TypeError("Cannot convert undefined or null to object");for(let A of I)if(null!=A)for(let E in A)A.hasOwnProperty(E)&&(L[E]=A[E]);return L}},3270:(Ge,Q,m)=>{"use strict";m.d(Q,{Bs:()=>te,iR:()=>Fe,IR:()=>E,g5:()=>V,WU:()=>j,yB:()=>Ze,wY:()=>W,QI:()=>ge,RK:()=>le,Ot:()=>Ue});var e=m(5e3),t=m(9808),y=m(1135),C=m(8306),o=m(6451),M=m(7579),l=m(9042),R=m(9300),s=m(8505);const I={provide:e.tb,useFactory:function L(nt,ft){return()=>{if((0,t.NF)(ft)){const it=Array.from(nt.querySelectorAll(`[class*=${A}]`)),rt=/\bflex-layout-.+?\b/g;it.forEach(Mt=>{Mt.classList.contains(`${A}ssr`)&&Mt.parentNode?Mt.parentNode.removeChild(Mt):Mt.className.replace(rt,"")})}}},deps:[t.K0,e.Lbi],multi:!0},A="flex-layout-";let E=(()=>{class nt{}return nt.\u0275fac=function(it){return new(it||nt)},nt.\u0275mod=e.oAB({type:nt}),nt.\u0275inj=e.cJS({providers:[I]}),nt})();class P{constructor(ft=!1,it="all",rt="",Mt="",Zt=0){this.matches=ft,this.mediaQuery=it,this.mqAlias=rt,this.suffix=Mt,this.priority=Zt,this.property=""}clone(){return new P(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let w=(()=>{class nt{constructor(){this.stylesheet=new Map}addStyleToElement(it,rt,Mt){const Zt=this.stylesheet.get(it);Zt?Zt.set(rt,Mt):this.stylesheet.set(it,new Map([[rt,Mt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(it,rt){const Mt=this.stylesheet.get(it);let Zt="";if(Mt){const Ft=Mt.get(rt);("number"==typeof Ft||"string"==typeof Ft)&&(Zt=Ft+"")}return Zt}}return nt.\u0275fac=function(it){return new(it||nt)},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const V={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},j=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>V}),W=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),te=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(nt,ft){return nt=nt?nt.clone():new P,ft&&(nt.mqAlias=ft.alias,nt.mediaQuery=ft.mediaQuery,nt.suffix=ft.suffix,nt.priority=ft.priority),nt}class ge{constructor(){this.shouldCache=!0}sideEffect(ft,it,rt){}}let le=(()=>{class nt{constructor(it,rt,Mt,Zt){this._serverStylesheet=it,this._serverModuleLoaded=rt,this._platformId=Mt,this.layoutConfig=Zt}applyStyleToElement(it,rt,Mt=null){let Zt={};"string"==typeof rt&&(Zt[rt]=Mt,rt=Zt),Zt=this.layoutConfig.disableVendorPrefixes?rt:(0,l.GK)(rt),this._applyMultiValueStyleToElement(Zt,it)}applyStyleToElements(it,rt=[]){const Mt=this.layoutConfig.disableVendorPrefixes?it:(0,l.GK)(it);rt.forEach(Zt=>{this._applyMultiValueStyleToElement(Mt,Zt)})}getFlowDirection(it){const rt="flex-direction";let Mt=this.lookupStyle(it,rt);return[Mt||"row",this.lookupInlineStyle(it,rt)||(0,t.PM)(this._platformId)&&this._serverModuleLoaded?Mt:""]}hasWrap(it){return"wrap"===this.lookupStyle(it,"flex-wrap")}lookupAttributeValue(it,rt){return it.getAttribute(rt)||""}lookupInlineStyle(it,rt){return(0,t.NF)(this._platformId)?it.style.getPropertyValue(rt):this._getServerStyle(it,rt)}lookupStyle(it,rt,Mt=!1){let Zt="";return it&&((Zt=this.lookupInlineStyle(it,rt))||((0,t.NF)(this._platformId)?Mt||(Zt=getComputedStyle(it).getPropertyValue(rt)):this._serverModuleLoaded&&(Zt=this._serverStylesheet.getStyleForElement(it,rt)))),Zt?Zt.trim():""}_applyMultiValueStyleToElement(it,rt){Object.keys(it).sort().forEach(Mt=>{const Zt=it[Mt],Ft=Array.isArray(Zt)?Zt:[Zt];Ft.sort();for(let Vt of Ft)Vt=Vt?Vt+"":"",(0,t.NF)(this._platformId)||!this._serverModuleLoaded?(0,t.NF)(this._platformId)?rt.style.setProperty(Mt,Vt):this._setServerStyle(rt,Mt,Vt):this._serverStylesheet.addStyleToElement(rt,Mt,Vt)})}_setServerStyle(it,rt,Mt){rt=rt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Zt=this._readStyleAttribute(it);Zt[rt]=Mt||"",this._writeStyleAttribute(it,Zt)}_getServerStyle(it,rt){return this._readStyleAttribute(it)[rt]||""}_readStyleAttribute(it){const rt={},Mt=it.getAttribute("style");if(Mt){const Zt=Mt.split(/;+/g);for(let Ft=0;Ft0){const Ii=Vt.indexOf(":");if(-1===Ii)throw new Error(`Invalid CSS style: ${Vt}`);rt[Vt.substr(0,Ii).trim()]=Vt.substr(Ii+1).trim()}}}return rt}_writeStyleAttribute(it,rt){let Mt="";for(const Zt in rt)rt[Zt]&&(Mt+=Zt+":"+rt[Zt]+";");it.setAttribute("style",Mt)}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(w),e.LFG(W),e.LFG(e.Lbi),e.LFG(j))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function re(nt,ft){return(ft&&ft.priority||0)-(nt&&nt.priority||0)}function de(nt,ft){return(nt.priority||0)-(ft.priority||0)}let se=(()=>{class nt{constructor(it,rt,Mt){this._zone=it,this._platformId=rt,this._document=Mt,this.source=new y.X(new P(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const it=[];return this.registry.forEach((rt,Mt)=>{rt.matches&&it.push(Mt)}),it}isActive(it){const rt=this.registry.get(it);return rt?rt.matches:this.registerQuery(it).some(Mt=>Mt.matches)}observe(it,rt=!1){if(it&&it.length){const Mt=this._observable$.pipe((0,R.h)(Ft=>!rt||it.indexOf(Ft.mediaQuery)>-1)),Zt=new C.y(Ft=>{const Vt=this.registerQuery(it);if(Vt.length){const Ii=Vt.pop();Vt.forEach(jt=>{Ft.next(jt)}),this.source.next(Ii)}Ft.complete()});return(0,o.T)(Zt,Mt)}return this._observable$}registerQuery(it){const rt=Array.isArray(it)?it:[it],Mt=[];return function v(nt,ft){const it=nt.filter(rt=>!ye[rt]);if(it.length>0){const rt=it.join(", ");try{const Mt=ft.createElement("style");Mt.setAttribute("type","text/css"),Mt.styleSheet||Mt.appendChild(ft.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${rt} {.fx-query-test{ }}\n`)),ft.head.appendChild(Mt),it.forEach(Zt=>ye[Zt]=Mt)}catch(Mt){console.error(Mt)}}}(rt,this._document),rt.forEach(Zt=>{const Ft=Ii=>{this._zone.run(()=>this.source.next(new P(Ii.matches,Zt)))};let Vt=this.registry.get(Zt);Vt||(Vt=this.buildMQL(Zt),Vt.addListener(Ft),this.pendingRemoveListenerFns.push(()=>Vt.removeListener(Ft)),this.registry.set(Zt,Vt)),Vt.matches&&Mt.push(new P(!0,Zt))}),Mt}ngOnDestroy(){let it;for(;it=this.pendingRemoveListenerFns.pop();)it()}buildMQL(it){return function i(nt,ft){return ft&&window.matchMedia("all").addListener?window.matchMedia(nt):{matches:"all"===nt||""===nt,media:nt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(it,(0,t.NF)(this._platformId))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(t.K0))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const ye={},a=[{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}],p="(orientation: portrait) and (max-width: 599.98px)",u="(orientation: landscape) and (max-width: 959.98px)",_="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",D="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",O="(orientation: portrait) and (min-width: 840px)",x="(orientation: landscape) and (min-width: 1280px)",r={HANDSET:`${p}, ${u}`,TABLET:`${_} , ${D}`,WEB:`${O}, ${x} `,HANDSET_PORTRAIT:`${p}`,TABLET_PORTRAIT:`${_} `,WEB_PORTRAIT:`${O}`,HANDSET_LANDSCAPE:`${u}`,TABLET_LANDSCAPE:`${D}`,WEB_LANDSCAPE:`${x}`},b=[{alias:"handset",priority:2e3,mediaQuery:r.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:r.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:r.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:r.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:r.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:r.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:r.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:r.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:r.WEB_PORTRAIT,overlapping:!0}],Z=/(\.|-|_)/g;function N(nt){let ft=nt.length>0?nt.charAt(0):"",it=nt.length>1?nt.slice(1):"";return ft.toUpperCase()+it}const Re=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const nt=(0,e.f3M)(te),ft=(0,e.f3M)(j),it=[].concat.apply([],(nt||[]).map(Mt=>Array.isArray(Mt)?Mt:[Mt]));return function be(nt,ft=[]){const it={};return nt.forEach(rt=>{it[rt.alias]=rt}),ft.forEach(rt=>{it[rt.alias]?(0,l.kt)(it[rt.alias],rt):it[rt.alias]=rt}),function ve(nt){return nt.forEach(ft=>{ft.suffix||(ft.suffix=function U(nt){return nt.replace(Z,"|").split("|").map(N).join("")}(ft.alias),ft.overlapping=!!ft.overlapping)}),nt}(Object.keys(it).map(rt=>it[rt]))}((ft.disableDefaultBps?[]:a).concat(ft.addOrientationBps?b:[]),it)}});let ze=(()=>{class nt{constructor(it){this.findByMap=new Map,this.items=[...it].sort(de)}findByAlias(it){return it?this.findWithPredicate(it,rt=>rt.alias==it):null}findByQuery(it){return this.findWithPredicate(it,rt=>rt.mediaQuery==it)}get overlappings(){return this.items.filter(it=>1==it.overlapping)}get aliases(){return this.items.map(it=>it.alias)}get suffixes(){return this.items.map(it=>it.suffix?it.suffix:"")}findWithPredicate(it,rt){let Mt=this.findByMap.get(it);return Mt||(Mt=this.items.find(rt)||null,this.findByMap.set(it,Mt)),Mt||null}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(Re))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Oe="print",K={alias:Oe,mediaQuery:Oe,priority:1e3};let Me=(()=>{class nt{constructor(it,rt,Mt){this.breakpoints=it,this.layoutConfig=rt,this._document=Mt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new we,this.deactivations=[]}withPrintQuery(it){return[...it,Oe]}isPrintEvent(it){return it.mediaQuery.startsWith(Oe)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(it=>this.breakpoints.findByAlias(it)).filter(it=>null!==it)}getEventBreakpoints({mediaQuery:it}){const rt=this.breakpoints.findByQuery(it);return(rt?[...this.printBreakPoints,rt]:this.printBreakPoints).sort(re)}updateEvent(it){let rt=this.breakpoints.findByQuery(it.mediaQuery);return this.isPrintEvent(it)&&(rt=this.getEventBreakpoints(it)[0],it.mediaQuery=rt?rt.mediaQuery:""),ee(it,rt)}registerBeforeAfterPrintHooks(it){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const rt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(it,this.getEventBreakpoints(new P(!0,Oe))),it.updateStyles())},Mt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(it),it.updateStyles())};this._document.defaultView.addEventListener("beforeprint",rt),this._document.defaultView.addEventListener("afterprint",Mt),this.beforePrintEventListeners.push(rt),this.afterPrintEventListeners.push(Mt)}interceptEvents(it){return this.registerBeforeAfterPrintHooks(it),rt=>{this.isPrintEvent(rt)?rt.matches&&!this.isPrinting?(this.startPrinting(it,this.getEventBreakpoints(rt)),it.updateStyles()):!rt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(it),it.updateStyles()):this.collectActivations(rt)}}blockPropagation(){return it=>!(this.isPrinting||this.isPrintEvent(it))}startPrinting(it,rt){this.isPrinting=!0,it.activatedBreakpoints=this.queue.addPrintBreakpoints(rt)}stopPrinting(it){it.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(it){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(it.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const rt=this.breakpoints.findByQuery(it.mediaQuery);rt&&(this.deactivations.push(rt),this.deactivations.sort(re))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(it=>this._document.defaultView.removeEventListener("beforeprint",it)),this.afterPrintEventListeners.forEach(it=>this._document.defaultView.removeEventListener("afterprint",it)))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(ze),e.LFG(j),e.LFG(t.K0))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();class we{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(ft){return ft.push(K),ft.sort(re),ft.forEach(it=>this.addBreakpoint(it)),this.printBreakpoints}addBreakpoint(ft){ft&&void 0===this.printBreakpoints.find(rt=>rt.mediaQuery===ft.mediaQuery)&&(this.printBreakpoints=function z(nt){return!!nt&&nt.mediaQuery.startsWith(Oe)}(ft)?[ft,...this.printBreakpoints]:[...this.printBreakpoints,ft])}clear(){this.printBreakpoints=[]}}let Ze=(()=>{class nt{constructor(it,rt,Mt){this.matchMedia=it,this.breakpoints=rt,this.hook=Mt,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 M.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(it){const rt=this.findByQuery(it.mediaQuery);rt&&((it=ee(it,rt)).matches&&-1===this.activatedBreakpoints.indexOf(rt)?(this.activatedBreakpoints.push(rt),this.activatedBreakpoints.sort(re),this.updateStyles()):!it.matches&&-1!==this.activatedBreakpoints.indexOf(rt)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(rt),1),this.activatedBreakpoints.sort(re),this.updateStyles()))}init(it,rt,Mt,Zt,Ft=[]){vt(this.updateMap,it,rt,Mt),vt(this.clearMap,it,rt,Zt),this.buildElementKeyMap(it,rt),this.watchExtraTriggers(it,rt,Ft)}getValue(it,rt,Mt){const Zt=this.elementMap.get(it);if(Zt){const Ft=void 0!==Mt?Zt.get(Mt):this.getActivatedValues(Zt,rt);if(Ft)return Ft.get(rt)}}hasValue(it,rt){const Mt=this.elementMap.get(it);if(Mt){const Zt=this.getActivatedValues(Mt,rt);if(Zt)return void 0!==Zt.get(rt)||!1}return!1}setValue(it,rt,Mt,Zt){let Ft=this.elementMap.get(it);if(Ft){const Ii=(Ft.get(Zt)||new Map).set(rt,Mt);Ft.set(Zt,Ii),this.elementMap.set(it,Ft)}else Ft=(new Map).set(Zt,(new Map).set(rt,Mt)),this.elementMap.set(it,Ft);const Vt=this.getValue(it,rt);void 0!==Vt&&this.updateElement(it,rt,Vt)}trackValue(it,rt){return this.subject.asObservable().pipe((0,R.h)(Mt=>Mt.element===it&&Mt.key===rt))}updateStyles(){this.elementMap.forEach((it,rt)=>{const Mt=new Set(this.elementKeyMap.get(rt));let Zt=this.getActivatedValues(it);Zt&&Zt.forEach((Ft,Vt)=>{this.updateElement(rt,Vt,Ft),Mt.delete(Vt)}),Mt.forEach(Ft=>{if(Zt=this.getActivatedValues(it,Ft),Zt){const Vt=Zt.get(Ft);this.updateElement(rt,Ft,Vt)}else this.clearElement(rt,Ft)})})}clearElement(it,rt){const Mt=this.clearMap.get(it);if(Mt){const Zt=Mt.get(rt);Zt&&(Zt(),this.subject.next({element:it,key:rt,value:""}))}}updateElement(it,rt,Mt){const Zt=this.updateMap.get(it);if(Zt){const Ft=Zt.get(rt);Ft&&(Ft(Mt),this.subject.next({element:it,key:rt,value:Mt}))}}releaseElement(it){const rt=this.watcherMap.get(it);rt&&(rt.forEach(Zt=>Zt.unsubscribe()),this.watcherMap.delete(it));const Mt=this.elementMap.get(it);Mt&&(Mt.forEach((Zt,Ft)=>Mt.delete(Ft)),this.elementMap.delete(it))}triggerUpdate(it,rt){const Mt=this.elementMap.get(it);if(Mt){const Zt=this.getActivatedValues(Mt,rt);Zt&&(rt?this.updateElement(it,rt,Zt.get(rt)):Zt.forEach((Ft,Vt)=>this.updateElement(it,Vt,Ft)))}}buildElementKeyMap(it,rt){let Mt=this.elementKeyMap.get(it);Mt||(Mt=new Set,this.elementKeyMap.set(it,Mt)),Mt.add(rt)}watchExtraTriggers(it,rt,Mt){if(Mt&&Mt.length){let Zt=this.watcherMap.get(it);if(Zt||(Zt=new Map,this.watcherMap.set(it,Zt)),!Zt.get(rt)){const Vt=(0,o.T)(...Mt).subscribe(()=>{const Ii=this.getValue(it,rt);this.updateElement(it,rt,Ii)});Zt.set(rt,Vt)}}}findByQuery(it){return this.breakpoints.findByQuery(it)}getActivatedValues(it,rt){for(let Zt=0;ZtMt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(rt)).pipe((0,s.b)(this.hook.interceptEvents(this)),(0,R.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(se),e.LFG(ze),e.LFG(Me))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function vt(nt,ft,it,rt){if(void 0!==rt){let Mt=nt.get(ft);Mt||(Mt=new Map,nt.set(ft,Mt)),Mt.set(it,rt)}}let Fe=(()=>{class nt{constructor(it,rt,Mt,Zt){this.elementRef=it,this.styleBuilder=rt,this.styler=Mt,this.marshal=Zt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M.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(it){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,this.marshal.activatedAlias)}ngOnChanges(it){Object.keys(it).forEach(rt=>{if(-1!==this.inputs.indexOf(rt)){const Mt=rt.split(".").slice(1).join(".");this.setValue(it[rt].currentValue,Mt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(it=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),it)}addStyles(it,rt){const Mt=this.styleBuilder,Zt=Mt.shouldCache;let Ft=this.styleCache.get(it);(!Ft||!Zt)&&(Ft=Mt.buildStyles(it,rt),Zt&&this.styleCache.set(it,Ft)),this.mru=Object.assign({},Ft),this.applyStyleToElement(Ft),Mt.sideEffect(it,Ft,rt)}clearStyles(){Object.keys(this.mru).forEach(it=>{this.mru[it]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(it,rt=!1){if(it){const[Mt,Zt]=this.styler.getFlowDirection(it);if(!Zt&&rt){const Ft=(0,l.Ar)(Mt);this.styler.applyStyleToElements(Ft,[it])}return Mt.trim()}return"row"}hasWrap(it){return this.styler.hasWrap(it)}applyStyleToElement(it,rt,Mt=this.nativeElement){this.styler.applyStyleToElement(Mt,it,rt)}setValue(it,rt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,rt)}updateWithValue(it){this.currentValue!==it&&(this.addStyles(it),this.currentValue=it)}}return nt.\u0275fac=function(it){return new(it||nt)(e.Y36(e.SBq),e.Y36(ge),e.Y36(le),e.Y36(Ze))},nt.\u0275dir=e.lG2({type:nt,features:[e.TTD]}),nt})();function Ue(nt,ft="1",it="1"){let rt=[ft,it,nt],Mt=nt.indexOf("calc");if(Mt>0){rt[2]=lt(nt.substring(Mt).trim());let Zt=nt.substr(0,Mt).trim().split(" ");2==Zt.length&&(rt[0]=Zt[0],rt[1]=Zt[1])}else if(0==Mt)rt[2]=lt(nt.trim());else{let Zt=nt.split(" ");rt=3===Zt.length?Zt:[ft,it,nt]}return rt}function lt(nt){return nt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}},3322:(Ge,Q,m)=>{"use strict";m.d(Q,{oO:()=>V,Zl:()=>D,aT:()=>r});var e=m(5e3),t=m(3270),y=m(9808),M=(m(3191),m(2722),m(2313));let E=(()=>{class b extends t.iR{constructor(N,U,ve,be,Re,ze,Oe){super(N,null,U,ve),this.ngClassInstance=Oe,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new y.mk(be,Re,N,ze)),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 b.\u0275fac=function(N){return new(N||b)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(y.mk,10))},b.\u0275dir=e.lG2({type:b,inputs:{klass:["class","klass"]},features:[e.qOj]}),b})();const P=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let V=(()=>{class b extends E{constructor(){super(...arguments),this.inputs=P}}return b.\u0275fac=function(){let Z;return function(U){return(Z||(Z=e.n5z(b)))(U||b)}}(),b.\u0275dir=e.lG2({type:b,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[e.qOj]}),b})();class re{constructor(Z,N,U=!0){this.key=Z,this.value=N,this.key=U?Z.replace(/['"]/g,"").trim():Z.trim(),this.value=U?N.replace(/['"]/g,"").trim():N.trim(),this.value=this.value.replace(/;/,"")}}function de(b){let Z=typeof b;return"object"===Z?b.constructor===Array?"array":b.constructor===Set?"set":"object":Z}function i(b){const[Z,...N]=b.split(":");return new re(Z,N.join(":"))}function a(b,Z){return Z.key&&(b[Z.key]=Z.value),b}let p=(()=>{class b extends t.iR{constructor(N,U,ve,be,Re,ze,Oe,K,Me){super(N,null,U,ve),this.sanitizer=be,this.ngStyleInstance=Oe,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new y.PC(N,Re,ze)),this.init();const we=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(we),this.isServer=K&&(0,y.PM)(Me)}updateWithValue(N){const U=this.buildStyleMap(N);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),U),this.isServer&&this.applyStyleToElement(U),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(N){const U=ve=>this.sanitizer.sanitize(e.q3G.STYLE,ve)||"";if(N)switch(de(N)){case"string":return O(function se(b,Z=";"){return String(b).trim().split(Z).map(N=>N.trim()).filter(N=>""!==N)}(N),U);case"array":return O(N,U);default:return function v(b,Z){let N=[];return"set"===de(b)?b.forEach(U=>N.push(U)):Object.keys(b).forEach(U=>{N.push(`${U}:${b[U]}`)}),function ye(b,Z){return b.map(i).filter(U=>!!U).map(U=>(Z&&(U.value=Z(U.value)),U)).reduce(a,{})}(N,Z)}(N,U)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return b.\u0275fac=function(N){return new(N||b)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(M.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(y.PC,10),e.Y36(t.wY),e.Y36(e.Lbi))},b.\u0275dir=e.lG2({type:b,features:[e.qOj]}),b})();const u=["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 D=(()=>{class b extends p{constructor(){super(...arguments),this.inputs=u}}return b.\u0275fac=function(){let Z;return function(U){return(Z||(Z=e.n5z(b)))(U||b)}}(),b.\u0275dir=e.lG2({type:b,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[e.qOj]}),b})();function O(b,Z){return b.map(i).filter(U=>!!U).map(U=>(Z&&(U.value=Z(U.value)),U)).reduce(a,{})}let r=(()=>{class b{}return b.\u0275fac=function(N){return new(N||b)},b.\u0275mod=e.oAB({type:b}),b.\u0275inj=e.cJS({imports:[[t.IR]]}),b})()},7093:(Ge,Q,m)=>{"use strict";m.d(Q,{yH:()=>_,Wh:()=>rt,xw:()=>I,ae:()=>hi});var e=m(5e3),t=m(226),y=m(3270),C=m(9042),M=(m(7579),m(2722));let l=(()=>{class Ve extends y.QI{buildStyles(Y){return(0,C.Ar)(Y)}}return Ve.\u0275fac=function(){let Ee;return function(pe){return(Ee||(Ee=e.n5z(Ve)))(pe||Ve)}}(),Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const R=["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 L=(()=>{class Ve extends y.iR{constructor(Y,pe,De,et){super(Y,De,pe,et),this.DIRECTIVE_KEY="layout",this.styleCache=A,this.init()}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(l),e.Y36(y.yB))},Ve.\u0275dir=e.lG2({type:Ve,features:[e.qOj]}),Ve})(),I=(()=>{class Ve extends L{constructor(){super(...arguments),this.inputs=R}}return Ve.\u0275fac=function(){let Ee;return function(pe){return(Ee||(Ee=e.n5z(Ve)))(pe||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[e.qOj]}),Ve})();const A=new Map;let i=(()=>{class Ve extends y.QI{constructor(Y){super(),this.layoutConfig=Y}buildStyles(Y,pe){let[De,et,...$t]=Y.split(" "),Nt=$t.join(" ");const Jt=pe.direction.indexOf("column")>-1?"column":"row",ct=(0,C.tj)(Jt)?"max-width":"max-height",ke=(0,C.tj)(Jt)?"min-width":"min-height",Be=String(Nt).indexOf("calc")>-1,at=Be||"auto"===Nt,st=String(Nt).indexOf("%")>-1&&!Be,At=String(Nt).indexOf("px")>-1||String(Nt).indexOf("rem")>-1||String(Nt).indexOf("em")>-1||String(Nt).indexOf("vw")>-1||String(Nt).indexOf("vh")>-1;let li=Be||At;De="0"==De?0:De,et="0"==et?0:et;const Bt=!De&&!et;let Rt={};const Li={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Nt||""){case"":const si=!1!==this.layoutConfig.useColumnBasisZero;Nt="row"===Jt?"0%":si?"0.000000001px":"auto";break;case"initial":case"nogrow":De=0,Nt="auto";break;case"grow":Nt="100%";break;case"noshrink":et=0,Nt="auto";break;case"auto":break;case"none":De=0,et=0,Nt="auto";break;default:!li&&!st&&!isNaN(Nt)&&(Nt+="%"),"0%"===Nt&&(li=!0),"0px"===Nt&&(Nt="0%"),Rt=(0,C.kt)(Li,Be?{"flex-grow":De,"flex-shrink":et,"flex-basis":li?Nt:"100%"}:{flex:`${De} ${et} ${li?Nt:"100%"}`})}return Rt.flex||Rt["flex-grow"]||(Rt=(0,C.kt)(Li,Be?{"flex-grow":De,"flex-shrink":et,"flex-basis":Nt}:{flex:`${De} ${et} ${Nt}`})),"0%"!==Nt&&"0px"!==Nt&&"0.000000001px"!==Nt&&"auto"!==Nt&&(Rt[ke]=Bt||li&&De?Nt:null,Rt[ct]=Bt||!at&&et?Nt:null),Rt[ke]||Rt[ct]?pe.hasWrap&&(Rt[Be?"flex-basis":"flex"]=Rt[ct]?Be?Rt[ct]:`${De} ${et} ${Rt[ct]}`:Be?Rt[ke]:`${De} ${et} ${Rt[ke]}`):Rt=(0,C.kt)(Li,Be?{"flex-grow":De,"flex-shrink":et,"flex-basis":Nt}:{flex:`${De} ${et} ${Nt}`}),(0,C.kt)(Rt,{"box-sizing":"border-box"})}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.LFG(y.WU))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const a=["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 u=(()=>{class Ve extends y.iR{constructor(Y,pe,De,et,$t){super(Y,et,pe,$t),this.layoutConfig=De,this.marshal=$t,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(Y){this.flexShrink=Y||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Y){this.flexGrow=Y||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,M.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Y){const De=Y.value.split(" ");this.direction=De[0],this.wrap=void 0!==De[1]&&"wrap"===De[1],this.triggerUpdate()}updateWithValue(Y){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 De=this.direction,et=De.startsWith("row"),$t=this.wrap;et&&$t?this.styleCache=x:et&&!$t?this.styleCache=D:!et&&$t?this.styleCache=r:!et&&!$t&&(this.styleCache=O);const Nt=String(Y).replace(";",""),Jt=(0,y.Ot)(Nt,this.flexGrow,this.flexShrink);this.addStyles(Jt.join(" "),{direction:De,hasWrap:$t})}triggerReflow(){const Y=this.activatedValue;if(void 0!==Y){const pe=(0,y.Ot)(Y+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,pe.join(" "))}}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(y.WU),e.Y36(i),e.Y36(y.yB))},Ve.\u0275dir=e.lG2({type:Ve,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),Ve})(),_=(()=>{class Ve extends u{constructor(){super(...arguments),this.inputs=a}}return Ve.\u0275fac=function(){let Ee;return function(pe){return(Ee||(Ee=e.n5z(Ve)))(pe||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[e.qOj]}),Ve})();const D=new Map,O=new Map,x=new Map,r=new Map;let lt=(()=>{class Ve extends y.QI{buildStyles(Y,pe){const De={},[et,$t]=Y.split(" ");switch(et){case"center":De["justify-content"]="center";break;case"space-around":De["justify-content"]="space-around";break;case"space-between":De["justify-content"]="space-between";break;case"space-evenly":De["justify-content"]="space-evenly";break;case"end":case"flex-end":De["justify-content"]="flex-end";break;default:De["justify-content"]="flex-start"}switch($t){case"start":case"flex-start":De["align-items"]=De["align-content"]="flex-start";break;case"center":De["align-items"]=De["align-content"]="center";break;case"end":case"flex-end":De["align-items"]=De["align-content"]="flex-end";break;case"space-between":De["align-content"]="space-between",De["align-items"]="stretch";break;case"space-around":De["align-content"]="space-around",De["align-items"]="stretch";break;case"baseline":De["align-content"]="stretch",De["align-items"]="baseline";break;default:De["align-items"]=De["align-content"]="stretch"}return(0,C.kt)(De,{display:pe.inline?"inline-flex":"flex","flex-direction":pe.layout,"box-sizing":"border-box","max-width":"stretch"===$t?(0,C.tj)(pe.layout)?null:"100%":null,"max-height":"stretch"===$t&&(0,C.tj)(pe.layout)?"100%":null})}}return Ve.\u0275fac=function(){let Ee;return function(pe){return(Ee||(Ee=e.n5z(Ve)))(pe||Ve)}}(),Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const nt=["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 it=(()=>{class Ve extends y.iR{constructor(Y,pe,De,et){super(Y,De,pe,et),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Y){const pe=this.layout||"row",De=this.inline;"row"===pe&&De?this.styleCache=Ii:"row"!==pe||De?"row-reverse"===pe&&De?this.styleCache=ei:"row-reverse"!==pe||De?"column"===pe&&De?this.styleCache=jt:"column"!==pe||De?"column-reverse"===pe&&De?this.styleCache=ki:"column-reverse"===pe&&!De&&(this.styleCache=Vt):this.styleCache=Zt:this.styleCache=Ft:this.styleCache=Mt,this.addStyles(Y,{layout:pe,inline:De})}onLayoutChange(Y){const pe=Y.value.split(" ");this.layout=pe[0],this.inline=Y.value.includes("inline"),C.iQ.find(De=>De===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(lt),e.Y36(y.yB))},Ve.\u0275dir=e.lG2({type:Ve,features:[e.qOj]}),Ve})(),rt=(()=>{class Ve extends it{constructor(){super(...arguments),this.inputs=nt}}return Ve.\u0275fac=function(){let Ee;return function(pe){return(Ee||(Ee=e.n5z(Ve)))(pe||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[e.qOj]}),Ve})();const Mt=new Map,Zt=new Map,Ft=new Map,Vt=new Map,Ii=new Map,jt=new Map,ei=new Map,ki=new Map;let hi=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[y.IR,t.vT]]}),Ve})()},3075:(Ge,Q,m)=>{"use strict";m.d(Q,{Zs:()=>$n,Fj:()=>P,qu:()=>ja,NI:()=>Ui,oH:()=>dr,u:()=>Ma,sg:()=>Fi,u5:()=>Ha,Fd:()=>Ba,qQ:()=>kr,Cf:()=>j,JU:()=>R,a5:()=>we,JJ:()=>Ne,JL:()=>ce,F:()=>_e,On:()=>qi,wV:()=>gt,UX:()=>Zn,Q7:()=>ga,kI:()=>ee,_Y:()=>ot});var e=m(5e3),t=m(9808),y=m(457),C=m(4128),o=m(4004);let M=(()=>{class me{constructor(ne,Qe){this._renderer=ne,this._elementRef=Qe,this.onChange=Wt=>{},this.onTouched=()=>{}}setProperty(ne,Qe){this._renderer.setProperty(this._elementRef.nativeElement,ne,Qe)}registerOnTouched(ne){this.onTouched=ne}registerOnChange(ne){this.onChange=ne}setDisabledState(ne){this.setProperty("disabled",ne)}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(e.Qsj),e.Y36(e.SBq))},me.\u0275dir=e.lG2({type:me}),me})(),l=(()=>{class me extends M{}return me.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(me)))(Qe||me)}}(),me.\u0275dir=e.lG2({type:me,features:[e.qOj]}),me})();const R=new e.OlP("NgValueAccessor"),I={provide:R,useExisting:(0,e.Gpc)(()=>P),multi:!0},E=new e.OlP("CompositionEventMode");let P=(()=>{class me extends M{constructor(ne,Qe,Wt){super(ne,Qe),this._compositionMode=Wt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function A(){const me=(0,t.q)()?(0,t.q)().getUserAgent():"";return/android (\d+)/.test(me.toLowerCase())}())}writeValue(ne){this.setProperty("value",null==ne?"":ne)}_handleInput(ne){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ne)}_compositionStart(){this._composing=!0}_compositionEnd(ne){this._composing=!1,this._compositionMode&&this.onChange(ne)}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(E,8))},me.\u0275dir=e.lG2({type:me,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("input",function(mi){return Qe._handleInput(mi.target.value)})("blur",function(){return Qe.onTouched()})("compositionstart",function(){return Qe._compositionStart()})("compositionend",function(mi){return Qe._compositionEnd(mi.target.value)})},features:[e._Bn([I]),e.qOj]}),me})();function w(me){return null==me||0===me.length}function V(me){return null!=me&&"number"==typeof me.length}const j=new e.OlP("NgValidators"),W=new e.OlP("NgAsyncValidators"),te=/^(?=.{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 ee{static min(J){return ge(J)}static max(J){return le(J)}static required(J){return re(J)}static requiredTrue(J){return de(J)}static email(J){return function se(me){return w(me.value)||te.test(me.value)?null:{email:!0}}(J)}static minLength(J){return function ye(me){return J=>w(J.value)||!V(J.value)?null:J.value.lengthV(J.value)&&J.value.length>me?{maxlength:{requiredLength:me,actualLength:J.value.length}}:null}(J)}static pattern(J){return function i(me){if(!me)return a;let J,ne;return"string"==typeof me?(ne="","^"!==me.charAt(0)&&(ne+="^"),ne+=me,"$"!==me.charAt(me.length-1)&&(ne+="$"),J=new RegExp(ne)):(ne=me.toString(),J=me),Qe=>{if(w(Qe.value))return null;const Wt=Qe.value;return J.test(Wt)?null:{pattern:{requiredPattern:ne,actualValue:Wt}}}}(J)}static nullValidator(J){return null}static compose(J){return r(J)}static composeAsync(J){return Z(J)}}function ge(me){return J=>{if(w(J.value)||w(me))return null;const ne=parseFloat(J.value);return!isNaN(ne)&&ne{if(w(J.value)||w(me))return null;const ne=parseFloat(J.value);return!isNaN(ne)&&ne>me?{max:{max:me,actual:J.value}}:null}}function re(me){return w(me.value)?{required:!0}:null}function de(me){return!0===me.value?null:{required:!0}}function a(me){return null}function p(me){return null!=me}function u(me){const J=(0,e.QGY)(me)?(0,y.D)(me):me;return(0,e.CqO)(J),J}function _(me){let J={};return me.forEach(ne=>{J=null!=ne?Object.assign(Object.assign({},J),ne):J}),0===Object.keys(J).length?null:J}function D(me,J){return J.map(ne=>ne(me))}function x(me){return me.map(J=>function O(me){return!me.validate}(J)?J:ne=>J.validate(ne))}function r(me){if(!me)return null;const J=me.filter(p);return 0==J.length?null:function(ne){return _(D(ne,J))}}function b(me){return null!=me?r(x(me)):null}function Z(me){if(!me)return null;const J=me.filter(p);return 0==J.length?null:function(ne){const Qe=D(ne,J).map(u);return(0,C.D)(Qe).pipe((0,o.U)(_))}}function N(me){return null!=me?Z(x(me)):null}function U(me,J){return null===me?[J]:Array.isArray(me)?[...me,J]:[me,J]}function ve(me){return me._rawValidators}function be(me){return me._rawAsyncValidators}function Re(me){return me?Array.isArray(me)?me:[me]:[]}function ze(me,J){return Array.isArray(me)?me.includes(J):me===J}function Oe(me,J){const ne=Re(J);return Re(me).forEach(Wt=>{ze(ne,Wt)||ne.push(Wt)}),ne}function K(me,J){return Re(J).filter(ne=>!ze(me,ne))}class Me{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(J){this._rawValidators=J||[],this._composedValidatorFn=b(this._rawValidators)}_setAsyncValidators(J){this._rawAsyncValidators=J||[],this._composedAsyncValidatorFn=N(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(J){this._onDestroyCallbacks.push(J)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(J=>J()),this._onDestroyCallbacks=[]}reset(J){this.control&&this.control.reset(J)}hasError(J,ne){return!!this.control&&this.control.hasError(J,ne)}getError(J,ne){return this.control?this.control.getError(J,ne):null}}class we extends Me{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class z extends Me{get formDirective(){return null}get path(){return null}}class Ze{constructor(J){this._cd=J}is(J){var ne,Qe,Wt;return"submitted"===J?!!(null===(ne=this._cd)||void 0===ne?void 0:ne.submitted):!!(null===(Wt=null===(Qe=this._cd)||void 0===Qe?void 0:Qe.control)||void 0===Wt?void 0:Wt[J])}}let Ne=(()=>{class me extends Ze{constructor(ne){super(ne)}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(we,2))},me.\u0275dir=e.lG2({type:me,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))},features:[e.qOj]}),me})(),ce=(()=>{class me extends Ze{constructor(ne){super(ne)}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(z,10))},me.\u0275dir=e.lG2({type:me,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))("ng-submitted",Qe.is("submitted"))},features:[e.qOj]}),me})();function Mt(me,J){return[...J.path,me]}function Zt(me,J){jt(me,J),J.valueAccessor.writeValue(me.value),function ki(me,J){J.valueAccessor.registerOnChange(ne=>{me._pendingValue=ne,me._pendingChange=!0,me._pendingDirty=!0,"change"===me.updateOn&&hi(me,J)})}(me,J),function Ve(me,J){const ne=(Qe,Wt)=>{J.valueAccessor.writeValue(Qe),Wt&&J.viewToModelUpdate(Qe)};me.registerOnChange(ne),J._registerOnDestroy(()=>{me._unregisterOnChange(ne)})}(me,J),function ai(me,J){J.valueAccessor.registerOnTouched(()=>{me._pendingTouched=!0,"blur"===me.updateOn&&me._pendingChange&&hi(me,J),"submit"!==me.updateOn&&me.markAsTouched()})}(me,J),function Ii(me,J){if(J.valueAccessor.setDisabledState){const ne=Qe=>{J.valueAccessor.setDisabledState(Qe)};me.registerOnDisabledChange(ne),J._registerOnDestroy(()=>{me._unregisterOnDisabledChange(ne)})}}(me,J)}function Ft(me,J,ne=!0){const Qe=()=>{};J.valueAccessor&&(J.valueAccessor.registerOnChange(Qe),J.valueAccessor.registerOnTouched(Qe)),ei(me,J),me&&(J._invokeOnDestroyCallbacks(),me._registerOnCollectionChange(()=>{}))}function Vt(me,J){me.forEach(ne=>{ne.registerOnValidatorChange&&ne.registerOnValidatorChange(J)})}function jt(me,J){const ne=ve(me);null!==J.validator?me.setValidators(U(ne,J.validator)):"function"==typeof ne&&me.setValidators([ne]);const Qe=be(me);null!==J.asyncValidator?me.setAsyncValidators(U(Qe,J.asyncValidator)):"function"==typeof Qe&&me.setAsyncValidators([Qe]);const Wt=()=>me.updateValueAndValidity();Vt(J._rawValidators,Wt),Vt(J._rawAsyncValidators,Wt)}function ei(me,J){let ne=!1;if(null!==me){if(null!==J.validator){const Wt=ve(me);if(Array.isArray(Wt)&&Wt.length>0){const mi=Wt.filter(Ct=>Ct!==J.validator);mi.length!==Wt.length&&(ne=!0,me.setValidators(mi))}}if(null!==J.asyncValidator){const Wt=be(me);if(Array.isArray(Wt)&&Wt.length>0){const mi=Wt.filter(Ct=>Ct!==J.asyncValidator);mi.length!==Wt.length&&(ne=!0,me.setAsyncValidators(mi))}}}const Qe=()=>{};return Vt(J._rawValidators,Qe),Vt(J._rawAsyncValidators,Qe),ne}function hi(me,J){me._pendingDirty&&me.markAsDirty(),me.setValue(me._pendingValue,{emitModelToViewChange:!1}),J.viewToModelUpdate(me._pendingValue),me._pendingChange=!1}function Ee(me,J){jt(me,J)}function et(me,J){if(!me.hasOwnProperty("model"))return!1;const ne=me.model;return!!ne.isFirstChange()||!Object.is(J,ne.currentValue)}function Nt(me,J){me._syncPendingControls(),J.forEach(ne=>{const Qe=ne.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(ne.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function Jt(me,J){if(!J)return null;let ne,Qe,Wt;return Array.isArray(J),J.forEach(mi=>{mi.constructor===P?ne=mi:function $t(me){return Object.getPrototypeOf(me.constructor)===l}(mi)?Qe=mi:Wt=mi}),Wt||Qe||ne||null}function ct(me,J){const ne=me.indexOf(J);ne>-1&&me.splice(ne,1)}const Be="VALID",at="INVALID",st="PENDING",At="DISABLED";function Bt(me){return(ci(me)?me.validators:me)||null}function Rt(me){return Array.isArray(me)?b(me):me||null}function Li(me,J){return(ci(J)?J.asyncValidators:me)||null}function si(me){return Array.isArray(me)?N(me):me||null}function ci(me){return null!=me&&!Array.isArray(me)&&"object"==typeof me}class sn{constructor(J,ne){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=J,this._rawAsyncValidators=ne,this._composedValidatorFn=Rt(this._rawValidators),this._composedAsyncValidatorFn=si(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(J){this._rawValidators=this._composedValidatorFn=J}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(J){this._rawAsyncValidators=this._composedAsyncValidatorFn=J}get parent(){return this._parent}get valid(){return this.status===Be}get invalid(){return this.status===at}get pending(){return this.status==st}get disabled(){return this.status===At}get enabled(){return this.status!==At}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(J){this._rawValidators=J,this._composedValidatorFn=Rt(J)}setAsyncValidators(J){this._rawAsyncValidators=J,this._composedAsyncValidatorFn=si(J)}addValidators(J){this.setValidators(Oe(J,this._rawValidators))}addAsyncValidators(J){this.setAsyncValidators(Oe(J,this._rawAsyncValidators))}removeValidators(J){this.setValidators(K(J,this._rawValidators))}removeAsyncValidators(J){this.setAsyncValidators(K(J,this._rawAsyncValidators))}hasValidator(J){return ze(this._rawValidators,J)}hasAsyncValidator(J){return ze(this._rawAsyncValidators,J)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(J={}){this.touched=!0,this._parent&&!J.onlySelf&&this._parent.markAsTouched(J)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(J=>J.markAllAsTouched())}markAsUntouched(J={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ne=>{ne.markAsUntouched({onlySelf:!0})}),this._parent&&!J.onlySelf&&this._parent._updateTouched(J)}markAsDirty(J={}){this.pristine=!1,this._parent&&!J.onlySelf&&this._parent.markAsDirty(J)}markAsPristine(J={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ne=>{ne.markAsPristine({onlySelf:!0})}),this._parent&&!J.onlySelf&&this._parent._updatePristine(J)}markAsPending(J={}){this.status=st,!1!==J.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!J.onlySelf&&this._parent.markAsPending(J)}disable(J={}){const ne=this._parentMarkedDirty(J.onlySelf);this.status=At,this.errors=null,this._forEachChild(Qe=>{Qe.disable(Object.assign(Object.assign({},J),{onlySelf:!0}))}),this._updateValue(),!1!==J.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},J),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(J={}){const ne=this._parentMarkedDirty(J.onlySelf);this.status=Be,this._forEachChild(Qe=>{Qe.enable(Object.assign(Object.assign({},J),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:J.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},J),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!1))}_updateAncestors(J){this._parent&&!J.onlySelf&&(this._parent.updateValueAndValidity(J),J.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(J){this._parent=J}updateValueAndValidity(J={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Be||this.status===st)&&this._runAsyncValidator(J.emitEvent)),!1!==J.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!J.onlySelf&&this._parent.updateValueAndValidity(J)}_updateTreeValidity(J={emitEvent:!0}){this._forEachChild(ne=>ne._updateTreeValidity(J)),this.updateValueAndValidity({onlySelf:!0,emitEvent:J.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?At:Be}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(J){if(this.asyncValidator){this.status=st,this._hasOwnPendingAsyncValidator=!0;const ne=u(this.asyncValidator(this));this._asyncValidationSubscription=ne.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:J})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(J,ne={}){this.errors=J,this._updateControlsErrors(!1!==ne.emitEvent)}get(J){return function li(me,J,ne){if(null==J||(Array.isArray(J)||(J=J.split(ne)),Array.isArray(J)&&0===J.length))return null;let Qe=me;return J.forEach(Wt=>{Qe=Qe instanceof Di?Qe.controls.hasOwnProperty(Wt)?Qe.controls[Wt]:null:Qe instanceof Xi&&Qe.at(Wt)||null}),Qe}(this,J,".")}getError(J,ne){const Qe=ne?this.get(ne):this;return Qe&&Qe.errors?Qe.errors[J]:null}hasError(J,ne){return!!this.getError(J,ne)}get root(){let J=this;for(;J._parent;)J=J._parent;return J}_updateControlsErrors(J){this.status=this._calculateStatus(),J&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(J)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?At:this.errors?at:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(st)?st:this._anyControlsHaveStatus(at)?at:Be}_anyControlsHaveStatus(J){return this._anyControls(ne=>ne.status===J)}_anyControlsDirty(){return this._anyControls(J=>J.dirty)}_anyControlsTouched(){return this._anyControls(J=>J.touched)}_updatePristine(J={}){this.pristine=!this._anyControlsDirty(),this._parent&&!J.onlySelf&&this._parent._updatePristine(J)}_updateTouched(J={}){this.touched=this._anyControlsTouched(),this._parent&&!J.onlySelf&&this._parent._updateTouched(J)}_isBoxedValue(J){return"object"==typeof J&&null!==J&&2===Object.keys(J).length&&"value"in J&&"disabled"in J}_registerOnCollectionChange(J){this._onCollectionChange=J}_setUpdateStrategy(J){ci(J)&&null!=J.updateOn&&(this._updateOn=J.updateOn)}_parentMarkedDirty(J){return!J&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ui extends sn{constructor(J=null,ne,Qe){super(Bt(ne),Li(Qe,ne)),this._onChange=[],this._applyFormState(J),this._setUpdateStrategy(ne),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(J,ne={}){this.value=this._pendingValue=J,this._onChange.length&&!1!==ne.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==ne.emitViewToModelChange)),this.updateValueAndValidity(ne)}patchValue(J,ne={}){this.setValue(J,ne)}reset(J=null,ne={}){this._applyFormState(J),this.markAsPristine(ne),this.markAsUntouched(ne),this.setValue(this.value,ne),this._pendingChange=!1}_updateValue(){}_anyControls(J){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(J){this._onChange.push(J)}_unregisterOnChange(J){ct(this._onChange,J)}registerOnDisabledChange(J){this._onDisabledChange.push(J)}_unregisterOnDisabledChange(J){ct(this._onDisabledChange,J)}_forEachChild(J){}_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(J){this._isBoxedValue(J)?(this.value=this._pendingValue=J.value,J.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=J}}class Di extends sn{constructor(J,ne,Qe){super(Bt(ne),Li(Qe,ne)),this.controls=J,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(J,ne){return this.controls[J]?this.controls[J]:(this.controls[J]=ne,ne.setParent(this),ne._registerOnCollectionChange(this._onCollectionChange),ne)}addControl(J,ne,Qe={}){this.registerControl(J,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(J,ne={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),delete this.controls[J],this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}setControl(J,ne,Qe={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),delete this.controls[J],ne&&this.registerControl(J,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(J){return this.controls.hasOwnProperty(J)&&this.controls[J].enabled}setValue(J,ne={}){this._checkAllValuesPresent(J),Object.keys(J).forEach(Qe=>{this._throwIfControlMissing(Qe),this.controls[Qe].setValue(J[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(J,ne={}){null!=J&&(Object.keys(J).forEach(Qe=>{this.controls[Qe]&&this.controls[Qe].patchValue(J[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(J={},ne={}){this._forEachChild((Qe,Wt)=>{Qe.reset(J[Wt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this._reduceChildren({},(J,ne,Qe)=>(J[Qe]=ne instanceof Ui?ne.value:ne.getRawValue(),J))}_syncPendingControls(){let J=this._reduceChildren(!1,(ne,Qe)=>!!Qe._syncPendingControls()||ne);return J&&this.updateValueAndValidity({onlySelf:!0}),J}_throwIfControlMissing(J){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[J])throw new Error(`Cannot find form control with name: ${J}.`)}_forEachChild(J){Object.keys(this.controls).forEach(ne=>{const Qe=this.controls[ne];Qe&&J(Qe,ne)})}_setUpControls(){this._forEachChild(J=>{J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(J){for(const ne of Object.keys(this.controls)){const Qe=this.controls[ne];if(this.contains(ne)&&J(Qe))return!0}return!1}_reduceValue(){return this._reduceChildren({},(J,ne,Qe)=>((ne.enabled||this.disabled)&&(J[Qe]=ne.value),J))}_reduceChildren(J,ne){let Qe=J;return this._forEachChild((Wt,mi)=>{Qe=ne(Qe,Wt,mi)}),Qe}_allControlsDisabled(){for(const J of Object.keys(this.controls))if(this.controls[J].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(J){this._forEachChild((ne,Qe)=>{if(void 0===J[Qe])throw new Error(`Must supply a value for form control with name: '${Qe}'.`)})}}class Xi extends sn{constructor(J,ne,Qe){super(Bt(ne),Li(Qe,ne)),this.controls=J,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(J){return this.controls[J]}push(J,ne={}){this.controls.push(J),this._registerControl(J),this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}insert(J,ne,Qe={}){this.controls.splice(J,0,ne),this._registerControl(ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(J,ne={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),this.updateValueAndValidity({emitEvent:ne.emitEvent})}setControl(J,ne,Qe={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),ne&&(this.controls.splice(J,0,ne),this._registerControl(ne)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(J,ne={}){this._checkAllValuesPresent(J),J.forEach((Qe,Wt)=>{this._throwIfControlMissing(Wt),this.at(Wt).setValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(J,ne={}){null!=J&&(J.forEach((Qe,Wt)=>{this.at(Wt)&&this.at(Wt).patchValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(J=[],ne={}){this._forEachChild((Qe,Wt)=>{Qe.reset(J[Wt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this.controls.map(J=>J instanceof Ui?J.value:J.getRawValue())}clear(J={}){this.controls.length<1||(this._forEachChild(ne=>ne._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:J.emitEvent}))}_syncPendingControls(){let J=this.controls.reduce((ne,Qe)=>!!Qe._syncPendingControls()||ne,!1);return J&&this.updateValueAndValidity({onlySelf:!0}),J}_throwIfControlMissing(J){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(J))throw new Error(`Cannot find form control at index ${J}`)}_forEachChild(J){this.controls.forEach((ne,Qe)=>{J(ne,Qe)})}_updateValue(){this.value=this.controls.filter(J=>J.enabled||this.disabled).map(J=>J.value)}_anyControls(J){return this.controls.some(ne=>ne.enabled&&J(ne))}_setUpControls(){this._forEachChild(J=>this._registerControl(J))}_checkAllValuesPresent(J){this._forEachChild((ne,Qe)=>{if(void 0===J[Qe])throw new Error(`Must supply a value for form control at index: ${Qe}.`)})}_allControlsDisabled(){for(const J of this.controls)if(J.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(J){J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange)}}const Ke={provide:z,useExisting:(0,e.Gpc)(()=>_e)},_t=(()=>Promise.resolve(null))();let _e=(()=>{class me extends z{constructor(ne,Qe){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new e.vpe,this.form=new Di({},b(ne),N(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);ne.control=Qe.registerControl(ne.name,ne.control),Zt(ne.control,ne),ne.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(ne)})}getControl(ne){return this.form.get(ne.path)}removeControl(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name),ct(this._directives,ne)})}addFormGroup(ne){_t.then(()=>{const Qe=this._findContainer(ne.path),Wt=new Di({});Ee(Wt,ne),Qe.registerControl(ne.name,Wt),Wt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name)})}getFormGroup(ne){return this.form.get(ne.path)}updateModel(ne,Qe){_t.then(()=>{this.form.get(ne.path).setValue(Qe)})}setValue(ne){this.control.setValue(ne)}onSubmit(ne){return this.submitted=!0,Nt(this.form,this._directives),this.ngSubmit.emit(ne),!1}onReset(){this.resetForm()}resetForm(ne){this.form.reset(ne),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ne){return ne.pop(),ne.length?this.form.get(ne):this.form}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(j,10),e.Y36(W,10))},me.\u0275dir=e.lG2({type:me,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ke]),e.qOj]}),me})();const Ni={provide:we,useExisting:(0,e.Gpc)(()=>qi)},Si=(()=>Promise.resolve(null))();let qi=(()=>{class me extends we{constructor(ne,Qe,Wt,mi){super(),this.control=new Ui,this._registered=!1,this.update=new e.vpe,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Wt),this.valueAccessor=Jt(0,mi)}ngOnChanges(ne){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in ne&&this._updateDisabled(ne),et(ne,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Mt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Zt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(ne){Si.then(()=>{this.control.setValue(ne,{emitViewToModelChange:!1})})}_updateDisabled(ne){const Qe=ne.isDisabled.currentValue,Wt=""===Qe||Qe&&"false"!==Qe;Si.then(()=>{Wt&&!this.control.disabled?this.control.disable():!Wt&&this.control.disabled&&this.control.enable()})}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(z,9),e.Y36(j,10),e.Y36(W,10),e.Y36(R,10))},me.\u0275dir=e.lG2({type:me,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([Ni]),e.qOj,e.TTD]}),me})(),ot=(()=>{class me{}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275dir=e.lG2({type:me,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),me})();const Kt={provide:R,useExisting:(0,e.Gpc)(()=>gt),multi:!0};let gt=(()=>{class me extends l{writeValue(ne){this.setProperty("value",null==ne?"":ne)}registerOnChange(ne){this.onChange=Qe=>{ne(""==Qe?null:parseFloat(Qe))}}}return me.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(me)))(Qe||me)}}(),me.\u0275dir=e.lG2({type:me,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("input",function(mi){return Qe.onChange(mi.target.value)})("blur",function(){return Qe.onTouched()})},features:[e._Bn([Kt]),e.qOj]}),me})(),Ci=(()=>{class me{}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({}),me})();const _n=new e.OlP("NgModelWithFormControlWarning"),kn={provide:we,useExisting:(0,e.Gpc)(()=>dr)};let dr=(()=>{class me extends we{constructor(ne,Qe,Wt,mi){super(),this._ngModelWarningConfig=mi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(ne),this._setAsyncValidators(Qe),this.valueAccessor=Jt(0,Wt)}set isDisabled(ne){}ngOnChanges(ne){if(this._isControlChanged(ne)){const Qe=ne.form.previousValue;Qe&&Ft(Qe,this,!1),Zt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}et(ne,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ft(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}_isControlChanged(ne){return ne.hasOwnProperty("form")}}return me._ngModelWarningSentOnce=!1,me.\u0275fac=function(ne){return new(ne||me)(e.Y36(j,10),e.Y36(W,10),e.Y36(R,10),e.Y36(_n,8))},me.\u0275dir=e.lG2({type:me,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([kn]),e.qOj,e.TTD]}),me})();const wi={provide:z,useExisting:(0,e.Gpc)(()=>Fi)};let Fi=(()=>{class me extends z{constructor(ne,Qe){super(),this.validators=ne,this.asyncValidators=Qe,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(ne),this._setAsyncValidators(Qe)}ngOnChanges(ne){this._checkFormPresent(),ne.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ei(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ne){const Qe=this.form.get(ne.path);return Zt(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(ne),Qe}getControl(ne){return this.form.get(ne.path)}removeControl(ne){Ft(ne.control||null,ne,!1),ct(this.directives,ne)}addFormGroup(ne){this._setUpFormContainer(ne)}removeFormGroup(ne){this._cleanUpFormContainer(ne)}getFormGroup(ne){return this.form.get(ne.path)}addFormArray(ne){this._setUpFormContainer(ne)}removeFormArray(ne){this._cleanUpFormContainer(ne)}getFormArray(ne){return this.form.get(ne.path)}updateModel(ne,Qe){this.form.get(ne.path).setValue(Qe)}onSubmit(ne){return this.submitted=!0,Nt(this.form,this.directives),this.ngSubmit.emit(ne),!1}onReset(){this.resetForm()}resetForm(ne){this.form.reset(ne),this.submitted=!1}_updateDomValue(){this.directives.forEach(ne=>{const Qe=ne.control,Wt=this.form.get(ne.path);Qe!==Wt&&(Ft(Qe||null,ne),Wt instanceof Ui&&(Zt(Wt,ne),ne.control=Wt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ne){const Qe=this.form.get(ne.path);Ee(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ne){if(this.form){const Qe=this.form.get(ne.path);Qe&&function Y(me,J){return ei(me,J)}(Qe,ne)&&Qe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jt(this.form,this),this._oldForm&&ei(this._oldForm,this)}_checkFormPresent(){}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(j,10),e.Y36(W,10))},me.\u0275dir=e.lG2({type:me,selectors:[["","formGroup",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([wi]),e.qOj,e.TTD]}),me})();const Ra={provide:we,useExisting:(0,e.Gpc)(()=>Ma)};let Ma=(()=>{class me extends we{constructor(ne,Qe,Wt,mi,Ct){super(),this._ngModelWarningConfig=Ct,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Wt),this.valueAccessor=Jt(0,mi)}set isDisabled(ne){}ngOnChanges(ne){this._added||this._setUpControl(),et(ne,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}get path(){return Mt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return me._ngModelWarningSentOnce=!1,me.\u0275fac=function(ne){return new(ne||me)(e.Y36(z,13),e.Y36(j,10),e.Y36(W,10),e.Y36(R,10),e.Y36(_n,8))},me.\u0275dir=e.lG2({type:me,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Ra]),e.qOj,e.TTD]}),me})();function vn(me){return"number"==typeof me?me:parseFloat(me)}let Qn=(()=>{class me{constructor(){this._validator=a}ngOnChanges(ne){if(this.inputName in ne){const Qe=this.normalizeInput(ne[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(Qe):a,this._onChange&&this._onChange()}}validate(ne){return this._validator(ne)}registerOnValidatorChange(ne){this._onChange=ne}enabled(){return null!=this[this.inputName]}}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275dir=e.lG2({type:me,features:[e.TTD]}),me})();const Tr={provide:j,useExisting:(0,e.Gpc)(()=>Ba),multi:!0};let Ba=(()=>{class me extends Qn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=ne=>vn(ne),this.createValidator=ne=>le(ne)}}return me.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(me)))(Qe||me)}}(),me.\u0275dir=e.lG2({type:me,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("max",Qe.enabled()?Qe.max:null)},inputs:{max:"max"},features:[e._Bn([Tr]),e.qOj]}),me})();const Wa={provide:j,useExisting:(0,e.Gpc)(()=>kr),multi:!0};let kr=(()=>{class me extends Qn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=ne=>vn(ne),this.createValidator=ne=>ge(ne)}}return me.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(me)))(Qe||me)}}(),me.\u0275dir=e.lG2({type:me,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("min",Qe.enabled()?Qe.min:null)},inputs:{min:"min"},features:[e._Bn([Wa]),e.qOj]}),me})();const la={provide:j,useExisting:(0,e.Gpc)(()=>ga),multi:!0},Jr={provide:j,useExisting:(0,e.Gpc)(()=>$n),multi:!0};let ga=(()=>{class me{constructor(){this._required=!1}get required(){return this._required}set required(ne){this._required=null!=ne&&!1!==ne&&"false"!=`${ne}`,this._onChange&&this._onChange()}validate(ne){return this.required?re(ne):null}registerOnValidatorChange(ne){this._onChange=ne}}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275dir=e.lG2({type:me,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},inputs:{required:"required"},features:[e._Bn([la])]}),me})(),$n=(()=>{class me extends ga{validate(ne){return this.required?de(ne):null}}return me.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(me)))(Qe||me)}}(),me.\u0275dir=e.lG2({type:me,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},features:[e._Bn([Jr]),e.qOj]}),me})(),Gr=(()=>{class me{}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({imports:[[Ci]]}),me})(),Ha=(()=>{class me{}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({imports:[Gr]}),me})(),Zn=(()=>{class me{static withConfig(ne){return{ngModule:me,providers:[{provide:_n,useValue:ne.warnOnNgModelWithFormControl}]}}}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({imports:[Gr]}),me})(),ja=(()=>{class me{group(ne,Qe=null){const Wt=this._reduceControls(ne);let ti,mi=null,Ct=null;return null!=Qe&&(function ns(me){return void 0!==me.asyncValidators||void 0!==me.validators||void 0!==me.updateOn}(Qe)?(mi=null!=Qe.validators?Qe.validators:null,Ct=null!=Qe.asyncValidators?Qe.asyncValidators:null,ti=null!=Qe.updateOn?Qe.updateOn:void 0):(mi=null!=Qe.validator?Qe.validator:null,Ct=null!=Qe.asyncValidator?Qe.asyncValidator:null)),new Di(Wt,{asyncValidators:Ct,updateOn:ti,validators:mi})}control(ne,Qe,Wt){return new Ui(ne,Qe,Wt)}array(ne,Qe,Wt){const mi=ne.map(Ct=>this._createControl(Ct));return new Xi(mi,Qe,Wt)}_reduceControls(ne){const Qe={};return Object.keys(ne).forEach(Wt=>{Qe[Wt]=this._createControl(ne[Wt])}),Qe}_createControl(ne){return ne instanceof Ui||ne instanceof Di||ne instanceof Xi?ne:Array.isArray(ne)?this.control(ne[0],ne.length>1?ne[1]:null,ne.length>2?ne[2]:null):this.control(ne)}}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275prov=e.Yz7({token:me,factory:me.\u0275fac,providedIn:Zn}),me})()},1079:(Ge,Q,m)=>{"use strict";m.d(Q,{XC:()=>x,Bb:()=>Oe,ZL:()=>be});var e=m(5664),t=m(3191),y=m(5e3),C=m(508),o=m(727),M=m(7579),l=m(9770),R=m(6451),s=m(9646),L=m(4968),I=m(925),A=m(9808),E=m(9776),P=m(5303),w=m(1159),V=m(7429),j=m(3075),W=m(7322),te=m(5698),ee=m(3900),ge=m(9300),le=m(4004),re=m(8505),de=m(4086),se=m(226);const ye=["panel"];function v(K,Me){if(1&K&&(y.TgZ(0,"div",0,1),y.Hsn(2),y.qZA()),2&K){const we=Me.id,z=y.oxw();y.Q6J("id",z.id)("ngClass",z._classList),y.uIk("aria-label",z.ariaLabel||null)("aria-labelledby",z._getPanelAriaLabelledby(we))}}const i=["*"];let a=0;class p{constructor(Me,we){this.source=Me,this.option=we}}const u=(0,C.Kr)(class{}),_=new y.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function D(){return{autoActiveFirstOption:!1}}});let O=(()=>{class K extends u{constructor(we,z,Ze,vt){super(),this._changeDetectorRef=we,this._elementRef=z,this._activeOptionChanges=o.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new y.vpe,this.opened=new y.vpe,this.closed=new y.vpe,this.optionActivated=new y.vpe,this._classList={},this.id="mat-autocomplete-"+a++,this.inertGroups=(null==vt?void 0:vt.SAFARI)||!1,this._autoActiveFirstOption=!!Ze.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(we){this._autoActiveFirstOption=(0,t.Ig)(we)}set classList(we){this._classList=we&&we.length?(0,t.du)(we).reduce((z,Ze)=>(z[Ze]=!0,z),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(we=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[we]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(we){this.panel&&(this.panel.nativeElement.scrollTop=we)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(we){const z=new p(this,we);this.optionSelected.emit(z)}_getPanelAriaLabelledby(we){return this.ariaLabel?null:this.ariaLabelledby?(we?we+" ":"")+this.ariaLabelledby:we}_setVisibilityClasses(we){we[this._visibleClass]=this.showPanel,we[this._hiddenClass]=!this.showPanel}}return K.\u0275fac=function(we){return new(we||K)(y.Y36(y.sBO),y.Y36(y.SBq),y.Y36(_),y.Y36(I.t4))},K.\u0275dir=y.lG2({type:K,viewQuery:function(we,z){if(1&we&&(y.Gf(y.Rgc,7),y.Gf(ye,5)),2&we){let Ze;y.iGM(Ze=y.CRH())&&(z.template=Ze.first),y.iGM(Ze=y.CRH())&&(z.panel=Ze.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:[y.qOj]}),K})(),x=(()=>{class K extends O{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return K.\u0275fac=function(){let Me;return function(z){return(Me||(Me=y.n5z(K)))(z||K)}}(),K.\u0275cmp=y.Xpm({type:K,selectors:[["mat-autocomplete"]],contentQueries:function(we,z,Ze){if(1&we&&(y.Suo(Ze,C.K7,5),y.Suo(Ze,C.ey,5)),2&we){let vt;y.iGM(vt=y.CRH())&&(z.optionGroups=vt),y.iGM(vt=y.CRH())&&(z.options=vt)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[y._Bn([{provide:C.HF,useExisting:K}]),y.qOj],ngContentSelectors:i,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(we,z){1&we&&(y.F$t(),y.YNc(0,v,3,4,"ng-template"))},directives:[A.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),K})();const r=new y.OlP("mat-autocomplete-scroll-strategy"),Z={provide:r,deps:[E.aV],useFactory:function b(K){return()=>K.scrollStrategies.reposition()}},N={provide:j.JU,useExisting:(0,y.Gpc)(()=>be),multi:!0};let ve=(()=>{class K{constructor(we,z,Ze,vt,Fe,Ne,ce,Le,Pe,q,$){this._element=we,this._overlay=z,this._viewContainerRef=Ze,this._zone=vt,this._changeDetectorRef=Fe,this._dir=ce,this._formField=Le,this._document=Pe,this._viewportRuler=q,this._defaults=$,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=o.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new M.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,l.P)(()=>this.autocomplete&&this.autocomplete.options?(0,R.T)(...this.autocomplete.options.map(oe=>oe.onSelectionChange)):this._zone.onStable.pipe((0,te.q)(1),(0,ee.w)(()=>this.optionSelections))),this._scrollStrategy=Ne}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(we){this._autocompleteDisabled=(0,t.Ig)(we)}ngAfterViewInit(){const we=this._getWindow();void 0!==we&&this._zone.runOutsideAngular(()=>we.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(we){we.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const we=this._getWindow();void 0!==we&&we.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.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,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ge.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ge.h)(()=>this._overlayAttached)):(0,s.of)()).pipe((0,le.U)(we=>we instanceof C.rN?we:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,L.R)(this._document,"click"),(0,L.R)(this._document,"auxclick"),(0,L.R)(this._document,"touchend")).pipe((0,ge.h)(we=>{const z=(0,I.sA)(we),Ze=this._formField?this._formField._elementRef.nativeElement:null,vt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&z!==this._element.nativeElement&&(!Ze||!Ze.contains(z))&&(!vt||!vt.contains(z))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(z)}))}writeValue(we){Promise.resolve(null).then(()=>this._setTriggerValue(we))}registerOnChange(we){this._onChange=we}registerOnTouched(we){this._onTouched=we}setDisabledState(we){this._element.nativeElement.disabled=we}_handleKeydown(we){const z=we.keyCode;if(z===w.hY&&!(0,w.Vb)(we)&&we.preventDefault(),this.activeOption&&z===w.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),we.preventDefault();else if(this.autocomplete){const Ze=this.autocomplete._keyManager.activeItem,vt=z===w.LH||z===w.JH;this.panelOpen||z===w.Mf?this.autocomplete._keyManager.onKeydown(we):vt&&this._canOpen()&&this.openPanel(),(vt||this.autocomplete._keyManager.activeItem!==Ze)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(we){let z=we.target,Ze=z.value;"number"===z.type&&(Ze=""==Ze?null:parseFloat(Ze)),this._previousValue!==Ze&&(this._previousValue=Ze,this._onChange(Ze),this._canOpen()&&this._document.activeElement===we.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(we=!1){this._formField&&"auto"===this._formField.floatLabel&&(we?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const we=this._zone.onStable.pipe((0,te.q)(1)),z=this.autocomplete.options.changes.pipe((0,re.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,de.g)(0));return(0,R.T)(we,z).pipe((0,ee.w)(()=>{const Ze=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),Ze!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,te.q)(1)).subscribe(Ze=>this._setValueAndClose(Ze))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(we){const z=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(we):we,Ze=null!=z?z:"";this._formField?this._formField._control.value=Ze:this._element.nativeElement.value=Ze,this._previousValue=Ze}_setValueAndClose(we){we&&we.source&&(this._clearPreviousSelectedOption(we.source),this._setTriggerValue(we.source.value),this._onChange(we.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(we.source)),this.closePanel()}_clearPreviousSelectedOption(we){this.autocomplete.options.forEach(z=>{z!==we&&z.selected&&z.deselect()})}_attachOverlay(){var we;let z=this._overlayRef;z?(this._positionStrategy.setOrigin(this._getConnectedElement()),z.updateSize({width:this._getPanelWidth()})):(this._portal=new V.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(we=this._formField)||void 0===we?void 0:we.getLabelId()}),z=this._overlay.create(this._getOverlayConfig()),this._overlayRef=z,z.keydownEvents().subscribe(vt=>{(vt.keyCode===w.hY&&!(0,w.Vb)(vt)||vt.keyCode===w.LH&&(0,w.Vb)(vt,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),vt.stopPropagation(),vt.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&z&&z.updateSize({width:this._getPanelWidth()})})),z&&!z.hasAttached()&&(z.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Ze=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Ze!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var we;return new E.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(we=this._defaults)||void 0===we?void 0:we.overlayPanelClass})}_getOverlayPosition(){const we=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(we),this._positionStrategy=we,we}_setStrategyPositions(we){const z=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ze=this._aboveClass,vt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ze},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ze}];let Fe;Fe="above"===this.position?vt:"below"===this.position?z:[...z,...vt],we.withPositions(Fe)}_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 we=this.autocomplete;we.autoActiveFirstOption?we._keyManager.setFirstItemActive():we._keyManager.setActiveItem(-1)}_canOpen(){const we=this._element.nativeElement;return!we.readOnly&&!we.disabled&&!this._autocompleteDisabled}_getWindow(){var we;return(null===(we=this._document)||void 0===we?void 0:we.defaultView)||window}_scrollToOption(we){const z=this.autocomplete,Ze=(0,C.CB)(we,z.options,z.optionGroups);if(0===we&&1===Ze)z._setScrollTop(0);else if(z.panel){const vt=z.options.toArray()[we];if(vt){const Fe=vt._getHostElement(),Ne=(0,C.jH)(Fe.offsetTop,Fe.offsetHeight,z._getScrollTop(),z.panel.nativeElement.offsetHeight);z._setScrollTop(Ne)}}}}return K.\u0275fac=function(we){return new(we||K)(y.Y36(y.SBq),y.Y36(E.aV),y.Y36(y.s_b),y.Y36(y.R0b),y.Y36(y.sBO),y.Y36(r),y.Y36(se.Is,8),y.Y36(W.G_,9),y.Y36(A.K0,8),y.Y36(P.rL),y.Y36(_,8))},K.\u0275dir=y.lG2({type:K,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[y.TTD]}),K})(),be=(()=>{class K extends ve{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return K.\u0275fac=function(){let Me;return function(z){return(Me||(Me=y.n5z(K)))(z||K)}}(),K.\u0275dir=y.lG2({type:K,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(we,z){1&we&&y.NdJ("focusin",function(){return z._handleFocus()})("blur",function(){return z._onTouched()})("input",function(vt){return z._handleInput(vt)})("keydown",function(vt){return z._handleKeydown(vt)}),2&we&&y.uIk("autocomplete",z.autocompleteAttribute)("role",z.autocompleteDisabled?null:"combobox")("aria-autocomplete",z.autocompleteDisabled?null:"list")("aria-activedescendant",z.panelOpen&&z.activeOption?z.activeOption.id:null)("aria-expanded",z.autocompleteDisabled?null:z.panelOpen.toString())("aria-owns",z.autocompleteDisabled||!z.panelOpen||null==z.autocomplete?null:z.autocomplete.id)("aria-haspopup",!z.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[y._Bn([N]),y.qOj]}),K})(),Oe=(()=>{class K{}return K.\u0275fac=function(we){return new(we||K)},K.\u0275mod=y.oAB({type:K}),K.\u0275inj=y.cJS({providers:[Z],imports:[[E.U8,C.Ng,C.BQ,A.ez],P.ZD,C.Ng,C.BQ]}),K})()},7544:(Ge,Q,m)=>{"use strict";m.d(Q,{k:()=>s,g:()=>L});var e=m(5e3),t=m(508),y=m(5664),C=m(3191),o=m(6360);let M=0;const l=(0,t.Id)(class{}),R="mat-badge-content";let s=(()=>{class I extends l{constructor(E,P,w,V,j){super(),this._ngZone=E,this._elementRef=P,this._ariaDescriber=w,this._renderer=V,this._animationMode=j,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=M++,this._isInitialized=!1}get color(){return this._color}set color(E){this._setColor(E),this._color=E}get overlap(){return this._overlap}set overlap(E){this._overlap=(0,C.Ig)(E)}get content(){return this._content}set content(E){this._updateRenderedContent(E)}get description(){return this._description}set description(E){this._updateHostAriaDescription(E)}get hidden(){return this._hidden}set hidden(E){this._hidden=(0,C.Ig)(E)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const E=this._renderer.createElement("span"),P="mat-badge-active";return E.setAttribute("id",`mat-badge-content-${this._id}`),E.setAttribute("aria-hidden","true"),E.classList.add(R),"NoopAnimations"===this._animationMode&&E.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(E),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{E.classList.add(P)})}):E.classList.add(P),E}_updateRenderedContent(E){const P=`${null!=E?E:""}`.trim();this._isInitialized&&P&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=P),this._content=P}_updateHostAriaDescription(E){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),E&&this._ariaDescriber.describe(this._elementRef.nativeElement,E),this._description=E}_setColor(E){const P=this._elementRef.nativeElement.classList;P.remove(`mat-badge-${this._color}`),E&&P.add(`mat-badge-${E}`)}_clearExistingBadges(){const E=this._elementRef.nativeElement.querySelectorAll(`:scope > .${R}`);for(const P of Array.from(E))P!==this._badgeElement&&P.remove()}}return I.\u0275fac=function(E){return new(E||I)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(y.$s),e.Y36(e.Qsj),e.Y36(o.Qb,8))},I.\u0275dir=e.lG2({type:I,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(E,P){2&E&&e.ekj("mat-badge-overlap",P.overlap)("mat-badge-above",P.isAbove())("mat-badge-below",!P.isAbove())("mat-badge-before",!P.isAfter())("mat-badge-after",P.isAfter())("mat-badge-small","small"===P.size)("mat-badge-medium","medium"===P.size)("mat-badge-large","large"===P.size)("mat-badge-hidden",P.hidden||!P.content)("mat-badge-disabled",P.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),I})(),L=(()=>{class I{}return I.\u0275fac=function(E){return new(E||I)},I.\u0275mod=e.oAB({type:I}),I.\u0275inj=e.cJS({imports:[[y.rt,t.BQ],t.BQ]}),I})()},7423:(Ge,Q,m)=>{"use strict";m.d(Q,{lW:()=>I,ot:()=>E});var e=m(5e3),t=m(508),y=m(6360),C=m(5664);const o=["mat-button",""],M=["*"],s=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L=(0,t.pj)((0,t.Id)((0,t.Kr)(class{constructor(P){this._elementRef=P}})));let I=(()=>{class P extends L{constructor(V,j,W){super(V),this._focusMonitor=j,this._animationMode=W,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const te of s)this._hasHostAttributes(te)&&this._getHostElement().classList.add(te);V.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(V,j){V?this._focusMonitor.focusVia(this._getHostElement(),V,j):this._getHostElement().focus(j)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...V){return V.some(j=>this._getHostElement().hasAttribute(j))}}return P.\u0275fac=function(V){return new(V||P)(e.Y36(e.SBq),e.Y36(C.tE),e.Y36(y.Qb,8))},P.\u0275cmp=e.Xpm({type:P,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(V,j){if(1&V&&e.Gf(t.wG,5),2&V){let W;e.iGM(W=e.CRH())&&(j.ripple=W.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(V,j){2&V&&(e.uIk("disabled",j.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-button-disabled",j.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:o,ngContentSelectors:M,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(V,j){1&V&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&V&&(e.xp6(2),e.ekj("mat-button-ripple-round",j.isRoundButton||j.isIconButton),e.Q6J("matRippleDisabled",j._isRippleDisabled())("matRippleCentered",j.isIconButton)("matRippleTrigger",j._getHostElement()))},directives:[t.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;-moz-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;-moz-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;-moz-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;-moz-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}),P})(),E=(()=>{class P{}return P.\u0275fac=function(V){return new(V||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),P})()},9224:(Ge,Q,m)=>{"use strict";m.d(Q,{a8:()=>ge,dn:()=>L,dk:()=>le,QW:()=>de,$j:()=>A,n5:()=>I});var e=m(5e3),t=m(6360),y=m(508);const C=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],M=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let L=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275dir=e.lG2({type:se,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),se})(),I=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275dir=e.lG2({type:se,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),se})(),A=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275dir=e.lG2({type:se,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),se})(),ge=(()=>{class se{constructor(v){this._animationMode=v}}return se.\u0275fac=function(v){return new(v||se)(e.Y36(t.Qb,8))},se.\u0275cmp=e.Xpm({type:se,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(v,i){2&v&&e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(v,i){1&v&&(e.F$t(C),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.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}),se})(),le=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275cmp=e.Xpm({type:se,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(v,i){1&v&&(e.F$t(M),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),se})(),de=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275mod=e.oAB({type:se}),se.\u0275inj=e.cJS({imports:[[y.BQ],y.BQ]}),se})()},7446:(Ge,Q,m)=>{"use strict";m.d(Q,{oG:()=>W,p9:()=>le});var e=m(3191),t=m(5e3),y=m(3075),C=m(508),o=m(6360),M=m(5664),l=m(7144);const R=["input"],s=function(re){return{enterDuration:re}},L=["*"],I=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:A});function A(){return{color:"accent",clickAction:"check-indeterminate"}}let E=0;const P=A(),w={provide:y.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class V{}const j=(0,C.sb)((0,C.pj)((0,C.Kr)((0,C.Id)(class{constructor(re){this._elementRef=re}}))));let W=(()=>{class re extends j{constructor(se,ye,v,i,a,p,u){super(se),this._changeDetectorRef=ye,this._focusMonitor=v,this._ngZone=i,this._animationMode=p,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++E,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||P,this.color=this.defaultColor=this._options.color||P.color,this.tabIndex=parseInt(a)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(se){this._required=(0,e.Ig)(se)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(se=>{se||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(se){se!=this.checked&&(this._checked=se,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(se){const ye=(0,e.Ig)(se);ye!==this.disabled&&(this._disabled=ye,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(se){const ye=se!=this._indeterminate;this._indeterminate=(0,e.Ig)(se),ye&&(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(se){this.checked=!!se}registerOnChange(se){this._controlValueAccessorChangeFn=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(se){let ye=this._currentCheckState,v=this._elementRef.nativeElement;if(ye!==se&&(this._currentAnimationClass.length>0&&v.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ye,se),this._currentCheckState=se,this._currentAnimationClass.length>0)){v.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{v.classList.remove(i)},1e3)})}}_emitChangeEvent(){const se=new V;se.source=this,se.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(se),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(se){var ye;const v=null===(ye=this._options)||void 0===ye?void 0:ye.clickAction;se.stopPropagation(),this.disabled||"noop"===v?!this.disabled&&"noop"===v&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==v&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(se,ye){se?this._focusMonitor.focusVia(this._inputElement,se,ye):this._inputElement.nativeElement.focus(ye)}_onInteractionEvent(se){se.stopPropagation()}_getAnimationClassForCheckStateTransition(se,ye){if("NoopAnimations"===this._animationMode)return"";let v="";switch(se){case 0:if(1===ye)v="unchecked-checked";else{if(3!=ye)return"";v="unchecked-indeterminate"}break;case 2:v=1===ye?"unchecked-checked":"unchecked-indeterminate";break;case 1:v=2===ye?"checked-unchecked":"checked-indeterminate";break;case 3:v=1===ye?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${v}`}_syncIndeterminate(se){const ye=this._inputElement;ye&&(ye.nativeElement.indeterminate=se)}}return re.\u0275fac=function(se){return new(se||re)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(M.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(o.Qb,8),t.Y36(I,8))},re.\u0275cmp=t.Xpm({type:re,selectors:[["mat-checkbox"]],viewQuery:function(se,ye){if(1&se&&(t.Gf(R,5),t.Gf(C.wG,5)),2&se){let v;t.iGM(v=t.CRH())&&(ye._inputElement=v.first),t.iGM(v=t.CRH())&&(ye.ripple=v.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(se,ye){2&se&&(t.Ikx("id",ye.id),t.uIk("tabindex",null),t.ekj("mat-checkbox-indeterminate",ye.indeterminate)("mat-checkbox-checked",ye.checked)("mat-checkbox-disabled",ye.disabled)("mat-checkbox-label-before","before"==ye.labelPosition)("_mat-animation-noopable","NoopAnimations"===ye._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:[t._Bn([w]),t.qOj],ngContentSelectors:L,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",0,"xml","space","preserve","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(se,ye){if(1&se&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"span",2),t.TgZ(3,"input",3,4),t.NdJ("change",function(i){return ye._onInteractionEvent(i)})("click",function(i){return ye._onInputClick(i)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA(),t.qZA(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return ye._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA(),t.qZA()),2&se){const v=t.MAs(1),i=t.MAs(13);t.uIk("for",ye.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(1),t.Q6J("id",ye.inputId)("required",ye.required)("checked",ye.checked)("disabled",ye.disabled)("tabIndex",ye.tabIndex),t.uIk("value",ye.value)("name",ye.name)("aria-label",ye.ariaLabel||null)("aria-labelledby",ye.ariaLabelledby)("aria-checked",ye._getAriaChecked())("aria-describedby",ye.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",v)("matRippleDisabled",ye._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,s,"NoopAnimations"===ye._animationMode?0:150))}},directives:[C.wG,l.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;-moz-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;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),re})(),ge=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})(),le=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({imports:[[C.si,C.BQ,l.Q8,ge],C.BQ,ge]}),re})()},508:(Ge,Q,m)=>{"use strict";m.d(Q,{yN:()=>te,mZ:()=>ee,_A:()=>r,rD:()=>Oe,sG:()=>b,K7:()=>Zt,HF:()=>ft,Y2:()=>oe,BQ:()=>de,X2:()=>K,uc:()=>z,XK:()=>Re,ey:()=>ei,Ng:()=>hi,rN:()=>Ii,nP:()=>lt,us:()=>nt,wG:()=>Ce,si:()=>Ue,LF:()=>U,IR:()=>Pe,CB:()=>ki,jH:()=>ai,pj:()=>a,Kr:()=>p,Id:()=>i,FD:()=>_,dB:()=>D,sb:()=>u,E0:()=>Me});var e=m(5e3),t=m(226),C=m(9808),o=m(925),M=m(5664),l=m(3191),R=m(7579),s=m(8306),L=m(8675),I=m(6360),A=m(1159);function w(Ve,Ee){if(1&Ve&&e._UZ(0,"mat-pseudo-checkbox",4),2&Ve){const Y=e.oxw();e.Q6J("state",Y.selected?"checked":"unchecked")("disabled",Y.disabled)}}function V(Ve,Ee){if(1&Ve&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Ve){const Y=e.oxw();e.xp6(1),e.hij("(",Y.group.label,")")}}const j=["*"];let te=(()=>{class Ve{}return Ve.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ve.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ve.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ve.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ve})(),ee=(()=>{class Ve{}return Ve.COMPLEX="375ms",Ve.ENTERING="225ms",Ve.EXITING="195ms",Ve})();const re=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function le(){return!0}});let de=(()=>{class Ve{constructor(Y,pe,De){this._sanityChecks=pe,this._document=De,this._hasDoneGlobalChecks=!1,Y._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Y){return!(0,o.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Y])}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.LFG(M.qm),e.LFG(re,8),e.LFG(C.K0))},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[t.vT],t.vT]}),Ve})();function i(Ve){return class extends Ve{constructor(...Ee){super(...Ee),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,l.Ig)(Ee)}}}function a(Ve,Ee){return class extends Ve{constructor(...Y){super(...Y),this.defaultColor=Ee,this.color=Ee}get color(){return this._color}set color(Y){const pe=Y||this.defaultColor;pe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),pe&&this._elementRef.nativeElement.classList.add(`mat-${pe}`),this._color=pe)}}}function p(Ve){return class extends Ve{constructor(...Ee){super(...Ee),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ee){this._disableRipple=(0,l.Ig)(Ee)}}}function u(Ve,Ee=0){return class extends Ve{constructor(...Y){super(...Y),this._tabIndex=Ee,this.defaultTabIndex=Ee}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Y){this._tabIndex=null!=Y?(0,l.su)(Y):this.defaultTabIndex}}}function _(Ve){return class extends Ve{constructor(...Ee){super(...Ee),this.stateChanges=new R.x,this.errorState=!1}updateErrorState(){const Ee=this.errorState,et=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);et!==Ee&&(this.errorState=et,this.stateChanges.next())}}}function D(Ve){return class extends Ve{constructor(...Ee){super(...Ee),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new s.y(Y=>{this._isInitialized?this._notifySubscriber(Y):this._pendingSubscribers.push(Y)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ee){Ee.next(),Ee.complete()}}}const O=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function x(){return(0,e.f3M)(e.soG)}});class r{constructor(){this._localeChanges=new R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Ee){return this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:null}deserialize(Ee){return null==Ee||this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:this.invalid()}setLocale(Ee){this.locale=Ee,this._localeChanges.next()}compareDate(Ee,Y){return this.getYear(Ee)-this.getYear(Y)||this.getMonth(Ee)-this.getMonth(Y)||this.getDate(Ee)-this.getDate(Y)}sameDate(Ee,Y){if(Ee&&Y){let pe=this.isValid(Ee),De=this.isValid(Y);return pe&&De?!this.compareDate(Ee,Y):pe==De}return Ee==Y}clampDate(Ee,Y,pe){return Y&&this.compareDate(Ee,Y)<0?Y:pe&&this.compareDate(Ee,pe)>0?pe:Ee}}const b=new e.OlP("mat-date-formats"),Z=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function N(Ve,Ee){const Y=Array(Ve);for(let pe=0;pe{class Ve extends r{constructor(Y,pe){super(),this.useUtcForDisplay=!1,super.setLocale(Y)}getYear(Y){return Y.getFullYear()}getMonth(Y){return Y.getMonth()}getDate(Y){return Y.getDate()}getDayOfWeek(Y){return Y.getDay()}getMonthNames(Y){const pe=new Intl.DateTimeFormat(this.locale,{month:Y,timeZone:"utc"});return N(12,De=>this._format(pe,new Date(2017,De,1)))}getDateNames(){const Y=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return N(31,pe=>this._format(Y,new Date(2017,0,pe+1)))}getDayOfWeekNames(Y){const pe=new Intl.DateTimeFormat(this.locale,{weekday:Y,timeZone:"utc"});return N(7,De=>this._format(pe,new Date(2017,0,De+1)))}getYearName(Y){const pe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(pe,Y)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Y){return this.getDate(this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y)+1,0))}clone(Y){return new Date(Y.getTime())}createDate(Y,pe,De){let et=this._createDateWithOverflow(Y,pe,De);return et.getMonth(),et}today(){return new Date}parse(Y){return"number"==typeof Y?new Date(Y):Y?new Date(Date.parse(Y)):null}format(Y,pe){if(!this.isValid(Y))throw Error("NativeDateAdapter: Cannot format invalid date.");const De=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},pe),{timeZone:"utc"}));return this._format(De,Y)}addCalendarYears(Y,pe){return this.addCalendarMonths(Y,12*pe)}addCalendarMonths(Y,pe){let De=this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y)+pe,this.getDate(Y));return this.getMonth(De)!=((this.getMonth(Y)+pe)%12+12)%12&&(De=this._createDateWithOverflow(this.getYear(De),this.getMonth(De),0)),De}addCalendarDays(Y,pe){return this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y),this.getDate(Y)+pe)}toIso8601(Y){return[Y.getUTCFullYear(),this._2digit(Y.getUTCMonth()+1),this._2digit(Y.getUTCDate())].join("-")}deserialize(Y){if("string"==typeof Y){if(!Y)return null;if(Z.test(Y)){let pe=new Date(Y);if(this.isValid(pe))return pe}}return super.deserialize(Y)}isDateInstance(Y){return Y instanceof Date}isValid(Y){return!isNaN(Y.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Y,pe,De){const et=new Date;return et.setFullYear(Y,pe,De),et.setHours(0,0,0,0),et}_2digit(Y){return("00"+Y).slice(-2)}_format(Y,pe){const De=new Date;return De.setUTCFullYear(pe.getFullYear(),pe.getMonth(),pe.getDate()),De.setUTCHours(pe.getHours(),pe.getMinutes(),pe.getSeconds(),pe.getMilliseconds()),Y.format(De)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.LFG(O,8),e.LFG(o.t4))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const ve={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 be=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({providers:[{provide:r,useClass:U}],imports:[[o.ud]]}),Ve})(),Re=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({providers:[{provide:b,useValue:ve}],imports:[[be]]}),Ve})(),Oe=(()=>{class Ve{isErrorState(Y,pe){return!!(Y&&Y.invalid&&(Y.touched||pe&&pe.submitted))}}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),K=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ve})();function Me(Ve,Ee,Y="mat"){Ve.changes.pipe((0,L.O)(Ve)).subscribe(({length:pe})=>{we(Ee,`${Y}-2-line`,!1),we(Ee,`${Y}-3-line`,!1),we(Ee,`${Y}-multi-line`,!1),2===pe||3===pe?we(Ee,`${Y}-${pe}-line`,!0):pe>3&&we(Ee,`${Y}-multi-line`,!0)})}function we(Ve,Ee,Y){Ve.nativeElement.classList.toggle(Ee,Y)}let z=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[de],de]}),Ve})();class Ze{constructor(Ee,Y,pe){this._renderer=Ee,this.element=Y,this.config=pe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const vt={enterDuration:225,exitDuration:150},Ne=(0,o.i$)({passive:!0}),ce=["mousedown","touchstart"],Le=["mouseup","mouseleave","touchend","touchcancel"];class Pe{constructor(Ee,Y,pe,De){this._target=Ee,this._ngZone=Y,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,De.isBrowser&&(this._containerElement=(0,l.fI)(pe))}fadeInRipple(Ee,Y,pe={}){const De=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),et=Object.assign(Object.assign({},vt),pe.animation);pe.centered&&(Ee=De.left+De.width/2,Y=De.top+De.height/2);const $t=pe.radius||function $(Ve,Ee,Y){const pe=Math.max(Math.abs(Ve-Y.left),Math.abs(Ve-Y.right)),De=Math.max(Math.abs(Ee-Y.top),Math.abs(Ee-Y.bottom));return Math.sqrt(pe*pe+De*De)}(Ee,Y,De),Nt=Ee-De.left,Jt=Y-De.top,ct=et.enterDuration,ke=document.createElement("div");ke.classList.add("mat-ripple-element"),ke.style.left=Nt-$t+"px",ke.style.top=Jt-$t+"px",ke.style.height=2*$t+"px",ke.style.width=2*$t+"px",null!=pe.color&&(ke.style.backgroundColor=pe.color),ke.style.transitionDuration=`${ct}ms`,this._containerElement.appendChild(ke),function q(Ve){window.getComputedStyle(Ve).getPropertyValue("opacity")}(ke),ke.style.transform="scale(1)";const Be=new Ze(this,ke,pe);return Be.state=0,this._activeRipples.add(Be),pe.persistent||(this._mostRecentTransientRipple=Be),this._runTimeoutOutsideZone(()=>{const at=Be===this._mostRecentTransientRipple;Be.state=1,!pe.persistent&&(!at||!this._isPointerDown)&&Be.fadeOut()},ct),Be}fadeOutRipple(Ee){const Y=this._activeRipples.delete(Ee);if(Ee===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!Y)return;const pe=Ee.element,De=Object.assign(Object.assign({},vt),Ee.config.animation);pe.style.transitionDuration=`${De.exitDuration}ms`,pe.style.opacity="0",Ee.state=2,this._runTimeoutOutsideZone(()=>{Ee.state=3,pe.remove()},De.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ee=>Ee.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ee=>{Ee.config.persistent||Ee.fadeOut()})}setupTriggerEvents(Ee){const Y=(0,l.fI)(Ee);!Y||Y===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Y,this._registerEvents(ce))}handleEvent(Ee){"mousedown"===Ee.type?this._onMousedown(Ee):"touchstart"===Ee.type?this._onTouchStart(Ee):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Le),this._pointerUpEventsRegistered=!0)}_onMousedown(Ee){const Y=(0,M.X6)(Ee),pe=this._lastTouchStartEvent&&Date.now(){!Ee.config.persistent&&(1===Ee.state||Ee.config.terminateOnPointerUp&&0===Ee.state)&&Ee.fadeOut()}))}_runTimeoutOutsideZone(Ee,Y=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ee,Y))}_registerEvents(Ee){this._ngZone.runOutsideAngular(()=>{Ee.forEach(Y=>{this._triggerElement.addEventListener(Y,this,Ne)})})}_removeTriggerEvents(){this._triggerElement&&(ce.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Ne)}),this._pointerUpEventsRegistered&&Le.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Ne)}))}}const oe=new e.OlP("mat-ripple-global-options");let Ce=(()=>{class Ve{constructor(Y,pe,De,et,$t){this._elementRef=Y,this._animationMode=$t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=et||{},this._rippleRenderer=new Pe(this,pe,Y,De)}get disabled(){return this._disabled}set disabled(Y){Y&&this.fadeOutAllNonPersistent(),this._disabled=Y,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Y){this._trigger=Y,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(Y,pe=0,De){return"number"==typeof Y?this._rippleRenderer.fadeInRipple(Y,pe,Object.assign(Object.assign({},this.rippleConfig),De)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Y))}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(o.t4),e.Y36(oe,8),e.Y36(I.Qb,8))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Y,pe){2&Y&&e.ekj("mat-ripple-unbounded",pe.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"]}),Ve})(),Ue=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[de,o.ud],de]}),Ve})(),lt=(()=>{class Ve{constructor(Y){this._animationMode=Y,this.state="unchecked",this.disabled=!1}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(I.Qb,8))},Ve.\u0275cmp=e.Xpm({type:Ve,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Y,pe){2&Y&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===pe.state)("mat-pseudo-checkbox-checked","checked"===pe.state)("mat-pseudo-checkbox-disabled",pe.disabled)("_mat-animation-noopable","NoopAnimations"===pe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Y,pe){},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}),Ve})(),nt=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[de]]}),Ve})();const ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),Zt=new e.OlP("MatOptgroup");let Vt=0;class Ii{constructor(Ee,Y=!1){this.source=Ee,this.isUserInput=Y}}let jt=(()=>{class Ve{constructor(Y,pe,De,et){this._element=Y,this._changeDetectorRef=pe,this._parent=De,this.group=et,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Vt++,this.onSelectionChange=new e.vpe,this._stateChanges=new R.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(Y){this._disabled=(0,l.Ig)(Y)}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(Y,pe){const De=this._getHostElement();"function"==typeof De.focus&&De.focus(pe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Y){(Y.keyCode===A.K5||Y.keyCode===A.L_)&&!(0,A.Vb)(Y)&&(this._selectViaInteraction(),Y.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 Y=this.viewValue;Y!==this._mostRecentViewValue&&(this._mostRecentViewValue=Y,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Y=!1){this.onSelectionChange.emit(new Ii(this,Y))}}return Ve.\u0275fac=function(Y){e.$Z()},Ve.\u0275dir=e.lG2({type:Ve,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ve})(),ei=(()=>{class Ve extends jt{constructor(Y,pe,De,et){super(Y,pe,De,et)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ft,8),e.Y36(Zt,8))},Ve.\u0275cmp=e.Xpm({type:Ve,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Y,pe){1&Y&&e.NdJ("click",function(){return pe._selectViaInteraction()})("keydown",function(et){return pe._handleKeydown(et)}),2&Y&&(e.Ikx("id",pe.id),e.uIk("tabindex",pe._getTabIndex())("aria-selected",pe._getAriaSelected())("aria-disabled",pe.disabled.toString()),e.ekj("mat-selected",pe.selected)("mat-option-multiple",pe.multiple)("mat-active",pe.active)("mat-option-disabled",pe.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:j,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(Y,pe){1&Y&&(e.F$t(),e.YNc(0,w,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,V,2,1,"span",2),e._UZ(4,"div",3)),2&Y&&(e.Q6J("ngIf",pe.multiple),e.xp6(3),e.Q6J("ngIf",pe.group&&pe.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",pe._getHostElement())("matRippleDisabled",pe.disabled||pe.disableRipple))},directives:[C.O5,Ce,lt],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;-moz-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}),Ve})();function ki(Ve,Ee,Y){if(Y.length){let pe=Ee.toArray(),De=Y.toArray(),et=0;for(let $t=0;$tY+pe?Math.max(0,Ve-pe+Ee):Y}let hi=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[Ue,C.ez,de,nt]]}),Ve})()},6856:(Ge,Q,m)=>{"use strict";m.d(Q,{Mq:()=>Nt,hl:()=>st,FA:()=>_e,nW:()=>li});var e=m(5664),t=m(9776),y=m(7429),C=m(9808),o=m(5e3),M=m(7423),l=m(5303),R=m(508),s=m(7579),L=m(727),I=m(6451),A=m(9646),E=m(1159),P=m(5698),w=m(8675),V=m(9300),j=m(226),W=m(3191),te=m(925),ee=m(1777),ge=m(3075),le=m(7322),re=m(7531);const de=["mat-calendar-body",""];function se(qe,yt){if(1&qe&&(o.TgZ(0,"tr",2),o.TgZ(1,"td",3),o._uU(2),o.qZA(),o.qZA()),2&qe){const ue=o.oxw();o.xp6(1),o.Udp("padding-top",ue._cellPadding)("padding-bottom",ue._cellPadding),o.uIk("colspan",ue.numCols),o.xp6(1),o.hij(" ",ue.label," ")}}function ye(qe,yt){if(1&qe&&(o.TgZ(0,"td",3),o._uU(1),o.qZA()),2&qe){const ue=o.oxw(2);o.Udp("padding-top",ue._cellPadding)("padding-bottom",ue._cellPadding),o.uIk("colspan",ue._firstRowOffset),o.xp6(1),o.hij(" ",ue._firstRowOffset>=ue.labelMinRequiredCells?ue.label:""," ")}}function v(qe,yt){if(1&qe){const ue=o.EpF();o.TgZ(0,"td",7),o.NdJ("click",function(St){const yi=o.CHM(ue).$implicit;return o.oxw(2)._cellClicked(yi,St)}),o.TgZ(1,"div",8),o._uU(2),o.qZA(),o._UZ(3,"div",9),o.qZA()}if(2&qe){const ue=yt.$implicit,Je=yt.index,St=o.oxw().index,kt=o.oxw();o.Udp("width",kt._cellWidth)("padding-top",kt._cellPadding)("padding-bottom",kt._cellPadding),o.ekj("mat-calendar-body-disabled",!ue.enabled)("mat-calendar-body-active",kt._isActiveCell(St,Je))("mat-calendar-body-range-start",kt._isRangeStart(ue.compareValue))("mat-calendar-body-range-end",kt._isRangeEnd(ue.compareValue))("mat-calendar-body-in-range",kt._isInRange(ue.compareValue))("mat-calendar-body-comparison-bridge-start",kt._isComparisonBridgeStart(ue.compareValue,St,Je))("mat-calendar-body-comparison-bridge-end",kt._isComparisonBridgeEnd(ue.compareValue,St,Je))("mat-calendar-body-comparison-start",kt._isComparisonStart(ue.compareValue))("mat-calendar-body-comparison-end",kt._isComparisonEnd(ue.compareValue))("mat-calendar-body-in-comparison-range",kt._isInComparisonRange(ue.compareValue))("mat-calendar-body-preview-start",kt._isPreviewStart(ue.compareValue))("mat-calendar-body-preview-end",kt._isPreviewEnd(ue.compareValue))("mat-calendar-body-in-preview",kt._isInPreview(ue.compareValue)),o.Q6J("ngClass",ue.cssClasses)("tabindex",kt._isActiveCell(St,Je)?0:-1),o.uIk("data-mat-row",St)("data-mat-col",Je)("aria-label",ue.ariaLabel)("aria-disabled",!ue.enabled||null)("aria-selected",kt._isSelected(ue.compareValue))("aria-current",kt.todayValue===ue.compareValue?"date":null),o.xp6(1),o.ekj("mat-calendar-body-selected",kt._isSelected(ue.compareValue))("mat-calendar-body-comparison-identical",kt._isComparisonIdentical(ue.compareValue))("mat-calendar-body-today",kt.todayValue===ue.compareValue),o.xp6(1),o.hij(" ",ue.displayValue," ")}}function i(qe,yt){if(1&qe&&(o.TgZ(0,"tr",4),o.YNc(1,ye,2,6,"td",5),o.YNc(2,v,4,47,"td",6),o.qZA()),2&qe){const ue=yt.$implicit,Je=yt.index,St=o.oxw();o.xp6(1),o.Q6J("ngIf",0===Je&&St._firstRowOffset),o.xp6(1),o.Q6J("ngForOf",ue)}}function a(qe,yt){if(1&qe&&(o.TgZ(0,"th",5),o.TgZ(1,"abbr",6),o._uU(2),o.qZA(),o.qZA()),2&qe){const ue=yt.$implicit;o.uIk("aria-label",ue.long),o.xp6(1),o.uIk("title",ue.long),o.xp6(1),o.Oqu(ue.narrow)}}const p=["*"];function u(qe,yt){}function _(qe,yt){if(1&qe){const ue=o.EpF();o.TgZ(0,"mat-month-view",5),o.NdJ("activeDateChange",function(St){return o.CHM(ue),o.oxw().activeDate=St})("_userSelection",function(St){return o.CHM(ue),o.oxw()._dateSelected(St)}),o.qZA()}if(2&qe){const ue=o.oxw();o.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)("comparisonStart",ue.comparisonStart)("comparisonEnd",ue.comparisonEnd)}}function D(qe,yt){if(1&qe){const ue=o.EpF();o.TgZ(0,"mat-year-view",6),o.NdJ("activeDateChange",function(St){return o.CHM(ue),o.oxw().activeDate=St})("monthSelected",function(St){return o.CHM(ue),o.oxw()._monthSelectedInYearView(St)})("selectedChange",function(St){return o.CHM(ue),o.oxw()._goToDateInView(St,"month")}),o.qZA()}if(2&qe){const ue=o.oxw();o.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)}}function O(qe,yt){if(1&qe){const ue=o.EpF();o.TgZ(0,"mat-multi-year-view",7),o.NdJ("activeDateChange",function(St){return o.CHM(ue),o.oxw().activeDate=St})("yearSelected",function(St){return o.CHM(ue),o.oxw()._yearSelectedInMultiYearView(St)})("selectedChange",function(St){return o.CHM(ue),o.oxw()._goToDateInView(St,"year")}),o.qZA()}if(2&qe){const ue=o.oxw();o.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)}}function x(qe,yt){}const r=["button"];function b(qe,yt){1&qe&&(o.O4$(),o.TgZ(0,"svg",3),o._UZ(1,"path",4),o.qZA())}const Z=[[["","matDatepickerToggleIcon",""]]],N=["[matDatepickerToggleIcon]"];class ze{constructor(yt,ue,Je,St,kt={},yi=yt,Ni){this.value=yt,this.displayValue=ue,this.ariaLabel=Je,this.enabled=St,this.cssClasses=kt,this.compareValue=yi,this.rawValue=Ni}}let Oe=(()=>{class qe{constructor(ue,Je){this._elementRef=ue,this._ngZone=Je,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new o.vpe,this.previewChange=new o.vpe,this._enterHandler=St=>{if(this._skipNextFocus&&"focus"===St.type)this._skipNextFocus=!1;else if(St.target&&this.isRange){const kt=this._getCellFromElement(St.target);kt&&this._ngZone.run(()=>this.previewChange.emit({value:kt.enabled?kt:null,event:St}))}},this._leaveHandler=St=>{null!==this.previewEnd&&this.isRange&&St.target&&K(St.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:St}))},Je.runOutsideAngular(()=>{const St=ue.nativeElement;St.addEventListener("mouseenter",this._enterHandler,!0),St.addEventListener("focus",this._enterHandler,!0),St.addEventListener("mouseleave",this._leaveHandler,!0),St.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(ue,Je){ue.enabled&&this.selectedValueChange.emit({value:ue.value,event:Je})}_isSelected(ue){return this.startValue===ue||this.endValue===ue}ngOnChanges(ue){const Je=ue.numCols,{rows:St,numCols:kt}=this;(ue.rows||Je)&&(this._firstRowOffset=St&&St.length&&St[0].length?kt-St[0].length:0),(ue.cellAspectRatio||Je||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/kt+"%"),(Je||!this._cellWidth)&&(this._cellWidth=100/kt+"%")}ngOnDestroy(){const ue=this._elementRef.nativeElement;ue.removeEventListener("mouseenter",this._enterHandler,!0),ue.removeEventListener("focus",this._enterHandler,!0),ue.removeEventListener("mouseleave",this._leaveHandler,!0),ue.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(ue,Je){let St=ue*this.numCols+Je;return ue&&(St-=this._firstRowOffset),St==this.activeCell}_focusActiveCell(ue=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{const Je=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Je&&(ue||(this._skipNextFocus=!0),Je.focus())})})}_isRangeStart(ue){return Me(ue,this.startValue,this.endValue)}_isRangeEnd(ue){return we(ue,this.startValue,this.endValue)}_isInRange(ue){return z(ue,this.startValue,this.endValue,this.isRange)}_isComparisonStart(ue){return Me(ue,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(ue,Je,St){if(!this._isComparisonStart(ue)||this._isRangeStart(ue)||!this._isInRange(ue))return!1;let kt=this.rows[Je][St-1];if(!kt){const yi=this.rows[Je-1];kt=yi&&yi[yi.length-1]}return kt&&!this._isRangeEnd(kt.compareValue)}_isComparisonBridgeEnd(ue,Je,St){if(!this._isComparisonEnd(ue)||this._isRangeEnd(ue)||!this._isInRange(ue))return!1;let kt=this.rows[Je][St+1];if(!kt){const yi=this.rows[Je+1];kt=yi&&yi[0]}return kt&&!this._isRangeStart(kt.compareValue)}_isComparisonEnd(ue){return we(ue,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(ue){return z(ue,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(ue){return this.comparisonStart===this.comparisonEnd&&ue===this.comparisonStart}_isPreviewStart(ue){return Me(ue,this.previewStart,this.previewEnd)}_isPreviewEnd(ue){return we(ue,this.previewStart,this.previewEnd)}_isInPreview(ue){return z(ue,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(ue){let Je;if(K(ue)?Je=ue:K(ue.parentNode)&&(Je=ue.parentNode),Je){const St=Je.getAttribute("data-mat-row"),kt=Je.getAttribute("data-mat-col");if(St&&kt)return this.rows[parseInt(St)][parseInt(kt)]}return null}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(o.SBq),o.Y36(o.R0b))},qe.\u0275cmp=o.Xpm({type:qe,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:[o.TTD],attrs:de,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",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(ue,Je){1&ue&&(o.YNc(0,se,3,6,"tr",0),o.YNc(1,i,3,2,"tr",1)),2&ue&&(o.Q6J("ngIf",Je._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.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}),qe})();function K(qe){return"TD"===qe.nodeName}function Me(qe,yt,ue){return null!==ue&&yt!==ue&&qe=yt&&qe===ue}function z(qe,yt,ue,Je){return Je&&null!==yt&&null!==ue&&yt!==ue&&qe>=yt&&qe<=ue}class Ze{constructor(yt,ue){this.start=yt,this.end=ue}}let vt=(()=>{class qe{constructor(ue,Je){this.selection=ue,this._adapter=Je,this._selectionChanged=new s.x,this.selectionChanged=this._selectionChanged,this.selection=ue}updateSelection(ue,Je){const St=this.selection;this.selection=ue,this._selectionChanged.next({selection:ue,source:Je,oldValue:St})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(ue){return this._adapter.isDateInstance(ue)&&this._adapter.isValid(ue)}}return qe.\u0275fac=function(ue){o.$Z()},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),Fe=(()=>{class qe extends vt{constructor(ue){super(null,ue)}add(ue){super.updateSelection(ue,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const ue=new qe(this._adapter);return ue.updateSelection(this.selection,this),ue}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.LFG(R._A))},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Le={provide:vt,deps:[[new o.FiY,new o.tp0,vt],R._A],useFactory:function ce(qe,yt){return qe||new Fe(yt)}},$=new o.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let nt=(()=>{class qe{constructor(ue,Je,St,kt,yi){this._changeDetectorRef=ue,this._dateFormats=Je,this._dateAdapter=St,this._dir=kt,this._rangeStrategy=yi,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new o.vpe,this._userSelection=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){const Je=this._activeDate,St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._hasSameMonthAndYear(Je,this._activeDate)||this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Ze?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnChanges(ue){const Je=ue.comparisonStart||ue.comparisonEnd;Je&&!Je.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(ue){const Je=ue.value,St=this._dateAdapter.getYear(this.activeDate),kt=this._dateAdapter.getMonth(this.activeDate),yi=this._dateAdapter.createDate(St,kt,Je);let Ni,Si;this._selected instanceof Ze?(Ni=this._getDateInCurrentMonth(this._selected.start),Si=this._getDateInCurrentMonth(this._selected.end)):Ni=Si=this._getDateInCurrentMonth(this._selected),(Ni!==Je||Si!==Je)&&this.selectedChange.emit(yi),this._userSelection.emit({value:yi,event:ue.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(ue){const Je=this._activeDate,St=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case E.Ku:this.activeDate=ue.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case E.VM:this.activeDate=ue.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case E.K5:case E.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&ue.preventDefault());case E.hY:return void(null!=this._previewEnd&&!(0,E.Vb)(ue)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:ue}),ue.preventDefault(),ue.stopPropagation()));default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let ue=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(ue)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(ue){this._matCalendarBody._focusActiveCell(ue)}_previewChanged({event:ue,value:Je}){if(this._rangeStrategy){const kt=this._rangeStrategy.createPreview(Je?Je.rawValue:null,this.selected,ue);this._previewStart=this._getCellCompareValue(kt.start),this._previewEnd=this._getCellCompareValue(kt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const ue=this._dateAdapter.getFirstDayOfWeek(),Je=this._dateAdapter.getDayOfWeekNames("narrow");let kt=this._dateAdapter.getDayOfWeekNames("long").map((yi,Ni)=>({long:yi,narrow:Je[Ni]}));this._weekdays=kt.slice(ue).concat(kt.slice(0,ue))}_createWeekCells(){const ue=this._dateAdapter.getNumDaysInMonth(this.activeDate),Je=this._dateAdapter.getDateNames();this._weeks=[[]];for(let St=0,kt=this._firstWeekOffset;St=0)&&(!this.maxDate||this._dateAdapter.compareDate(ue,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(ue))}_getDateInCurrentMonth(ue){return ue&&this._hasSameMonthAndYear(ue,this.activeDate)?this._dateAdapter.getDate(ue):null}_hasSameMonthAndYear(ue,Je){return!(!ue||!Je||this._dateAdapter.getMonth(ue)!=this._dateAdapter.getMonth(Je)||this._dateAdapter.getYear(ue)!=this._dateAdapter.getYear(Je))}_getCellCompareValue(ue){if(ue){const Je=this._dateAdapter.getYear(ue),St=this._dateAdapter.getMonth(ue),kt=this._dateAdapter.getDate(ue);return new Date(Je,St,kt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(ue){ue instanceof Ze?(this._rangeStart=this._getCellCompareValue(ue.start),this._rangeEnd=this._getCellCompareValue(ue.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(ue),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(ue){return!this.dateFilter||this.dateFilter(ue)}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(o.sBO),o.Y36(R.sG,8),o.Y36(R._A,8),o.Y36(j.Is,8),o.Y36($,8))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-month-view"]],viewQuery:function(ue,Je){if(1&ue&&o.Gf(Oe,5),2&ue){let St;o.iGM(St=o.CRH())&&(Je._matCalendarBody=St.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:[o.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,"mat-calendar-abbr"]],template:function(ue,Je){1&ue&&(o.TgZ(0,"table",0),o.TgZ(1,"thead",1),o.TgZ(2,"tr"),o.YNc(3,a,3,3,"th",2),o.qZA(),o.TgZ(4,"tr"),o._UZ(5,"th",3),o.qZA(),o.qZA(),o.TgZ(6,"tbody",4),o.NdJ("selectedValueChange",function(kt){return Je._dateSelected(kt)})("previewChange",function(kt){return Je._previewChanged(kt)})("keyup",function(kt){return Je._handleCalendarBodyKeyup(kt)})("keydown",function(kt){return Je._handleCalendarBodyKeydown(kt)}),o.qZA(),o.qZA()),2&ue&&(o.xp6(3),o.Q6J("ngForOf",Je._weekdays),o.xp6(3),o.Q6J("label",Je._monthLabel)("rows",Je._weeks)("todayValue",Je._todayDate)("startValue",Je._rangeStart)("endValue",Je._rangeEnd)("comparisonStart",Je._comparisonRangeStart)("comparisonEnd",Je._comparisonRangeEnd)("previewStart",Je._previewStart)("previewEnd",Je._previewEnd)("isRange",Je._isRange)("labelMinRequiredCells",3)("activeCell",Je._dateAdapter.getDate(Je.activeDate)-1))},directives:[C.sg,Oe],encapsulation:2,changeDetection:0}),qe})(),rt=(()=>{class qe{constructor(ue,Je,St){this._changeDetectorRef=ue,this._dateAdapter=Je,this._dir=St,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new o.vpe,this.yearSelected=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){let Je=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),Mt(this._dateAdapter,Je,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Ze?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setSelectedYear(ue)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Je=this._dateAdapter.getYear(this._activeDate)-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let St=0,kt=[];St<24;St++)kt.push(Je+St),4==kt.length&&(this._years.push(kt.map(yi=>this._createCellForYear(yi))),kt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(ue){const Je=ue.value;this.yearSelected.emit(this._dateAdapter.createDate(Je,0,1));let St=this._dateAdapter.getMonth(this.activeDate),kt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Je,St,1));this.selectedChange.emit(this._dateAdapter.createDate(Je,St,Math.min(this._dateAdapter.getDate(this.activeDate),kt)))}_handleCalendarBodyKeydown(ue){const Je=this._activeDate,St=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?-240:-24);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?240:24);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_getActiveCell(){return Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(ue){const Je=this._dateAdapter.createDate(ue,0,1),St=this._dateAdapter.getYearName(Je),kt=this.dateClass?this.dateClass(Je,"multi-year"):void 0;return new ze(ue,St,St,this._shouldEnableYear(ue),kt)}_shouldEnableYear(ue){if(null==ue||this.maxDate&&ue>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ue{class qe{constructor(ue,Je,St,kt){this._changeDetectorRef=ue,this._dateFormats=Je,this._dateAdapter=St,this._dir=kt,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new o.vpe,this.monthSelected=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){let Je=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._dateAdapter.getYear(Je)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Ze?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setSelectedMonth(ue)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(ue){const Je=ue.value,St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Je,1);this.monthSelected.emit(St);const kt=this._dateAdapter.getNumDaysInMonth(St);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Je,Math.min(this._dateAdapter.getDate(this.activeDate),kt)))}_handleCalendarBodyKeydown(ue){const Je=this._activeDate,St=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?-10:-1);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?10:1);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let ue=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Je=>Je.map(St=>this._createCellForMonth(St,ue[St]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(ue){return ue&&this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(ue):null}_createCellForMonth(ue,Je){const St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ue,1),kt=this._dateAdapter.format(St,this._dateFormats.display.monthYearA11yLabel),yi=this.dateClass?this.dateClass(St,"year"):void 0;return new ze(ue,Je.toLocaleUpperCase(),kt,this._shouldEnableMonth(ue),yi)}_shouldEnableMonth(ue){const Je=this._dateAdapter.getYear(this.activeDate);if(null==ue||this._isYearAndMonthAfterMaxDate(Je,ue)||this._isYearAndMonthBeforeMinDate(Je,ue))return!1;if(!this.dateFilter)return!0;for(let kt=this._dateAdapter.createDate(Je,ue,1);this._dateAdapter.getMonth(kt)==ue;kt=this._dateAdapter.addCalendarDays(kt,1))if(this.dateFilter(kt))return!0;return!1}_isYearAndMonthAfterMaxDate(ue,Je){if(this.maxDate){const St=this._dateAdapter.getYear(this.maxDate),kt=this._dateAdapter.getMonth(this.maxDate);return ue>St||ue===St&&Je>kt}return!1}_isYearAndMonthBeforeMinDate(ue,Je){if(this.minDate){const St=this._dateAdapter.getYear(this.minDate),kt=this._dateAdapter.getMonth(this.minDate);return ue{class qe{constructor(){this.changes=new s.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(ue,Je){return`${ue} \u2013 ${Je}`}}return qe.\u0275fac=function(ue){return new(ue||qe)},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ei=0,ki=(()=>{class qe{constructor(ue,Je,St,kt,yi){this._intl=ue,this.calendar=Je,this._dateAdapter=St,this._dateFormats=kt,this._buttonDescriptionId="mat-calendar-button-"+ei++,this.calendar.stateChanges.subscribe(()=>yi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Je=this._dateAdapter.getYear(this.calendar.activeDate)-Zt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),St=Je+24-1,kt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Je,0,1)),yi=this._dateAdapter.getYearName(this._dateAdapter.createDate(St,0,1));return this._intl.formatYearRange(kt,yi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(ue,Je){return"month"==this.calendar.currentView?this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(Je)&&this._dateAdapter.getMonth(ue)==this._dateAdapter.getMonth(Je):"year"==this.calendar.currentView?this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(Je):Mt(this._dateAdapter,ue,Je,this.calendar.minDate,this.calendar.maxDate)}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(jt),o.Y36((0,o.Gpc)(()=>ai)),o.Y36(R._A,8),o.Y36(R.sG,8),o.Y36(o.sBO))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:p,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(ue,Je){1&ue&&(o.F$t(),o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return Je.currentPeriodClicked()}),o.TgZ(3,"span"),o._uU(4),o.qZA(),o.O4$(),o.TgZ(5,"svg",3),o._UZ(6,"polygon",4),o.qZA(),o.qZA(),o.kcU(),o._UZ(7,"div",5),o.Hsn(8),o.TgZ(9,"button",6),o.NdJ("click",function(){return Je.previousClicked()}),o.qZA(),o.TgZ(10,"button",7),o.NdJ("click",function(){return Je.nextClicked()}),o.qZA(),o.qZA(),o.qZA()),2&ue&&(o.xp6(2),o.uIk("aria-label",Je.periodButtonLabel)("aria-describedby",Je._buttonDescriptionId),o.xp6(1),o.uIk("id",Je._buttonDescriptionId),o.xp6(1),o.Oqu(Je.periodButtonText),o.xp6(1),o.ekj("mat-calendar-invert","month"!==Je.calendar.currentView),o.xp6(4),o.Q6J("disabled",!Je.previousEnabled()),o.uIk("aria-label",Je.prevButtonLabel),o.xp6(1),o.Q6J("disabled",!Je.nextEnabled()),o.uIk("aria-label",Je.nextButtonLabel))},directives:[M.lW,e.Qr],encapsulation:2,changeDetection:0}),qe})(),ai=(()=>{class qe{constructor(ue,Je,St,kt){this._dateAdapter=Je,this._dateFormats=St,this._changeDetectorRef=kt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.vpe,this.yearSelected=new o.vpe,this.monthSelected=new o.vpe,this.viewChanged=new o.vpe(!0),this._userSelection=new o.vpe,this.stateChanges=new s.x,this._intlChanges=ue.changes.subscribe(()=>{kt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(ue){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Ze?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get activeDate(){return this._clampedActiveDate}set activeDate(ue){this._clampedActiveDate=this._dateAdapter.clampDate(ue,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(ue){const Je=this._currentView!==ue?ue:null;this._currentView=ue,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Je&&this.viewChanged.emit(Je)}ngAfterContentInit(){this._calendarHeaderPortal=new y.C5(this.headerComponent||ki),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(ue){const Je=ue.minDate||ue.maxDate||ue.dateFilter;if(Je&&!Je.firstChange){const St=this._getCurrentViewComponent();St&&(this._changeDetectorRef.detectChanges(),St._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(ue){const Je=ue.value;(this.selected instanceof Ze||Je&&!this._dateAdapter.sameDate(Je,this.selected))&&this.selectedChange.emit(Je),this._userSelection.emit(ue)}_yearSelectedInMultiYearView(ue){this.yearSelected.emit(ue)}_monthSelectedInYearView(ue){this.monthSelected.emit(ue)}_goToDateInView(ue,Je){this.activeDate=ue,this.currentView=Je}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(jt),o.Y36(R._A,8),o.Y36(R.sG,8),o.Y36(o.sBO))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-calendar"]],viewQuery:function(ue,Je){if(1&ue&&(o.Gf(nt,5),o.Gf(Ii,5),o.Gf(rt,5)),2&ue){let St;o.iGM(St=o.CRH())&&(Je.monthView=St.first),o.iGM(St=o.CRH())&&(Je.yearView=St.first),o.iGM(St=o.CRH())&&(Je.multiYearView=St.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:[o._Bn([Le]),o.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(ue,Je){1&ue&&(o.YNc(0,u,0,0,"ng-template",0),o.TgZ(1,"div",1),o.YNc(2,_,1,8,"mat-month-view",2),o.YNc(3,D,1,6,"mat-year-view",3),o.YNc(4,O,1,6,"mat-multi-year-view",4),o.qZA()),2&ue&&(o.Q6J("cdkPortalOutlet",Je._calendarHeaderPortal),o.xp6(1),o.Q6J("ngSwitch",Je.currentView),o.xp6(1),o.Q6J("ngSwitchCase","month"),o.xp6(1),o.Q6J("ngSwitchCase","year"),o.xp6(1),o.Q6J("ngSwitchCase","multi-year"))},directives:[y.Pl,e.kH,C.RF,C.n9,nt,Ii,rt],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}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),qe})();const hi={transformPanel:(0,ee.X$)("transformPanel",[(0,ee.eR)("void => enter-dropdown",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ee.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ee.eR)("void => enter-dialog",(0,ee.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0.7)"}),(0,ee.oB)({transform:"none",opacity:1})]))),(0,ee.eR)("* => void",(0,ee.jt)("100ms linear",(0,ee.oB)({opacity:0})))]),fadeInCalendar:(0,ee.X$)("fadeInCalendar",[(0,ee.SB)("void",(0,ee.oB)({opacity:0})),(0,ee.SB)("enter",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",(0,ee.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ve=0;const Ee=new o.OlP("mat-datepicker-scroll-strategy"),pe={provide:Ee,deps:[t.aV],useFactory:function Y(qe){return()=>qe.scrollStrategies.reposition()}},De=(0,R.pj)(class{constructor(qe){this._elementRef=qe}});let et=(()=>{class qe extends De{constructor(ue,Je,St,kt,yi,Ni){super(ue),this._changeDetectorRef=Je,this._globalModel=St,this._dateAdapter=kt,this._rangeSelectionStrategy=yi,this._subscriptions=new L.w0,this._animationDone=new s.x,this._actionsPortal=null,this._closeButtonText=Ni.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(ue){const Je=this._model.selection,St=ue.value,kt=Je instanceof Ze;if(kt&&this._rangeSelectionStrategy){const yi=this._rangeSelectionStrategy.selectionFinished(St,Je,ue.event);this._model.updateSelection(yi,this)}else St&&(kt||!this._dateAdapter.sameDate(St,Je))&&this._model.add(St);(!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 qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(vt),o.Y36(R._A),o.Y36($,8),o.Y36(jt))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker-content"]],viewQuery:function(ue,Je){if(1&ue&&o.Gf(ai,5),2&ue){let St;o.iGM(St=o.CRH())&&(Je._calendar=St.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(ue,Je){1&ue&&o.WFA("@transformPanel.done",function(){return Je._animationDone.next()}),2&ue&&(o.d8E("@transformPanel",Je._animationState),o.ekj("mat-datepicker-content-touch",Je.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(ue,Je){1&ue&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-calendar",1),o.NdJ("yearSelected",function(kt){return Je.datepicker._selectYear(kt)})("monthSelected",function(kt){return Je.datepicker._selectMonth(kt)})("viewChanged",function(kt){return Je.datepicker._viewChanged(kt)})("_userSelection",function(kt){return Je._handleUserSelection(kt)}),o.qZA(),o.YNc(2,x,0,0,"ng-template",2),o.TgZ(3,"button",3),o.NdJ("focus",function(){return Je._closeButtonFocused=!0})("blur",function(){return Je._closeButtonFocused=!1})("click",function(){return Je.datepicker.close()}),o._uU(4),o.qZA(),o.qZA()),2&ue&&(o.ekj("mat-datepicker-content-container-with-actions",Je._actionsPortal),o.xp6(1),o.Q6J("id",Je.datepicker.id)("ngClass",Je.datepicker.panelClass)("startAt",Je.datepicker.startAt)("startView",Je.datepicker.startView)("minDate",Je.datepicker._getMinDate())("maxDate",Je.datepicker._getMaxDate())("dateFilter",Je.datepicker._getDateFilter())("headerComponent",Je.datepicker.calendarHeaderComponent)("selected",Je._getSelected())("dateClass",Je.datepicker.dateClass)("comparisonStart",Je.comparisonStart)("comparisonEnd",Je.comparisonEnd)("@fadeInCalendar","enter"),o.xp6(1),o.Q6J("cdkPortalOutlet",Je._actionsPortal),o.xp6(1),o.ekj("cdk-visually-hidden",!Je._closeButtonFocused),o.Q6J("color",Je.color||"primary"),o.xp6(1),o.Oqu(Je._closeButtonText))},directives:[e.mK,ai,C.mk,y.Pl,M.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.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:[hi.transformPanel,hi.fadeInCalendar]},changeDetection:0}),qe})(),$t=(()=>{class qe{constructor(ue,Je,St,kt,yi,Ni,Si){this._overlay=ue,this._ngZone=Je,this._viewContainerRef=St,this._dateAdapter=yi,this._dir=Ni,this._model=Si,this._inputStateChanges=L.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new o.vpe,this.monthSelected=new o.vpe,this.viewChanged=new o.vpe(!0),this.openedStream=new o.vpe,this.closedStream=new o.vpe,this._opened=!1,this.id="mat-datepicker-"+Ve++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new s.x,this._scrollStrategy=kt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(ue){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(ue){this._color=ue}get touchUi(){return this._touchUi}set touchUi(ue){this._touchUi=(0,W.Ig)(ue)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(ue){const Je=(0,W.Ig)(ue);Je!==this._disabled&&(this._disabled=Je,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(ue){this._restoreFocus=(0,W.Ig)(ue)}get panelClass(){return this._panelClass}set panelClass(ue){this._panelClass=(0,W.du)(ue)}get opened(){return this._opened}set opened(ue){(0,W.Ig)(ue)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(ue){const Je=ue.xPosition||ue.yPosition;if(Je&&!Je.firstChange&&this._overlayRef){const St=this._overlayRef.getConfig().positionStrategy;St instanceof t._G&&(this._setConnectedPositions(St),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(ue){this._model.add(ue)}_selectYear(ue){this.yearSelected.emit(ue)}_selectMonth(ue){this.monthSelected.emit(ue)}_viewChanged(ue){this.viewChanged.emit(ue)}registerInput(ue){return this._inputStateChanges.unsubscribe(),this.datepickerInput=ue,this._inputStateChanges=ue.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(ue){this._actionsPortal=ue}removeActions(ue){ue===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,te.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Je=this._componentRef.instance;Je._startExitAnimation(),Je._animationDone.pipe((0,P.q)(1)).subscribe(()=>this._destroyOverlay())}const ue=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(ue)):ue()}_applyPendingSelection(){var ue,Je;null===(Je=null===(ue=this._componentRef)||void 0===ue?void 0:ue.instance)||void 0===Je||Je._applyPendingSelection()}_forwardContentValues(ue){ue.datepicker=this,ue.color=this.color,ue._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const ue=this.touchUi,Je=this.datepickerInput.getOverlayLabelId(),St=new y.C5(et,this._viewContainerRef),kt=this._overlayRef=this._overlay.create(new t.X_({positionStrategy:ue?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[ue?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:ue?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(ue?"dialog":"popup")})),yi=kt.overlayElement;yi.setAttribute("role","dialog"),Je&&yi.setAttribute("aria-labelledby",Je),ue&&yi.setAttribute("aria-modal","true"),this._getCloseStream(kt).subscribe(Ni=>{Ni&&Ni.preventDefault(),this.close()}),this._componentRef=kt.attach(St),this._forwardContentValues(this._componentRef.instance),ue||this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>kt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const ue=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(ue)}_setConnectedPositions(ue){const Je="end"===this.xPosition?"end":"start",St="start"===Je?"end":"start",kt="above"===this.yPosition?"bottom":"top",yi="top"===kt?"bottom":"top";return ue.withPositions([{originX:Je,originY:yi,overlayX:Je,overlayY:kt},{originX:Je,originY:kt,overlayX:Je,overlayY:yi},{originX:St,originY:yi,overlayX:St,overlayY:kt},{originX:St,originY:kt,overlayX:St,overlayY:yi}])}_getCloseStream(ue){return(0,I.T)(ue.backdropClick(),ue.detachments(),ue.keydownEvents().pipe((0,V.h)(Je=>Je.keyCode===E.hY&&!(0,E.Vb)(Je)||this.datepickerInput&&(0,E.Vb)(Je,"altKey")&&Je.keyCode===E.LH)))}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(t.aV),o.Y36(o.R0b),o.Y36(o.s_b),o.Y36(Ee),o.Y36(R._A,8),o.Y36(j.Is,8),o.Y36(vt))},qe.\u0275dir=o.lG2({type:qe,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:[o.TTD]}),qe})(),Nt=(()=>{class qe extends $t{}return qe.\u0275fac=function(){let yt;return function(Je){return(yt||(yt=o.n5z(qe)))(Je||qe)}}(),qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o._Bn([Le,{provide:$t,useExisting:qe}]),o.qOj],decls:0,vars:0,template:function(ue,Je){},encapsulation:2,changeDetection:0}),qe})();class Jt{constructor(yt,ue){this.target=yt,this.targetElement=ue,this.value=this.target.value}}let ct=(()=>{class qe{constructor(ue,Je,St){this._elementRef=ue,this._dateAdapter=Je,this._dateFormats=St,this.dateChange=new o.vpe,this.dateInput=new o.vpe,this.stateChanges=new s.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=L.w0.EMPTY,this._localeSubscription=L.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=kt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kt.value));return!yi||this._matchesFilter(yi)?null:{matDatepickerFilter:!0}},this._minValidator=kt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kt.value)),Ni=this._getMinDate();return!Ni||!yi||this._dateAdapter.compareDate(Ni,yi)<=0?null:{matDatepickerMin:{min:Ni,actual:yi}}},this._maxValidator=kt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kt.value)),Ni=this._getMaxDate();return!Ni||!yi||this._dateAdapter.compareDate(Ni,yi)>=0?null:{matDatepickerMax:{max:Ni,actual:yi}}},this._lastValueValid=!1,this._localeSubscription=Je.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(ue){this._assignValueProgrammatically(ue)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(ue){const Je=(0,W.Ig)(ue),St=this._elementRef.nativeElement;this._disabled!==Je&&(this._disabled=Je,this.stateChanges.next(void 0)),Je&&this._isInitialized&&St.blur&&St.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(ue){this._model=ue,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Je=>{if(this._shouldHandleChangeEvent(Je)){const St=this._getValueFromModel(Je.selection);this._lastValueValid=this._isValidValue(St),this._cvaOnChange(St),this._onTouched(),this._formatValue(St),this.dateInput.emit(new Jt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Jt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(ue){(function ke(qe,yt){const ue=Object.keys(qe);for(let Je of ue){const{previousValue:St,currentValue:kt}=qe[Je];if(!yt.isDateInstance(St)||!yt.isDateInstance(kt))return!0;if(!yt.sameDate(St,kt))return!0}return!1})(ue,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(ue){this._validatorOnChange=ue}validate(ue){return this._validator?this._validator(ue):null}writeValue(ue){this._assignValueProgrammatically(ue)}registerOnChange(ue){this._cvaOnChange=ue}registerOnTouched(ue){this._onTouched=ue}setDisabledState(ue){this.disabled=ue}_onKeydown(ue){ue.altKey&&ue.keyCode===E.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),ue.preventDefault())}_onInput(ue){const Je=this._lastValueValid;let St=this._dateAdapter.parse(ue,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(St),St=this._dateAdapter.getValidDateOrNull(St),this._dateAdapter.sameDate(St,this.value)?(ue&&!this.value&&this._cvaOnChange(St),Je!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(St),this._cvaOnChange(St),this.dateInput.emit(new Jt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Jt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(ue){this._elementRef.nativeElement.value=ue?this._dateAdapter.format(ue,this._dateFormats.display.dateInput):""}_assignValue(ue){this._model?(this._assignValueToModel(ue),this._pendingValue=null):this._pendingValue=ue}_isValidValue(ue){return!ue||this._dateAdapter.isValid(ue)}_parentDisabled(){return!1}_assignValueProgrammatically(ue){ue=this._dateAdapter.deserialize(ue),this._lastValueValid=this._isValidValue(ue),ue=this._dateAdapter.getValidDateOrNull(ue),this._assignValue(ue),this._formatValue(ue)}_matchesFilter(ue){const Je=this._getDateFilter();return!Je||Je(ue)}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(o.SBq),o.Y36(R._A,8),o.Y36(R.sG,8))},qe.\u0275dir=o.lG2({type:qe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.TTD]}),qe})();const Be={provide:ge.JU,useExisting:(0,o.Gpc)(()=>st),multi:!0},at={provide:ge.Cf,useExisting:(0,o.Gpc)(()=>st),multi:!0};let st=(()=>{class qe extends ct{constructor(ue,Je,St,kt){super(ue,Je,St),this._formField=kt,this._closedSubscription=L.w0.EMPTY,this._validator=ge.kI.compose(super._getValidators())}set matDatepicker(ue){ue&&(this._datepicker=ue,this._closedSubscription=ue.closedStream.subscribe(()=>this._onTouched()),this._registerModel(ue.registerInput(this)))}get min(){return this._min}set min(ue){const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue));this._dateAdapter.sameDate(Je,this._min)||(this._min=Je,this._validatorOnChange())}get max(){return this._max}set max(ue){const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue));this._dateAdapter.sameDate(Je,this._max)||(this._max=Je,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(ue){const Je=this._matchesFilter(this.value);this._dateFilter=ue,this._matchesFilter(this.value)!==Je&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(ue){return ue}_assignValueToModel(ue){this._model&&this._model.updateSelection(ue,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(ue){return ue.source!==this}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(o.SBq),o.Y36(R._A,8),o.Y36(R.sG,8),o.Y36(le.G_,8))},qe.\u0275dir=o.lG2({type:qe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(ue,Je){1&ue&&o.NdJ("input",function(kt){return Je._onInput(kt.target.value)})("change",function(){return Je._onChange()})("blur",function(){return Je._onBlur()})("keydown",function(kt){return Je._onKeydown(kt)}),2&ue&&(o.Ikx("disabled",Je.disabled),o.uIk("aria-haspopup",Je._datepicker?"dialog":null)("aria-owns",(null==Je._datepicker?null:Je._datepicker.opened)&&Je._datepicker.id||null)("min",Je.min?Je._dateAdapter.toIso8601(Je.min):null)("max",Je.max?Je._dateAdapter.toIso8601(Je.max):null)("data-mat-calendar",Je._datepicker?Je._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[o._Bn([Be,at,{provide:re.Jk,useExisting:qe}]),o.qOj]}),qe})(),At=(()=>{class qe{}return qe.\u0275fac=function(ue){return new(ue||qe)},qe.\u0275dir=o.lG2({type:qe,selectors:[["","matDatepickerToggleIcon",""]]}),qe})(),li=(()=>{class qe{constructor(ue,Je,St){this._intl=ue,this._changeDetectorRef=Je,this._stateChanges=L.w0.EMPTY;const kt=Number(St);this.tabIndex=kt||0===kt?kt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(ue){this._disabled=(0,W.Ig)(ue)}ngOnChanges(ue){ue.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(ue){this.datepicker&&!this.disabled&&(this.datepicker.open(),ue.stopPropagation())}_watchStateChanges(){const ue=this.datepicker?this.datepicker.stateChanges:(0,A.of)(),Je=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,A.of)(),St=this.datepicker?(0,I.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,A.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,I.T)(this._intl.changes,ue,Je,St).subscribe(()=>this._changeDetectorRef.markForCheck())}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(jt),o.Y36(o.sBO),o.$8M("tabindex"))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(ue,Je,St){if(1&ue&&o.Suo(St,At,5),2&ue){let kt;o.iGM(kt=o.CRH())&&(Je._customIcon=kt.first)}},viewQuery:function(ue,Je){if(1&ue&&o.Gf(r,5),2&ue){let St;o.iGM(St=o.CRH())&&(Je._button=St.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(ue,Je){1&ue&&o.NdJ("click",function(kt){return Je._open(kt)}),2&ue&&(o.uIk("tabindex",null)("data-mat-calendar",Je.datepicker?Je.datepicker.id:null),o.ekj("mat-datepicker-toggle-active",Je.datepicker&&Je.datepicker.opened)("mat-accent",Je.datepicker&&"accent"===Je.datepicker.color)("mat-warn",Je.datepicker&&"warn"===Je.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[o.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(ue,Je){1&ue&&(o.F$t(Z),o.TgZ(0,"button",0,1),o.YNc(2,b,2,0,"svg",2),o.Hsn(3),o.qZA()),2&ue&&(o.Q6J("disabled",Je.disabled)("disableRipple",Je.disableRipple),o.uIk("aria-haspopup",Je.datepicker?"dialog":null)("aria-label",Je.ariaLabel||Je._intl.openCalendarLabel)("tabindex",Je.disabled?-1:Je.tabIndex),o.xp6(2),o.Q6J("ngIf",!Je._customIcon))},directives:[M.lW,C.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}),qe})(),_e=(()=>{class qe{}return qe.\u0275fac=function(ue){return new(ue||qe)},qe.\u0275mod=o.oAB({type:qe}),qe.\u0275inj=o.cJS({providers:[jt,pe],imports:[[C.ez,M.ot,t.U8,e.rt,y.eL,R.BQ],l.ZD]}),qe})()},8966:(Ge,Q,m)=>{"use strict";m.d(Q,{WI:()=>i,Bq:()=>a,uw:()=>x,ZT:()=>Z,Is:()=>Re,so:()=>ye});var e=m(9776),t=m(7429),y=m(5e3),C=m(508),o=m(226),M=m(7579),l=m(9770),R=m(727),s=m(9646),L=m(9300),I=m(5698),A=m(8675),E=m(925),P=m(9808),w=m(1777),V=m(5664),j=m(1159),W=m(6360);function te(ze,Oe){}class ee{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.closeOnNavigation=!0}}const ge={dialogContainer:(0,w.X$)("dialogContainer",[(0,w.SB)("void, exit",(0,w.oB)({opacity:0,transform:"scale(0.7)"})),(0,w.SB)("enter",(0,w.oB)({transform:"none"})),(0,w.eR)("* => enter",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({transform:"none",opacity:1}))),(0,w.eR)("* => void, * => exit",(0,w.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,w.oB)({opacity:0})))])};let re=(()=>{class ze extends t.en{constructor(K,Me,we,z,Ze,vt,Fe,Ne){super(),this._elementRef=K,this._focusTrapFactory=Me,this._changeDetectorRef=we,this._config=Ze,this._interactivityChecker=vt,this._ngZone=Fe,this._focusMonitor=Ne,this._animationStateChanged=new y.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ce=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(ce)),this._ariaLabelledBy=Ze.ariaLabelledBy||null,this._document=z}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(K){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(K)}attachTemplatePortal(K){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(K)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(K,Me){this._interactivityChecker.isFocusable(K)||(K.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{K.addEventListener("blur",()=>K.removeAttribute("tabindex")),K.addEventListener("mousedown",()=>K.removeAttribute("tabindex"))})),K.focus(Me)}_focusByCssSelector(K,Me){let we=this._elementRef.nativeElement.querySelector(K);we&&this._forceFocus(we,Me)}_trapFocus(){const K=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||K.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Me=>{Me||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 K=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&K&&"function"==typeof K.focus){const Me=(0,E.ht)(),we=this._elementRef.nativeElement;(!Me||Me===this._document.body||Me===we||we.contains(Me))&&(this._focusMonitor?(this._focusMonitor.focusVia(K,this._closeInteractionType),this._closeInteractionType=null):K.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,E.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const K=this._elementRef.nativeElement,Me=(0,E.ht)();return K===Me||K.contains(Me)}}return ze.\u0275fac=function(K){return new(K||ze)(y.Y36(y.SBq),y.Y36(V.qV),y.Y36(y.sBO),y.Y36(P.K0,8),y.Y36(ee),y.Y36(V.ic),y.Y36(y.R0b),y.Y36(V.tE))},ze.\u0275dir=y.lG2({type:ze,viewQuery:function(K,Me){if(1&K&&y.Gf(t.Pl,7),2&K){let we;y.iGM(we=y.CRH())&&(Me._portalOutlet=we.first)}},features:[y.qOj]}),ze})(),de=(()=>{class ze extends re{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:K,totalTime:Me}){"enter"===K?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Me})):"exit"===K&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Me}))}_onAnimationStart({toState:K,totalTime:Me}){"enter"===K?this._animationStateChanged.next({state:"opening",totalTime:Me}):("exit"===K||"void"===K)&&this._animationStateChanged.next({state:"closing",totalTime:Me})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return ze.\u0275fac=function(){let Oe;return function(Me){return(Oe||(Oe=y.n5z(ze)))(Me||ze)}}(),ze.\u0275cmp=y.Xpm({type:ze,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(K,Me){1&K&&y.WFA("@dialogContainer.start",function(z){return Me._onAnimationStart(z)})("@dialogContainer.done",function(z){return Me._onAnimationDone(z)}),2&K&&(y.Ikx("id",Me._id),y.uIk("role",Me._config.role)("aria-labelledby",Me._config.ariaLabel?null:Me._ariaLabelledBy)("aria-label",Me._config.ariaLabel)("aria-describedby",Me._config.ariaDescribedBy||null),y.d8E("@dialogContainer",Me._state))},features:[y.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,Me){1&K&&y.YNc(0,te,0,0,"ng-template",0)},directives:[t.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:[ge.dialogContainer]}}),ze})(),se=0;class ye{constructor(Oe,K,Me="mat-dialog-"+se++){this._overlayRef=Oe,this._containerInstance=K,this.id=Me,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new M.x,this._afterClosed=new M.x,this._beforeClosed=new M.x,this._state=0,K._id=Me,K._animationStateChanged.pipe((0,L.h)(we=>"opened"===we.state),(0,I.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),K._animationStateChanged.pipe((0,L.h)(we=>"closed"===we.state),(0,I.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Oe.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Oe.keydownEvents().pipe((0,L.h)(we=>we.keyCode===j.hY&&!this.disableClose&&!(0,j.Vb)(we))).subscribe(we=>{we.preventDefault(),v(this,"keyboard")}),Oe.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():v(this,"mouse")})}close(Oe){this._result=Oe,this._containerInstance._animationStateChanged.pipe((0,L.h)(K=>"closing"===K.state),(0,I.q)(1)).subscribe(K=>{this._beforeClosed.next(Oe),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),K.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(Oe){let K=this._getPositionStrategy();return Oe&&(Oe.left||Oe.right)?Oe.left?K.left(Oe.left):K.right(Oe.right):K.centerHorizontally(),Oe&&(Oe.top||Oe.bottom)?Oe.top?K.top(Oe.top):K.bottom(Oe.bottom):K.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Oe="",K=""){return this._overlayRef.updateSize({width:Oe,height:K}),this._overlayRef.updatePosition(),this}addPanelClass(Oe){return this._overlayRef.addPanelClass(Oe),this}removePanelClass(Oe){return this._overlayRef.removePanelClass(Oe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function v(ze,Oe,K){return void 0!==ze._containerInstance&&(ze._containerInstance._closeInteractionType=Oe),ze.close(K)}const i=new y.OlP("MatDialogData"),a=new y.OlP("mat-dialog-default-options"),p=new y.OlP("mat-dialog-scroll-strategy"),D={provide:p,deps:[e.aV],useFactory:function _(ze){return()=>ze.scrollStrategies.block()}};let O=(()=>{class ze{constructor(K,Me,we,z,Ze,vt,Fe,Ne,ce,Le){this._overlay=K,this._injector=Me,this._defaultOptions=we,this._parentDialog=z,this._overlayContainer=Ze,this._dialogRefConstructor=Fe,this._dialogContainerType=Ne,this._dialogDataToken=ce,this._animationMode=Le,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new M.x,this._afterOpenedAtThisLevel=new M.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,l.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,A.O)(void 0))),this._scrollStrategy=vt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const K=this._parentDialog;return K?K._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(K,Me){if(Me=function r(ze,Oe){return Object.assign(Object.assign({},Oe),ze)}(Me,this._defaultOptions||new ee),Me.id&&this.getDialogById(Me.id),this._dialogAnimatingOpen)return this._lastDialogRef;const we=this._createOverlay(Me),z=this._attachDialogContainer(we,Me);if("NoopAnimations"!==this._animationMode){const vt=z._animationStateChanged.subscribe(Fe=>{"opening"===Fe.state&&(this._dialogAnimatingOpen=!0),"opened"===Fe.state&&(this._dialogAnimatingOpen=!1,vt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new R.w0),this._animationStateSubscriptions.add(vt)}const Ze=this._attachDialogContent(K,z,we,Me);return this._lastDialogRef=Ze,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ze),Ze.afterClosed().subscribe(()=>this._removeOpenDialog(Ze)),this.afterOpened.next(Ze),z._initializeWithAttachedContent(),Ze}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(K){return this.openDialogs.find(Me=>Me.id===K)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(K){const Me=this._getOverlayConfig(K);return this._overlay.create(Me)}_getOverlayConfig(K){const Me=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:K.scrollStrategy||this._scrollStrategy(),panelClass:K.panelClass,hasBackdrop:K.hasBackdrop,direction:K.direction,minWidth:K.minWidth,minHeight:K.minHeight,maxWidth:K.maxWidth,maxHeight:K.maxHeight,disposeOnNavigation:K.closeOnNavigation});return K.backdropClass&&(Me.backdropClass=K.backdropClass),Me}_attachDialogContainer(K,Me){const z=y.zs3.create({parent:Me&&Me.viewContainerRef&&Me.viewContainerRef.injector||this._injector,providers:[{provide:ee,useValue:Me}]}),Ze=new t.C5(this._dialogContainerType,Me.viewContainerRef,z,Me.componentFactoryResolver);return K.attach(Ze).instance}_attachDialogContent(K,Me,we,z){const Ze=new this._dialogRefConstructor(we,Me,z.id);if(K instanceof y.Rgc)Me.attachTemplatePortal(new t.UE(K,null,{$implicit:z.data,dialogRef:Ze}));else{const vt=this._createInjector(z,Ze,Me),Fe=Me.attachComponentPortal(new t.C5(K,z.viewContainerRef,vt));Ze.componentInstance=Fe.instance}return Ze.updateSize(z.width,z.height).updatePosition(z.position),Ze}_createInjector(K,Me,we){const z=K&&K.viewContainerRef&&K.viewContainerRef.injector,Ze=[{provide:this._dialogContainerType,useValue:we},{provide:this._dialogDataToken,useValue:K.data},{provide:this._dialogRefConstructor,useValue:Me}];return K.direction&&(!z||!z.get(o.Is,null,y.XFs.Optional))&&Ze.push({provide:o.Is,useValue:{value:K.direction,change:(0,s.of)()}}),y.zs3.create({parent:z||this._injector,providers:Ze})}_removeOpenDialog(K){const Me=this.openDialogs.indexOf(K);Me>-1&&(this.openDialogs.splice(Me,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((we,z)=>{we?z.setAttribute("aria-hidden",we):z.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const K=this._overlayContainer.getContainerElement();if(K.parentElement){const Me=K.parentElement.children;for(let we=Me.length-1;we>-1;we--){let z=Me[we];z!==K&&"SCRIPT"!==z.nodeName&&"STYLE"!==z.nodeName&&!z.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(z,z.getAttribute("aria-hidden")),z.setAttribute("aria-hidden","true"))}}}_closeDialogs(K){let Me=K.length;for(;Me--;)K[Me].close()}}return ze.\u0275fac=function(K){y.$Z()},ze.\u0275dir=y.lG2({type:ze}),ze})(),x=(()=>{class ze extends O{constructor(K,Me,we,z,Ze,vt,Fe,Ne){super(K,Me,z,vt,Fe,Ze,ye,de,i,Ne)}}return ze.\u0275fac=function(K){return new(K||ze)(y.LFG(e.aV),y.LFG(y.zs3),y.LFG(P.Ye,8),y.LFG(a,8),y.LFG(p),y.LFG(ze,12),y.LFG(e.Xj),y.LFG(W.Qb,8))},ze.\u0275prov=y.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),Z=(()=>{class ze{constructor(K,Me,we){this.dialogRef=K,this._elementRef=Me,this._dialog=we,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function be(ze,Oe){let K=ze.nativeElement.parentElement;for(;K&&!K.classList.contains("mat-dialog-container");)K=K.parentElement;return K?Oe.find(Me=>Me.id===K.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(K){const Me=K._matDialogClose||K._matDialogCloseResult;Me&&(this.dialogResult=Me.currentValue)}_onButtonClick(K){v(this.dialogRef,0===K.screenX&&0===K.screenY?"keyboard":"mouse",this.dialogResult)}}return ze.\u0275fac=function(K){return new(K||ze)(y.Y36(ye,8),y.Y36(y.SBq),y.Y36(x))},ze.\u0275dir=y.lG2({type:ze,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(K,Me){1&K&&y.NdJ("click",function(z){return Me._onButtonClick(z)}),2&K&&y.uIk("aria-label",Me.ariaLabel||null)("type",Me.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[y.TTD]}),ze})(),Re=(()=>{class ze{}return ze.\u0275fac=function(K){return new(K||ze)},ze.\u0275mod=y.oAB({type:ze}),ze.\u0275inj=y.cJS({providers:[x,D],imports:[[e.U8,t.eL,C.BQ],C.BQ]}),ze})()},4834:(Ge,Q,m)=>{"use strict";m.d(Q,{d:()=>C,t:()=>o});var e=m(5e3),t=m(3191),y=m(508);let C=(()=>{class M{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(R){this._vertical=(0,t.Ig)(R)}get inset(){return this._inset}set inset(R){this._inset=(0,t.Ig)(R)}}return M.\u0275fac=function(R){return new(R||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(R,s){2&R&&(e.uIk("aria-orientation",s.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",s.vertical)("mat-divider-horizontal",!s.vertical)("mat-divider-inset",s.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(R,s){},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}),M})(),o=(()=>{class M{}return M.\u0275fac=function(R){return new(R||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[y.BQ],y.BQ]}),M})()},1125:(Ge,Q,m)=>{"use strict";m.d(Q,{pp:()=>Oe,To:()=>K,ib:()=>Z,u4:()=>Re,yz:()=>be,yK:()=>ze});var e=m(5e3),t=m(3191),y=m(7579),C=m(727),o=m(449);let M=0;const l=new e.OlP("CdkAccordion");let R=(()=>{class Me{constructor(){this._stateChanges=new y.x,this._openCloseAllActions=new y.x,this.id="cdk-accordion-"+M++,this._multi=!1}get multi(){return this._multi}set multi(z){this._multi=(0,t.Ig)(z)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(z){this._stateChanges.next(z)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:l,useExisting:Me}]),e.TTD]}),Me})(),s=0,L=(()=>{class Me{constructor(z,Ze,vt){this.accordion=z,this._changeDetectorRef=Ze,this._expansionDispatcher=vt,this._openCloseAllSubscription=C.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+s++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=vt.listen((Fe,Ne)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ne&&this.id!==Fe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(z){z=(0,t.Ig)(z),this._expanded!==z&&(this._expanded=z,this.expandedChange.emit(z),z?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(z){this._disabled=(0,t.Ig)(z)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(z=>{this.disabled||(this.expanded=z)})}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(l,12),e.Y36(e.sBO),e.Y36(o.A8))},Me.\u0275dir=e.lG2({type:Me,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:l,useValue:void 0}])]}),Me})(),I=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({}),Me})();var A=m(7429),E=m(9808),P=m(508),w=m(5664),V=m(1884),j=m(8675),W=m(9300),te=m(5698),ee=m(1159),ge=m(6360),le=m(515),re=m(6451),de=m(1777);const se=["body"];function ye(Me,we){}const v=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function a(Me,we){if(1&Me&&e._UZ(0,"span",2),2&Me){const z=e.oxw();e.Q6J("@indicatorRotate",z._getExpandedState())}}const p=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],u=["mat-panel-title","mat-panel-description","*"],_=new e.OlP("MAT_ACCORDION"),D="225ms cubic-bezier(0.4,0.0,0.2,1)",O={indicatorRotate:(0,de.X$)("indicatorRotate",[(0,de.SB)("collapsed, void",(0,de.oB)({transform:"rotate(0deg)"})),(0,de.SB)("expanded",(0,de.oB)({transform:"rotate(180deg)"})),(0,de.eR)("expanded <=> collapsed, void => collapsed",(0,de.jt)(D))]),bodyExpansion:(0,de.X$)("bodyExpansion",[(0,de.SB)("collapsed, void",(0,de.oB)({height:"0px",visibility:"hidden"})),(0,de.SB)("expanded",(0,de.oB)({height:"*",visibility:"visible"})),(0,de.eR)("expanded <=> collapsed, void => collapsed",(0,de.jt)(D))])};let x=(()=>{class Me{constructor(z){this._template=z}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(e.Rgc))},Me.\u0275dir=e.lG2({type:Me,selectors:[["ng-template","matExpansionPanelContent",""]]}),Me})(),r=0;const b=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Z=(()=>{class Me extends L{constructor(z,Ze,vt,Fe,Ne,ce,Le){super(z,Ze,vt),this._viewContainerRef=Fe,this._animationMode=ce,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new y.x,this._headerId="mat-expansion-panel-header-"+r++,this._bodyAnimationDone=new y.x,this.accordion=z,this._document=Ne,this._bodyAnimationDone.pipe((0,V.x)((Pe,q)=>Pe.fromState===q.fromState&&Pe.toState===q.toState)).subscribe(Pe=>{"void"!==Pe.fromState&&("expanded"===Pe.toState?this.afterExpand.emit():"collapsed"===Pe.toState&&this.afterCollapse.emit())}),Le&&(this.hideToggle=Le.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(z){this._hideToggle=(0,t.Ig)(z)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(z){this._togglePosition=z}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,j.O)(null),(0,W.h)(()=>this.expanded&&!this._portal),(0,te.q)(1)).subscribe(()=>{this._portal=new A.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(z){this._inputChanges.next(z)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const z=this._document.activeElement,Ze=this._body.nativeElement;return z===Ze||Ze.contains(z)}return!1}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(_,12),e.Y36(e.sBO),e.Y36(o.A8),e.Y36(e.s_b),e.Y36(E.K0),e.Y36(ge.Qb,8),e.Y36(b,8))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-expansion-panel"]],contentQueries:function(z,Ze,vt){if(1&z&&e.Suo(vt,x,5),2&z){let Fe;e.iGM(Fe=e.CRH())&&(Ze._lazyContent=Fe.first)}},viewQuery:function(z,Ze){if(1&z&&e.Gf(se,5),2&z){let vt;e.iGM(vt=e.CRH())&&(Ze._body=vt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(z,Ze){2&z&&e.ekj("mat-expanded",Ze.expanded)("_mat-animation-noopable","NoopAnimations"===Ze._animationMode)("mat-expansion-panel-spacing",Ze._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:_,useValue:void 0}]),e.qOj,e.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(z,Ze){1&z&&(e.F$t(v),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Fe){return Ze._bodyAnimationDone.next(Fe)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,ye,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("@bodyExpansion",Ze._getExpandedState())("id",Ze.id),e.uIk("aria-labelledby",Ze._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",Ze._portal))},directives:[A.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[O.bodyExpansion]},changeDetection:0}),Me})();class U{}const ve=(0,P.sb)(U);let be=(()=>{class Me extends ve{constructor(z,Ze,vt,Fe,Ne,ce,Le){super(),this.panel=z,this._element=Ze,this._focusMonitor=vt,this._changeDetectorRef=Fe,this._animationMode=ce,this._parentChangeSubscription=C.w0.EMPTY;const Pe=z.accordion?z.accordion._stateChanges.pipe((0,W.h)(q=>!(!q.hideToggle&&!q.togglePosition))):le.E;this.tabIndex=parseInt(Le||"")||0,this._parentChangeSubscription=(0,re.T)(z.opened,z.closed,Pe,z._inputChanges.pipe((0,W.h)(q=>!!(q.hideToggle||q.disabled||q.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),z.closed.pipe((0,W.h)(()=>z._containsFocus())).subscribe(()=>vt.focusVia(Ze,"program")),Ne&&(this.expandedHeight=Ne.expandedHeight,this.collapsedHeight=Ne.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const z=this._isExpanded();return z&&this.expandedHeight?this.expandedHeight:!z&&this.collapsedHeight?this.collapsedHeight:null}_keydown(z){switch(z.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(z)||(z.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(z))}}focus(z,Ze){z?this._focusMonitor.focusVia(this._element,z,Ze):this._element.nativeElement.focus(Ze)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(z=>{z&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(Z,1),e.Y36(e.SBq),e.Y36(w.tE),e.Y36(e.sBO),e.Y36(b,8),e.Y36(ge.Qb,8),e.$8M("tabindex"))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(z,Ze){1&z&&e.NdJ("click",function(){return Ze._toggle()})("keydown",function(Fe){return Ze._keydown(Fe)}),2&z&&(e.uIk("id",Ze.panel._headerId)("tabindex",Ze.tabIndex)("aria-controls",Ze._getPanelId())("aria-expanded",Ze._isExpanded())("aria-disabled",Ze.panel.disabled),e.Udp("height",Ze._getHeaderHeight()),e.ekj("mat-expanded",Ze._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ze._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ze._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ze._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:u,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(z,Ze){1&z&&(e.F$t(p),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,a,1,1,"span",1)),2&z&&(e.xp6(4),e.Q6J("ngIf",Ze._showToggle()))},directives:[E.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[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}),Me})(),Re=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Me})(),ze=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Me})(),Oe=(()=>{class Me extends R{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(z){this._hideToggle=(0,t.Ig)(z)}ngAfterContentInit(){this._headers.changes.pipe((0,j.O)(this._headers)).subscribe(z=>{this._ownHeaders.reset(z.filter(Ze=>Ze.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new w.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(z){this._keyManager.onKeydown(z)}_handleHeaderFocus(z){this._keyManager.updateActiveItem(z)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Me.\u0275fac=function(){let we;return function(Ze){return(we||(we=e.n5z(Me)))(Ze||Me)}}(),Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-accordion"]],contentQueries:function(z,Ze,vt){if(1&z&&e.Suo(vt,be,5),2&z){let Fe;e.iGM(Fe=e.CRH())&&(Ze._headers=Fe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(z,Ze){2&z&&e.ekj("mat-accordion-multi",Ze.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:_,useExisting:Me}]),e.qOj]}),Me})(),K=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({imports:[[E.ez,P.BQ,I,A.eL]]}),Me})()},7322:(Ge,Q,m)=>{"use strict";m.d(Q,{G_:()=>ce,TO:()=>O,KE:()=>Le,Eo:()=>r,lN:()=>Pe,bx:()=>be,R9:()=>we});var e=m(7144),t=m(9808),y=m(5e3),C=m(508),o=m(3191),M=m(7579),l=m(6451),R=m(4968),s=m(8675),L=m(2722),I=m(5698),A=m(1777),E=m(6360),P=m(226),w=m(925);const V=["connectionContainer"],j=["inputContainer"],W=["label"];function te(q,$){1&q&&(y.ynx(0),y.TgZ(1,"div",14),y._UZ(2,"div",15),y._UZ(3,"div",16),y._UZ(4,"div",17),y.qZA(),y.TgZ(5,"div",18),y._UZ(6,"div",15),y._UZ(7,"div",16),y._UZ(8,"div",17),y.qZA(),y.BQk())}function ee(q,$){if(1&q){const oe=y.EpF();y.TgZ(0,"div",19),y.NdJ("cdkObserveContent",function(){return y.CHM(oe),y.oxw().updateOutlineGap()}),y.Hsn(1,1),y.qZA()}if(2&q){const oe=y.oxw();y.Q6J("cdkObserveContentDisabled","outline"!=oe.appearance)}}function ge(q,$){if(1&q&&(y.ynx(0),y.Hsn(1,2),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.BQk()),2&q){const oe=y.oxw(2);y.xp6(3),y.Oqu(oe._control.placeholder)}}function le(q,$){1&q&&y.Hsn(0,3,["*ngSwitchCase","true"])}function re(q,$){1&q&&(y.TgZ(0,"span",23),y._uU(1," *"),y.qZA())}function de(q,$){if(1&q){const oe=y.EpF();y.TgZ(0,"label",20,21),y.NdJ("cdkObserveContent",function(){return y.CHM(oe),y.oxw().updateOutlineGap()}),y.YNc(2,ge,4,1,"ng-container",12),y.YNc(3,le,1,0,"ng-content",12),y.YNc(4,re,2,0,"span",22),y.qZA()}if(2&q){const oe=y.oxw();y.ekj("mat-empty",oe._control.empty&&!oe._shouldAlwaysFloat())("mat-form-field-empty",oe._control.empty&&!oe._shouldAlwaysFloat())("mat-accent","accent"==oe.color)("mat-warn","warn"==oe.color),y.Q6J("cdkObserveContentDisabled","outline"!=oe.appearance)("id",oe._labelId)("ngSwitch",oe._hasLabel()),y.uIk("for",oe._control.id)("aria-owns",oe._control.id),y.xp6(2),y.Q6J("ngSwitchCase",!1),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngIf",!oe.hideRequiredMarker&&oe._control.required&&!oe._control.disabled)}}function se(q,$){1&q&&(y.TgZ(0,"div",24),y.Hsn(1,4),y.qZA())}function ye(q,$){if(1&q&&(y.TgZ(0,"div",25),y._UZ(1,"span",26),y.qZA()),2&q){const oe=y.oxw();y.xp6(1),y.ekj("mat-accent","accent"==oe.color)("mat-warn","warn"==oe.color)}}function v(q,$){if(1&q&&(y.TgZ(0,"div"),y.Hsn(1,5),y.qZA()),2&q){const oe=y.oxw();y.Q6J("@transitionMessages",oe._subscriptAnimationState)}}function i(q,$){if(1&q&&(y.TgZ(0,"div",30),y._uU(1),y.qZA()),2&q){const oe=y.oxw(2);y.Q6J("id",oe._hintLabelId),y.xp6(1),y.Oqu(oe.hintLabel)}}function a(q,$){if(1&q&&(y.TgZ(0,"div",27),y.YNc(1,i,2,2,"div",28),y.Hsn(2,6),y._UZ(3,"div",29),y.Hsn(4,7),y.qZA()),2&q){const oe=y.oxw();y.Q6J("@transitionMessages",oe._subscriptAnimationState),y.xp6(1),y.Q6J("ngIf",oe.hintLabel)}}const p=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],u=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let _=0;const D=new y.OlP("MatError");let O=(()=>{class q{constructor(oe,Ce){this.id="mat-error-"+_++,oe||Ce.nativeElement.setAttribute("aria-live","polite")}}return q.\u0275fac=function(oe){return new(oe||q)(y.$8M("aria-live"),y.Y36(y.SBq))},q.\u0275dir=y.lG2({type:q,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(oe,Ce){2&oe&&y.uIk("id",Ce.id)},inputs:{id:"id"},features:[y._Bn([{provide:D,useExisting:q}])]}),q})();const x={transitionMessages:(0,A.X$)("transitionMessages",[(0,A.SB)("enter",(0,A.oB)({opacity:1,transform:"translateY(0%)"})),(0,A.eR)("void => enter",[(0,A.oB)({opacity:0,transform:"translateY(-5px)"}),(0,A.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let r=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=y.lG2({type:q}),q})(),U=0;const ve=new y.OlP("MatHint");let be=(()=>{class q{constructor(){this.align="start",this.id="mat-hint-"+U++}}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(oe,Ce){2&oe&&(y.uIk("id",Ce.id)("align",null),y.ekj("mat-form-field-hint-end","end"===Ce.align))},inputs:{align:"align",id:"id"},features:[y._Bn([{provide:ve,useExisting:q}])]}),q})(),Re=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-label"]]}),q})(),ze=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-placeholder"]]}),q})();const Oe=new y.OlP("MatPrefix"),Me=new y.OlP("MatSuffix");let we=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=y.lG2({type:q,selectors:[["","matSuffix",""]],features:[y._Bn([{provide:Me,useExisting:q}])]}),q})(),z=0;const Fe=(0,C.pj)(class{constructor(q){this._elementRef=q}},"primary"),Ne=new y.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ce=new y.OlP("MatFormField");let Le=(()=>{class q extends Fe{constructor(oe,Ce,Ue,lt,nt,ft,it){super(oe),this._changeDetectorRef=Ce,this._dir=Ue,this._defaults=lt,this._platform=nt,this._ngZone=ft,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new M.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+z++,this._labelId="mat-form-field-label-"+z++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==it,this.appearance=lt&<.appearance?lt.appearance:"legacy",this._hideRequiredMarker=!(!lt||null==lt.hideRequiredMarker)&<.hideRequiredMarker}get appearance(){return this._appearance}set appearance(oe){const Ce=this._appearance;this._appearance=oe||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&Ce!==oe&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(oe){this._hideRequiredMarker=(0,o.Ig)(oe)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(oe){this._hintLabel=oe,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(oe){oe!==this._floatLabel&&(this._floatLabel=oe||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(oe){this._explicitFormFieldControl=oe}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const oe=this._control;oe.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${oe.controlType}`),oe.stateChanges.pipe((0,s.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),oe.ngControl&&oe.ngControl.valueChanges&&oe.ngControl.valueChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,s.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,s.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,L.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(oe){const Ce=this._control?this._control.ngControl:null;return Ce&&Ce[oe]}_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,R.R)(this._label.nativeElement,"transitionend").pipe((0,I.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 oe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&oe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Ce=this._hintChildren?this._hintChildren.find(lt=>"start"===lt.align):null,Ue=this._hintChildren?this._hintChildren.find(lt=>"end"===lt.align):null;Ce?oe.push(Ce.id):this._hintLabel&&oe.push(this._hintLabelId),Ue&&oe.push(Ue.id)}else this._errorChildren&&oe.push(...this._errorChildren.map(Ce=>Ce.id));this._control.setDescribedByIds(oe)}}_validateControlChild(){}updateOutlineGap(){const oe=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&oe&&oe.children.length&&oe.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Ce=0,Ue=0;const lt=this._connectionContainerRef.nativeElement,nt=lt.querySelectorAll(".mat-form-field-outline-start"),ft=lt.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const it=lt.getBoundingClientRect();if(0===it.width&&0===it.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const rt=this._getStartEnd(it),Mt=oe.children,Zt=this._getStartEnd(Mt[0].getBoundingClientRect());let Ft=0;for(let Vt=0;Vt0?.75*Ft+10:0}for(let it=0;it{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275mod=y.oAB({type:q}),q.\u0275inj=y.cJS({imports:[[t.ez,C.BQ,e.Q8],C.BQ]}),q})()},3954:(Ge,Q,m)=>{"use strict";m.d(Q,{Il:()=>se,N6:()=>ye,DX:()=>A});var e=m(5e3),t=m(508),y=m(3191),C=m(226);const o=["*"];class s{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const a=Math.max(...this.tracker);return a>1?this.rowCount+a-1:this.rowCount}update(a,p){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=p.map(u=>this._trackTile(u))}_trackTile(a){const p=this._findMatchingGap(a.colspan);return this._markTilePosition(p,a),this.columnIndex=p+a.colspan,new L(this.rowIndex,p)}_findMatchingGap(a){let p=-1,u=-1;do{this.columnIndex+a>this.tracker.length?(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)):(p=this.tracker.indexOf(0,this.columnIndex),-1!=p?(u=this._findGapEndIndex(p),this.columnIndex=p+1):(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)))}while(u-p{class i{constructor(p,u){this._element=p,this._gridList=u,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(p){this._rowspan=Math.round((0,y.su)(p))}get colspan(){return this._colspan}set colspan(p){this._colspan=Math.round((0,y.su)(p))}_setStyle(p,u){this._element.nativeElement.style[p]=u}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(I,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(p,u){2&p&&e.uIk("rowspan",u.rowspan)("colspan",u.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:o,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(p,u){1&p&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),i})();const j=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class W{constructor(){this._rows=0,this._rowspan=0}init(a,p,u,_){this._gutterSize=re(a),this._rows=p.rowCount,this._rowspan=p.rowspan,this._cols=u,this._direction=_}getBaseTileSize(a,p){return`(${a}% - (${this._gutterSize} * ${p}))`}getTilePosition(a,p){return 0===p?"0":le(`(${a} + ${this._gutterSize}) * ${p}`)}getTileSize(a,p){return`(${a} * ${p}) + (${p-1} * ${this._gutterSize})`}setStyle(a,p,u){let _=100/this._cols,D=(this._cols-1)/this._cols;this.setColStyles(a,u,_,D),this.setRowStyles(a,p,_,D)}setColStyles(a,p,u,_){let D=this.getBaseTileSize(u,_);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(D,p)),a._setStyle("width",le(this.getTileSize(D,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class te extends W{constructor(a){super(),this.fixedRowHeight=a}init(a,p,u,_){super.init(a,p,u,_),this.fixedRowHeight=re(this.fixedRowHeight),j.test(this.fixedRowHeight)}setRowStyles(a,p){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,p)),a._setStyle("height",le(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",le(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}class ee extends W{constructor(a){super(),this._parseRatio(a)}setRowStyles(a,p,u,_){this.baseTileHeight=this.getBaseTileSize(u/this.rowHeightRatio,_),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,p)),a._setStyle("paddingTop",le(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",le(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(p=>{p._setStyle("marginTop",null),p._setStyle("paddingTop",null)})}_parseRatio(a){const p=a.split(":");this.rowHeightRatio=parseFloat(p[0])/parseFloat(p[1])}}class ge extends W{setRowStyles(a,p){let D=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(D,p)),a._setStyle("height",le(this.getTileSize(D,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}function le(i){return`calc(${i})`}function re(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let se=(()=>{class i{constructor(p,u){this._element=p,this._dir=u,this._gutter="1px"}get cols(){return this._cols}set cols(p){this._cols=Math.max(1,Math.round((0,y.su)(p)))}get gutterSize(){return this._gutter}set gutterSize(p){this._gutter=`${null==p?"":p}`}get rowHeight(){return this._rowHeight}set rowHeight(p){const u=`${null==p?"":p}`;u!==this._rowHeight&&(this._rowHeight=u,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(p){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===p?new ge:p&&p.indexOf(":")>-1?new ee(p):new te(p)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new s);const p=this._tileCoordinator,u=this._tiles.filter(D=>!D._gridList||D._gridList===this),_=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,u),this._tileStyler.init(this.gutterSize,p,this.cols,_),u.forEach((D,O)=>{const x=p.positions[O];this._tileStyler.setStyle(D,x.row,x.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(p){p&&(this._element.nativeElement.style[p[0]]=p[1])}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(C.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(p,u,_){if(1&p&&e.Suo(_,A,5),2&p){let D;e.iGM(D=e.CRH())&&(u._tiles=D)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(p,u){2&p&&e.uIk("cols",u.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[e._Bn([{provide:I,useExisting:i}])],ngContentSelectors:o,decls:2,vars:0,template:function(p,u){1&p&&(e.F$t(),e.TgZ(0,"div"),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),i})(),ye=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[t.uc,t.BQ],t.uc,t.BQ]}),i})()},5245:(Ge,Q,m)=>{"use strict";m.d(Q,{Hw:()=>Z,Ps:()=>N});var e=m(5e3),t=m(508),y=m(3191),C=m(9808),o=m(9646),M=m(2843),l=m(4128),R=m(727),s=m(8505),L=m(4004),I=m(262),A=m(8746),E=m(3099),P=m(5698),w=m(8138),V=m(2313);const j=["*"];let W;function ee(U){var ve;return(null===(ve=function te(){if(void 0===W&&(W=null,"undefined"!=typeof window)){const U=window;void 0!==U.trustedTypes&&(W=U.trustedTypes.createPolicy("angular#components",{createHTML:ve=>ve}))}return W}())||void 0===ve?void 0:ve.createHTML(U))||U}function ge(U){return Error(`Unable to find icon with the name "${U}"`)}function re(U){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${U}".`)}function de(U){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${U}".`)}class se{constructor(ve,be,Re){this.url=ve,this.svgText=be,this.options=Re}}let ye=(()=>{class U{constructor(be,Re,ze,Oe){this._httpClient=be,this._sanitizer=Re,this._errorHandler=Oe,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=ze}addSvgIcon(be,Re,ze){return this.addSvgIconInNamespace("",be,Re,ze)}addSvgIconLiteral(be,Re,ze){return this.addSvgIconLiteralInNamespace("",be,Re,ze)}addSvgIconInNamespace(be,Re,ze,Oe){return this._addSvgIconConfig(be,Re,new se(ze,null,Oe))}addSvgIconResolver(be){return this._resolvers.push(be),this}addSvgIconLiteralInNamespace(be,Re,ze,Oe){const K=this._sanitizer.sanitize(e.q3G.HTML,ze);if(!K)throw de(ze);const Me=ee(K);return this._addSvgIconConfig(be,Re,new se("",Me,Oe))}addSvgIconSet(be,Re){return this.addSvgIconSetInNamespace("",be,Re)}addSvgIconSetLiteral(be,Re){return this.addSvgIconSetLiteralInNamespace("",be,Re)}addSvgIconSetInNamespace(be,Re,ze){return this._addSvgIconSetConfig(be,new se(Re,null,ze))}addSvgIconSetLiteralInNamespace(be,Re,ze){const Oe=this._sanitizer.sanitize(e.q3G.HTML,Re);if(!Oe)throw de(Re);const K=ee(Oe);return this._addSvgIconSetConfig(be,new se("",K,ze))}registerFontClassAlias(be,Re=be){return this._fontCssClassesByAlias.set(be,Re),this}classNameForFontAlias(be){return this._fontCssClassesByAlias.get(be)||be}setDefaultFontSetClass(be){return this._defaultFontSetClass=be,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(be){const Re=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,be);if(!Re)throw re(be);const ze=this._cachedIconsByUrl.get(Re);return ze?(0,o.of)(a(ze)):this._loadSvgIconFromConfig(new se(be,null)).pipe((0,s.b)(Oe=>this._cachedIconsByUrl.set(Re,Oe)),(0,L.U)(Oe=>a(Oe)))}getNamedSvgIcon(be,Re=""){const ze=p(Re,be);let Oe=this._svgIconConfigs.get(ze);if(Oe)return this._getSvgFromConfig(Oe);if(Oe=this._getIconConfigFromResolvers(Re,be),Oe)return this._svgIconConfigs.set(ze,Oe),this._getSvgFromConfig(Oe);const K=this._iconSetConfigs.get(Re);return K?this._getSvgFromIconSetConfigs(be,K):(0,M._)(ge(ze))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(be){return be.svgText?(0,o.of)(a(this._svgElementFromConfig(be))):this._loadSvgIconFromConfig(be).pipe((0,L.U)(Re=>a(Re)))}_getSvgFromIconSetConfigs(be,Re){const ze=this._extractIconWithNameFromAnySet(be,Re);if(ze)return(0,o.of)(ze);const Oe=Re.filter(K=>!K.svgText).map(K=>this._loadSvgIconSetFromConfig(K).pipe((0,I.K)(Me=>{const z=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,K.url)} failed: ${Me.message}`;return this._errorHandler.handleError(new Error(z)),(0,o.of)(null)})));return(0,l.D)(Oe).pipe((0,L.U)(()=>{const K=this._extractIconWithNameFromAnySet(be,Re);if(!K)throw ge(be);return K}))}_extractIconWithNameFromAnySet(be,Re){for(let ze=Re.length-1;ze>=0;ze--){const Oe=Re[ze];if(Oe.svgText&&Oe.svgText.toString().indexOf(be)>-1){const K=this._svgElementFromConfig(Oe),Me=this._extractSvgIconFromSet(K,be,Oe.options);if(Me)return Me}}return null}_loadSvgIconFromConfig(be){return this._fetchIcon(be).pipe((0,s.b)(Re=>be.svgText=Re),(0,L.U)(()=>this._svgElementFromConfig(be)))}_loadSvgIconSetFromConfig(be){return be.svgText?(0,o.of)(null):this._fetchIcon(be).pipe((0,s.b)(Re=>be.svgText=Re))}_extractSvgIconFromSet(be,Re,ze){const Oe=be.querySelector(`[id="${Re}"]`);if(!Oe)return null;const K=Oe.cloneNode(!0);if(K.removeAttribute("id"),"svg"===K.nodeName.toLowerCase())return this._setSvgAttributes(K,ze);if("symbol"===K.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(K),ze);const Me=this._svgElementFromString(ee(""));return Me.appendChild(K),this._setSvgAttributes(Me,ze)}_svgElementFromString(be){const Re=this._document.createElement("DIV");Re.innerHTML=be;const ze=Re.querySelector("svg");if(!ze)throw Error(" tag not found");return ze}_toSvgElement(be){const Re=this._svgElementFromString(ee("")),ze=be.attributes;for(let Oe=0;Oeee(Ze)),(0,A.x)(()=>this._inProgressUrlFetches.delete(Me)),(0,E.B)());return this._inProgressUrlFetches.set(Me,z),z}_addSvgIconConfig(be,Re,ze){return this._svgIconConfigs.set(p(be,Re),ze),this}_addSvgIconSetConfig(be,Re){const ze=this._iconSetConfigs.get(be);return ze?ze.push(Re):this._iconSetConfigs.set(be,[Re]),this}_svgElementFromConfig(be){if(!be.svgElement){const Re=this._svgElementFromString(be.svgText);this._setSvgAttributes(Re,be.options),be.svgElement=Re}return be.svgElement}_getIconConfigFromResolvers(be,Re){for(let ze=0;zeve?ve.pathname+ve.search:""}}}),x=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],r=x.map(U=>`[${U}]`).join(", "),b=/^url\(['"]?#(.*?)['"]?\)$/;let Z=(()=>{class U extends _{constructor(be,Re,ze,Oe,K){super(be),this._iconRegistry=Re,this._location=Oe,this._errorHandler=K,this._inline=!1,this._currentIconFetch=R.w0.EMPTY,ze||be.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(be){this._inline=(0,y.Ig)(be)}get svgIcon(){return this._svgIcon}set svgIcon(be){be!==this._svgIcon&&(be?this._updateSvgIcon(be):this._svgIcon&&this._clearSvgElement(),this._svgIcon=be)}get fontSet(){return this._fontSet}set fontSet(be){const Re=this._cleanupFontValue(be);Re!==this._fontSet&&(this._fontSet=Re,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(be){const Re=this._cleanupFontValue(be);Re!==this._fontIcon&&(this._fontIcon=Re,this._updateFontIconClasses())}_splitIconName(be){if(!be)return["",""];const Re=be.split(":");switch(Re.length){case 1:return["",Re[0]];case 2:return Re;default:throw Error(`Invalid icon name: "${be}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const be=this._elementsWithExternalReferences;if(be&&be.size){const Re=this._location.getPathname();Re!==this._previousPath&&(this._previousPath=Re,this._prependPathToReferences(Re))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(be){this._clearSvgElement();const Re=be.querySelectorAll("style");for(let Oe=0;Oe{ze.forEach(K=>{Oe.setAttribute(K.name,`url('${be}#${K.value}')`)})})}_cacheChildrenWithExternalReferences(be){const Re=be.querySelectorAll(r),ze=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Oe=0;Oe{const Me=Re[Oe],we=Me.getAttribute(K),z=we?we.match(b):null;if(z){let Ze=ze.get(Me);Ze||(Ze=[],ze.set(Me,Ze)),Ze.push({name:K,value:z[1]})}})}_updateSvgIcon(be){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),be){const[Re,ze]=this._splitIconName(be);Re&&(this._svgNamespace=Re),ze&&(this._svgName=ze),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ze,Re).pipe((0,P.q)(1)).subscribe(Oe=>this._setSvgElement(Oe),Oe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Re}:${ze}! ${Oe.message}`))})}}}return U.\u0275fac=function(be){return new(be||U)(e.Y36(e.SBq),e.Y36(ye),e.$8M("aria-hidden"),e.Y36(D),e.Y36(e.qLn))},U.\u0275cmp=e.Xpm({type:U,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(be,Re){2&be&&(e.uIk("data-mat-icon-type",Re._usingFontIcon()?"font":"svg")("data-mat-icon-name",Re._svgName||Re.fontIcon)("data-mat-icon-namespace",Re._svgNamespace||Re.fontSet),e.ekj("mat-icon-inline",Re.inline)("mat-icon-no-color","primary"!==Re.color&&"accent"!==Re.color&&"warn"!==Re.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(be,Re){1&be&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-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}),U})(),N=(()=>{class U{}return U.\u0275fac=function(be){return new(be||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),U})()},7531:(Ge,Q,m)=>{"use strict";m.d(Q,{Jk:()=>w,Nt:()=>te,c:()=>ee});var e=m(3191),t=m(925),y=m(5e3),C=m(3075),o=m(508),M=m(7322),l=m(7579),R=m(515);const s=(0,t.i$)({passive:!0});let L=(()=>{class ge{constructor(re,de){this._platform=re,this._ngZone=de,this._monitoredElements=new Map}monitor(re){if(!this._platform.isBrowser)return R.E;const de=(0,e.fI)(re),se=this._monitoredElements.get(de);if(se)return se.subject;const ye=new l.x,v="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||de.classList.contains(v)?"cdk-text-field-autofill-end"===a.animationName&&de.classList.contains(v)&&(de.classList.remove(v),this._ngZone.run(()=>ye.next({target:a.target,isAutofilled:!1}))):(de.classList.add(v),this._ngZone.run(()=>ye.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{de.addEventListener("animationstart",i,s),de.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(de,{subject:ye,unlisten:()=>{de.removeEventListener("animationstart",i,s)}}),ye}stopMonitoring(re){const de=(0,e.fI)(re),se=this._monitoredElements.get(de);se&&(se.unlisten(),se.subject.complete(),de.classList.remove("cdk-text-field-autofill-monitored"),de.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(de))}ngOnDestroy(){this._monitoredElements.forEach((re,de)=>this.stopMonitoring(de))}}return ge.\u0275fac=function(re){return new(re||ge)(y.LFG(t.t4),y.LFG(y.R0b))},ge.\u0275prov=y.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})(),E=(()=>{class ge{}return ge.\u0275fac=function(re){return new(re||ge)},ge.\u0275mod=y.oAB({type:ge}),ge.\u0275inj=y.cJS({imports:[[t.ud]]}),ge})();const w=new y.OlP("MAT_INPUT_VALUE_ACCESSOR"),V=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let j=0;const W=(0,o.FD)(class{constructor(ge,le,re,de){this._defaultErrorStateMatcher=ge,this._parentForm=le,this._parentFormGroup=re,this.ngControl=de}});let te=(()=>{class ge extends W{constructor(re,de,se,ye,v,i,a,p,u,_){super(i,ye,v,se),this._elementRef=re,this._platform=de,this._autofillMonitor=p,this._formField=_,this._uid="mat-input-"+j++,this.focused=!1,this.stateChanges=new l.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(x=>(0,t.qK)().has(x));const D=this._elementRef.nativeElement,O=D.nodeName.toLowerCase();this._inputValueAccessor=a||D,this._previousNativeValue=this.value,this.id=this.id,de.IOS&&u.runOutsideAngular(()=>{re.nativeElement.addEventListener("keyup",x=>{const r=x.target;!r.value&&0===r.selectionStart&&0===r.selectionEnd&&(r.setSelectionRange(1,1),r.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===O,this._isTextarea="textarea"===O,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=D.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(re){this._disabled=(0,e.Ig)(re),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(re){this._id=re||this._uid}get required(){var re,de,se,ye;return null!==(ye=null!==(re=this._required)&&void 0!==re?re:null===(se=null===(de=this.ngControl)||void 0===de?void 0:de.control)||void 0===se?void 0:se.hasValidator(C.kI.required))&&void 0!==ye&&ye}set required(re){this._required=(0,e.Ig)(re)}get type(){return this._type}set type(re){this._type=re||"text",this._validateType(),!this._isTextarea&&(0,t.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(re){re!==this.value&&(this._inputValueAccessor.value=re,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(re){this._readonly=(0,e.Ig)(re)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(re=>{this.autofilled=re.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(re){this._elementRef.nativeElement.focus(re)}_focusChanged(re){re!==this.focused&&(this.focused=re,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var re,de;const se=(null===(de=null===(re=this._formField)||void 0===re?void 0:re._hideControlPlaceholder)||void 0===de?void 0:de.call(re))?null:this.placeholder;if(se!==this._previousPlaceholder){const ye=this._elementRef.nativeElement;this._previousPlaceholder=se,se?ye.setAttribute("placeholder",se):ye.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const re=this._elementRef.nativeElement.value;this._previousNativeValue!==re&&(this._previousNativeValue=re,this.stateChanges.next())}_validateType(){V.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let re=this._elementRef.nativeElement.validity;return re&&re.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const re=this._elementRef.nativeElement,de=re.options[0];return this.focused||re.multiple||!this.empty||!!(re.selectedIndex>-1&&de&&de.label)}return this.focused||!this.empty}setDescribedByIds(re){re.length?this._elementRef.nativeElement.setAttribute("aria-describedby",re.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const re=this._elementRef.nativeElement;return this._isNativeSelect&&(re.multiple||re.size>1)}}return ge.\u0275fac=function(re){return new(re||ge)(y.Y36(y.SBq),y.Y36(t.t4),y.Y36(C.a5,10),y.Y36(C.F,8),y.Y36(C.sg,8),y.Y36(o.rD),y.Y36(w,10),y.Y36(L),y.Y36(y.R0b),y.Y36(M.G_,8))},ge.\u0275dir=y.lG2({type:ge,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(re,de){1&re&&y.NdJ("focus",function(){return de._focusChanged(!0)})("blur",function(){return de._focusChanged(!1)})("input",function(){return de._onInput()}),2&re&&(y.Ikx("disabled",de.disabled)("required",de.required),y.uIk("id",de.id)("data-placeholder",de.placeholder)("readonly",de.readonly&&!de._isNativeSelect||null)("aria-invalid",de.empty&&de.required?null:de.errorState)("aria-required",de.required),y.ekj("mat-input-server",de._isServer)("mat-native-select-inline",de._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[y._Bn([{provide:M.Eo,useExisting:ge}]),y.qOj,y.TTD]}),ge})(),ee=(()=>{class ge{}return ge.\u0275fac=function(re){return new(re||ge)},ge.\u0275mod=y.oAB({type:ge}),ge.\u0275inj=y.cJS({providers:[o.rD],imports:[[E,M.lN,o.BQ],E,M.lN]}),ge})()},4623:(Ge,Q,m)=>{"use strict";m.d(Q,{i$:()=>ye,Tg:()=>p,ie:()=>b});var e=m(9808),t=m(5e3),y=m(508),C=m(3191),o=m(7579),M=m(2722),A=(m(8675),m(5664),m(449),m(1159),m(3075),m(4834));const E=["*"],w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],V=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],ge=(0,y.Id)((0,y.Kr)(class{})),le=(0,y.Kr)(class{}),re=new t.OlP("MatList"),de=new t.OlP("MatNavList");let ye=(()=>{class Z extends ge{constructor(U){super(),this._elementRef=U,this._stateChanges=new o.x,"action-list"===this._getListType()&&U.nativeElement.classList.add("mat-action-list")}_getListType(){const U=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===U?"list":"mat-action-list"===U?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Z.\u0275fac=function(U){return new(U||Z)(t.Y36(t.SBq))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:re,useExisting:Z}]),t.qOj,t.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(U,ve){1&U&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin: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{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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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}),Z})(),v=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275dir=t.lG2({type:Z,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Z})(),i=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275dir=t.lG2({type:Z,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Z})(),p=(()=>{class Z extends le{constructor(U,ve,be,Re){super(),this._element=U,this._isInteractiveList=!1,this._destroyed=new o.x,this._disabled=!1,this._isInteractiveList=!!(be||Re&&"action-list"===Re._getListType()),this._list=be||Re;const ze=this._getHostElement();"button"===ze.nodeName.toLowerCase()&&!ze.hasAttribute("type")&&ze.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,M.R)(this._destroyed)).subscribe(()=>{ve.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(U){this._disabled=(0,C.Ig)(U)}ngAfterContentInit(){(0,y.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 Z.\u0275fac=function(U){return new(U||Z)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(de,8),t.Y36(re,8))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(U,ve,be){if(1&U&&(t.Suo(be,v,5),t.Suo(be,i,5),t.Suo(be,y.X2,5)),2&U){let Re;t.iGM(Re=t.CRH())&&(ve._avatar=Re.first),t.iGM(Re=t.CRH())&&(ve._icon=Re.first),t.iGM(Re=t.CRH())&&(ve._lines=Re)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(U,ve){2&U&&t.ekj("mat-list-item-disabled",ve.disabled)("mat-list-item-avatar",ve._avatar||ve._icon)("mat-list-item-with-avatar",ve._avatar||ve._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:V,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(U,ve){1&U&&(t.F$t(w),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.Hsn(2),t.TgZ(3,"div",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&U&&(t.xp6(1),t.Q6J("matRippleTrigger",ve._getHostElement())("matRippleDisabled",ve._isRippleDisabled()))},directives:[y.wG],encapsulation:2,changeDetection:0}),Z})(),b=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=t.oAB({type:Z}),Z.\u0275inj=t.cJS({imports:[[y.uc,y.si,y.BQ,y.us,e.ez],y.uc,y.BQ,y.us,A.t]}),Z})()},2181:(Ge,Q,m)=>{"use strict";m.d(Q,{VK:()=>Oe,OP:()=>U,Tx:()=>Ne,p6:()=>Fe});var e=m(5664),t=m(3191),y=m(1159),C=m(5e3),o=m(7579),M=m(727),l=m(6451),R=m(9646),s=m(3101),L=m(8675),I=m(3900),A=m(5698),E=m(9300),P=m(2722),w=m(4086),V=m(1777),j=m(7429),W=m(9808),te=m(508),ee=m(9776),ge=m(925),le=m(226),re=m(5303);const de=["mat-menu-item",""];function se(ce,Le){1&ce&&(C.O4$(),C.TgZ(0,"svg",2),C._UZ(1,"polygon",3),C.qZA())}const ye=["*"];function v(ce,Le){if(1&ce){const Pe=C.EpF();C.TgZ(0,"div",0),C.NdJ("keydown",function($){return C.CHM(Pe),C.oxw()._handleKeydown($)})("click",function(){return C.CHM(Pe),C.oxw().closed.emit("click")})("@transformMenu.start",function($){return C.CHM(Pe),C.oxw()._onAnimationStart($)})("@transformMenu.done",function($){return C.CHM(Pe),C.oxw()._onAnimationDone($)}),C.TgZ(1,"div",1),C.Hsn(2),C.qZA(),C.qZA()}if(2&ce){const Pe=C.oxw();C.Q6J("id",Pe.panelId)("ngClass",Pe._classList)("@transformMenu",Pe._panelAnimationState),C.uIk("aria-label",Pe.ariaLabel||null)("aria-labelledby",Pe.ariaLabelledby||null)("aria-describedby",Pe.ariaDescribedby||null)}}const i={transformMenu:(0,V.X$)("transformMenu",[(0,V.SB)("void",(0,V.oB)({opacity:0,transform:"scale(0.8)"})),(0,V.eR)("void => enter",(0,V.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({opacity:1,transform:"scale(1)"}))),(0,V.eR)("* => void",(0,V.jt)("100ms 25ms linear",(0,V.oB)({opacity:0})))]),fadeInItems:(0,V.X$)("fadeInItems",[(0,V.SB)("showing",(0,V.oB)({opacity:1})),(0,V.eR)("void => *",[(0,V.oB)({opacity:0}),(0,V.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},u=new C.OlP("MatMenuContent"),Z=new C.OlP("MAT_MENU_PANEL"),N=(0,te.Kr)((0,te.Id)(class{}));let U=(()=>{class ce extends N{constructor(Pe,q,$,oe,Ce){super(),this._elementRef=Pe,this._focusMonitor=$,this._parentMenu=oe,this._changeDetectorRef=Ce,this.role="menuitem",this._hovered=new o.x,this._focused=new o.x,this._highlighted=!1,this._triggersSubmenu=!1,oe&&oe.addItem&&oe.addItem(this)}focus(Pe,q){this._focusMonitor&&Pe?this._focusMonitor.focusVia(this._getHostElement(),Pe,q):this._getHostElement().focus(q),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(Pe){this.disabled&&(Pe.preventDefault(),Pe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var Pe;const q=this._elementRef.nativeElement.cloneNode(!0),$=q.querySelectorAll("mat-icon, .material-icons");for(let oe=0;oe<$.length;oe++)$[oe].remove();return(null===(Pe=q.textContent)||void 0===Pe?void 0:Pe.trim())||""}_setHighlighted(Pe){var q;this._highlighted=Pe,null===(q=this._changeDetectorRef)||void 0===q||q.markForCheck()}}return ce.\u0275fac=function(Pe){return new(Pe||ce)(C.Y36(C.SBq),C.Y36(W.K0),C.Y36(e.tE),C.Y36(Z,8),C.Y36(C.sBO))},ce.\u0275cmp=C.Xpm({type:ce,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(Pe,q){1&Pe&&C.NdJ("click",function(oe){return q._checkDisabled(oe)})("mouseenter",function(){return q._handleMouseEnter()}),2&Pe&&(C.uIk("role",q.role)("tabindex",q._getTabIndex())("aria-disabled",q.disabled.toString())("disabled",q.disabled||null),C.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",q._highlighted)("mat-menu-item-submenu-trigger",q._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[C.qOj],attrs:de,ngContentSelectors:ye,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(Pe,q){1&Pe&&(C.F$t(),C.Hsn(0),C._UZ(1,"div",0),C.YNc(2,se,2,0,"svg",1)),2&Pe&&(C.xp6(1),C.Q6J("matRippleDisabled",q.disableRipple||q.disabled)("matRippleTrigger",q._getHostElement()),C.xp6(1),C.Q6J("ngIf",q._triggersSubmenu))},directives:[te.wG,W.O5],encapsulation:2,changeDetection:0}),ce})();const ve=new C.OlP("mat-menu-default-options",{providedIn:"root",factory:function be(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Re=0,ze=(()=>{class ce{constructor(Pe,q,$){this._elementRef=Pe,this._ngZone=q,this._defaultOptions=$,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new C.n_E,this._tabSubscription=M.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new C.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Re++}get xPosition(){return this._xPosition}set xPosition(Pe){this._xPosition=Pe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Pe){this._yPosition=Pe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Pe){this._overlapTrigger=(0,t.Ig)(Pe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Pe){this._hasBackdrop=(0,t.Ig)(Pe)}set panelClass(Pe){const q=this._previousPanelClass;q&&q.length&&q.split(" ").forEach($=>{this._classList[$]=!1}),this._previousPanelClass=Pe,Pe&&Pe.length&&(Pe.split(" ").forEach($=>{this._classList[$]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Pe){this.panelClass=Pe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,I.w)(Pe=>(0,l.T)(...Pe.map(q=>q._focused)))).subscribe(Pe=>this._keyManager.updateActiveItem(Pe))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,I.w)(q=>(0,l.T)(...q.map($=>$._hovered))))}addItem(Pe){}removeItem(Pe){}_handleKeydown(Pe){const q=Pe.keyCode,$=this._keyManager;switch(q){case y.hY:(0,y.Vb)(Pe)||(Pe.preventDefault(),this.closed.emit("keydown"));break;case y.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case y.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(q===y.LH||q===y.JH)&&$.setFocusOrigin("keyboard"),$.onKeydown(Pe)}}focusFirstItem(Pe="program"){this.lazyContent?this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>this._focusFirstItem(Pe)):this._focusFirstItem(Pe)}_focusFirstItem(Pe){const q=this._keyManager;if(q.setFocusOrigin(Pe).setFirstItemActive(),!q.activeItem&&this._directDescendantItems.length){let $=this._directDescendantItems.first._getHostElement().parentElement;for(;$;){if("menu"===$.getAttribute("role")){$.focus();break}$=$.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Pe){const q=Math.min(this._baseElevation+Pe,24),$=`${this._elevationPrefix}${q}`,oe=Object.keys(this._classList).find(Ce=>Ce.startsWith(this._elevationPrefix));(!oe||oe===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[$]=!0,this._previousElevation=$)}setPositionClasses(Pe=this.xPosition,q=this.yPosition){const $=this._classList;$["mat-menu-before"]="before"===Pe,$["mat-menu-after"]="after"===Pe,$["mat-menu-above"]="above"===q,$["mat-menu-below"]="below"===q}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Pe){this._animationDone.next(Pe),this._isAnimating=!1}_onAnimationStart(Pe){this._isAnimating=!0,"enter"===Pe.toState&&0===this._keyManager.activeItemIndex&&(Pe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,L.O)(this._allItems)).subscribe(Pe=>{this._directDescendantItems.reset(Pe.filter(q=>q._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ce.\u0275fac=function(Pe){return new(Pe||ce)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(ve))},ce.\u0275dir=C.lG2({type:ce,contentQueries:function(Pe,q,$){if(1&Pe&&(C.Suo($,u,5),C.Suo($,U,5),C.Suo($,U,4)),2&Pe){let oe;C.iGM(oe=C.CRH())&&(q.lazyContent=oe.first),C.iGM(oe=C.CRH())&&(q._allItems=oe),C.iGM(oe=C.CRH())&&(q.items=oe)}},viewQuery:function(Pe,q){if(1&Pe&&C.Gf(C.Rgc,5),2&Pe){let $;C.iGM($=C.CRH())&&(q.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"}}),ce})(),Oe=(()=>{class ce extends ze{constructor(Pe,q,$){super(Pe,q,$),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ce.\u0275fac=function(Pe){return new(Pe||ce)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(ve))},ce.\u0275cmp=C.Xpm({type:ce,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Pe,q){2&Pe&&C.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[C._Bn([{provide:Z,useExisting:ce}]),C.qOj],ngContentSelectors:ye,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Pe,q){1&Pe&&(C.F$t(),C.YNc(0,v,3,6,"ng-template"))},directives:[W.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-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]{pointer-events:none}.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}),ce})();const K=new C.OlP("mat-menu-scroll-strategy"),we={provide:K,deps:[ee.aV],useFactory:function Me(ce){return()=>ce.scrollStrategies.reposition()}},Ze=(0,ge.i$)({passive:!0});let vt=(()=>{class ce{constructor(Pe,q,$,oe,Ce,Ue,lt,nt){this._overlay=Pe,this._element=q,this._viewContainerRef=$,this._menuItemInstance=Ue,this._dir=lt,this._focusMonitor=nt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=M.w0.EMPTY,this._hoverSubscription=M.w0.EMPTY,this._menuCloseSubscription=M.w0.EMPTY,this._handleTouchStart=ft=>{(0,e.yG)(ft)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new C.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new C.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=oe,this._parentMaterialMenu=Ce instanceof ze?Ce:void 0,q.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ze),Ue&&(Ue._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Pe){this.menu=Pe}get menu(){return this._menu}set menu(Pe){Pe!==this._menu&&(this._menu=Pe,this._menuCloseSubscription.unsubscribe(),Pe&&(this._menuCloseSubscription=Pe.close.subscribe(q=>{this._destroyMenu(q),("click"===q||"tab"===q)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(q)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ze),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 Pe=this._createOverlay(),q=Pe.getConfig();this._setPosition(q.positionStrategy),q.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,Pe.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ze&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(Pe,q){this._focusMonitor&&Pe?this._focusMonitor.focusVia(this._element,Pe,q):this._element.nativeElement.focus(q)}updatePosition(){var Pe;null===(Pe=this._overlayRef)||void 0===Pe||Pe.updatePosition()}_destroyMenu(Pe){if(!this._overlayRef||!this.menuOpen)return;const q=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Pe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,q instanceof ze?(q._resetAnimation(),q.lazyContent?q._animationDone.pipe((0,E.h)($=>"void"===$.toState),(0,A.q)(1),(0,P.R)(q.lazyContent._attached)).subscribe({next:()=>q.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),q.lazyContent&&q.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 Pe=0,q=this.menu.parentMenu;for(;q;)Pe++,q=q.parentMenu;this.menu.setElevation(Pe)}}_setIsMenuOpen(Pe){this._menuOpen=Pe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Pe)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const Pe=this._getOverlayConfig();this._subscribeToPositions(Pe.positionStrategy),this._overlayRef=this._overlay.create(Pe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ee.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(Pe){this.menu.setPositionClasses&&Pe.positionChanges.subscribe(q=>{this.menu.setPositionClasses("start"===q.connectionPair.overlayX?"after":"before","top"===q.connectionPair.overlayY?"below":"above")})}_setPosition(Pe){let[q,$]="before"===this.menu.xPosition?["end","start"]:["start","end"],[oe,Ce]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ue,lt]=[oe,Ce],[nt,ft]=[q,$],it=0;this.triggersSubmenu()?(ft=q="before"===this.menu.xPosition?"start":"end",$=nt="end"===q?"start":"end",it="bottom"===oe?8:-8):this.menu.overlapTrigger||(Ue="top"===oe?"bottom":"top",lt="top"===Ce?"bottom":"top"),Pe.withPositions([{originX:q,originY:Ue,overlayX:nt,overlayY:oe,offsetY:it},{originX:$,originY:Ue,overlayX:ft,overlayY:oe,offsetY:it},{originX:q,originY:lt,overlayX:nt,overlayY:Ce,offsetY:-it},{originX:$,originY:lt,overlayX:ft,overlayY:Ce,offsetY:-it}])}_menuClosingActions(){const Pe=this._overlayRef.backdropClick(),q=this._overlayRef.detachments(),$=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,R.of)(),oe=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,E.h)(Ce=>Ce!==this._menuItemInstance),(0,E.h)(()=>this._menuOpen)):(0,R.of)();return(0,l.T)(Pe,$,oe,q)}_handleMousedown(Pe){(0,e.X6)(Pe)||(this._openedBy=0===Pe.button?"mouse":void 0,this.triggersSubmenu()&&Pe.preventDefault())}_handleKeydown(Pe){const q=Pe.keyCode;(q===y.K5||q===y.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(q===y.SV&&"ltr"===this.dir||q===y.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Pe){this.triggersSubmenu()?(Pe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,E.h)(Pe=>Pe===this._menuItemInstance&&!Pe.disabled),(0,w.g)(0,s.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,A.q)(1),(0,w.g)(0,s.E),(0,P.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new j.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ce.\u0275fac=function(Pe){return new(Pe||ce)(C.Y36(ee.aV),C.Y36(C.SBq),C.Y36(C.s_b),C.Y36(K),C.Y36(Z,8),C.Y36(U,10),C.Y36(le.Is,8),C.Y36(e.tE))},ce.\u0275dir=C.lG2({type:ce,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(Pe,q){1&Pe&&C.NdJ("click",function(oe){return q._handleClick(oe)})("mousedown",function(oe){return q._handleMousedown(oe)})("keydown",function(oe){return q._handleKeydown(oe)}),2&Pe&&C.uIk("aria-expanded",q.menuOpen||null)("aria-controls",q.menuOpen?q.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ce})(),Fe=(()=>{class ce extends vt{}return ce.\u0275fac=function(){let Le;return function(q){return(Le||(Le=C.n5z(ce)))(q||ce)}}(),ce.\u0275dir=C.lG2({type:ce,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[C.qOj]}),ce})(),Ne=(()=>{class ce{}return ce.\u0275fac=function(Pe){return new(Pe||ce)},ce.\u0275mod=C.oAB({type:ce}),ce.\u0275inj=C.cJS({providers:[we],imports:[[W.ez,te.BQ,te.si,ee.U8],re.ZD,te.BQ]}),ce})()},6087:(Ge,Q,m)=>{"use strict";m.d(Q,{NW:()=>de,ye:()=>V,TU:()=>se});var e=m(9808),t=m(5e3),y=m(508),C=m(7423),o=m(4107),M=m(7238),l=m(3191),R=m(7579),s=m(7322);function L(ye,v){if(1&ye&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&ye){const i=v.$implicit;t.Q6J("value",i),t.xp6(1),t.hij(" ",i," ")}}function I(ye,v){if(1&ye){const i=t.EpF();t.TgZ(0,"mat-form-field",16),t.TgZ(1,"mat-select",17),t.NdJ("selectionChange",function(p){return t.CHM(i),t.oxw(2)._changePageSize(p.value)}),t.YNc(2,L,2,2,"mat-option",18),t.qZA(),t.qZA()}if(2&ye){const i=t.oxw(2);t.Q6J("appearance",i._formFieldAppearance)("color",i.color),t.xp6(1),t.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",i._displayedPageSizeOptions)}}function A(ye,v){if(1&ye&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&ye){const i=t.oxw(2);t.xp6(1),t.Oqu(i.pageSize)}}function E(ye,v){if(1&ye&&(t.TgZ(0,"div",12),t.TgZ(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,I,3,6,"mat-form-field",14),t.YNc(4,A,2,1,"div",15),t.qZA()),2&ye){const i=t.oxw();t.xp6(2),t.hij(" ",i._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function P(ye,v){if(1&ye){const i=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){return t.CHM(i),t.oxw().firstPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA(),t.qZA()}if(2&ye){const i=t.oxw();t.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.firstPageLabel)}}function w(ye,v){if(1&ye){const i=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){return t.CHM(i),t.oxw().lastPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA(),t.qZA()}if(2&ye){const i=t.oxw();t.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.lastPageLabel)}}let V=(()=>{class ye{constructor(){this.changes=new R.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,a,p)=>{if(0==p||0==a)return`0 of ${p}`;const u=i*a;return`${u+1} \u2013 ${u<(p=Math.max(p,0))?Math.min(u+a,p):u+a} of ${p}`}}}return ye.\u0275fac=function(i){return new(i||ye)},ye.\u0275prov=t.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const W={provide:V,deps:[[new t.FiY,new t.tp0,V]],useFactory:function j(ye){return ye||new V}},ge=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),le=(0,y.Id)((0,y.dB)(class{}));let re=(()=>{class ye extends le{constructor(i,a,p){if(super(),this._intl=i,this._changeDetectorRef=a,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new t.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),p){const{pageSize:u,pageSizeOptions:_,hidePageSize:D,showFirstLastButtons:O}=p;null!=u&&(this._pageSize=u),null!=_&&(this._pageSizeOptions=_),null!=D&&(this._hidePageSize=D),null!=O&&(this._showFirstLastButtons=O)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,l.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,l.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,l.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(a=>(0,l.su)(a)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,l.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,l.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._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex--,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-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ye.\u0275fac=function(i){t.$Z()},ye.\u0275dir=t.lG2({type:ye,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[t.qOj]}),ye})(),de=(()=>{class ye extends re{constructor(i,a,p){super(i,a,p),p&&null!=p.formFieldAppearance&&(this._formFieldAppearance=p.formFieldAppearance)}}return ye.\u0275fac=function(i){return new(i||ye)(t.Y36(V),t.Y36(t.sBO),t.Y36(ge,8))},ye.\u0275cmp=t.Xpm({type:ye,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.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,a){1&i&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,E,5,3,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,P,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return a.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA(),t.qZA(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return a.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA(),t.qZA(),t.YNc(13,w,3,5,"button",11),t.qZA(),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.Q6J("ngIf",!a.hidePageSize),t.xp6(3),t.hij(" ",a._intl.getRangeLabel(a.pageIndex,a.pageSize,a.length)," "),t.xp6(1),t.Q6J("ngIf",a.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",a._intl.previousPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),t.uIk("aria-label",a._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",a._intl.nextPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),t.uIk("aria-label",a._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",a.showFirstLastButtons))},directives:[e.O5,C.lW,M.gM,s.KE,o.gD,e.sg,y.ey],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}),ye})(),se=(()=>{class ye{}return ye.\u0275fac=function(i){return new(i||ye)},ye.\u0275mod=t.oAB({type:ye}),ye.\u0275inj=t.cJS({providers:[W],imports:[[e.ez,C.ot,o.LD,M.AV,y.BQ]]}),ye})()},5899:(Ge,Q,m)=>{"use strict";m.d(Q,{pW:()=>w,Cv:()=>j});var e=m(5e3),t=m(9808),y=m(508),C=m(3191),o=m(6360),M=m(727),l=m(4968),R=m(9300);const s=["primaryValueBar"],L=(0,y.pj)(class{constructor(W){this._elementRef=W}},"primary"),I=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function A(){const W=(0,e.f3M)(t.K0),te=W?W.location:null;return{getPathname:()=>te?te.pathname+te.search:""}}}),E=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let P=0,w=(()=>{class W extends L{constructor(ee,ge,le,re,de){super(ee),this._ngZone=ge,this._animationMode=le,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=M.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+P++;const se=re?re.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${se}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===le,de&&(de.color&&(this.color=this.defaultColor=de.color),this.mode=de.mode||this.mode)}get value(){return this._value}set value(ee){this._value=V((0,C.su)(ee)||0)}get bufferValue(){return this._bufferValue}set bufferValue(ee){this._bufferValue=V(ee||0)}_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 ee=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,l.R)(ee,"transitionend").pipe((0,R.h)(ge=>ge.target===ee)).subscribe(()=>{("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return W.\u0275fac=function(ee){return new(ee||W)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(o.Qb,8),e.Y36(I,8),e.Y36(E,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-bar"]],viewQuery:function(ee,ge){if(1&ee&&e.Gf(s,5),2&ee){let le;e.iGM(le=e.CRH())&&(ge._primaryValueBar=le.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ee,ge){2&ee&&(e.uIk("aria-valuenow","indeterminate"===ge.mode||"query"===ge.mode?null:ge.value)("mode",ge.mode),e.ekj("_mat-animation-noopable",ge._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(ee,ge){1&ee&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.TgZ(2,"defs"),e.TgZ(3,"pattern",2),e._UZ(4,"circle",3),e.qZA(),e.qZA(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5),e._UZ(7,"div",6,7),e._UZ(9,"div",8),e.qZA()),2&ee&&(e.xp6(3),e.Q6J("id",ge.progressbarId),e.xp6(2),e.uIk("fill",ge._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",ge._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",ge._primaryTransform()))},directives:[t.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),W})();function V(W,te=0,ee=100){return Math.max(te,Math.min(ee,W))}let j=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[[t.ez,y.BQ],y.BQ]}),W})()},773:(Ge,Q,m)=>{"use strict";m.d(Q,{Cq:()=>ee,$g:()=>te});var e=m(5e3),t=m(9808),y=m(508),C=m(3191),o=m(925),M=m(6360);function l(ge,le){if(1&ge&&(e.O4$(),e._UZ(0,"circle",3)),2&ge){const re=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function R(ge,le){if(1&ge&&(e.O4$(),e._UZ(0,"circle",3)),2&ge){const re=e.oxw();e.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function s(ge,le){if(1&ge&&(e.O4$(),e._UZ(0,"circle",3)),2&ge){const re=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function L(ge,le){if(1&ge&&(e.O4$(),e._UZ(0,"circle",3)),2&ge){const re=e.oxw();e.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}const P=(0,y.pj)(class{constructor(ge){this._elementRef=ge}},"primary"),w=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function V(){return{diameter:100}}});class W extends P{constructor(le,re,de,se,ye){super(le),this._document=de,this._diameter=100,this._value=0,this.mode="determinate";const v=W._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),v.has(de.head)||v.set(de.head,new Set([100])),this._noopAnimations="NoopAnimations"===se&&!!ye&&!ye._forceAnimations,ye&&(ye.diameter&&(this.diameter=ye.diameter),ye.strokeWidth&&(this.strokeWidth=ye.strokeWidth))}get diameter(){return this._diameter}set diameter(le){this._diameter=(0,C.su)(le),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(le){this._strokeWidth=(0,C.su)(le)}get value(){return"determinate"===this.mode?this._value:0}set value(le){this._value=Math.max(0,Math.min(100,(0,C.su)(le)))}ngOnInit(){const le=this._elementRef.nativeElement;this._styleRoot=(0,o.kV)(le)||this._document.head,this._attachStyleNode(),le.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const le=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${le} ${le}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const le=this._styleRoot,re=this._diameter,de=W._diameters;let se=de.get(le);if(!se||!se.has(re)){const ye=this._document.createElement("style");ye.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),ye.textContent=this._getAnimationText(),le.appendChild(ye),se||(se=new Set,de.set(le,se)),se.add(re)}}_getAnimationText(){const le=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*le).replace(/END_VALUE/g,""+.2*le).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}W._diameters=new WeakMap,W.\u0275fac=function(le){return new(le||W)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(le,re){2&le&&(e.uIk("aria-valuemin","determinate"===re.mode?0:null)("aria-valuemax","determinate"===re.mode?100:null)("aria-valuenow","determinate"===re.mode?re.value:null)("mode",re.mode),e.Udp("width",re.diameter,"px")("height",re.diameter,"px"),e.ekj("_mat-animation-noopable",re._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(le,re){1&le&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,l,1,9,"circle",1),e.YNc(2,R,1,7,"circle",2),e.qZA()),2&le&&(e.Udp("width",re.diameter,"px")("height",re.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===re.mode),e.uIk("viewBox",re._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.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;transform-origin:center;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 te=(()=>{class ge extends W{constructor(re,de,se,ye,v){super(re,de,se,ye,v),this.mode="indeterminate"}}return ge.\u0275fac=function(re){return new(re||ge)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},ge.\u0275cmp=e.Xpm({type:ge,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(re,de){2&re&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.ekj("_mat-animation-noopable",de._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(re,de){1&re&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,s,1,9,"circle",1),e.YNc(2,L,1,7,"circle",2),e.qZA()),2&re&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===de.mode),e.uIk("viewBox",de._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.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;transform-origin:center;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}),ge})(),ee=(()=>{class ge{}return ge.\u0275fac=function(re){return new(re||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({imports:[[y.BQ,t.ez],y.BQ]}),ge})()},9814:(Ge,Q,m)=>{"use strict";m.d(Q,{U0:()=>le,VQ:()=>W,Fk:()=>re});var e=m(5e3),t=m(508),y=m(3191),C=m(3075),o=m(6360),M=m(5664),l=m(449);const R=["input"],s=function(de){return{enterDuration:de}},L=["*"],I=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function A(){return{color:"accent"}}});let E=0;const P={provide:C.JU,useExisting:(0,e.Gpc)(()=>W),multi:!0};class w{constructor(se,ye){this.source=se,this.value=ye}}const V=new e.OlP("MatRadioGroup");let j=(()=>{class de{constructor(ye){this._changeDetector=ye,this._value=null,this._name="mat-radio-group-"+E++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(ye){this._name=ye,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ye){this._labelPosition="before"===ye?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ye){this._value!==ye&&(this._value=ye,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ye){this._selected=ye,this.value=ye?ye.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ye){this._disabled=(0,y.Ig)(ye),this._markRadiosForCheck()}get required(){return this._required}set required(ye){this._required=(0,y.Ig)(ye),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ye=>{ye.name=this.name,ye._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(v=>{v.checked=this.value===v.value,v.checked&&(this._selected=v)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ye=>ye._markForCheck())}writeValue(ye){this.value=ye,this._changeDetector.markForCheck()}registerOnChange(ye){this._controlValueAccessorChangeFn=ye}registerOnTouched(ye){this.onTouched=ye}setDisabledState(ye){this.disabled=ye,this._changeDetector.markForCheck()}}return de.\u0275fac=function(ye){return new(ye||de)(e.Y36(e.sBO))},de.\u0275dir=e.lG2({type:de,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),de})(),W=(()=>{class de extends j{}return de.\u0275fac=function(){let se;return function(v){return(se||(se=e.n5z(de)))(v||de)}}(),de.\u0275dir=e.lG2({type:de,selectors:[["mat-radio-group"]],contentQueries:function(ye,v,i){if(1&ye&&e.Suo(i,le,5),2&ye){let a;e.iGM(a=e.CRH())&&(v._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([P,{provide:V,useExisting:de}]),e.qOj]}),de})();class te{constructor(se){this._elementRef=se}}const ee=(0,t.Kr)((0,t.sb)(te));let ge=(()=>{class de extends ee{constructor(ye,v,i,a,p,u,_,D){super(v),this._changeDetector=i,this._focusMonitor=a,this._radioDispatcher=p,this._providerOverride=_,this._uniqueId="mat-radio-"+ ++E,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ye,this._noopAnimations="NoopAnimations"===u,D&&(this.tabIndex=(0,y.su)(D,0)),this._removeUniqueSelectionListener=p.listen((O,x)=>{O!==this.id&&x===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ye){const v=(0,y.Ig)(ye);this._checked!==v&&(this._checked=v,v&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!v&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),v&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ye){this._value!==ye&&(this._value=ye,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ye),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ye){this._labelPosition=ye}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ye){this._setDisabled((0,y.Ig)(ye))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ye){this._required=(0,y.Ig)(ye)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ye){this._color=ye}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ye,v){v?this._focusMonitor.focusVia(this._inputElement,v,ye):this._inputElement.nativeElement.focus(ye)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ye=>{!ye&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new w(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ye){ye.stopPropagation()}_onInputInteraction(ye){if(ye.stopPropagation(),!this.checked&&!this.disabled){const v=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),v&&this.radioGroup._emitChangeEvent())}}_setDisabled(ye){this._disabled!==ye&&(this._disabled=ye,this._changeDetector.markForCheck())}}return de.\u0275fac=function(ye){e.$Z()},de.\u0275dir=e.lG2({type:de,viewQuery:function(ye,v){if(1&ye&&e.Gf(R,5),2&ye){let i;e.iGM(i=e.CRH())&&(v._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:[e.qOj]}),de})(),le=(()=>{class de extends ge{constructor(ye,v,i,a,p,u,_,D){super(ye,v,i,a,p,u,_,D)}}return de.\u0275fac=function(ye){return new(ye||de)(e.Y36(V,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(M.tE),e.Y36(l.A8),e.Y36(o.Qb,8),e.Y36(I,8),e.$8M("tabindex"))},de.\u0275cmp=e.Xpm({type:de,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ye,v){1&ye&&e.NdJ("focus",function(){return v._inputElement.nativeElement.focus()}),2&ye&&(e.uIk("tabindex",null)("id",v.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",v.checked)("mat-radio-disabled",v.disabled)("_mat-animation-noopable",v._noopAnimations)("mat-primary","primary"===v.color)("mat-accent","accent"===v.color)("mat-warn","warn"===v.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:L,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(ye,v){if(1&ye&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(a){return v._onInputInteraction(a)})("click",function(a){return v._onInputClick(a)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&ye){const i=e.MAs(1);e.uIk("for",v.inputId),e.xp6(5),e.Q6J("id",v.inputId)("checked",v.checked)("disabled",v.disabled)("tabIndex",v.tabIndex)("required",v.required),e.uIk("name",v.name)("value",v.value)("aria-label",v.ariaLabel)("aria-labelledby",v.ariaLabelledby)("aria-describedby",v.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",i)("matRippleDisabled",v._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,s,v._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==v.labelPosition)}},directives:[t.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-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;-moz-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{bottom:0;left:50%}.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}),de})(),re=(()=>{class de{}return de.\u0275fac=function(ye){return new(ye||de)},de.\u0275mod=e.oAB({type:de}),de.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),de})()},4107:(Ge,Q,m)=>{"use strict";m.d(Q,{gD:()=>Ne,LD:()=>ce,$L:()=>vt});var e=m(9776),t=m(9808),y=m(5e3),C=m(508),o=m(7322),M=m(5303),l=m(5664),R=m(3191),s=m(449),L=m(1159),I=m(3075),A=m(7579),E=m(9770),P=m(6451),w=m(8675),V=m(3900),j=m(5698),W=m(9300),te=m(4004),ee=m(1884),ge=m(2722),le=m(1777),re=m(226);const de=["trigger"],se=["panel"];function ye(Le,Pe){if(1&Le&&(y.TgZ(0,"span",8),y._uU(1),y.qZA()),2&Le){const q=y.oxw();y.xp6(1),y.Oqu(q.placeholder)}}function v(Le,Pe){if(1&Le&&(y.TgZ(0,"span",12),y._uU(1),y.qZA()),2&Le){const q=y.oxw(2);y.xp6(1),y.Oqu(q.triggerValue)}}function i(Le,Pe){1&Le&&y.Hsn(0,0,["*ngSwitchCase","true"])}function a(Le,Pe){if(1&Le&&(y.TgZ(0,"span",9),y.YNc(1,v,2,1,"span",10),y.YNc(2,i,1,0,"ng-content",11),y.qZA()),2&Le){const q=y.oxw();y.Q6J("ngSwitch",!!q.customTrigger),y.xp6(2),y.Q6J("ngSwitchCase",!0)}}function p(Le,Pe){if(1&Le){const q=y.EpF();y.TgZ(0,"div",13),y.TgZ(1,"div",14,15),y.NdJ("@transformPanel.done",function(oe){return y.CHM(q),y.oxw()._panelDoneAnimatingStream.next(oe.toState)})("keydown",function(oe){return y.CHM(q),y.oxw()._handleKeydown(oe)}),y.Hsn(3,1),y.qZA(),y.qZA()}if(2&Le){const q=y.oxw();y.Q6J("@transformPanelWrap",void 0),y.xp6(1),y.Gre("mat-select-panel ",q._getPanelTheme(),""),y.Udp("transform-origin",q._transformOrigin)("font-size",q._triggerFontSize,"px"),y.Q6J("ngClass",q.panelClass)("@transformPanel",q.multiple?"showing-multiple":"showing"),y.uIk("id",q.id+"-panel")("aria-multiselectable",q.multiple)("aria-label",q.ariaLabel||null)("aria-labelledby",q._getPanelAriaLabelledby())}}const u=[[["mat-select-trigger"]],"*"],_=["mat-select-trigger","*"],D={transformPanelWrap:(0,le.X$)("transformPanelWrap",[(0,le.eR)("* => void",(0,le.IO)("@transformPanel",[(0,le.pV)()],{optional:!0}))]),transformPanel:(0,le.X$)("transformPanel",[(0,le.SB)("void",(0,le.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,le.SB)("showing",(0,le.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,le.SB)("showing-multiple",(0,le.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,le.eR)("void => *",(0,le.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,le.eR)("* => void",(0,le.jt)("100ms 25ms linear",(0,le.oB)({opacity:0})))])};let b=0;const Z=256,ze=new y.OlP("mat-select-scroll-strategy"),K=new y.OlP("MAT_SELECT_CONFIG"),Me={provide:ze,deps:[e.aV],useFactory:function Oe(Le){return()=>Le.scrollStrategies.reposition()}};class we{constructor(Pe,q){this.source=Pe,this.value=q}}const z=(0,C.Kr)((0,C.sb)((0,C.Id)((0,C.FD)(class{constructor(Le,Pe,q,$,oe){this._elementRef=Le,this._defaultErrorStateMatcher=Pe,this._parentForm=q,this._parentFormGroup=$,this.ngControl=oe}})))),Ze=new y.OlP("MatSelectTrigger");let vt=(()=>{class Le{}return Le.\u0275fac=function(q){return new(q||Le)},Le.\u0275dir=y.lG2({type:Le,selectors:[["mat-select-trigger"]],features:[y._Bn([{provide:Ze,useExisting:Le}])]}),Le})(),Fe=(()=>{class Le extends z{constructor(q,$,oe,Ce,Ue,lt,nt,ft,it,rt,Mt,Zt,Ft,Vt){var Ii,jt,ei;super(Ue,Ce,nt,ft,rt),this._viewportRuler=q,this._changeDetectorRef=$,this._ngZone=oe,this._dir=lt,this._parentFormField=it,this._liveAnnouncer=Ft,this._defaultOptions=Vt,this._panelOpen=!1,this._compareWith=(ki,ai)=>ki===ai,this._uid="mat-select-"+b++,this._triggerAriaLabelledBy=null,this._destroy=new A.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+b++,this._panelDoneAnimatingStream=new A.x,this._overlayPanelClass=(null===(Ii=this._defaultOptions)||void 0===Ii?void 0:Ii.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ei=null===(jt=this._defaultOptions)||void 0===jt?void 0:jt.disableOptionCentering)&&void 0!==ei&&ei,this.ariaLabel="",this.optionSelectionChanges=(0,E.P)(()=>{const ki=this.options;return ki?ki.changes.pipe((0,w.O)(ki),(0,V.w)(()=>(0,P.T)(...ki.map(ai=>ai.onSelectionChange)))):this._ngZone.onStable.pipe((0,j.q)(1),(0,V.w)(()=>this.optionSelectionChanges))}),this.openedChange=new y.vpe,this._openedStream=this.openedChange.pipe((0,W.h)(ki=>ki),(0,te.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,W.h)(ki=>!ki),(0,te.U)(()=>{})),this.selectionChange=new y.vpe,this.valueChange=new y.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Vt?void 0:Vt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Vt.typeaheadDebounceInterval),this._scrollStrategyFactory=Zt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Mt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(q){this._placeholder=q,this.stateChanges.next()}get required(){var q,$,oe,Ce;return null!==(Ce=null!==(q=this._required)&&void 0!==q?q:null===(oe=null===($=this.ngControl)||void 0===$?void 0:$.control)||void 0===oe?void 0:oe.hasValidator(I.kI.required))&&void 0!==Ce&&Ce}set required(q){this._required=(0,R.Ig)(q),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(q){this._multiple=(0,R.Ig)(q)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(q){this._disableOptionCentering=(0,R.Ig)(q)}get compareWith(){return this._compareWith}set compareWith(q){this._compareWith=q,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(q){(q!==this._value||this._multiple&&Array.isArray(q))&&(this.options&&this._setSelectionByValue(q),this._value=q)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(q){this._typeaheadDebounceInterval=(0,R.su)(q)}get id(){return this._id}set id(q){this._id=q||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new s.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ee.x)(),(0,ge.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ge.R)(this._destroy)).subscribe(q=>{q.added.forEach($=>$.select()),q.removed.forEach($=>$.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,ge.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const q=this._getTriggerAriaLabelledby();if(q!==this._triggerAriaLabelledBy){const $=this._elementRef.nativeElement;this._triggerAriaLabelledBy=q,q?$.setAttribute("aria-labelledby",q):$.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(q){q.disabled&&this.stateChanges.next(),q.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(q){this.value=q}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var q,$;return this.multiple?(null===(q=this._selectionModel)||void 0===q?void 0:q.selected)||[]:null===($=this._selectionModel)||void 0===$?void 0:$.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const q=this._selectionModel.selected.map($=>$.viewValue);return this._isRtl()&&q.reverse(),q.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(q){this.disabled||(this.panelOpen?this._handleOpenKeydown(q):this._handleClosedKeydown(q))}_handleClosedKeydown(q){const $=q.keyCode,oe=$===L.JH||$===L.LH||$===L.oh||$===L.SV,Ce=$===L.K5||$===L.L_,Ue=this._keyManager;if(!Ue.isTyping()&&Ce&&!(0,L.Vb)(q)||(this.multiple||q.altKey)&&oe)q.preventDefault(),this.open();else if(!this.multiple){const lt=this.selected;Ue.onKeydown(q);const nt=this.selected;nt&<!==nt&&this._liveAnnouncer.announce(nt.viewValue,1e4)}}_handleOpenKeydown(q){const $=this._keyManager,oe=q.keyCode,Ce=oe===L.JH||oe===L.LH,Ue=$.isTyping();if(Ce&&q.altKey)q.preventDefault(),this.close();else if(Ue||oe!==L.K5&&oe!==L.L_||!$.activeItem||(0,L.Vb)(q))if(!Ue&&this._multiple&&oe===L.A&&q.ctrlKey){q.preventDefault();const lt=this.options.some(nt=>!nt.disabled&&!nt.selected);this.options.forEach(nt=>{nt.disabled||(lt?nt.select():nt.deselect())})}else{const lt=$.activeItemIndex;$.onKeydown(q),this._multiple&&Ce&&q.shiftKey&&$.activeItem&&$.activeItemIndex!==lt&&$.activeItem._selectViaInteraction()}else q.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,j.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(q){if(this._selectionModel.selected.forEach($=>$.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&q)Array.isArray(q),q.forEach($=>this._selectValue($)),this._sortValues();else{const $=this._selectValue(q);$?this._keyManager.updateActiveItem($):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(q){const $=this.options.find(oe=>{if(this._selectionModel.isSelected(oe))return!1;try{return null!=oe.value&&this._compareWith(oe.value,q)}catch(Ce){return!1}});return $&&this._selectionModel.select($),$}_initKeyManager(){this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ge.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,ge.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 q=(0,P.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ge.R)(q)).subscribe($=>{this._onSelect($.source,$.isUserInput),$.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,P.T)(...this.options.map($=>$._stateChanges)).pipe((0,ge.R)(q)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(q,$){const oe=this._selectionModel.isSelected(q);null!=q.value||this._multiple?(oe!==q.selected&&(q.selected?this._selectionModel.select(q):this._selectionModel.deselect(q)),$&&this._keyManager.setActiveItem(q),this.multiple&&(this._sortValues(),$&&this.focus())):(q.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(q.value)),oe!==this._selectionModel.isSelected(q)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const q=this.options.toArray();this._selectionModel.sort(($,oe)=>this.sortComparator?this.sortComparator($,oe,q):q.indexOf($)-q.indexOf(oe)),this.stateChanges.next()}}_propagateChanges(q){let $=null;$=this.multiple?this.selected.map(oe=>oe.value):this.selected?this.selected.value:q,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 q;return!this._panelOpen&&!this.disabled&&(null===(q=this.options)||void 0===q?void 0:q.length)>0}focus(q){this._elementRef.nativeElement.focus(q)}_getPanelAriaLabelledby(){var q;if(this.ariaLabel)return null;const $=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();return this.ariaLabelledby?($?$+" ":"")+this.ariaLabelledby:$}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var q;if(this.ariaLabel)return null;const $=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();let oe=($?$+" ":"")+this._valueId;return this.ariaLabelledby&&(oe+=" "+this.ariaLabelledby),oe}_panelDoneAnimating(q){this.openedChange.emit(q)}setDescribedByIds(q){this._ariaDescribedby=q.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Le.\u0275fac=function(q){return new(q||Le)(y.Y36(M.rL),y.Y36(y.sBO),y.Y36(y.R0b),y.Y36(C.rD),y.Y36(y.SBq),y.Y36(re.Is,8),y.Y36(I.F,8),y.Y36(I.sg,8),y.Y36(o.G_,8),y.Y36(I.a5,10),y.$8M("tabindex"),y.Y36(ze),y.Y36(l.Kd),y.Y36(K,8))},Le.\u0275dir=y.lG2({type:Le,viewQuery:function(q,$){if(1&q&&(y.Gf(de,5),y.Gf(se,5),y.Gf(e.pI,5)),2&q){let oe;y.iGM(oe=y.CRH())&&($.trigger=oe.first),y.iGM(oe=y.CRH())&&($.panel=oe.first),y.iGM(oe=y.CRH())&&($._overlayDir=oe.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:[y.qOj,y.TTD]}),Le})(),Ne=(()=>{class Le extends Fe{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(q,$,oe){const Ce=this._getItemHeight();return Math.min(Math.max(0,Ce*q-$+Ce/2),oe)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ge.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,j.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(q){const $=(0,C.CB)(q,this.options,this.optionGroups),oe=this._getItemHeight();this.panel.nativeElement.scrollTop=0===q&&1===$?0:(0,C.jH)((q+$)*oe,oe,this.panel.nativeElement.scrollTop,Z)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(q){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(q)}_getChangeEvent(q){return new we(this,q)}_calculateOverlayOffsetX(){const q=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),$=this._viewportRuler.getViewportSize(),oe=this._isRtl(),Ce=this.multiple?56:32;let Ue;if(this.multiple)Ue=40;else if(this.disableOptionCentering)Ue=16;else{let ft=this._selectionModel.selected[0]||this.options.first;Ue=ft&&ft.group?32:16}oe||(Ue*=-1);const lt=0-(q.left+Ue-(oe?Ce:0)),nt=q.right+Ue-$.width+(oe?0:Ce);lt>0?Ue+=lt+8:nt>0&&(Ue-=nt+8),this._overlayDir.offsetX=Math.round(Ue),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(q,$,oe){const Ce=this._getItemHeight(),Ue=(Ce-this._triggerRect.height)/2,lt=Math.floor(Z/Ce);let nt;return this.disableOptionCentering?0:(nt=0===this._scrollTop?q*Ce:this._scrollTop===oe?(q-(this._getItemCount()-lt))*Ce+(Ce-(this._getItemCount()*Ce-Z)%Ce):$-Ce/2,Math.round(-1*nt-Ue))}_checkOverlayWithinViewport(q){const $=this._getItemHeight(),oe=this._viewportRuler.getViewportSize(),Ce=this._triggerRect.top-8,Ue=oe.height-this._triggerRect.bottom-8,lt=Math.abs(this._offsetY),ft=Math.min(this._getItemCount()*$,Z)-lt-this._triggerRect.height;ft>Ue?this._adjustPanelUp(ft,Ue):lt>Ce?this._adjustPanelDown(lt,Ce,q):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(q,$){const oe=Math.round(q-$);this._scrollTop-=oe,this._offsetY-=oe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(q,$,oe){const Ce=Math.round(q-$);if(this._scrollTop+=Ce,this._offsetY+=Ce,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=oe)return this._scrollTop=oe,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const q=this._getItemHeight(),$=this._getItemCount(),oe=Math.min($*q,Z),Ue=$*q-oe;let lt;lt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),lt+=(0,C.CB)(lt,this.options,this.optionGroups);const nt=oe/2;this._scrollTop=this._calculateOverlayScroll(lt,nt,Ue),this._offsetY=this._calculateOverlayOffsetY(lt,nt,Ue),this._checkOverlayWithinViewport(Ue)}_getOriginBasedOnOption(){const q=this._getItemHeight(),$=(q-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-$+q/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Le.\u0275fac=function(){let Pe;return function($){return(Pe||(Pe=y.n5z(Le)))($||Le)}}(),Le.\u0275cmp=y.Xpm({type:Le,selectors:[["mat-select"]],contentQueries:function(q,$,oe){if(1&q&&(y.Suo(oe,Ze,5),y.Suo(oe,C.ey,5),y.Suo(oe,C.K7,5)),2&q){let Ce;y.iGM(Ce=y.CRH())&&($.customTrigger=Ce.first),y.iGM(Ce=y.CRH())&&($.options=Ce),y.iGM(Ce=y.CRH())&&($.optionGroups=Ce)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(q,$){1&q&&y.NdJ("keydown",function(Ce){return $._handleKeydown(Ce)})("focus",function(){return $._onFocus()})("blur",function(){return $._onBlur()}),2&q&&(y.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()),y.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:[y._Bn([{provide:o.Eo,useExisting:Le},{provide:C.HF,useExisting:Le}]),y.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(q,$){if(1&q&&(y.F$t(u),y.TgZ(0,"div",0,1),y.NdJ("click",function(){return $.toggle()}),y.TgZ(3,"div",2),y.YNc(4,ye,2,1,"span",3),y.YNc(5,a,3,2,"span",4),y.qZA(),y.TgZ(6,"div",5),y._UZ(7,"div",6),y.qZA(),y.qZA(),y.YNc(8,p,4,14,"ng-template",7),y.NdJ("backdropClick",function(){return $.close()})("attach",function(){return $._onAttached()})("detach",function(){return $.close()})),2&q){const oe=y.MAs(1);y.uIk("aria-owns",$.panelOpen?$.id+"-panel":null),y.xp6(3),y.Q6J("ngSwitch",$.empty),y.uIk("id",$._valueId),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngSwitchCase",!1),y.xp6(3),y.Q6J("cdkConnectedOverlayPanelClass",$._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",$._scrollStrategy)("cdkConnectedOverlayOrigin",oe)("cdkConnectedOverlayOpen",$.panelOpen)("cdkConnectedOverlayPositions",$._positions)("cdkConnectedOverlayMinWidth",null==$._triggerRect?null:$._triggerRect.width)("cdkConnectedOverlayOffsetY",$._offsetY)}},directives:[e.xu,t.RF,t.n9,e.pI,t.ED,t.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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-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;opacity:0}\n'],encapsulation:2,data:{animation:[D.transformPanelWrap,D.transformPanel]},changeDetection:0}),Le})(),ce=(()=>{class Le{}return Le.\u0275fac=function(q){return new(q||Le)},Le.\u0275mod=y.oAB({type:Le}),Le.\u0275inj=y.cJS({providers:[Me],imports:[[t.ez,e.U8,C.Ng,C.BQ],M.ZD,o.lN,C.Ng,C.BQ]}),Le})()},2638:(Ge,Q,m)=>{"use strict";m.d(Q,{JX:()=>be,TM:()=>Re,Rh:()=>ve,SJ:()=>ze});var e=m(925),t=m(5303),y=m(9808),C=m(5e3),o=m(508),M=m(3191),l=m(1159),R=m(7579),s=m(4968),L=m(6451),I=m(9300),A=m(4004),E=m(9718),P=m(2722),w=m(1884),V=m(5698),j=m(8675),W=m(8372),te=m(1777),ee=m(6360),ge=m(5664),le=m(226);const re=["*"];function de(Oe,K){if(1&Oe){const Me=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(Me),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Oe){const Me=C.oxw();C.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function se(Oe,K){1&Oe&&(C.TgZ(0,"mat-drawer-content"),C.Hsn(1,2),C.qZA())}const ye=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],v=["mat-drawer","mat-drawer-content","*"];function i(Oe,K){if(1&Oe){const Me=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(Me),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Oe){const Me=C.oxw();C.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function a(Oe,K){1&Oe&&(C.TgZ(0,"mat-sidenav-content",3),C.Hsn(1,2),C.qZA())}const p=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],u=["mat-sidenav","mat-sidenav-content","*"],D={transformDrawer:(0,te.X$)("transform",[(0,te.SB)("open, open-instant",(0,te.oB)({transform:"none",visibility:"visible"})),(0,te.SB)("void",(0,te.oB)({"box-shadow":"none",visibility:"hidden"})),(0,te.eR)("void => open-instant",(0,te.jt)("0ms")),(0,te.eR)("void <=> open, open-instant => void",(0,te.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},x=new C.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function b(){return!1}}),r=new C.OlP("MAT_DRAWER_CONTAINER");let Z=(()=>{class Oe extends t.PQ{constructor(Me,we,z,Ze,vt){super(z,Ze,vt),this._changeDetectorRef=Me,this._container=we}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>U)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Me,we){2&Me&&C.Udp("margin-left",we._container._contentMargins.left,"px")("margin-right",we._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,we){1&Me&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Oe})(),N=(()=>{class Oe{constructor(Me,we,z,Ze,vt,Fe,Ne,ce){this._elementRef=Me,this._focusTrapFactory=we,this._focusMonitor=z,this._platform=Ze,this._ngZone=vt,this._interactivityChecker=Fe,this._doc=Ne,this._container=ce,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new R.x,this._animationEnd=new R.x,this._animationState="void",this.openedChange=new C.vpe(!0),this._openedStream=this.openedChange.pipe((0,I.h)(Le=>Le),(0,A.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,I.h)(Le=>Le.fromState!==Le.toState&&0===Le.toState.indexOf("open")),(0,E.h)(void 0)),this._closedStream=this.openedChange.pipe((0,I.h)(Le=>!Le),(0,A.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,I.h)(Le=>Le.fromState!==Le.toState&&"void"===Le.toState),(0,E.h)(void 0)),this._destroyed=new R.x,this.onPositionChanged=new C.vpe,this._modeChanged=new R.x,this.openedChange.subscribe(Le=>{Le?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,s.R)(this._elementRef.nativeElement,"keydown").pipe((0,I.h)(Le=>Le.keyCode===l.hY&&!this.disableClose&&!(0,l.Vb)(Le)),(0,P.R)(this._destroyed)).subscribe(Le=>this._ngZone.run(()=>{this.close(),Le.stopPropagation(),Le.preventDefault()}))}),this._animationEnd.pipe((0,w.x)((Le,Pe)=>Le.fromState===Pe.fromState&&Le.toState===Pe.toState)).subscribe(Le=>{const{fromState:Pe,toState:q}=Le;(0===q.indexOf("open")&&"void"===Pe||"void"===q&&0===Pe.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Me){(Me="end"===Me?"end":"start")!=this._position&&(this._position=Me,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Me){this._mode=Me,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Me){this._disableClose=(0,M.Ig)(Me)}get autoFocus(){const Me=this._autoFocus;return null==Me?"side"===this.mode?"dialog":"first-tabbable":Me}set autoFocus(Me){("true"===Me||"false"===Me)&&(Me=(0,M.Ig)(Me)),this._autoFocus=Me}get opened(){return this._opened}set opened(Me){this.toggle((0,M.Ig)(Me))}_forceFocus(Me,we){this._interactivityChecker.isFocusable(Me)||(Me.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Me.addEventListener("blur",()=>Me.removeAttribute("tabindex")),Me.addEventListener("mousedown",()=>Me.removeAttribute("tabindex"))})),Me.focus(we)}_focusByCssSelector(Me,we){let z=this._elementRef.nativeElement.querySelector(Me);z&&this._forceFocus(z,we)}_takeFocus(){if(!this._focusTrap)return;const Me=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(we=>{!we&&"function"==typeof this._elementRef.nativeElement.focus&&Me.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Me){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Me):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){var Me;const we=null===(Me=this._doc)||void 0===Me?void 0:Me.activeElement;return!!we&&this._elementRef.nativeElement.contains(we)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Me){return this.toggle(!0,Me)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Me=!this.opened,we){Me&&we&&(this._openedVia=we);const z=this._setOpen(Me,!Me&&this._isFocusWithinDrawer(),this._openedVia||"program");return Me||(this._openedVia=null),z}_setOpen(Me,we,z){return this._opened=Me,Me?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",we&&this._restoreFocus(z)),this._updateFocusTrapState(),new Promise(Ze=>{this.openedChange.pipe((0,V.q)(1)).subscribe(vt=>Ze(vt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(C.SBq),C.Y36(ge.qV),C.Y36(ge.tE),C.Y36(e.t4),C.Y36(C.R0b),C.Y36(ge.ic),C.Y36(y.K0,8),C.Y36(r,8))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Me,we){1&Me&&C.WFA("@transform.start",function(Ze){return we._animationStarted.next(Ze)})("@transform.done",function(Ze){return we._animationEnd.next(Ze)}),2&Me&&(C.uIk("align",null),C.d8E("@transform",we._animationState),C.ekj("mat-drawer-end","end"===we.position)("mat-drawer-over","over"===we.mode)("mat-drawer-push","push"===we.mode)("mat-drawer-side","side"===we.mode)("mat-drawer-opened",we.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:re,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Me,we){1&Me&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[D.transformDrawer]},changeDetection:0}),Oe})(),U=(()=>{class Oe{constructor(Me,we,z,Ze,vt,Fe=!1,Ne){this._dir=Me,this._element=we,this._ngZone=z,this._changeDetectorRef=Ze,this._animationMode=Ne,this._drawers=new C.n_E,this.backdropClick=new C.vpe,this._destroyed=new R.x,this._doCheckSubject=new R.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new R.x,Me&&Me.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),vt.change().pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Fe}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Me){this._autosize=(0,M.Ig)(Me)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Me){this._backdropOverride=null==Me?null:(0,M.Ig)(Me)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,j.O)(this._allDrawers),(0,P.R)(this._destroyed)).subscribe(Me=>{this._drawers.reset(Me.filter(we=>!we._container||we._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,j.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Me=>{this._watchDrawerToggle(Me),this._watchDrawerPosition(Me),this._watchDrawerMode(Me)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,W.b)(10),(0,P.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(Me=>Me.open())}close(){this._drawers.forEach(Me=>Me.close())}updateContentMargins(){let Me=0,we=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Me+=this._left._getWidth();else if("push"==this._left.mode){const z=this._left._getWidth();Me+=z,we-=z}if(this._right&&this._right.opened)if("side"==this._right.mode)we+=this._right._getWidth();else if("push"==this._right.mode){const z=this._right._getWidth();we+=z,Me-=z}Me=Me||null,we=we||null,(Me!==this._contentMargins.left||we!==this._contentMargins.right)&&(this._contentMargins={left:Me,right:we},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Me){Me._animationStarted.pipe((0,I.h)(we=>we.fromState!==we.toState),(0,P.R)(this._drawers.changes)).subscribe(we=>{"open-instant"!==we.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Me.mode&&Me.openedChange.pipe((0,P.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Me.opened))}_watchDrawerPosition(Me){!Me||Me.onPositionChanged.pipe((0,P.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,V.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Me){Me&&Me._modeChanged.pipe((0,P.R)((0,L.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Me){const we=this._element.nativeElement.classList,z="mat-drawer-container-has-open";Me?we.add(z):we.remove(z)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Me=>{"end"==Me.position?this._end=Me:this._start=Me}),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(Me=>Me&&!Me.disableClose&&this._canHaveBackdrop(Me)).forEach(Me=>Me._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Me){return"side"!==Me.mode||!!this._backdropOverride}_isDrawerOpen(Me){return null!=Me&&Me.opened}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(le.Is,8),C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(C.sBO),C.Y36(t.rL),C.Y36(x),C.Y36(ee.Qb,8))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-drawer-container"]],contentQueries:function(Me,we,z){if(1&Me&&(C.Suo(z,Z,5),C.Suo(z,N,5)),2&Me){let Ze;C.iGM(Ze=C.CRH())&&(we._content=Ze.first),C.iGM(Ze=C.CRH())&&(we._allDrawers=Ze)}},viewQuery:function(Me,we){if(1&Me&&C.Gf(Z,5),2&Me){let z;C.iGM(z=C.CRH())&&(we._userContent=z.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Me,we){2&Me&&C.ekj("mat-drawer-container-explicit-backdrop",we._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[C._Bn([{provide:r,useExisting:Oe}])],ngContentSelectors:v,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(Me,we){1&Me&&(C.F$t(ye),C.YNc(0,de,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,se,2,0,"mat-drawer-content",1)),2&Me&&(C.Q6J("ngIf",we.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!we._content))},directives:[y.O5,Z],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Oe})(),ve=(()=>{class Oe extends Z{constructor(Me,we,z,Ze,vt){super(Me,we,z,Ze,vt)}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>Re)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Me,we){2&Me&&C.Udp("margin-left",we._container._contentMargins.left,"px")("margin-right",we._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,we){1&Me&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Oe})(),be=(()=>{class Oe extends N{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Me){this._fixedInViewport=(0,M.Ig)(Me)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Me){this._fixedTopGap=(0,M.su)(Me)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Me){this._fixedBottomGap=(0,M.su)(Me)}}return Oe.\u0275fac=function(){let K;return function(we){return(K||(K=C.n5z(Oe)))(we||Oe)}}(),Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Me,we){2&Me&&(C.uIk("align",null),C.Udp("top",we.fixedInViewport?we.fixedTopGap:null,"px")("bottom",we.fixedInViewport?we.fixedBottomGap:null,"px"),C.ekj("mat-drawer-end","end"===we.position)("mat-drawer-over","over"===we.mode)("mat-drawer-push","push"===we.mode)("mat-drawer-side","side"===we.mode)("mat-drawer-opened",we.opened)("mat-sidenav-fixed",we.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[C.qOj],ngContentSelectors:re,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Me,we){1&Me&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[D.transformDrawer]},changeDetection:0}),Oe})(),Re=(()=>{class Oe extends U{}return Oe.\u0275fac=function(){let K;return function(we){return(K||(K=C.n5z(Oe)))(we||Oe)}}(),Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-sidenav-container"]],contentQueries:function(Me,we,z){if(1&Me&&(C.Suo(z,ve,5),C.Suo(z,be,5)),2&Me){let Ze;C.iGM(Ze=C.CRH())&&(we._content=Ze.first),C.iGM(Ze=C.CRH())&&(we._allDrawers=Ze)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Me,we){2&Me&&C.ekj("mat-drawer-container-explicit-backdrop",we._backdropOverride)},exportAs:["matSidenavContainer"],features:[C._Bn([{provide:r,useExisting:Oe}]),C.qOj],ngContentSelectors:u,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(Me,we){1&Me&&(C.F$t(p),C.YNc(0,i,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,a,2,0,"mat-sidenav-content",1)),2&Me&&(C.Q6J("ngIf",we.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!we._content))},directives:[y.O5,ve,t.PQ],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Oe})(),ze=(()=>{class Oe{}return Oe.\u0275fac=function(Me){return new(Me||Oe)},Oe.\u0275mod=C.oAB({type:Oe}),Oe.\u0275inj=C.cJS({imports:[[y.ez,o.BQ,e.ud,t.ZD],t.ZD,o.BQ]}),Oe})()},2368:(Ge,Q,m)=>{"use strict";m.d(Q,{Rr:()=>W,rP:()=>le});var e=m(7144),t=m(5e3),y=m(508),C=m(3191),o=m(3075),M=m(6360),l=m(5664);const R=["thumbContainer"],s=["toggleBar"],L=["input"],I=function(re){return{enterDuration:re}},A=["*"],E=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const w={provide:o.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class V{constructor(de,se){this.source=de,this.checked=se}}const j=(0,y.sb)((0,y.pj)((0,y.Kr)((0,y.Id)(class{constructor(re){this._elementRef=re}}))));let W=(()=>{class re extends j{constructor(se,ye,v,i,a,p){super(se),this._focusMonitor=ye,this._changeDetectorRef=v,this.defaults=a,this._onChange=u=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++P,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 t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===p}get required(){return this._required}set required(se){this._required=(0,C.Ig)(se)}get checked(){return this._checked}set checked(se){this._checked=(0,C.Ig)(se),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(se=>{se||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(se){se.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(se){se.stopPropagation()}writeValue(se){this.checked=!!se}registerOnChange(se){this._onChange=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se,this._changeDetectorRef.markForCheck()}focus(se,ye){ye?this._focusMonitor.focusVia(this._inputElement,ye,se):this._inputElement.nativeElement.focus(se)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new V(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return re.\u0275fac=function(se){return new(se||re)(t.Y36(t.SBq),t.Y36(l.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(E),t.Y36(M.Qb,8))},re.\u0275cmp=t.Xpm({type:re,selectors:[["mat-slide-toggle"]],viewQuery:function(se,ye){if(1&se&&(t.Gf(R,5),t.Gf(s,5),t.Gf(L,5)),2&se){let v;t.iGM(v=t.CRH())&&(ye._thumbEl=v.first),t.iGM(v=t.CRH())&&(ye._thumbBarEl=v.first),t.iGM(v=t.CRH())&&(ye._inputElement=v.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(se,ye){2&se&&(t.Ikx("id",ye.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checked",ye.checked)("mat-disabled",ye.disabled)("mat-slide-toggle-label-before","before"==ye.labelPosition)("_mat-animation-noopable",ye._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:[t._Bn([w]),t.qOj],ngContentSelectors:A,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(se,ye){if(1&se&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"div",2,3),t.TgZ(4,"input",4,5),t.NdJ("change",function(i){return ye._onChangeEvent(i)})("click",function(i){return ye._onInputClick(i)}),t.qZA(),t.TgZ(6,"div",6,7),t._UZ(8,"div",8),t.TgZ(9,"div",9),t._UZ(10,"div",10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"span",11,12),t.NdJ("cdkObserveContent",function(){return ye._onLabelTextChange()}),t.TgZ(13,"span",13),t._uU(14,"\xa0"),t.qZA(),t.Hsn(15),t.qZA(),t.qZA()),2&se){const v=t.MAs(1),i=t.MAs(12);t.uIk("for",ye.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(2),t.Q6J("id",ye.inputId)("required",ye.required)("tabIndex",ye.tabIndex)("checked",ye.checked)("disabled",ye.disabled),t.uIk("name",ye.name)("aria-checked",ye.checked.toString())("aria-label",ye.ariaLabel)("aria-labelledby",ye.ariaLabelledby)("aria-describedby",ye.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",v)("matRippleDisabled",ye.disableRipple||ye.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,I,ye._noopAnimations?0:150))}},directives:[y.wG,e.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-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%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),re})(),ge=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})(),le=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({imports:[[ge,y.si,y.BQ,e.Q8],ge,y.BQ]}),re})()},7261:(Ge,Q,m)=>{"use strict";m.d(Q,{Ve:()=>de,ux:()=>ye,ZX:()=>re});var e=m(9776),t=m(7429),y=m(9808),C=m(5e3),o=m(508),M=m(7423),l=m(7579),R=m(5698),s=m(2722),L=m(1777),I=m(925),A=m(5113),E=m(5664);function P(v,i){if(1&v){const a=C.EpF();C.TgZ(0,"div",1),C.TgZ(1,"button",2),C.NdJ("click",function(){return C.CHM(a),C.oxw().action()}),C._uU(2),C.qZA(),C.qZA()}if(2&v){const a=C.oxw();C.xp6(2),C.Oqu(a.data.action)}}function w(v,i){}const V=new C.OlP("MatSnackBarData");class j{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const W=Math.pow(2,31)-1;class te{constructor(i,a){this._overlayRef=a,this._afterDismissed=new l.x,this._afterOpened=new l.x,this._onAction=new l.x,this._dismissedByAction=!1,this.containerInstance=i,this.onAction().subscribe(()=>this.dismiss()),i._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()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,W))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let ee=(()=>{class v{constructor(a,p){this.snackBarRef=a,this.data=p}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return v.\u0275fac=function(a){return new(a||v)(C.Y36(te),C.Y36(V))},v.\u0275cmp=C.Xpm({type:v,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(a,p){1&a&&(C.TgZ(0,"span"),C._uU(1),C.qZA(),C.YNc(2,P,3,1,"div",0)),2&a&&(C.xp6(1),C.Oqu(p.data.message),C.xp6(1),C.Q6J("ngIf",p.hasAction))},directives:[y.O5,M.lW],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}\n"],encapsulation:2,changeDetection:0}),v})();const ge={snackBarState:(0,L.X$)("state",[(0,L.SB)("void, hidden",(0,L.oB)({transform:"scale(0.8)",opacity:0})),(0,L.SB)("visible",(0,L.oB)({transform:"scale(1)",opacity:1})),(0,L.eR)("* => visible",(0,L.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,L.eR)("* => void, * => hidden",(0,L.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,L.oB)({opacity:0})))])};let le=(()=>{class v extends t.en{constructor(a,p,u,_,D){super(),this._ngZone=a,this._elementRef=p,this._changeDetectorRef=u,this._platform=_,this.snackBarConfig=D,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new l.x,this._onExit=new l.x,this._onEnter=new l.x,this._animationState="void",this.attachDomPortal=O=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(O)),this._live="assertive"!==D.politeness||D.announcementMessage?"off"===D.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}attachTemplatePortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}onAnimationEnd(a){const{fromState:p,toState:u}=a;if(("void"===u&&"void"!==p||"hidden"===u)&&this._completeExit(),"visible"===u){const _=this._onEnter;this._ngZone.run(()=>{_.next(),_.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return 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,R.q)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const a=this._elementRef.nativeElement,p=this.snackBarConfig.panelClass;p&&(Array.isArray(p)?p.forEach(u=>a.classList.add(u)):a.classList.add(p)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const a=this._elementRef.nativeElement.querySelector("[aria-hidden]"),p=this._elementRef.nativeElement.querySelector("[aria-live]");if(a&&p){let u=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)&&(u=document.activeElement),a.removeAttribute("aria-hidden"),p.appendChild(a),null==u||u.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return v.\u0275fac=function(a){return new(a||v)(C.Y36(C.R0b),C.Y36(C.SBq),C.Y36(C.sBO),C.Y36(I.t4),C.Y36(j))},v.\u0275cmp=C.Xpm({type:v,selectors:[["snack-bar-container"]],viewQuery:function(a,p){if(1&a&&C.Gf(t.Pl,7),2&a){let u;C.iGM(u=C.CRH())&&(p._portalOutlet=u.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,p){1&a&&C.WFA("@state.done",function(_){return p.onAnimationEnd(_)}),2&a&&C.d8E("@state",p._animationState)},features:[C.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,p){1&a&&(C.TgZ(0,"div",0),C.YNc(1,w,0,0,"ng-template",1),C.qZA(),C._UZ(2,"div")),2&a&&(C.xp6(2),C.uIk("aria-live",p._live)("role",p._role))},directives:[t.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:[ge.snackBarState]}}),v})(),re=(()=>{class v{}return v.\u0275fac=function(a){return new(a||v)},v.\u0275mod=C.oAB({type:v}),v.\u0275inj=C.cJS({imports:[[e.U8,t.eL,y.ez,M.ot,o.BQ],o.BQ]}),v})();const de=new C.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function se(){return new j}});let ye=(()=>{class v{constructor(a,p,u,_,D,O){this._overlay=a,this._live=p,this._injector=u,this._breakpointObserver=_,this._parentSnackBar=D,this._defaultConfig=O,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=ee,this.snackBarContainerComponent=le,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const a=this._parentSnackBar;return a?a._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(a){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=a:this._snackBarRefAtThisLevel=a}openFromComponent(a,p){return this._attach(a,p)}openFromTemplate(a,p){return this._attach(a,p)}open(a,p="",u){const _=Object.assign(Object.assign({},this._defaultConfig),u);return _.data={message:a,action:p},_.announcementMessage===a&&(_.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,_)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(a,p){const _=C.zs3.create({parent:p&&p.viewContainerRef&&p.viewContainerRef.injector||this._injector,providers:[{provide:j,useValue:p}]}),D=new t.C5(this.snackBarContainerComponent,p.viewContainerRef,_),O=a.attach(D);return O.instance.snackBarConfig=p,O.instance}_attach(a,p){const u=Object.assign(Object.assign(Object.assign({},new j),this._defaultConfig),p),_=this._createOverlay(u),D=this._attachSnackBarContainer(_,u),O=new te(D,_);if(a instanceof C.Rgc){const x=new t.UE(a,null,{$implicit:u.data,snackBarRef:O});O.instance=D.attachTemplatePortal(x)}else{const x=this._createInjector(u,O),r=new t.C5(a,void 0,x),b=D.attachComponentPortal(r);O.instance=b.instance}return this._breakpointObserver.observe(A.u3.HandsetPortrait).pipe((0,s.R)(_.detachments())).subscribe(x=>{_.overlayElement.classList.toggle(this.handsetCssClass,x.matches)}),u.announcementMessage&&D._onAnnounce.subscribe(()=>{this._live.announce(u.announcementMessage,u.politeness)}),this._animateSnackBar(O,u),this._openedSnackBarRef=O,this._openedSnackBarRef}_animateSnackBar(a,p){a.afterDismissed().subscribe(()=>{this._openedSnackBarRef==a&&(this._openedSnackBarRef=null),p.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter(),p.duration&&p.duration>0&&a.afterOpened().subscribe(()=>a._dismissAfter(p.duration))}_createOverlay(a){const p=new e.X_;p.direction=a.direction;let u=this._overlay.position().global();const _="rtl"===a.direction,D="left"===a.horizontalPosition||"start"===a.horizontalPosition&&!_||"end"===a.horizontalPosition&&_,O=!D&&"center"!==a.horizontalPosition;return D?u.left("0"):O?u.right("0"):u.centerHorizontally(),"top"===a.verticalPosition?u.top("0"):u.bottom("0"),p.positionStrategy=u,this._overlay.create(p)}_createInjector(a,p){return C.zs3.create({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:te,useValue:p},{provide:V,useValue:a.data}]})}}return v.\u0275fac=function(a){return new(a||v)(C.LFG(e.aV),C.LFG(E.Kd),C.LFG(C.zs3),C.LFG(A.Yg),C.LFG(v,12),C.LFG(de))},v.\u0275prov=C.Yz7({token:v,factory:v.\u0275fac,providedIn:re}),v})()},4847:(Ge,Q,m)=>{"use strict";m.d(Q,{YE:()=>de,nU:()=>v,JX:()=>i});var e=m(5e3),t=m(3191),y=m(1159),C=m(508),o=m(7579),M=m(6451),l=m(1777),R=m(5664),s=m(9808);const L=["mat-sort-header",""];function I(a,p){if(1&a){const u=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&a){const u=e.oxw();e.Q6J("@arrowOpacity",u._getArrowViewState())("@arrowPosition",u._getArrowViewState())("@allowChildren",u._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",u._getArrowDirectionState())}}const A=["*"],E=C.mZ.ENTERING+" "+C.yN.STANDARD_CURVE,P={indicator:(0,l.X$)("indicator",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"translateY(0px)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"translateY(10px)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),leftPointer:(0,l.X$)("leftPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),rightPointer:(0,l.X$)("rightPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),arrowOpacity:(0,l.X$)("arrowOpacity",[(0,l.SB)("desc-to-active, asc-to-active, active",(0,l.oB)({opacity:1})),(0,l.SB)("desc-to-hint, asc-to-hint, hint",(0,l.oB)({opacity:.54})),(0,l.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,l.oB)({opacity:0})),(0,l.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,l.jt)("0ms")),(0,l.eR)("* <=> *",(0,l.jt)(E))]),arrowPosition:(0,l.X$)("arrowPosition",[(0,l.eR)("* => desc-to-hint, * => desc-to-active",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(-25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-desc, * => active-to-desc",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(25%)"})]))),(0,l.eR)("* => asc-to-hint, * => asc-to-active",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-asc, * => active-to-asc",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(-25%)"})]))),(0,l.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,l.oB)({transform:"translateY(0)"})),(0,l.SB)("hint-to-desc, active-to-desc, desc",(0,l.oB)({transform:"translateY(-25%)"})),(0,l.SB)("hint-to-asc, active-to-asc, asc",(0,l.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,l.X$)("allowChildren",[(0,l.eR)("* <=> *",[(0,l.IO)("@*",(0,l.pV)(),{optional:!0})])])};let te=(()=>{class a{constructor(){this.changes=new o.x}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const ge={provide:te,deps:[[new e.FiY,new e.tp0,te]],useFactory:function ee(a){return a||new te}},le=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),re=(0,C.dB)((0,C.Id)(class{}));let de=(()=>{class a extends re{constructor(u){super(),this._defaultOptions=u,this.sortables=new Map,this._stateChanges=new o.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(u){this._direction=u}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}register(u){this.sortables.set(u.id,u)}deregister(u){this.sortables.delete(u.id)}sort(u){this.active!=u.id?(this.active=u.id,this.direction=u.start?u.start:this.start):this.direction=this.getNextSortDirection(u),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(u){var _,D,O;if(!u)return"";const x=null!==(D=null!==(_=null==u?void 0:u.disableClear)&&void 0!==_?_:this.disableClear)&&void 0!==D?D:!!(null===(O=this._defaultOptions)||void 0===O?void 0:O.disableClear);let r=function se(a,p){let u=["asc","desc"];return"desc"==a&&u.reverse(),p||u.push(""),u}(u.start||this.start,x),b=r.indexOf(this.direction)+1;return b>=r.length&&(b=0),r[b]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return a.\u0275fac=function(u){return new(u||a)(e.Y36(le,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),a})();const ye=(0,C.Id)(class{});let v=(()=>{class a extends ye{constructor(u,_,D,O,x,r,b){super(),this._intl=u,this._changeDetectorRef=_,this._sort=D,this._columnDef=O,this._focusMonitor=x,this._elementRef=r,this._ariaDescriber=b,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(u){this._updateSortActionDescription(u)}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}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('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(u=>{const _=!!u;_!==this._showIndicatorHint&&(this._setIndicatorHintVisible(_),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(u){this._isDisabled()&&u||(this._showIndicatorHint=u,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(u){this._viewState=u||{},this._disableViewStateAnimation&&(this._viewState={toState:u.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(u){!this._isDisabled()&&(u.keyCode===y.L_||u.keyCode===y.K5)&&(u.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 u=this._viewState.fromState;return(u?`${u}-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(u){var _,D;this._sortButton&&(null===(_=this._ariaDescriber)||void 0===_||_.removeDescription(this._sortButton,this._sortActionDescription),null===(D=this._ariaDescriber)||void 0===D||D.describe(this._sortButton,u)),this._sortActionDescription=u}_handleStateChanges(){this._rerenderSubscription=(0,M.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 a.\u0275fac=function(u){return new(u||a)(e.Y36(te),e.Y36(e.sBO),e.Y36(de,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(R.tE),e.Y36(e.SBq),e.Y36(R.$s,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(u,_){1&u&&e.NdJ("click",function(){return _._handleClick()})("keydown",function(O){return _._handleKeydown(O)})("mouseenter",function(){return _._setIndicatorHintVisible(!0)})("mouseleave",function(){return _._setIndicatorHintVisible(!1)}),2&u&&(e.uIk("aria-sort",_._getAriaSortAttribute()),e.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:[e.qOj],attrs:L,ngContentSelectors:A,decls:4,vars:6,consts:[["role","button",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(u,_){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,I,6,6,"div",2),e.qZA()),2&u&&(e.ekj("mat-sort-header-sorted",_._isSorted())("mat-sort-header-position-before","before"==_.arrowPosition),e.uIk("tabindex",_._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",_._renderArrow()))},directives:[s.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:[P.indicator,P.leftPointer,P.rightPointer,P.arrowOpacity,P.arrowPosition,P.allowChildren]},changeDetection:0}),a})(),i=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({providers:[ge],imports:[[s.ez,C.BQ]]}),a})()},5615:(Ge,Q,m)=>{"use strict";m.d(Q,{C0:()=>we,VY:()=>N,Vq:()=>Fe,z9:()=>K,T5:()=>Le,Ic:()=>Ne,fd:()=>ce});var e=m(7429),t=m(1555),y=m(9808),C=m(5e3),o=m(7423),M=m(508),l=m(5245),R=m(7579),s=m(727),L=m(5664),I=m(3900),A=m(4004),E=m(8675),P=m(2722),w=m(1884),V=m(1777),j=m(226);function W(Pe,q){if(1&Pe&&C.GkF(0,8),2&Pe){const $=C.oxw();C.Q6J("ngTemplateOutlet",$.iconOverrides[$.state])("ngTemplateOutletContext",$._getIconContext())}}function te(Pe,q){if(1&Pe&&(C.TgZ(0,"span"),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._getDefaultTextForState($.state))}}function ee(Pe,q){if(1&Pe&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._intl.completedLabel)}}function ge(Pe,q){if(1&Pe&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._intl.editableLabel)}}function le(Pe,q){if(1&Pe&&(C.TgZ(0,"mat-icon"),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._getDefaultTextForState($.state))}}function re(Pe,q){if(1&Pe&&(C.ynx(0,9),C.YNc(1,te,2,1,"span",10),C.YNc(2,ee,2,1,"span",11),C.YNc(3,ge,2,1,"span",11),C.YNc(4,le,2,1,"mat-icon",12),C.BQk()),2&Pe){const $=C.oxw();C.Q6J("ngSwitch",$.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===$.state),C.xp6(1),C.Q6J("ngIf","edit"===$.state)}}function de(Pe,q){if(1&Pe&&(C.TgZ(0,"div",14),C.GkF(1,15),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",$._templateLabel().template)}}function se(Pe,q){if(1&Pe&&(C.TgZ(0,"div",14),C._uU(1),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Oqu($.label)}}function ye(Pe,q){if(1&Pe&&(C.TgZ(0,"div",16),C._uU(1),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Oqu($._intl.optionalLabel)}}function v(Pe,q){if(1&Pe&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Oqu($.errorMessage)}}function i(Pe,q){}function a(Pe,q){if(1&Pe&&(C.Hsn(0),C.YNc(1,i,0,0,"ng-template",0)),2&Pe){const $=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",$._portal)}}const p=["*"];function u(Pe,q){1&Pe&&C._UZ(0,"div",9)}const _=function(Pe,q){return{step:Pe,i:q}};function D(Pe,q){if(1&Pe&&(C.ynx(0),C.GkF(1,7),C.YNc(2,u,1,0,"div",8),C.BQk()),2&Pe){const $=q.$implicit,oe=q.index,Ce=q.last;C.oxw(2);const Ue=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Ue)("ngTemplateOutletContext",C.WLB(3,_,$,oe)),C.xp6(1),C.Q6J("ngIf",!Ce)}}function O(Pe,q){if(1&Pe){const $=C.EpF();C.TgZ(0,"div",10),C.NdJ("@horizontalStepTransition.done",function(Ce){return C.CHM($),C.oxw(2)._animationDone.next(Ce)}),C.GkF(1,11),C.qZA()}if(2&Pe){const $=q.$implicit,oe=q.index,Ce=C.oxw(2);C.Q6J("@horizontalStepTransition",Ce._getAnimationDirection(oe))("id",Ce._getStepContentId(oe)),C.uIk("aria-labelledby",Ce._getStepLabelId(oe))("aria-expanded",Ce.selectedIndex===oe),C.xp6(1),C.Q6J("ngTemplateOutlet",$.content)}}function x(Pe,q){if(1&Pe&&(C.ynx(0),C.TgZ(1,"div",3),C.YNc(2,D,3,6,"ng-container",4),C.qZA(),C.TgZ(3,"div",5),C.YNc(4,O,2,5,"div",6),C.qZA(),C.BQk()),2&Pe){const $=C.oxw();C.xp6(2),C.Q6J("ngForOf",$.steps),C.xp6(2),C.Q6J("ngForOf",$.steps)}}function r(Pe,q){if(1&Pe){const $=C.EpF();C.TgZ(0,"div",13),C.GkF(1,7),C.TgZ(2,"div",14),C.TgZ(3,"div",15),C.NdJ("@verticalStepTransition.done",function(Ce){return C.CHM($),C.oxw(2)._animationDone.next(Ce)}),C.TgZ(4,"div",16),C.GkF(5,11),C.qZA(),C.qZA(),C.qZA(),C.qZA()}if(2&Pe){const $=q.$implicit,oe=q.index,Ce=q.last,Ue=C.oxw(2),lt=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",lt)("ngTemplateOutletContext",C.WLB(9,_,$,oe)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!Ce),C.xp6(1),C.Q6J("@verticalStepTransition",Ue._getAnimationDirection(oe))("id",Ue._getStepContentId(oe)),C.uIk("aria-labelledby",Ue._getStepLabelId(oe))("aria-expanded",Ue.selectedIndex===oe),C.xp6(2),C.Q6J("ngTemplateOutlet",$.content)}}function b(Pe,q){if(1&Pe&&(C.ynx(0),C.YNc(1,r,6,12,"div",12),C.BQk()),2&Pe){const $=C.oxw();C.xp6(1),C.Q6J("ngForOf",$.steps)}}function Z(Pe,q){if(1&Pe){const $=C.EpF();C.TgZ(0,"mat-step-header",17),C.NdJ("click",function(){return C.CHM($).step.select()})("keydown",function(Ce){return C.CHM($),C.oxw()._onKeydown(Ce)}),C.qZA()}if(2&Pe){const $=q.step,oe=q.i,Ce=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===Ce.orientation)("mat-vertical-stepper-header","vertical"===Ce.orientation),C.Q6J("tabIndex",Ce._getFocusIndex()===oe?0:-1)("id",Ce._getStepLabelId(oe))("index",oe)("state",Ce._getIndicatorType(oe,$.state))("label",$.stepLabel||$.label)("selected",Ce.selectedIndex===oe)("active",Ce._stepIsNavigable(oe,$))("optional",$.optional)("errorMessage",$.errorMessage)("iconOverrides",Ce._iconOverrides)("disableRipple",Ce.disableRipple||!Ce._stepIsNavigable(oe,$))("color",$.color||Ce.color),C.uIk("aria-posinset",oe+1)("aria-setsize",Ce.steps.length)("aria-controls",Ce._getStepContentId(oe))("aria-selected",Ce.selectedIndex==oe)("aria-label",$.ariaLabel||null)("aria-labelledby",!$.ariaLabel&&$.ariaLabelledby?$.ariaLabelledby:null)("aria-disabled",!Ce._stepIsNavigable(oe,$)||null)}}let N=(()=>{class Pe extends t.u6{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["","matStepLabel",""]],features:[C.qOj]}),Pe})(),U=(()=>{class Pe{constructor(){this.changes=new R.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Pe.\u0275fac=function($){return new($||Pe)},Pe.\u0275prov=C.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const be={provide:U,deps:[[new C.FiY,new C.tp0,U]],useFactory:function ve(Pe){return Pe||new U}},Re=(0,M.pj)(class extends t.KL{constructor(q){super(q)}},"primary");let ze=(()=>{class Pe extends Re{constructor($,oe,Ce,Ue){super(Ce),this._intl=$,this._focusMonitor=oe,this._intlSubscription=$.changes.subscribe(()=>Ue.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus($,oe){$?this._focusMonitor.focusVia(this._elementRef,$,oe):this._elementRef.nativeElement.focus(oe)}_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 Pe.\u0275fac=function($){return new($||Pe)(C.Y36(U),C.Y36(L.tE),C.Y36(C.SBq),C.Y36(C.sBO))},Pe.\u0275cmp=C.Xpm({type:Pe,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:[C.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"],[4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],[4,"ngSwitchDefault"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function($,oe){1&$&&(C._UZ(0,"div",0),C.TgZ(1,"div"),C.TgZ(2,"div",1),C.YNc(3,W,1,2,"ng-container",2),C.YNc(4,re,5,4,"ng-container",3),C.qZA(),C.qZA(),C.TgZ(5,"div",4),C.YNc(6,de,2,1,"div",5),C.YNc(7,se,2,1,"div",5),C.YNc(8,ye,2,1,"div",6),C.YNc(9,v,2,1,"div",7),C.qZA()),2&$&&(C.Q6J("matRippleTrigger",oe._getHostElement())("matRippleDisabled",oe.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",oe.state," mat-step-icon"),C.ekj("mat-step-icon-selected",oe.selected),C.xp6(1),C.Q6J("ngSwitch",!(!oe.iconOverrides||!oe.iconOverrides[oe.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",oe.active)("mat-step-label-selected",oe.selected)("mat-step-label-error","error"==oe.state),C.xp6(1),C.Q6J("ngIf",oe._templateLabel()),C.xp6(1),C.Q6J("ngIf",oe._stringLabel()),C.xp6(1),C.Q6J("ngIf",oe.optional&&"error"!=oe.state),C.xp6(1),C.Q6J("ngIf","error"==oe.state))},directives:[M.wG,y.RF,y.n9,y.ED,y.O5,y.tP,l.Hw],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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.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}),Pe})();const Oe={horizontalStepTransition:(0,V.X$)("horizontalStepTransition",[(0,V.SB)("previous",(0,V.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,V.SB)("current",(0,V.oB)({transform:"none",visibility:"inherit"})),(0,V.SB)("next",(0,V.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,V.eR)("* => *",(0,V.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,V.X$)("verticalStepTransition",[(0,V.SB)("previous",(0,V.oB)({height:"0px",visibility:"hidden"})),(0,V.SB)("next",(0,V.oB)({height:"0px",visibility:"hidden"})),(0,V.SB)("current",(0,V.oB)({height:"*",visibility:"inherit"})),(0,V.eR)("* <=> current",(0,V.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let K=(()=>{class Pe{constructor($){this.templateRef=$}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36(C.Rgc))},Pe.\u0275dir=C.lG2({type:Pe,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Pe})(),Me=(()=>{class Pe{constructor($){this._template=$}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36(C.Rgc))},Pe.\u0275dir=C.lG2({type:Pe,selectors:[["ng-template","matStepContent",""]]}),Pe})(),we=(()=>{class Pe extends t.be{constructor($,oe,Ce,Ue){super($,Ue),this._errorStateMatcher=oe,this._viewContainerRef=Ce,this._isSelected=s.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,I.w)(()=>this._stepper.selectionChange.pipe((0,A.U)($=>$.selectedStep===this),(0,E.O)(this._stepper.selected===this)))).subscribe($=>{$&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState($,oe){return this._errorStateMatcher.isErrorState($,oe)||!!($&&$.invalid&&this.interacted)}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36((0,C.Gpc)(()=>Fe)),C.Y36(M.rD,4),C.Y36(C.s_b),C.Y36(t.gx,8))},Pe.\u0275cmp=C.Xpm({type:Pe,selectors:[["mat-step"]],contentQueries:function($,oe,Ce){if(1&$&&(C.Suo(Ce,N,5),C.Suo(Ce,Me,5)),2&$){let Ue;C.iGM(Ue=C.CRH())&&(oe.stepLabel=Ue.first),C.iGM(Ue=C.CRH())&&(oe._lazyContent=Ue.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:M.rD,useExisting:Pe},{provide:t.be,useExisting:Pe}]),C.qOj],ngContentSelectors:p,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function($,oe){1&$&&(C.F$t(),C.YNc(0,a,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),Pe})(),z=(()=>{class Pe extends t.B8{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,features:[C.qOj]}),Pe})(),Ze=(()=>{class Pe extends z{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["mat-horizontal-stepper"]],features:[C.qOj]}),Pe})(),vt=(()=>{class Pe extends z{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["mat-vertical-stepper"]],features:[C.qOj]}),Pe})(),Fe=(()=>{class Pe extends t.B8{constructor($,oe,Ce,Ue){super($,oe,Ce,Ue),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new R.x;const lt=Ce.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===lt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:$,templateRef:oe})=>this._iconOverrides[$]=oe),this.steps.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,w.x)(($,oe)=>$.fromState===oe.fromState&&$.toState===oe.toState),(0,P.R)(this._destroyed)).subscribe($=>{"current"===$.toState&&this.animationDone.emit()})}_stepIsNavigable($,oe){return oe.completed||this.selectedIndex===$||!this.linear}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36(j.Is,8),C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(y.K0))},Pe.\u0275cmp=C.Xpm({type:Pe,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function($,oe,Ce){if(1&$&&(C.Suo(Ce,we,5),C.Suo(Ce,K,5)),2&$){let Ue;C.iGM(Ue=C.CRH())&&(oe._steps=Ue),C.iGM(Ue=C.CRH())&&(oe._icons=Ue)}},viewQuery:function($,oe){if(1&$&&C.Gf(ze,5),2&$){let Ce;C.iGM(Ce=C.CRH())&&(oe._stepHeader=Ce)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function($,oe){2&$&&(C.uIk("aria-orientation",oe.orientation),C.ekj("mat-stepper-horizontal","horizontal"===oe.orientation)("mat-stepper-vertical","vertical"===oe.orientation)("mat-stepper-label-position-end","horizontal"===oe.orientation&&"end"==oe.labelPosition)("mat-stepper-label-position-bottom","horizontal"===oe.orientation&&"bottom"==oe.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:t.B8,useExisting:Pe},{provide:Ze,useExisting:Pe},{provide:vt,useExisting:Pe}]),C.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($,oe){1&$&&(C.ynx(0,0),C.YNc(1,x,5,2,"ng-container",1),C.YNc(2,b,2,1,"ng-container",1),C.BQk(),C.YNc(3,Z,1,23,"ng-template",null,2,C.W1O)),2&$&&(C.Q6J("ngSwitch",oe.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},directives:[y.RF,y.n9,y.sg,y.tP,y.O5,ze],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:[Oe.horizontalStepTransition,Oe.verticalStepTransition]},changeDetection:0}),Pe})(),Ne=(()=>{class Pe extends t.st{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function($,oe){2&$&&C.Ikx("type",oe.type)},inputs:{type:"type"},features:[C.qOj]}),Pe})(),ce=(()=>{class Pe extends t.po{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function($,oe){2&$&&C.Ikx("type",oe.type)},inputs:{type:"type"},features:[C.qOj]}),Pe})(),Le=(()=>{class Pe{}return Pe.\u0275fac=function($){return new($||Pe)},Pe.\u0275mod=C.oAB({type:Pe}),Pe.\u0275inj=C.cJS({providers:[be,M.rD],imports:[[M.BQ,y.ez,e.eL,o.ot,t.U5,l.Ps,M.si],M.BQ]}),Pe})()},2075:(Ge,Q,m)=>{"use strict";m.d(Q,{ev:()=>Be,Dz:()=>et,w1:()=>Jt,yh:()=>ke,mD:()=>Nt,Q2:()=>Bt,Ke:()=>st,ge:()=>ct,fO:()=>$t,XQ:()=>li,as:()=>at,Gk:()=>Rt,nj:()=>At,BZ:()=>De,by:()=>Xi,p0:()=>sn});var e=m(5e3),t=m(3191),y=m(449),C=m(9808),o=m(7579),M=m(457),l=m(1135),R=m(5191),s=m(9646),L=m(2722),I=m(5698),A=m(226),E=m(925),P=m(5303);const w=[[["caption"]],[["colgroup"],["col"]]],V=["caption","colgroup, col"];function te(Ke){return class extends Ke{constructor(..._t){super(..._t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(_t){const _e=this._sticky;this._sticky=(0,t.Ig)(_t),this._hasStickyChanged=_e!==this._sticky}hasStickyChanged(){const _t=this._hasStickyChanged;return this._hasStickyChanged=!1,_t}resetStickyChanged(){this._hasStickyChanged=!1}}}const ee=new e.OlP("CDK_TABLE");let le=(()=>{class Ke{constructor(_e){this.template=_e}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellDef",""]]}),Ke})(),re=(()=>{class Ke{constructor(_e){this.template=_e}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderCellDef",""]]}),Ke})(),de=(()=>{class Ke{constructor(_e){this.template=_e}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterCellDef",""]]}),Ke})();class se{}const ye=te(se);let v=(()=>{class Ke extends ye{constructor(_e){super(),this._table=_e,this._stickyEnd=!1}get name(){return this._name}set name(_e){this._setNameInput(_e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(_e){const qe=this._stickyEnd;this._stickyEnd=(0,t.Ig)(_e),this._hasStickyChanged=qe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(_e){_e&&(this._name=_e,this.cssClassFriendlyName=_e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkColumnDef",""]],contentQueries:function(_e,qe,yt){if(1&_e&&(e.Suo(yt,le,5),e.Suo(yt,re,5),e.Suo(yt,de,5)),2&_e){let ue;e.iGM(ue=e.CRH())&&(qe.cell=ue.first),e.iGM(ue=e.CRH())&&(qe.headerCell=ue.first),e.iGM(ue=e.CRH())&&(qe.footerCell=ue.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})();class i{constructor(_t,_e){const qe=_e.nativeElement.classList;for(const yt of _t._columnCssClassName)qe.add(yt)}}let a=(()=>{class Ke extends i{constructor(_e,qe){super(_e,qe)}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(v),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),Ke})(),p=(()=>{class Ke extends i{constructor(_e,qe){var yt;if(super(_e,qe),1===(null===(yt=_e._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const ue=_e._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===ue||"treegrid"===ue?"gridcell":"cell")}}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(v),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.qOj]}),Ke})(),u=(()=>{class Ke extends i{constructor(_e,qe){var yt;if(super(_e,qe),1===(null===(yt=_e._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const ue=_e._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===ue||"treegrid"===ue?"gridcell":"cell")}}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(v),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),Ke})();class _{constructor(){this.tasks=[],this.endTasks=[]}}const D=new e.OlP("_COALESCED_STYLE_SCHEDULER");let O=(()=>{class Ke{constructor(_e){this._ngZone=_e,this._currentSchedule=null,this._destroyed=new o.x}schedule(_e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(_e)}scheduleEnd(_e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(_e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new _,this._getScheduleObservable().pipe((0,L.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const _e=this._currentSchedule;this._currentSchedule=new _;for(const qe of _e.tasks)qe();for(const qe of _e.endTasks)qe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,M.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,I.q)(1))}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.LFG(e.R0b))},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),r=(()=>{class Ke{constructor(_e,qe){this.template=_e,this._differs=qe}ngOnChanges(_e){if(!this._columnsDiffer){const qe=_e.columns&&_e.columns.currentValue||[];this._columnsDiffer=this._differs.find(qe).create(),this._columnsDiffer.diff(qe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(_e){return this instanceof N?_e.headerCell.template:this instanceof be?_e.footerCell.template:_e.cell.template}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ke.\u0275dir=e.lG2({type:Ke,features:[e.TTD]}),Ke})();class b extends r{}const Z=te(b);let N=(()=>{class Ke extends Z{constructor(_e,qe,yt){super(_e,qe),this._table=yt}ngOnChanges(_e){super.ngOnChanges(_e)}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})();class U extends r{}const ve=te(U);let be=(()=>{class Ke extends ve{constructor(_e,qe,yt){super(_e,qe),this._table=yt}ngOnChanges(_e){super.ngOnChanges(_e)}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})(),Re=(()=>{class Ke extends r{constructor(_e,qe,yt){super(_e,qe),this._table=yt}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),Ke})(),ze=(()=>{class Ke{constructor(_e){this._viewContainer=_e,Ke.mostRecentCellOutlet=this}ngOnDestroy(){Ke.mostRecentCellOutlet===this&&(Ke.mostRecentCellOutlet=null)}}return Ke.mostRecentCellOutlet=null,Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.s_b))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellOutlet",""]]}),Ke})(),Oe=(()=>{class Ke{}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),K=(()=>{class Ke{}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Me=(()=>{class Ke{}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),we=(()=>{class Ke{constructor(_e){this.templateRef=_e,this._contentClassName="cdk-no-data-row"}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["ng-template","cdkNoDataRow",""]]}),Ke})();const z=["top","bottom","left","right"];class Ze{constructor(_t,_e,qe,yt,ue=!0,Je=!0,St){this._isNativeHtmlTable=_t,this._stickCellCss=_e,this.direction=qe,this._coalescedStyleScheduler=yt,this._isBrowser=ue,this._needsPositionStickyOnElement=Je,this._positionListener=St,this._cachedCellWidths=[],this._borderCellCss={top:`${_e}-border-elem-top`,bottom:`${_e}-border-elem-bottom`,left:`${_e}-border-elem-left`,right:`${_e}-border-elem-right`}}clearStickyPositioning(_t,_e){const qe=[];for(const yt of _t)if(yt.nodeType===yt.ELEMENT_NODE){qe.push(yt);for(let ue=0;ue{for(const yt of qe)this._removeStickyStyle(yt,_e)})}updateStickyColumns(_t,_e,qe,yt=!0){if(!_t.length||!this._isBrowser||!_e.some(qi=>qi)&&!qe.some(qi=>qi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const ue=_t[0],Je=ue.children.length,St=this._getCellWidths(ue,yt),kt=this._getStickyStartColumnPositions(St,_e),yi=this._getStickyEndColumnPositions(St,qe),Ni=_e.lastIndexOf(!0),Si=qe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const qi="rtl"===this.direction,ot=qi?"right":"left",Kt=qi?"left":"right";for(const gt of _t)for(let Lt=0;Lt_e[Lt]?gt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Si?[]:St.slice(Si).map((gt,Lt)=>qe[Lt+Si]?gt:null).reverse()}))})}stickRows(_t,_e,qe){if(!this._isBrowser)return;const yt="bottom"===qe?_t.slice().reverse():_t,ue="bottom"===qe?_e.slice().reverse():_e,Je=[],St=[],kt=[];for(let Ni=0,Si=0;Ni{var Ni,Si;for(let qi=0;qi{_e.some(yt=>!yt)?this._removeStickyStyle(qe,["bottom"]):this._addStickyStyle(qe,"bottom",0,!1)})}_removeStickyStyle(_t,_e){for(const yt of _e)_t.style[yt]="",_t.classList.remove(this._borderCellCss[yt]);z.some(yt=>-1===_e.indexOf(yt)&&_t.style[yt])?_t.style.zIndex=this._getCalculatedZIndex(_t):(_t.style.zIndex="",this._needsPositionStickyOnElement&&(_t.style.position=""),_t.classList.remove(this._stickCellCss))}_addStickyStyle(_t,_e,qe,yt){_t.classList.add(this._stickCellCss),yt&&_t.classList.add(this._borderCellCss[_e]),_t.style[_e]=`${qe}px`,_t.style.zIndex=this._getCalculatedZIndex(_t),this._needsPositionStickyOnElement&&(_t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(_t){const _e={top:100,bottom:10,left:1,right:1};let qe=0;for(const yt of z)_t.style[yt]&&(qe+=_e[yt]);return qe?`${qe}`:""}_getCellWidths(_t,_e=!0){if(!_e&&this._cachedCellWidths.length)return this._cachedCellWidths;const qe=[],yt=_t.children;for(let ue=0;ue0;ue--)_e[ue]&&(qe[ue]=yt,yt+=_t[ue]);return qe}}const oe=new e.OlP("CDK_SPL");let Ue=(()=>{class Ke{constructor(_e,qe){this.viewContainer=_e,this.elementRef=qe}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","rowOutlet",""]]}),Ke})(),lt=(()=>{class Ke{constructor(_e,qe){this.viewContainer=_e,this.elementRef=qe}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","headerRowOutlet",""]]}),Ke})(),nt=(()=>{class Ke{constructor(_e,qe){this.viewContainer=_e,this.elementRef=qe}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","footerRowOutlet",""]]}),Ke})(),ft=(()=>{class Ke{constructor(_e,qe){this.viewContainer=_e,this.elementRef=qe}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","noDataRowOutlet",""]]}),Ke})(),Mt=(()=>{class Ke{constructor(_e,qe,yt,ue,Je,St,kt,yi,Ni,Si,qi){this._differs=_e,this._changeDetectorRef=qe,this._elementRef=yt,this._dir=Je,this._platform=kt,this._viewRepeater=yi,this._coalescedStyleScheduler=Ni,this._viewportRuler=Si,this._stickyPositioningListener=qi,this._onDestroy=new o.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new l.X({start:0,end:Number.MAX_VALUE}),ue||this._elementRef.nativeElement.setAttribute("role","table"),this._document=St,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(_e){this._trackByFn=_e}get dataSource(){return this._dataSource}set dataSource(_e){this._dataSource!==_e&&this._switchDataSource(_e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(_e){this._multiTemplateDataRows=(0,t.Ig)(_e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(_e){this._fixedLayout=(0,t.Ig)(_e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((_e,qe)=>this.trackBy?this.trackBy(qe.dataIndex,qe.data):qe),this._viewportRuler.change().pipe((0,L.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const qe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||qe,this._forceRecalculateCellWidths=qe,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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,y.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const _e=this._dataDiffer.diff(this._renderRows);if(!_e)return this._updateNoDataRow(),void this.contentChanged.next();const qe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(_e,qe,(yt,ue,Je)=>this._getEmbeddedViewArgs(yt.item,Je),yt=>yt.item.data,yt=>{1===yt.operation&&yt.context&&this._renderCellTemplateForItem(yt.record.item.rowDef,yt.context)}),this._updateRowIndexContext(),_e.forEachIdentityChange(yt=>{qe.get(yt.currentIndex).context.$implicit=yt.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(_e){this._customColumnDefs.add(_e)}removeColumnDef(_e){this._customColumnDefs.delete(_e)}addRowDef(_e){this._customRowDefs.add(_e)}removeRowDef(_e){this._customRowDefs.delete(_e)}addHeaderRowDef(_e){this._customHeaderRowDefs.add(_e),this._headerRowDefChanged=!0}removeHeaderRowDef(_e){this._customHeaderRowDefs.delete(_e),this._headerRowDefChanged=!0}addFooterRowDef(_e){this._customFooterRowDefs.add(_e),this._footerRowDefChanged=!0}removeFooterRowDef(_e){this._customFooterRowDefs.delete(_e),this._footerRowDefChanged=!0}setNoDataRow(_e){this._customNoDataRow=_e}updateStickyHeaderRowStyles(){const _e=this._getRenderedRows(this._headerRowOutlet),yt=this._elementRef.nativeElement.querySelector("thead");yt&&(yt.style.display=_e.length?"":"none");const ue=this._headerRowDefs.map(Je=>Je.sticky);this._stickyStyler.clearStickyPositioning(_e,["top"]),this._stickyStyler.stickRows(_e,ue,"top"),this._headerRowDefs.forEach(Je=>Je.resetStickyChanged())}updateStickyFooterRowStyles(){const _e=this._getRenderedRows(this._footerRowOutlet),yt=this._elementRef.nativeElement.querySelector("tfoot");yt&&(yt.style.display=_e.length?"":"none");const ue=this._footerRowDefs.map(Je=>Je.sticky);this._stickyStyler.clearStickyPositioning(_e,["bottom"]),this._stickyStyler.stickRows(_e,ue,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,ue),this._footerRowDefs.forEach(Je=>Je.resetStickyChanged())}updateStickyColumnStyles(){const _e=this._getRenderedRows(this._headerRowOutlet),qe=this._getRenderedRows(this._rowOutlet),yt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([..._e,...qe,...yt],["left","right"]),this._stickyColumnStylesNeedReset=!1),_e.forEach((ue,Je)=>{this._addStickyColumnStyles([ue],this._headerRowDefs[Je])}),this._rowDefs.forEach(ue=>{const Je=[];for(let St=0;St{this._addStickyColumnStyles([ue],this._footerRowDefs[Je])}),Array.from(this._columnDefsByName.values()).forEach(ue=>ue.resetStickyChanged())}_getAllRenderRows(){const _e=[],qe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let yt=0;yt{const St=yt&&yt.has(Je)?yt.get(Je):[];if(St.length){const kt=St.shift();return kt.dataIndex=qe,kt}return{data:_e,rowDef:Je,dataIndex:qe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Zt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(qe=>{this._columnDefsByName.has(qe.name),this._columnDefsByName.set(qe.name,qe)})}_cacheRowDefs(){this._headerRowDefs=Zt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Zt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Zt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const _e=this._rowDefs.filter(qe=>!qe.when);this._defaultRowDef=_e[0]}_renderUpdatedColumns(){const _e=(Je,St)=>Je||!!St.getColumnsDiff(),qe=this._rowDefs.reduce(_e,!1);qe&&this._forceRenderDataRows();const yt=this._headerRowDefs.reduce(_e,!1);yt&&this._forceRenderHeaderRows();const ue=this._footerRowDefs.reduce(_e,!1);return ue&&this._forceRenderFooterRows(),qe||yt||ue}_switchDataSource(_e){this._data=[],(0,y.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),_e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=_e}_observeRenderChanges(){if(!this.dataSource)return;let _e;(0,y.Z9)(this.dataSource)?_e=this.dataSource.connect(this):(0,R.b)(this.dataSource)?_e=this.dataSource:Array.isArray(this.dataSource)&&(_e=(0,s.of)(this.dataSource)),this._renderChangeSubscription=_e.pipe((0,L.R)(this._onDestroy)).subscribe(qe=>{this._data=qe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((_e,qe)=>this._renderRow(this._headerRowOutlet,_e,qe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((_e,qe)=>this._renderRow(this._footerRowOutlet,_e,qe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(_e,qe){const yt=Array.from(qe.columns||[]).map(St=>this._columnDefsByName.get(St)),ue=yt.map(St=>St.sticky),Je=yt.map(St=>St.stickyEnd);this._stickyStyler.updateStickyColumns(_e,ue,Je,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(_e){const qe=[];for(let yt=0;yt<_e.viewContainer.length;yt++){const ue=_e.viewContainer.get(yt);qe.push(ue.rootNodes[0])}return qe}_getRowDefs(_e,qe){if(1==this._rowDefs.length)return[this._rowDefs[0]];let yt=[];if(this.multiTemplateDataRows)yt=this._rowDefs.filter(ue=>!ue.when||ue.when(qe,_e));else{let ue=this._rowDefs.find(Je=>Je.when&&Je.when(qe,_e))||this._defaultRowDef;ue&&yt.push(ue)}return yt}_getEmbeddedViewArgs(_e,qe){return{templateRef:_e.rowDef.template,context:{$implicit:_e.data},index:qe}}_renderRow(_e,qe,yt,ue={}){const Je=_e.viewContainer.createEmbeddedView(qe.template,ue,yt);return this._renderCellTemplateForItem(qe,ue),Je}_renderCellTemplateForItem(_e,qe){for(let yt of this._getCellTemplates(_e))ze.mostRecentCellOutlet&&ze.mostRecentCellOutlet._viewContainer.createEmbeddedView(yt,qe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const _e=this._rowOutlet.viewContainer;for(let qe=0,yt=_e.length;qe{const yt=this._columnDefsByName.get(qe);return _e.extractCellTemplate(yt)}):[]}_applyNativeTableSections(){const _e=this._document.createDocumentFragment(),qe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const yt of qe){const ue=this._document.createElement(yt.tag);ue.setAttribute("role","rowgroup");for(const Je of yt.outlets)ue.appendChild(Je.elementRef.nativeElement);_e.appendChild(ue)}this._elementRef.nativeElement.appendChild(_e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const _e=(qe,yt)=>qe||yt.hasStickyChanged();this._headerRowDefs.reduce(_e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(_e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(_e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ze(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,s.of)()).pipe((0,L.R)(this._onDestroy)).subscribe(qe=>{this._stickyStyler.direction=qe,this.updateStickyColumnStyles()})}_getOwnDefs(_e){return _e.filter(qe=>!qe._table||qe._table===this)}_updateNoDataRow(){const _e=this._customNoDataRow||this._noDataRow;if(!_e)return;const qe=0===this._rowOutlet.viewContainer.length;if(qe===this._isShowingNoDataRow)return;const yt=this._noDataRowOutlet.viewContainer;if(qe){const ue=yt.createEmbeddedView(_e.templateRef),Je=ue.rootNodes[0];1===ue.rootNodes.length&&(null==Je?void 0:Je.nodeType)===this._document.ELEMENT_NODE&&(Je.setAttribute("role","row"),Je.classList.add(_e._contentClassName))}else yt.clear();this._isShowingNoDataRow=qe}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(A.Is,8),e.Y36(C.K0),e.Y36(E.t4),e.Y36(y.k),e.Y36(D),e.Y36(P.rL),e.Y36(oe,12))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(_e,qe,yt){if(1&_e&&(e.Suo(yt,we,5),e.Suo(yt,v,5),e.Suo(yt,Re,5),e.Suo(yt,N,5),e.Suo(yt,be,5)),2&_e){let ue;e.iGM(ue=e.CRH())&&(qe._noDataRow=ue.first),e.iGM(ue=e.CRH())&&(qe._contentColumnDefs=ue),e.iGM(ue=e.CRH())&&(qe._contentRowDefs=ue),e.iGM(ue=e.CRH())&&(qe._contentHeaderRowDefs=ue),e.iGM(ue=e.CRH())&&(qe._contentFooterRowDefs=ue)}},viewQuery:function(_e,qe){if(1&_e&&(e.Gf(Ue,7),e.Gf(lt,7),e.Gf(nt,7),e.Gf(ft,7)),2&_e){let yt;e.iGM(yt=e.CRH())&&(qe._rowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._headerRowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._footerRowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._noDataRowOutlet=yt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(_e,qe){2&_e&&e.ekj("cdk-table-fixed-layout",qe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:ee,useExisting:Ke},{provide:y.k,useClass:y.yy},{provide:D,useClass:O},{provide:oe,useValue:null}])],ngContentSelectors:V,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,qe){1&_e&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[lt,Ue,ft,nt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ke})();function Zt(Ke,_t){return Ke.concat(Array.from(_t))}let Ii=(()=>{class Ke{}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[P.Cl]]}),Ke})();var jt=m(508),ei=m(6451),ki=m(9841),ai=m(4004);const hi=[[["caption"]],[["colgroup"],["col"]]],Ve=["caption","colgroup, col"];let De=(()=>{class Ke extends Mt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(_e,qe){2&_e&&e.ekj("mat-table-fixed-layout",qe.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:y.k,useClass:y.yy},{provide:Mt,useExisting:Ke},{provide:ee,useExisting:Ke},{provide:D,useClass:O},{provide:oe,useValue:null}]),e.qOj],ngContentSelectors:Ve,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,qe){1&_e&&(e.F$t(hi),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[lt,Ue,ft,nt],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),Ke})(),et=(()=>{class Ke extends le{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:le,useExisting:Ke}]),e.qOj]}),Ke})(),$t=(()=>{class Ke extends re{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:re,useExisting:Ke}]),e.qOj]}),Ke})(),Nt=(()=>{class Ke extends de{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:de,useExisting:Ke}]),e.qOj]}),Ke})(),Jt=(()=>{class Ke extends v{get name(){return this._name}set name(_e){this._setNameInput(_e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:v,useExisting:Ke},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})(),ct=(()=>{class Ke extends a{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),Ke})(),ke=(()=>{class Ke extends p{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]}),Ke})(),Be=(()=>{class Ke extends u{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),Ke})(),at=(()=>{class Ke extends N{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:N,useExisting:Ke}]),e.qOj]}),Ke})(),st=(()=>{class Ke extends be{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:be,useExisting:Ke}]),e.qOj]}),Ke})(),At=(()=>{class Ke extends Re{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Re,useExisting:Ke}]),e.qOj]}),Ke})(),li=(()=>{class Ke extends Oe{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Oe,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Bt=(()=>{class Ke extends K{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:K,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Rt=(()=>{class Ke extends Me{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Me,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),sn=(()=>{class Ke{}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[Ii,jt.BQ],jt.BQ]}),Ke})();class Di extends y.o2{constructor(_t=[]){super(),this._renderData=new l.X([]),this._filter=new l.X(""),this._internalPageChanges=new o.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(_e,qe)=>{const yt=_e[qe];if((0,t.t6)(yt)){const ue=Number(yt);return ue<9007199254740991?ue:yt}return yt},this.sortData=(_e,qe)=>{const yt=qe.active,ue=qe.direction;return yt&&""!=ue?_e.sort((Je,St)=>{let kt=this.sortingDataAccessor(Je,yt),yi=this.sortingDataAccessor(St,yt);const Ni=typeof kt,Si=typeof yi;Ni!==Si&&("number"===Ni&&(kt+=""),"number"===Si&&(yi+=""));let qi=0;return null!=kt&&null!=yi?kt>yi?qi=1:kt{const yt=Object.keys(_e).reduce((Je,St)=>Je+_e[St]+"\u25ec","").toLowerCase(),ue=qe.trim().toLowerCase();return-1!=yt.indexOf(ue)},this._data=new l.X(_t),this._updateChangeSubscription()}get data(){return this._data.value}set data(_t){this._data.next(_t),this._renderChangesSubscription||this._filterData(_t)}get filter(){return this._filter.value}set filter(_t){this._filter.next(_t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(_t){this._sort=_t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(_t){this._paginator=_t,this._updateChangeSubscription()}_updateChangeSubscription(){var _t;const _e=this._sort?(0,ei.T)(this._sort.sortChange,this._sort.initialized):(0,s.of)(null),qe=this._paginator?(0,ei.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,s.of)(null),ue=(0,ki.a)([this._data,this._filter]).pipe((0,ai.U)(([kt])=>this._filterData(kt))),Je=(0,ki.a)([ue,_e]).pipe((0,ai.U)(([kt])=>this._orderData(kt))),St=(0,ki.a)([Je,qe]).pipe((0,ai.U)(([kt])=>this._pageData(kt)));null===(_t=this._renderChangesSubscription)||void 0===_t||_t.unsubscribe(),this._renderChangesSubscription=St.subscribe(kt=>this._renderData.next(kt))}_filterData(_t){return this.filteredData=null==this.filter||""===this.filter?_t:_t.filter(_e=>this.filterPredicate(_e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(_t){return this.sort?this.sortData(_t.slice(),this.sort):_t}_pageData(_t){if(!this.paginator)return _t;const _e=this.paginator.pageIndex*this.paginator.pageSize;return _t.slice(_e,_e+this.paginator.pageSize)}_updatePaginator(_t){Promise.resolve().then(()=>{const _e=this.paginator;if(_e&&(_e.length=_t,_e.pageIndex>0)){const qe=Math.ceil(_e.length/_e.pageSize)-1||0,yt=Math.min(_e.pageIndex,qe);yt!==_e.pageIndex&&(_e.pageIndex=yt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var _t;null===(_t=this._renderChangesSubscription)||void 0===_t||_t.unsubscribe(),this._renderChangesSubscription=null}}class Xi extends Di{}},3251:(Ge,Q,m)=>{"use strict";m.d(Q,{uX:()=>vt,SP:()=>Vt,uD:()=>we,Nj:()=>ai,BU:()=>jt,Nh:()=>hi});var e=m(5664),t=m(7144),y=m(7429),C=m(9808),o=m(5e3),M=m(508),l=m(6360),R=m(7579),s=m(727),L=m(4968),I=m(9646),A=m(6451),E=m(2805),P=m(1777),w=m(8675),V=m(1884),j=m(2722),W=m(226),te=m(3191),ee=m(1159),ge=m(925),le=m(5303);function re(Ve,Ee){1&Ve&&o.Hsn(0)}const de=["*"];function se(Ve,Ee){}const ye=function(Ve){return{animationDuration:Ve}},v=function(Ve,Ee){return{value:Ve,params:Ee}},i=["tabListContainer"],a=["tabList"],p=["tabListInner"],u=["nextPaginator"],_=["previousPaginator"],D=["tabBodyWrapper"],O=["tabHeader"];function x(Ve,Ee){}function r(Ve,Ee){if(1&Ve&&o.YNc(0,x,0,0,"ng-template",9),2&Ve){const Y=o.oxw().$implicit;o.Q6J("cdkPortalOutlet",Y.templateLabel)}}function b(Ve,Ee){if(1&Ve&&o._uU(0),2&Ve){const Y=o.oxw().$implicit;o.Oqu(Y.textLabel)}}function Z(Ve,Ee){if(1&Ve){const Y=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const De=o.CHM(Y),et=De.$implicit,$t=De.index,Nt=o.oxw(),Jt=o.MAs(1);return Nt._handleClick(et,Jt,$t)})("cdkFocusChange",function(De){const $t=o.CHM(Y).index;return o.oxw()._tabFocusChanged(De,$t)}),o.TgZ(1,"div",7),o.YNc(2,r,1,1,"ng-template",8),o.YNc(3,b,1,1,"ng-template",8),o.qZA(),o.qZA()}if(2&Ve){const Y=Ee.$implicit,pe=Ee.index,De=o.oxw();o.ekj("mat-tab-label-active",De.selectedIndex==pe),o.Q6J("id",De._getTabLabelId(pe))("disabled",Y.disabled)("matRippleDisabled",Y.disabled||De.disableRipple),o.uIk("tabIndex",De._getTabIndex(Y,pe))("aria-posinset",pe+1)("aria-setsize",De._tabs.length)("aria-controls",De._getTabContentId(pe))("aria-selected",De.selectedIndex==pe)("aria-label",Y.ariaLabel||null)("aria-labelledby",!Y.ariaLabel&&Y.ariaLabelledby?Y.ariaLabelledby:null),o.xp6(2),o.Q6J("ngIf",Y.templateLabel),o.xp6(1),o.Q6J("ngIf",!Y.templateLabel)}}function N(Ve,Ee){if(1&Ve){const Y=o.EpF();o.TgZ(0,"mat-tab-body",10),o.NdJ("_onCentered",function(){return o.CHM(Y),o.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(De){return o.CHM(Y),o.oxw()._setTabBodyWrapperHeight(De)}),o.qZA()}if(2&Ve){const Y=Ee.$implicit,pe=Ee.index,De=o.oxw();o.ekj("mat-tab-body-active",De.selectedIndex===pe),o.Q6J("id",De._getTabContentId(pe))("content",Y.content)("position",Y.position)("origin",Y.origin)("animationDuration",De.animationDuration),o.uIk("tabindex",null!=De.contentTabIndex&&De.selectedIndex===pe?De.contentTabIndex:null)("aria-labelledby",De._getTabLabelId(pe))}}const U=["mat-tab-nav-bar",""],ve=new o.OlP("MatInkBarPositioner",{providedIn:"root",factory:function be(){return Ee=>({left:Ee?(Ee.offsetLeft||0)+"px":"0",width:Ee?(Ee.offsetWidth||0)+"px":"0"})}});let Re=(()=>{class Ve{constructor(Y,pe,De,et){this._elementRef=Y,this._ngZone=pe,this._inkBarPositioner=De,this._animationMode=et}alignToElement(Y){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(Y))}):this._setStyles(Y)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(Y){const pe=this._inkBarPositioner(Y),De=this._elementRef.nativeElement;De.style.left=pe.left,De.style.width=pe.width}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(ve),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Y,pe){2&Y&&o.ekj("_mat-animation-noopable","NoopAnimations"===pe._animationMode)}}),Ve})();const ze=new o.OlP("MatTabContent"),K=new o.OlP("MatTabLabel"),Me=new o.OlP("MAT_TAB");let we=(()=>{class Ve extends y.ig{constructor(Y,pe,De){super(Y,pe),this._closestTab=De}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.Rgc),o.Y36(o.s_b),o.Y36(Me,8))},Ve.\u0275dir=o.lG2({type:Ve,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[o._Bn([{provide:K,useExisting:Ve}]),o.qOj]}),Ve})();const z=(0,M.Id)(class{}),Ze=new o.OlP("MAT_TAB_GROUP");let vt=(()=>{class Ve extends z{constructor(Y,pe){super(),this._viewContainerRef=Y,this._closestTabGroup=pe,this.textLabel="",this._contentPortal=null,this._stateChanges=new R.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Y){this._setTemplateLabelInput(Y)}get content(){return this._contentPortal}ngOnChanges(Y){(Y.hasOwnProperty("textLabel")||Y.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new y.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Y){Y&&Y._closestTab===this&&(this._templateLabel=Y)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.s_b),o.Y36(Ze,8))},Ve.\u0275cmp=o.Xpm({type:Ve,selectors:[["mat-tab"]],contentQueries:function(Y,pe,De){if(1&Y&&(o.Suo(De,K,5),o.Suo(De,ze,7,o.Rgc)),2&Y){let et;o.iGM(et=o.CRH())&&(pe.templateLabel=et.first),o.iGM(et=o.CRH())&&(pe._explicitContent=et.first)}},viewQuery:function(Y,pe){if(1&Y&&o.Gf(o.Rgc,7),2&Y){let De;o.iGM(De=o.CRH())&&(pe._implicitContent=De.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[o._Bn([{provide:Me,useExisting:Ve}]),o.qOj,o.TTD],ngContentSelectors:de,decls:1,vars:0,template:function(Y,pe){1&Y&&(o.F$t(),o.YNc(0,re,1,0,"ng-template"))},encapsulation:2}),Ve})();const Fe={translateTab:(0,P.X$)("translateTab",[(0,P.SB)("center, void, left-origin-center, right-origin-center",(0,P.oB)({transform:"none"})),(0,P.SB)("left",(0,P.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,P.SB)("right",(0,P.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,P.eR)("* => left, * => right, left => center, right => center",(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,P.eR)("void => left-origin-center",[(0,P.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,P.eR)("void => right-origin-center",[(0,P.oB)({transform:"translate3d(100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ne=(()=>{class Ve extends y.Pl{constructor(Y,pe,De,et){super(Y,pe,et),this._host=De,this._centeringSub=s.w0.EMPTY,this._leavingSub=s.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(Y=>{Y&&!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 Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o._Vd),o.Y36(o.s_b),o.Y36((0,o.Gpc)(()=>Le)),o.Y36(C.K0))},Ve.\u0275dir=o.lG2({type:Ve,selectors:[["","matTabBodyHost",""]],features:[o.qOj]}),Ve})(),ce=(()=>{class Ve{constructor(Y,pe,De){this._elementRef=Y,this._dir=pe,this._dirChangeSubscription=s.w0.EMPTY,this._translateTabComplete=new R.x,this._onCentering=new o.vpe,this._beforeCentering=new o.vpe,this._afterLeavingCenter=new o.vpe,this._onCentered=new o.vpe(!0),this.animationDuration="500ms",pe&&(this._dirChangeSubscription=pe.change.subscribe(et=>{this._computePositionAnimationState(et),De.markForCheck()})),this._translateTabComplete.pipe((0,V.x)((et,$t)=>et.fromState===$t.fromState&&et.toState===$t.toState)).subscribe(et=>{this._isCenterPosition(et.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(et.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Y){this._positionIndex=Y,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Y){const pe=this._isCenterPosition(Y.toState);this._beforeCentering.emit(pe),pe&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Y){return"center"==Y||"left-origin-center"==Y||"right-origin-center"==Y}_computePositionAnimationState(Y=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Y?"left":"right":this._positionIndex>0?"ltr"==Y?"right":"left":"center"}_computePositionFromOrigin(Y){const pe=this._getLayoutDirection();return"ltr"==pe&&Y<=0||"rtl"==pe&&Y>0?"left-origin-center":"right-origin-center"}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.sBO))},Ve.\u0275dir=o.lG2({type:Ve,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ve})(),Le=(()=>{class Ve extends ce{constructor(Y,pe,De){super(Y,pe,De)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.sBO))},Ve.\u0275cmp=o.Xpm({type:Ve,selectors:[["mat-tab-body"]],viewQuery:function(Y,pe){if(1&Y&&o.Gf(y.Pl,5),2&Y){let De;o.iGM(De=o.CRH())&&(pe._portalHost=De.first)}},hostAttrs:[1,"mat-tab-body"],features:[o.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Y,pe){1&Y&&(o.TgZ(0,"div",0,1),o.NdJ("@translateTab.start",function(et){return pe._onTranslateTabStarted(et)})("@translateTab.done",function(et){return pe._translateTabComplete.next(et)}),o.YNc(2,se,0,0,"ng-template",2),o.qZA()),2&Y&&o.Q6J("@translateTab",o.WLB(3,v,pe._position,o.VKq(1,ye,pe.animationDuration)))},directives:[Ne],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Fe.translateTab]}}),Ve})();const Pe=new o.OlP("MAT_TABS_CONFIG"),q=(0,M.Id)(class{});let $=(()=>{class Ve extends q{constructor(Y){super(),this.elementRef=Y}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq))},Ve.\u0275dir=o.lG2({type:Ve,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Y,pe){2&Y&&(o.uIk("aria-disabled",!!pe.disabled),o.ekj("mat-tab-disabled",pe.disabled))},inputs:{disabled:"disabled"},features:[o.qOj]}),Ve})();const oe=(0,ge.i$)({passive:!0});let nt=(()=>{class Ve{constructor(Y,pe,De,et,$t,Nt,Jt){this._elementRef=Y,this._changeDetectorRef=pe,this._viewportRuler=De,this._dir=et,this._ngZone=$t,this._platform=Nt,this._animationMode=Jt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new R.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new R.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new o.vpe,this.indexFocused=new o.vpe,$t.runOutsideAngular(()=>{(0,L.R)(Y.nativeElement,"mouseleave").pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Y){Y=(0,te.su)(Y),this._selectedIndex!=Y&&(this._selectedIndexChanged=!0,this._selectedIndex=Y,this._keyManager&&this._keyManager.updateActiveItem(Y))}ngAfterViewInit(){(0,L.R)(this._previousPaginator.nativeElement,"touchstart",oe).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,L.R)(this._nextPaginator.nativeElement,"touchstart",oe).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Y=this._dir?this._dir.change:(0,I.of)("ltr"),pe=this._viewportRuler.change(150),De=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(De):De(),(0,A.T)(Y,pe,this._items.changes).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(De)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,j.R)(this._destroyed)).subscribe(et=>{this.indexFocused.emit(et),this._setTabFocus(et)})}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(Y){if(!(0,ee.Vb)(Y))switch(Y.keyCode){case ee.K5:case ee.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Y));break;default:this._keyManager.onKeydown(Y)}}_onContentChanges(){const Y=this._elementRef.nativeElement.textContent;Y!==this._currentTextContent&&(this._currentTextContent=Y||"",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(Y){!this._isValidIndex(Y)||this.focusIndex===Y||!this._keyManager||this._keyManager.setActiveItem(Y)}_isValidIndex(Y){if(!this._items)return!0;const pe=this._items?this._items.toArray()[Y]:null;return!!pe&&!pe.disabled}_setTabFocus(Y){if(this._showPaginationControls&&this._scrollToLabel(Y),this._items&&this._items.length){this._items.toArray()[Y].focus();const pe=this._tabListContainer.nativeElement;pe.scrollLeft="ltr"==this._getLayoutDirection()?0:pe.scrollWidth-pe.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Y=this.scrollDistance,pe="ltr"===this._getLayoutDirection()?-Y:Y;this._tabList.nativeElement.style.transform=`translateX(${Math.round(pe)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Y){this._scrollTo(Y)}_scrollHeader(Y){return this._scrollTo(this._scrollDistance+("before"==Y?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Y){this._stopInterval(),this._scrollHeader(Y)}_scrollToLabel(Y){if(this.disablePagination)return;const pe=this._items?this._items.toArray()[Y]:null;if(!pe)return;const De=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:et,offsetWidth:$t}=pe.elementRef.nativeElement;let Nt,Jt;"ltr"==this._getLayoutDirection()?(Nt=et,Jt=Nt+$t):(Jt=this._tabListInner.nativeElement.offsetWidth-et,Nt=Jt-$t);const ct=this.scrollDistance,ke=this.scrollDistance+De;Ntke&&(this.scrollDistance+=Jt-ke+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Y=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Y||(this.scrollDistance=0),Y!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Y}}_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 Y=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,pe=Y?Y.elementRef.nativeElement:null;pe?this._inkBar.alignToElement(pe):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Y,pe){pe&&null!=pe.button&&0!==pe.button||(this._stopInterval(),(0,E.H)(650,100).pipe((0,j.R)((0,A.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:De,distance:et}=this._scrollHeader(Y);(0===et||et>=De)&&this._stopInterval()}))}_scrollTo(Y){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const pe=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(pe,Y)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:pe,distance:this._scrollDistance}}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(le.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(ge.t4),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,inputs:{disablePagination:"disablePagination"}}),Ve})(),ft=(()=>{class Ve extends nt{constructor(Y,pe,De,et,$t,Nt,Jt){super(Y,pe,De,et,$t,Nt,Jt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Y){this._disableRipple=(0,te.Ig)(Y)}_itemSelected(Y){Y.preventDefault()}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(le.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(ge.t4),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,inputs:{disableRipple:"disableRipple"},features:[o.qOj]}),Ve})(),it=(()=>{class Ve extends ft{constructor(Y,pe,De,et,$t,Nt,Jt){super(Y,pe,De,et,$t,Nt,Jt)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(le.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(ge.t4),o.Y36(l.Qb,8))},Ve.\u0275cmp=o.Xpm({type:Ve,selectors:[["mat-tab-header"]],contentQueries:function(Y,pe,De){if(1&Y&&o.Suo(De,$,4),2&Y){let et;o.iGM(et=o.CRH())&&(pe._items=et)}},viewQuery:function(Y,pe){if(1&Y&&(o.Gf(Re,7),o.Gf(i,7),o.Gf(a,7),o.Gf(p,7),o.Gf(u,5),o.Gf(_,5)),2&Y){let De;o.iGM(De=o.CRH())&&(pe._inkBar=De.first),o.iGM(De=o.CRH())&&(pe._tabListContainer=De.first),o.iGM(De=o.CRH())&&(pe._tabList=De.first),o.iGM(De=o.CRH())&&(pe._tabListInner=De.first),o.iGM(De=o.CRH())&&(pe._nextPaginator=De.first),o.iGM(De=o.CRH())&&(pe._previousPaginator=De.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Y,pe){2&Y&&o.ekj("mat-tab-header-pagination-controls-enabled",pe._showPaginationControls)("mat-tab-header-rtl","rtl"==pe._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[o.qOj],ngContentSelectors:de,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,pe){1&Y&&(o.F$t(),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return pe._handlePaginatorClick("before")})("mousedown",function(et){return pe._handlePaginatorPress("before",et)})("touchend",function(){return pe._stopInterval()}),o._UZ(2,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.NdJ("keydown",function(et){return pe._handleKeydown(et)}),o.TgZ(5,"div",5,6),o.NdJ("cdkObserveContent",function(){return pe._onContentChanges()}),o.TgZ(7,"div",7,8),o.Hsn(9),o.qZA(),o._UZ(10,"mat-ink-bar"),o.qZA(),o.qZA(),o.TgZ(11,"div",9,10),o.NdJ("mousedown",function(et){return pe._handlePaginatorPress("after",et)})("click",function(){return pe._handlePaginatorClick("after")})("touchend",function(){return pe._stopInterval()}),o._UZ(13,"div",2),o.qZA()),2&Y&&(o.ekj("mat-tab-header-pagination-disabled",pe._disableScrollBefore),o.Q6J("matRippleDisabled",pe._disableScrollBefore||pe.disableRipple),o.xp6(5),o.ekj("_mat-animation-noopable","NoopAnimations"===pe._animationMode),o.xp6(6),o.ekj("mat-tab-header-pagination-disabled",pe._disableScrollAfter),o.Q6J("matRippleDisabled",pe._disableScrollAfter||pe.disableRipple))},directives:[M.wG,t.wD,Re],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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}.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;content:"";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}),Ve})(),rt=0;class Mt{}const Zt=(0,M.pj)((0,M.Kr)(class{constructor(Ve){this._elementRef=Ve}}),"primary");let Ft=(()=>{class Ve extends Zt{constructor(Y,pe,De,et){var $t;super(Y),this._changeDetectorRef=pe,this._animationMode=et,this._tabs=new o.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=s.w0.EMPTY,this._tabLabelSubscription=s.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new o.vpe,this.focusChange=new o.vpe,this.animationDone=new o.vpe,this.selectedTabChange=new o.vpe(!0),this._groupId=rt++,this.animationDuration=De&&De.animationDuration?De.animationDuration:"500ms",this.disablePagination=!(!De||null==De.disablePagination)&&De.disablePagination,this.dynamicHeight=!(!De||null==De.dynamicHeight)&&De.dynamicHeight,this.contentTabIndex=null!==($t=null==De?void 0:De.contentTabIndex)&&void 0!==$t?$t:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Y){this._dynamicHeight=(0,te.Ig)(Y)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Y){this._indexToSelect=(0,te.su)(Y,null)}get animationDuration(){return this._animationDuration}set animationDuration(Y){this._animationDuration=/^\d+$/.test(Y)?Y+"ms":Y}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Y){this._contentTabIndex=(0,te.su)(Y,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Y){const pe=this._elementRef.nativeElement;pe.classList.remove(`mat-background-${this.backgroundColor}`),Y&&pe.classList.add(`mat-background-${Y}`),this._backgroundColor=Y}ngAfterContentChecked(){const Y=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Y){const pe=null==this._selectedIndex;if(!pe){this.selectedTabChange.emit(this._createChangeEvent(Y));const De=this._tabBodyWrapper.nativeElement;De.style.minHeight=De.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((De,et)=>De.isActive=et===Y),pe||(this.selectedIndexChange.emit(Y),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((pe,De)=>{pe.position=De-Y,null!=this._selectedIndex&&0==pe.position&&!pe.origin&&(pe.origin=Y-this._selectedIndex)}),this._selectedIndex!==Y&&(this._selectedIndex=Y,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const pe=this._tabs.toArray();for(let De=0;De{this._tabs.reset(Y.filter(pe=>pe._closestTabGroup===this||!pe._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(Y){const pe=this._tabHeader;pe&&(pe.focusIndex=Y)}_focusChanged(Y){this.focusChange.emit(this._createChangeEvent(Y))}_createChangeEvent(Y){const pe=new Mt;return pe.index=Y,this._tabs&&this._tabs.length&&(pe.tab=this._tabs.toArray()[Y]),pe}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,A.T)(...this._tabs.map(Y=>Y._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Y){return Math.min(this._tabs.length-1,Math.max(Y||0,0))}_getTabLabelId(Y){return`mat-tab-label-${this._groupId}-${Y}`}_getTabContentId(Y){return`mat-tab-content-${this._groupId}-${Y}`}_setTabBodyWrapperHeight(Y){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const pe=this._tabBodyWrapper.nativeElement;pe.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(pe.style.height=Y+"px")}_removeTabBodyWrapperHeight(){const Y=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Y.clientHeight,Y.style.height="",this.animationDone.emit()}_handleClick(Y,pe,De){Y.disabled||(this.selectedIndex=pe.focusIndex=De)}_getTabIndex(Y,pe){return Y.disabled?null:this.selectedIndex===pe?0:-1}_tabFocusChanged(Y,pe){Y&&"mouse"!==Y&&"touch"!==Y&&(this._tabHeader.focusIndex=pe)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(Pe,8),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,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:[o.qOj]}),Ve})(),Vt=(()=>{class Ve extends Ft{constructor(Y,pe,De,et){super(Y,pe,De,et)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(Pe,8),o.Y36(l.Qb,8))},Ve.\u0275cmp=o.Xpm({type:Ve,selectors:[["mat-tab-group"]],contentQueries:function(Y,pe,De){if(1&Y&&o.Suo(De,vt,5),2&Y){let et;o.iGM(et=o.CRH())&&(pe._allTabs=et)}},viewQuery:function(Y,pe){if(1&Y&&(o.Gf(D,5),o.Gf(O,5)),2&Y){let De;o.iGM(De=o.CRH())&&(pe._tabBodyWrapper=De.first),o.iGM(De=o.CRH())&&(pe._tabHeader=De.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Y,pe){2&Y&&o.ekj("mat-tab-group-dynamic-height",pe.dynamicHeight)("mat-tab-group-inverted-header","below"===pe.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[o._Bn([{provide:Ze,useExisting:Ve}]),o.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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Y,pe){1&Y&&(o.TgZ(0,"mat-tab-header",0,1),o.NdJ("indexFocused",function(et){return pe._focusChanged(et)})("selectFocusedIndex",function(et){return pe.selectedIndex=et}),o.YNc(2,Z,4,14,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.YNc(5,N,1,9,"mat-tab-body",5),o.qZA()),2&Y&&(o.Q6J("selectedIndex",pe.selectedIndex||0)("disableRipple",pe.disableRipple)("disablePagination",pe.disablePagination),o.xp6(2),o.Q6J("ngForOf",pe._tabs),o.xp6(1),o.ekj("_mat-animation-noopable","NoopAnimations"===pe._animationMode),o.xp6(2),o.Q6J("ngForOf",pe._tabs))},directives:[it,C.sg,$,M.wG,e.kH,C.O5,y.Pl,Le],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}),Ve})(),Ii=(()=>{class Ve extends nt{constructor(Y,pe,De,et,$t,Nt,Jt){super(Y,et,$t,pe,De,Nt,Jt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Y){const pe=this._elementRef.nativeElement.classList;pe.remove(`mat-background-${this.backgroundColor}`),Y&&pe.add(`mat-background-${Y}`),this._backgroundColor=Y}get disableRipple(){return this._disableRipple}set disableRipple(Y){this._disableRipple=(0,te.Ig)(Y)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,j.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Y=this._items.toArray();for(let pe=0;pe{class Ve extends Ii{constructor(Y,pe,De,et,$t,Nt,Jt){super(Y,pe,De,et,$t,Nt,Jt)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(le.rL),o.Y36(ge.t4),o.Y36(l.Qb,8))},Ve.\u0275cmp=o.Xpm({type:Ve,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Y,pe,De){if(1&Y&&o.Suo(De,ai,5),2&Y){let et;o.iGM(et=o.CRH())&&(pe._items=et)}},viewQuery:function(Y,pe){if(1&Y&&(o.Gf(Re,7),o.Gf(i,7),o.Gf(a,7),o.Gf(p,7),o.Gf(u,5),o.Gf(_,5)),2&Y){let De;o.iGM(De=o.CRH())&&(pe._inkBar=De.first),o.iGM(De=o.CRH())&&(pe._tabListContainer=De.first),o.iGM(De=o.CRH())&&(pe._tabList=De.first),o.iGM(De=o.CRH())&&(pe._tabListInner=De.first),o.iGM(De=o.CRH())&&(pe._nextPaginator=De.first),o.iGM(De=o.CRH())&&(pe._previousPaginator=De.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(Y,pe){2&Y&&o.ekj("mat-tab-header-pagination-controls-enabled",pe._showPaginationControls)("mat-tab-header-rtl","rtl"==pe._getLayoutDirection())("mat-primary","warn"!==pe.color&&"accent"!==pe.color)("mat-accent","accent"===pe.color)("mat-warn","warn"===pe.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[o.qOj],attrs:U,ngContentSelectors:de,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,pe){1&Y&&(o.F$t(),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return pe._handlePaginatorClick("before")})("mousedown",function(et){return pe._handlePaginatorPress("before",et)})("touchend",function(){return pe._stopInterval()}),o._UZ(2,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.NdJ("keydown",function(et){return pe._handleKeydown(et)}),o.TgZ(5,"div",5,6),o.NdJ("cdkObserveContent",function(){return pe._onContentChanges()}),o.TgZ(7,"div",7,8),o.Hsn(9),o.qZA(),o._UZ(10,"mat-ink-bar"),o.qZA(),o.qZA(),o.TgZ(11,"div",9,10),o.NdJ("mousedown",function(et){return pe._handlePaginatorPress("after",et)})("click",function(){return pe._handlePaginatorClick("after")})("touchend",function(){return pe._stopInterval()}),o._UZ(13,"div",2),o.qZA()),2&Y&&(o.ekj("mat-tab-header-pagination-disabled",pe._disableScrollBefore),o.Q6J("matRippleDisabled",pe._disableScrollBefore||pe.disableRipple),o.xp6(5),o.ekj("_mat-animation-noopable","NoopAnimations"===pe._animationMode),o.xp6(6),o.ekj("mat-tab-header-pagination-disabled",pe._disableScrollAfter),o.Q6J("matRippleDisabled",pe._disableScrollAfter||pe.disableRipple))},directives:[M.wG,t.wD,Re],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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}.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;content:"";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}),Ve})();const ei=(0,M.sb)((0,M.Kr)((0,M.Id)(class{})));let ki=(()=>{class Ve extends ei{constructor(Y,pe,De,et,$t,Nt){super(),this._tabNavBar=Y,this.elementRef=pe,this._focusMonitor=$t,this._isActive=!1,this.rippleConfig=De||{},this.tabIndex=parseInt(et)||0,"NoopAnimations"===Nt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Y){(0,te.Ig)(Y)!==this._isActive&&(this._isActive=Y,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)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(Ii),o.Y36(o.SBq),o.Y36(M.Y2,8),o.$8M("tabindex"),o.Y36(e.tE),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,inputs:{active:"active"},features:[o.qOj]}),Ve})(),ai=(()=>{class Ve extends ki{constructor(Y,pe,De,et,$t,Nt,Jt,ct){super(Y,pe,$t,Nt,Jt,ct),this._tabLinkRipple=new M.IR(this,De,pe,et),this._tabLinkRipple.setupTriggerEvents(pe.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(jt),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(ge.t4),o.Y36(M.Y2,8),o.$8M("tabindex"),o.Y36(e.tE),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(Y,pe){1&Y&&o.NdJ("focus",function(){return pe._handleFocus()}),2&Y&&(o.uIk("aria-current",pe.active?"page":null)("aria-disabled",pe.disabled)("tabIndex",pe.tabIndex),o.ekj("mat-tab-disabled",pe.disabled)("mat-tab-label-active",pe.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[o.qOj]}),Ve})(),hi=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=o.oAB({type:Ve}),Ve.\u0275inj=o.cJS({imports:[[C.ez,M.BQ,y.eL,M.si,t.Q8,e.rt],M.BQ]}),Ve})()},4594:(Ge,Q,m)=>{"use strict";m.d(Q,{Ye:()=>s,g0:()=>I});var e=m(5e3),t=m(508),y=m(9808),C=m(925);const o=["*",[["mat-toolbar-row"]]],M=["*","mat-toolbar-row"],l=(0,t.pj)(class{constructor(A){this._elementRef=A}});let R=(()=>{class A{}return A.\u0275fac=function(P){return new(P||A)},A.\u0275dir=e.lG2({type:A,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),A})(),s=(()=>{class A extends l{constructor(P,w,V){super(P),this._platform=w,this._document=V}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return A.\u0275fac=function(P){return new(P||A)(e.Y36(e.SBq),e.Y36(C.t4),e.Y36(y.K0))},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-toolbar"]],contentQueries:function(P,w,V){if(1&P&&e.Suo(V,R,5),2&P){let j;e.iGM(j=e.CRH())&&(w._toolbarRows=j)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(P,w){2&P&&e.ekj("mat-toolbar-multiple-rows",w._toolbarRows.length>0)("mat-toolbar-single-row",0===w._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:M,decls:2,vars:0,template:function(P,w){1&P&&(e.F$t(o),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),A})(),I=(()=>{class A{}return A.\u0275fac=function(P){return new(P||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),A})()},7238:(Ge,Q,m)=>{"use strict";m.d(Q,{gM:()=>p,AV:()=>D});var e=m(9776),t=m(5664),y=m(9808),C=m(5e3),o=m(508),M=m(5303),l=m(3191),R=m(1159),s=m(5113),L=m(925),I=m(7429),A=m(7579),E=m(2722),P=m(5698),w=m(1777),V=m(226);const j={tooltipState:(0,w.X$)("state",[(0,w.SB)("initial, void, hidden",(0,w.oB)({opacity:0,transform:"scale(0)"})),(0,w.SB)("visible",(0,w.oB)({transform:"scale(1)"})),(0,w.eR)("* => visible",(0,w.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,w.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,w.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,w.eR)("* => hidden",(0,w.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({opacity:0})))])},ee="tooltip-panel",ge=(0,L.i$)({passive:!0}),de=new C.OlP("mat-tooltip-scroll-strategy"),ye={provide:de,deps:[e.aV],useFactory:function se(O){return()=>O.scrollStrategies.reposition({scrollThrottle:20})}},v=new C.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function i(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let a=(()=>{class O{constructor(r,b,Z,N,U,ve,be,Re,ze,Oe,K,Me){this._overlay=r,this._elementRef=b,this._scrollDispatcher=Z,this._viewContainerRef=N,this._ngZone=U,this._platform=ve,this._ariaDescriber=be,this._focusMonitor=Re,this._dir=Oe,this._defaultOptions=K,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 A.x,this._handleKeydown=we=>{this._isTooltipVisible()&&we.keyCode===R.hY&&!(0,R.Vb)(we)&&(we.preventDefault(),we.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=ze,this._document=Me,K&&(K.position&&(this.position=K.position),K.touchGestures&&(this.touchGestures=K.touchGestures)),Oe.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),U.runOutsideAngular(()=>{b.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(r){var b;r!==this._position&&(this._position=r,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(b=this._tooltipInstance)||void 0===b||b.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(r){this._disabled=(0,l.Ig)(r),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(r){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=r?String(r).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(r){this._tooltipClass=r,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,E.R)(this._destroyed)).subscribe(r=>{r?"keyboard"===r&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const r=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),r.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([b,Z])=>{r.removeEventListener(b,Z,ge)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(r,this.message,"tooltip"),this._focusMonitor.stopMonitoring(r)}show(r=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const b=this._createOverlay();this._detach(),this._portal=this._portal||new I.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=b.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(r)}hide(r=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(r)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),b=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return b.positionChanges.pipe((0,E.R)(this._destroyed)).subscribe(Z=>{this._updateCurrentPositionClass(Z.connectionPair),this._tooltipInstance&&Z.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:b,panelClass:`${this._cssClassPrefix}-${ee}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,E.R)(this._destroyed)).subscribe(()=>{var Z;return null===(Z=this._tooltipInstance)||void 0===Z?void 0:Z._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(r){const b=r.getConfig().positionStrategy,Z=this._getOrigin(),N=this._getOverlayPosition();b.withPositions([this._addOffset(Object.assign(Object.assign({},Z.main),N.main)),this._addOffset(Object.assign(Object.assign({},Z.fallback),N.fallback))])}_addOffset(r){return r}_getOrigin(){const r=!this._dir||"ltr"==this._dir.value,b=this.position;let Z;"above"==b||"below"==b?Z={originX:"center",originY:"above"==b?"top":"bottom"}:"before"==b||"left"==b&&r||"right"==b&&!r?Z={originX:"start",originY:"center"}:("after"==b||"right"==b&&r||"left"==b&&!r)&&(Z={originX:"end",originY:"center"});const{x:N,y:U}=this._invertPosition(Z.originX,Z.originY);return{main:Z,fallback:{originX:N,originY:U}}}_getOverlayPosition(){const r=!this._dir||"ltr"==this._dir.value,b=this.position;let Z;"above"==b?Z={overlayX:"center",overlayY:"bottom"}:"below"==b?Z={overlayX:"center",overlayY:"top"}:"before"==b||"left"==b&&r||"right"==b&&!r?Z={overlayX:"end",overlayY:"center"}:("after"==b||"right"==b&&r||"left"==b&&!r)&&(Z={overlayX:"start",overlayY:"center"});const{x:N,y:U}=this._invertPosition(Z.overlayX,Z.overlayY);return{main:Z,fallback:{overlayX:N,overlayY:U}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1),(0,E.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(r){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=r,this._tooltipInstance._markForCheck())}_invertPosition(r,b){return"above"===this.position||"below"===this.position?"top"===b?b="bottom":"bottom"===b&&(b="top"):"end"===r?r="start":"start"===r&&(r="end"),{x:r,y:b}}_updateCurrentPositionClass(r){const{overlayY:b,originX:Z,originY:N}=r;let U;if(U="center"===b?this._dir&&"rtl"===this._dir.value?"end"===Z?"left":"right":"start"===Z?"left":"right":"bottom"===b&&"top"===N?"above":"below",U!==this._currentPosition){const ve=this._overlayRef;if(ve){const be=`${this._cssClassPrefix}-${ee}-`;ve.removePanelClass(be+this._currentPosition),ve.addPanelClass(be+U)}this._currentPosition=U}}_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 r=[];if(this._platformSupportsMouseEvents())r.push(["mouseleave",()=>this.hide()],["wheel",b=>this._wheelListener(b)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const b=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};r.push(["touchend",b],["touchcancel",b])}this._addListeners(r),this._passiveListeners.push(...r)}_addListeners(r){r.forEach(([b,Z])=>{this._elementRef.nativeElement.addEventListener(b,Z,ge)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(r){if(this._isTooltipVisible()){const b=this._document.elementFromPoint(r.clientX,r.clientY),Z=this._elementRef.nativeElement;b!==Z&&!Z.contains(b)&&this.hide()}}_disableNativeGesturesIfNecessary(){const r=this.touchGestures;if("off"!==r){const b=this._elementRef.nativeElement,Z=b.style;("on"===r||"INPUT"!==b.nodeName&&"TEXTAREA"!==b.nodeName)&&(Z.userSelect=Z.msUserSelect=Z.webkitUserSelect=Z.MozUserSelect="none"),("on"===r||!b.draggable)&&(Z.webkitUserDrag="none"),Z.touchAction="none",Z.webkitTapHighlightColor="transparent"}}}return O.\u0275fac=function(r){C.$Z()},O.\u0275dir=C.lG2({type:O,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),O})(),p=(()=>{class O extends a{constructor(r,b,Z,N,U,ve,be,Re,ze,Oe,K,Me){super(r,b,Z,N,U,ve,be,Re,ze,Oe,K,Me),this._tooltipComponent=_}}return O.\u0275fac=function(r){return new(r||O)(C.Y36(e.aV),C.Y36(C.SBq),C.Y36(M.mF),C.Y36(C.s_b),C.Y36(C.R0b),C.Y36(L.t4),C.Y36(t.$s),C.Y36(t.tE),C.Y36(de),C.Y36(V.Is,8),C.Y36(v,8),C.Y36(y.K0))},O.\u0275dir=C.lG2({type:O,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[C.qOj]}),O})(),u=(()=>{class O{constructor(r){this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new A.x}show(r){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},r)}hide(r){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},r)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(r){const b=r.toState;"hidden"===b&&!this.isVisible()&&this._onHide.next(),("visible"===b||"hidden"===b)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return O.\u0275fac=function(r){return new(r||O)(C.Y36(C.sBO))},O.\u0275dir=C.lG2({type:O}),O})(),_=(()=>{class O extends u{constructor(r,b){super(r),this._breakpointObserver=b,this._isHandset=this._breakpointObserver.observe(s.u3.Handset)}}return O.\u0275fac=function(r){return new(r||O)(C.Y36(C.sBO),C.Y36(s.Yg))},O.\u0275cmp=C.Xpm({type:O,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,b){2&r&&C.Udp("zoom","visible"===b._visibility?1:null)},features:[C.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(r,b){if(1&r&&(C.TgZ(0,"div",0),C.NdJ("@state.start",function(){return b._animationStart()})("@state.done",function(N){return b._animationDone(N)}),C.ALo(1,"async"),C._uU(2),C.qZA()),2&r){let Z;C.ekj("mat-tooltip-handset",null==(Z=C.lcZ(1,5,b._isHandset))?null:Z.matches),C.Q6J("ngClass",b.tooltipClass)("@state",b._visibility),C.xp6(2),C.Oqu(b.message)}},directives:[y.mk],pipes:[y.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[j.tooltipState]},changeDetection:0}),O})(),D=(()=>{class O{}return O.\u0275fac=function(r){return new(r||O)},O.\u0275mod=C.oAB({type:O}),O.\u0275inj=C.cJS({providers:[ye],imports:[[t.rt,y.ez,e.U8,o.BQ],o.BQ,M.ZD]}),O})()},149:(Ge,Q,m)=>{"use strict";m.d(Q,{GZ:()=>A,gi:()=>w,dp:()=>W,WX:()=>ge,uo:()=>L,fQ:()=>I,Ar:()=>P,eu:()=>V});var e=m(8258),t=m(5e3),y=m(508),C=m(3191),o=m(449),M=m(1135),l=m(6451),R=m(4004);const s=(0,y.sb)((0,y.Id)(e.Hs));let L=(()=>{class le extends s{constructor(de,se,ye){super(de,se),this.tabIndex=Number(ye)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return le.\u0275fac=function(de){return new(de||le)(t.Y36(t.SBq),t.Y36(e._0),t.$8M("tabindex"))},le.\u0275dir=t.lG2({type:le,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:e.Hs,useExisting:le}]),t.qOj]}),le})(),I=(()=>{class le extends e.rO{}return le.\u0275fac=function(){let re;return function(se){return(re||(re=t.n5z(le)))(se||le)}}(),le.\u0275dir=t.lG2({type:le,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:e.rO,useExisting:le}]),t.qOj]}),le})(),A=(()=>{class le extends e.Xx{constructor(de,se,ye,v){super(de,se,ye),this._disabled=!1,this.tabIndex=Number(v)||0}get disabled(){return this._disabled}set disabled(de){this._disabled=(0,C.Ig)(de)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(de){this._tabIndex=null!=de?de:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return le.\u0275fac=function(de){return new(de||le)(t.Y36(t.SBq),t.Y36(e._0),t.Y36(t.ZZ4),t.$8M("tabindex"))},le.\u0275dir=t.lG2({type:le,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:e.Xx,useExisting:le},{provide:e.Hs,useExisting:le},{provide:e.HI,useExisting:le}]),t.qOj]}),le})(),P=(()=>{class le{constructor(de,se){this.viewContainer=de,this._node=se}}return le.\u0275fac=function(de){return new(de||le)(t.Y36(t.s_b),t.Y36(e.HI,8))},le.\u0275dir=t.lG2({type:le,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:e.cu,useExisting:le}])]}),le})(),w=(()=>{class le extends e._0{}return le.\u0275fac=function(){let re;return function(se){return(re||(re=t.n5z(le)))(se||le)}}(),le.\u0275cmp=t.Xpm({type:le,selectors:[["mat-tree"]],viewQuery:function(de,se){if(1&de&&t.Gf(P,7),2&de){let ye;t.iGM(ye=t.CRH())&&(se._nodeOutlet=ye.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:e._0,useExisting:le}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(de,se){1&de&&t.GkF(0,0)},directives:[P],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}),le})(),V=(()=>{class le extends e.Ud{}return le.\u0275fac=function(){let re;return function(se){return(re||(re=t.n5z(le)))(se||le)}}(),le.\u0275dir=t.lG2({type:le,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:e.Ud,useExisting:le}]),t.qOj]}),le})(),W=(()=>{class le{}return le.\u0275fac=function(de){return new(de||le)},le.\u0275mod=t.oAB({type:le}),le.\u0275inj=t.cJS({imports:[[e.nZ,y.BQ],y.BQ]}),le})();class ge extends o.o2{constructor(){super(...arguments),this._data=new M.X([])}get data(){return this._data.value}set data(re){this._data.next(re)}connect(re){return(0,l.T)(re.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},6360:(Ge,Q,m)=>{"use strict";m.d(Q,{Qb:()=>Pi,PW:()=>Us});var e=m(5e3),t=m(2313),y=m(1777);function C(){return"undefined"!=typeof window&&void 0!==window.document}function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function M(xt){switch(xt.length){case 0:return new y.ZN;case 1:return xt[0];default:return new y.ZE(xt)}}function l(xt,ie,he,je,wt={},Pt={}){const Qt=[],Xt=[];let pi=-1,Ti=null;if(je.forEach(Zi=>{const tn=Zi.offset,Mn=tn==pi,On=Mn&&Ti||{};Object.keys(Zi).forEach(tt=>{let Et=tt,It=Zi[tt];if("offset"!==tt)switch(Et=ie.normalizePropertyName(Et,Qt),It){case y.k1:It=wt[tt];break;case y.l3:It=Pt[tt];break;default:It=ie.normalizeStyleValue(tt,Et,It,Qt)}On[Et]=It}),Mn||Xt.push(On),Ti=On,pi=tn}),Qt.length){const Zi="\n - ";throw new Error(`Unable to animate due to the following errors:${Zi}${Qt.join(Zi)}`)}return Xt}function R(xt,ie,he,je){switch(ie){case"start":xt.onStart(()=>je(he&&s(he,"start",xt)));break;case"done":xt.onDone(()=>je(he&&s(he,"done",xt)));break;case"destroy":xt.onDestroy(()=>je(he&&s(he,"destroy",xt)))}}function s(xt,ie,he){const je=he.totalTime,Pt=L(xt.element,xt.triggerName,xt.fromState,xt.toState,ie||xt.phaseName,null==je?xt.totalTime:je,!!he.disabled),Qt=xt._data;return null!=Qt&&(Pt._data=Qt),Pt}function L(xt,ie,he,je,wt="",Pt=0,Qt){return{element:xt,triggerName:ie,fromState:he,toState:je,phaseName:wt,totalTime:Pt,disabled:!!Qt}}function I(xt,ie,he){let je;return xt instanceof Map?(je=xt.get(ie),je||xt.set(ie,je=he)):(je=xt[ie],je||(je=xt[ie]=he)),je}function A(xt){const ie=xt.indexOf(":");return[xt.substring(1,ie),xt.substr(ie+1)]}let E=(xt,ie)=>!1,P=(xt,ie)=>!1,w=(xt,ie,he)=>[];const V=o();(V||"undefined"!=typeof Element)&&(E=C()?(xt,ie)=>{for(;ie&&ie!==document.documentElement;){if(ie===xt)return!0;ie=ie.parentNode||ie.host}return!1}:(xt,ie)=>xt.contains(ie),P=(()=>{if(V||Element.prototype.matches)return(xt,ie)=>xt.matches(ie);{const xt=Element.prototype,ie=xt.matchesSelector||xt.mozMatchesSelector||xt.msMatchesSelector||xt.oMatchesSelector||xt.webkitMatchesSelector;return ie?(he,je)=>ie.apply(he,[je]):P}})(),w=(xt,ie,he)=>{let je=[];if(he){const wt=xt.querySelectorAll(ie);for(let Pt=0;Pt{const je=he.replace(/([a-z])([A-Z])/g,"$1-$2");ie[je]=xt[he]}),ie}let ye=(()=>{class xt{validateStyleProperty(he){return ee(he)}matchesElement(he,je){return le(he,je)}containsElement(he,je){return re(he,je)}query(he,je,wt){return de(he,je,wt)}computeStyle(he,je,wt){return wt||""}animate(he,je,wt,Pt,Qt,Xt=[],pi){return new y.ZN(wt,Pt)}}return xt.\u0275fac=function(he){return new(he||xt)},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})(),v=(()=>{class xt{}return xt.NOOP=new ye,xt})();const u="ng-enter",_="ng-leave",x="ng-trigger",r=".ng-trigger",b="ng-animating",Z=".ng-animating";function N(xt){if("number"==typeof xt)return xt;const ie=xt.match(/^(-?[\.\d]+)(m?s)/);return!ie||ie.length<2?0:U(parseFloat(ie[1]),ie[2])}function U(xt,ie){return"s"===ie?1e3*xt:xt}function ve(xt,ie,he){return xt.hasOwnProperty("duration")?xt:function be(xt,ie,he){let wt,Pt=0,Qt="";if("string"==typeof xt){const Xt=xt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Xt)return ie.push(`The provided timing value "${xt}" is invalid.`),{duration:0,delay:0,easing:""};wt=U(parseFloat(Xt[1]),Xt[2]);const pi=Xt[3];null!=pi&&(Pt=U(parseFloat(pi),Xt[4]));const Ti=Xt[5];Ti&&(Qt=Ti)}else wt=xt;if(!he){let Xt=!1,pi=ie.length;wt<0&&(ie.push("Duration values below 0 are not allowed for this animation step."),Xt=!0),Pt<0&&(ie.push("Delay values below 0 are not allowed for this animation step."),Xt=!0),Xt&&ie.splice(pi,0,`The provided timing value "${xt}" is invalid.`)}return{duration:wt,delay:Pt,easing:Qt}}(xt,ie,he)}function Re(xt,ie={}){return Object.keys(xt).forEach(he=>{ie[he]=xt[he]}),ie}function Oe(xt,ie,he={}){if(ie)for(let je in xt)he[je]=xt[je];else Re(xt,he);return he}function K(xt,ie,he){return he?ie+":"+he+";":""}function Me(xt){let ie="";for(let he=0;he{const wt=q(je);he&&!he.hasOwnProperty(je)&&(he[je]=xt.style[wt]),xt.style[wt]=ie[je]}),o()&&Me(xt))}function z(xt,ie){xt.style&&(Object.keys(ie).forEach(he=>{const je=q(he);xt.style[je]=""}),o()&&Me(xt))}function Ze(xt){return Array.isArray(xt)?1==xt.length?xt[0]:(0,y.vP)(xt):xt}const Fe=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ne(xt){let ie=[];if("string"==typeof xt){let he;for(;he=Fe.exec(xt);)ie.push(he[1]);Fe.lastIndex=0}return ie}function ce(xt,ie,he){const je=xt.toString(),wt=je.replace(Fe,(Pt,Qt)=>{let Xt=ie[Qt];return ie.hasOwnProperty(Qt)||(he.push(`Please provide a value for the animation param ${Qt}`),Xt=""),Xt.toString()});return wt==je?xt:wt}function Le(xt){const ie=[];let he=xt.next();for(;!he.done;)ie.push(he.value),he=xt.next();return ie}const Pe=/-+([a-z0-9])/g;function q(xt){return xt.replace(Pe,(...ie)=>ie[1].toUpperCase())}function $(xt){return xt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function oe(xt,ie){return 0===xt||0===ie}function Ce(xt,ie,he){const je=Object.keys(he);if(je.length&&ie.length){let Pt=ie[0],Qt=[];if(je.forEach(Xt=>{Pt.hasOwnProperty(Xt)||Qt.push(Xt),Pt[Xt]=he[Xt]}),Qt.length)for(var wt=1;wtfunction it(xt,ie,he){if(":"==xt[0]){const pi=function rt(xt,ie){switch(xt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(he,je)=>parseFloat(je)>parseFloat(he);case":decrement":return(he,je)=>parseFloat(je) *"}}(xt,he);if("function"==typeof pi)return void ie.push(pi);xt=pi}const je=xt.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==je||je.length<4)return he.push(`The provided transition expression "${xt}" is not supported`),ie;const wt=je[1],Pt=je[2],Qt=je[3];ie.push(Ft(wt,Qt));"<"==Pt[0]&&!("*"==wt&&"*"==Qt)&&ie.push(Ft(Qt,wt))}(je,he,ie)):he.push(xt),he}const Mt=new Set(["true","1"]),Zt=new Set(["false","0"]);function Ft(xt,ie){const he=Mt.has(xt)||Zt.has(xt),je=Mt.has(ie)||Zt.has(ie);return(wt,Pt)=>{let Qt="*"==xt||xt==wt,Xt="*"==ie||ie==Pt;return!Qt&&he&&"boolean"==typeof wt&&(Qt=wt?Mt.has(xt):Zt.has(xt)),!Xt&&je&&"boolean"==typeof Pt&&(Xt=Pt?Mt.has(ie):Zt.has(ie)),Qt&&Xt}}const Ii=new RegExp("s*:selfs*,?","g");function jt(xt,ie,he){return new ki(xt).build(ie,he)}class ki{constructor(ie){this._driver=ie}build(ie,he){const je=new Ve(he);return this._resetContextStyleTimingState(je),Ue(this,Ze(ie),je)}_resetContextStyleTimingState(ie){ie.currentQuerySelector="",ie.collectedStyles={},ie.collectedStyles[""]={},ie.currentTime=0}visitTrigger(ie,he){let je=he.queryCount=0,wt=he.depCount=0;const Pt=[],Qt=[];return"@"==ie.name.charAt(0)&&he.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),ie.definitions.forEach(Xt=>{if(this._resetContextStyleTimingState(he),0==Xt.type){const pi=Xt,Ti=pi.name;Ti.toString().split(/\s*,\s*/).forEach(Zi=>{pi.name=Zi,Pt.push(this.visitState(pi,he))}),pi.name=Ti}else if(1==Xt.type){const pi=this.visitTransition(Xt,he);je+=pi.queryCount,wt+=pi.depCount,Qt.push(pi)}else he.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:ie.name,states:Pt,transitions:Qt,queryCount:je,depCount:wt,options:null}}visitState(ie,he){const je=this.visitStyle(ie.styles,he),wt=ie.options&&ie.options.params||null;if(je.containsDynamicStyles){const Pt=new Set,Qt=wt||{};if(je.styles.forEach(Xt=>{if(Y(Xt)){const pi=Xt;Object.keys(pi).forEach(Ti=>{Ne(pi[Ti]).forEach(Zi=>{Qt.hasOwnProperty(Zi)||Pt.add(Zi)})})}}),Pt.size){const Xt=Le(Pt.values());he.errors.push(`state("${ie.name}", ...) must define default values for all the following style substitutions: ${Xt.join(", ")}`)}}return{type:0,name:ie.name,style:je,options:wt?{params:wt}:null}}visitTransition(ie,he){he.queryCount=0,he.depCount=0;const je=Ue(this,Ze(ie.animation),he);return{type:1,matchers:ft(ie.expr,he.errors),animation:je,queryCount:he.queryCount,depCount:he.depCount,options:De(ie.options)}}visitSequence(ie,he){return{type:2,steps:ie.steps.map(je=>Ue(this,je,he)),options:De(ie.options)}}visitGroup(ie,he){const je=he.currentTime;let wt=0;const Pt=ie.steps.map(Qt=>{he.currentTime=je;const Xt=Ue(this,Qt,he);return wt=Math.max(wt,he.currentTime),Xt});return he.currentTime=wt,{type:3,steps:Pt,options:De(ie.options)}}visitAnimate(ie,he){const je=function pe(xt,ie){let he=null;if(xt.hasOwnProperty("duration"))he=xt;else if("number"==typeof xt)return et(ve(xt,ie).duration,0,"");const je=xt;if(je.split(/\s+/).some(Pt=>"{"==Pt.charAt(0)&&"{"==Pt.charAt(1))){const Pt=et(0,0,"");return Pt.dynamic=!0,Pt.strValue=je,Pt}return he=he||ve(je,ie),et(he.duration,he.delay,he.easing)}(ie.timings,he.errors);he.currentAnimateTimings=je;let wt,Pt=ie.styles?ie.styles:(0,y.oB)({});if(5==Pt.type)wt=this.visitKeyframes(Pt,he);else{let Qt=ie.styles,Xt=!1;if(!Qt){Xt=!0;const Ti={};je.easing&&(Ti.easing=je.easing),Qt=(0,y.oB)(Ti)}he.currentTime+=je.duration+je.delay;const pi=this.visitStyle(Qt,he);pi.isEmptyStep=Xt,wt=pi}return he.currentAnimateTimings=null,{type:4,timings:je,style:wt,options:null}}visitStyle(ie,he){const je=this._makeStyleAst(ie,he);return this._validateStyleAst(je,he),je}_makeStyleAst(ie,he){const je=[];Array.isArray(ie.styles)?ie.styles.forEach(Qt=>{"string"==typeof Qt?Qt==y.l3?je.push(Qt):he.errors.push(`The provided style string value ${Qt} is not allowed.`):je.push(Qt)}):je.push(ie.styles);let wt=!1,Pt=null;return je.forEach(Qt=>{if(Y(Qt)){const Xt=Qt,pi=Xt.easing;if(pi&&(Pt=pi,delete Xt.easing),!wt)for(let Ti in Xt)if(Xt[Ti].toString().indexOf("{{")>=0){wt=!0;break}}}),{type:6,styles:je,easing:Pt,offset:ie.offset,containsDynamicStyles:wt,options:null}}_validateStyleAst(ie,he){const je=he.currentAnimateTimings;let wt=he.currentTime,Pt=he.currentTime;je&&Pt>0&&(Pt-=je.duration+je.delay),ie.styles.forEach(Qt=>{"string"!=typeof Qt&&Object.keys(Qt).forEach(Xt=>{if(!this._driver.validateStyleProperty(Xt))return void he.errors.push(`The provided animation property "${Xt}" is not a supported CSS property for animations`);const pi=he.collectedStyles[he.currentQuerySelector],Ti=pi[Xt];let Zi=!0;Ti&&(Pt!=wt&&Pt>=Ti.startTime&&wt<=Ti.endTime&&(he.errors.push(`The CSS property "${Xt}" that exists between the times of "${Ti.startTime}ms" and "${Ti.endTime}ms" is also being animated in a parallel animation between the times of "${Pt}ms" and "${wt}ms"`),Zi=!1),Pt=Ti.startTime),Zi&&(pi[Xt]={startTime:Pt,endTime:wt}),he.options&&function vt(xt,ie,he){const je=ie.params||{},wt=Ne(xt);wt.length&&wt.forEach(Pt=>{je.hasOwnProperty(Pt)||he.push(`Unable to resolve the local animation param ${Pt} in the given list of values`)})}(Qt[Xt],he.options,he.errors)})})}visitKeyframes(ie,he){const je={type:5,styles:[],options:null};if(!he.currentAnimateTimings)return he.errors.push("keyframes() must be placed inside of a call to animate()"),je;let Pt=0;const Qt=[];let Xt=!1,pi=!1,Ti=0;const Zi=ie.steps.map(zt=>{const ri=this._makeStyleAst(zt,he);let vi=null!=ri.offset?ri.offset:function Ee(xt){if("string"==typeof xt)return null;let ie=null;if(Array.isArray(xt))xt.forEach(he=>{if(Y(he)&&he.hasOwnProperty("offset")){const je=he;ie=parseFloat(je.offset),delete je.offset}});else if(Y(xt)&&xt.hasOwnProperty("offset")){const he=xt;ie=parseFloat(he.offset),delete he.offset}return ie}(ri.styles),Mi=0;return null!=vi&&(Pt++,Mi=ri.offset=vi),pi=pi||Mi<0||Mi>1,Xt=Xt||Mi0&&Pt{const vi=Mn>0?ri==On?1:Mn*ri:Qt[ri],Mi=vi*It;he.currentTime=tt+Et.delay+Mi,Et.duration=Mi,this._validateStyleAst(zt,he),zt.offset=vi,je.styles.push(zt)}),je}visitReference(ie,he){return{type:8,animation:Ue(this,Ze(ie.animation),he),options:De(ie.options)}}visitAnimateChild(ie,he){return he.depCount++,{type:9,options:De(ie.options)}}visitAnimateRef(ie,he){return{type:10,animation:this.visitReference(ie.animation,he),options:De(ie.options)}}visitQuery(ie,he){const je=he.currentQuerySelector,wt=ie.options||{};he.queryCount++,he.currentQuery=ie;const[Pt,Qt]=function ai(xt){const ie=!!xt.split(/\s*,\s*/).find(he=>":self"==he);return ie&&(xt=xt.replace(Ii,"")),xt=xt.replace(/@\*/g,r).replace(/@\w+/g,he=>r+"-"+he.substr(1)).replace(/:animating/g,Z),[xt,ie]}(ie.selector);he.currentQuerySelector=je.length?je+" "+Pt:Pt,I(he.collectedStyles,he.currentQuerySelector,{});const Xt=Ue(this,Ze(ie.animation),he);return he.currentQuery=null,he.currentQuerySelector=je,{type:11,selector:Pt,limit:wt.limit||0,optional:!!wt.optional,includeSelf:Qt,animation:Xt,originalSelector:ie.selector,options:De(ie.options)}}visitStagger(ie,he){he.currentQuery||he.errors.push("stagger() can only be used inside of query()");const je="full"===ie.timings?{duration:0,delay:0,easing:"full"}:ve(ie.timings,he.errors,!0);return{type:12,animation:Ue(this,Ze(ie.animation),he),timings:je,options:null}}}class Ve{constructor(ie){this.errors=ie,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}}function Y(xt){return!Array.isArray(xt)&&"object"==typeof xt}function De(xt){return xt?(xt=Re(xt)).params&&(xt.params=function hi(xt){return xt?Re(xt):null}(xt.params)):xt={},xt}function et(xt,ie,he){return{duration:xt,delay:ie,easing:he}}function $t(xt,ie,he,je,wt,Pt,Qt=null,Xt=!1){return{type:1,element:xt,keyframes:ie,preStyleProps:he,postStyleProps:je,duration:wt,delay:Pt,totalTime:wt+Pt,easing:Qt,subTimeline:Xt}}class Nt{constructor(){this._map=new Map}consume(ie){let he=this._map.get(ie);return he?this._map.delete(ie):he=[],he}append(ie,he){let je=this._map.get(ie);je||this._map.set(ie,je=[]),je.push(...he)}has(ie){return this._map.has(ie)}clear(){this._map.clear()}}const ke=new RegExp(":enter","g"),at=new RegExp(":leave","g");function st(xt,ie,he,je,wt,Pt={},Qt={},Xt,pi,Ti=[]){return(new At).buildKeyframes(xt,ie,he,je,wt,Pt,Qt,Xt,pi,Ti)}class At{buildKeyframes(ie,he,je,wt,Pt,Qt,Xt,pi,Ti,Zi=[]){Ti=Ti||new Nt;const tn=new Bt(ie,he,Ti,wt,Pt,Zi,[]);tn.options=pi,tn.currentTimeline.setStyles([Qt],null,tn.errors,pi),Ue(this,je,tn);const Mn=tn.timelines.filter(On=>On.containsAnimation());if(Mn.length&&Object.keys(Xt).length){const On=Mn[Mn.length-1];On.allowOnlyTimelineStyles()||On.setStyles([Xt],null,tn.errors,pi)}return Mn.length?Mn.map(On=>On.buildKeyframes()):[$t(he,[],[],[],0,0,"",!1)]}visitTrigger(ie,he){}visitState(ie,he){}visitTransition(ie,he){}visitAnimateChild(ie,he){const je=he.subInstructions.consume(he.element);if(je){const wt=he.createSubContext(ie.options),Pt=he.currentTimeline.currentTime,Qt=this._visitSubInstructions(je,wt,wt.options);Pt!=Qt&&he.transformIntoNewTimeline(Qt)}he.previousNode=ie}visitAnimateRef(ie,he){const je=he.createSubContext(ie.options);je.transformIntoNewTimeline(),this.visitReference(ie.animation,je),he.transformIntoNewTimeline(je.currentTimeline.currentTime),he.previousNode=ie}_visitSubInstructions(ie,he,je){let Pt=he.currentTimeline.currentTime;const Qt=null!=je.duration?N(je.duration):null,Xt=null!=je.delay?N(je.delay):null;return 0!==Qt&&ie.forEach(pi=>{const Ti=he.appendInstructionToTimeline(pi,Qt,Xt);Pt=Math.max(Pt,Ti.duration+Ti.delay)}),Pt}visitReference(ie,he){he.updateOptions(ie.options,!0),Ue(this,ie.animation,he),he.previousNode=ie}visitSequence(ie,he){const je=he.subContextCount;let wt=he;const Pt=ie.options;if(Pt&&(Pt.params||Pt.delay)&&(wt=he.createSubContext(Pt),wt.transformIntoNewTimeline(),null!=Pt.delay)){6==wt.previousNode.type&&(wt.currentTimeline.snapshotCurrentStyles(),wt.previousNode=li);const Qt=N(Pt.delay);wt.delayNextStep(Qt)}ie.steps.length&&(ie.steps.forEach(Qt=>Ue(this,Qt,wt)),wt.currentTimeline.applyStylesToKeyframe(),wt.subContextCount>je&&wt.transformIntoNewTimeline()),he.previousNode=ie}visitGroup(ie,he){const je=[];let wt=he.currentTimeline.currentTime;const Pt=ie.options&&ie.options.delay?N(ie.options.delay):0;ie.steps.forEach(Qt=>{const Xt=he.createSubContext(ie.options);Pt&&Xt.delayNextStep(Pt),Ue(this,Qt,Xt),wt=Math.max(wt,Xt.currentTimeline.currentTime),je.push(Xt.currentTimeline)}),je.forEach(Qt=>he.currentTimeline.mergeTimelineCollectedStyles(Qt)),he.transformIntoNewTimeline(wt),he.previousNode=ie}_visitTiming(ie,he){if(ie.dynamic){const je=ie.strValue;return ve(he.params?ce(je,he.params,he.errors):je,he.errors)}return{duration:ie.duration,delay:ie.delay,easing:ie.easing}}visitAnimate(ie,he){const je=he.currentAnimateTimings=this._visitTiming(ie.timings,he),wt=he.currentTimeline;je.delay&&(he.incrementTime(je.delay),wt.snapshotCurrentStyles());const Pt=ie.style;5==Pt.type?this.visitKeyframes(Pt,he):(he.incrementTime(je.duration),this.visitStyle(Pt,he),wt.applyStylesToKeyframe()),he.currentAnimateTimings=null,he.previousNode=ie}visitStyle(ie,he){const je=he.currentTimeline,wt=he.currentAnimateTimings;!wt&&je.getCurrentStyleProperties().length&&je.forwardFrame();const Pt=wt&&wt.easing||ie.easing;ie.isEmptyStep?je.applyEmptyStep(Pt):je.setStyles(ie.styles,Pt,he.errors,he.options),he.previousNode=ie}visitKeyframes(ie,he){const je=he.currentAnimateTimings,wt=he.currentTimeline.duration,Pt=je.duration,Xt=he.createSubContext().currentTimeline;Xt.easing=je.easing,ie.styles.forEach(pi=>{Xt.forwardTime((pi.offset||0)*Pt),Xt.setStyles(pi.styles,pi.easing,he.errors,he.options),Xt.applyStylesToKeyframe()}),he.currentTimeline.mergeTimelineCollectedStyles(Xt),he.transformIntoNewTimeline(wt+Pt),he.previousNode=ie}visitQuery(ie,he){const je=he.currentTimeline.currentTime,wt=ie.options||{},Pt=wt.delay?N(wt.delay):0;Pt&&(6===he.previousNode.type||0==je&&he.currentTimeline.getCurrentStyleProperties().length)&&(he.currentTimeline.snapshotCurrentStyles(),he.previousNode=li);let Qt=je;const Xt=he.invokeQuery(ie.selector,ie.originalSelector,ie.limit,ie.includeSelf,!!wt.optional,he.errors);he.currentQueryTotal=Xt.length;let pi=null;Xt.forEach((Ti,Zi)=>{he.currentQueryIndex=Zi;const tn=he.createSubContext(ie.options,Ti);Pt&&tn.delayNextStep(Pt),Ti===he.element&&(pi=tn.currentTimeline),Ue(this,ie.animation,tn),tn.currentTimeline.applyStylesToKeyframe(),Qt=Math.max(Qt,tn.currentTimeline.currentTime)}),he.currentQueryIndex=0,he.currentQueryTotal=0,he.transformIntoNewTimeline(Qt),pi&&(he.currentTimeline.mergeTimelineCollectedStyles(pi),he.currentTimeline.snapshotCurrentStyles()),he.previousNode=ie}visitStagger(ie,he){const je=he.parentContext,wt=he.currentTimeline,Pt=ie.timings,Qt=Math.abs(Pt.duration),Xt=Qt*(he.currentQueryTotal-1);let pi=Qt*he.currentQueryIndex;switch(Pt.duration<0?"reverse":Pt.easing){case"reverse":pi=Xt-pi;break;case"full":pi=je.currentStaggerTime}const Zi=he.currentTimeline;pi&&Zi.delayNextStep(pi);const tn=Zi.currentTime;Ue(this,ie.animation,he),he.previousNode=ie,je.currentStaggerTime=wt.currentTime-tn+(wt.startTime-je.currentTimeline.startTime)}}const li={};class Bt{constructor(ie,he,je,wt,Pt,Qt,Xt,pi){this._driver=ie,this.element=he,this.subInstructions=je,this._enterClassName=wt,this._leaveClassName=Pt,this.errors=Qt,this.timelines=Xt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=pi||new Rt(this._driver,he,0),Xt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(ie,he){if(!ie)return;const je=ie;let wt=this.options;null!=je.duration&&(wt.duration=N(je.duration)),null!=je.delay&&(wt.delay=N(je.delay));const Pt=je.params;if(Pt){let Qt=wt.params;Qt||(Qt=this.options.params={}),Object.keys(Pt).forEach(Xt=>{(!he||!Qt.hasOwnProperty(Xt))&&(Qt[Xt]=ce(Pt[Xt],Qt,this.errors))})}}_copyOptions(){const ie={};if(this.options){const he=this.options.params;if(he){const je=ie.params={};Object.keys(he).forEach(wt=>{je[wt]=he[wt]})}}return ie}createSubContext(ie=null,he,je){const wt=he||this.element,Pt=new Bt(this._driver,wt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(wt,je||0));return Pt.previousNode=this.previousNode,Pt.currentAnimateTimings=this.currentAnimateTimings,Pt.options=this._copyOptions(),Pt.updateOptions(ie),Pt.currentQueryIndex=this.currentQueryIndex,Pt.currentQueryTotal=this.currentQueryTotal,Pt.parentContext=this,this.subContextCount++,Pt}transformIntoNewTimeline(ie){return this.previousNode=li,this.currentTimeline=this.currentTimeline.fork(this.element,ie),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(ie,he,je){const wt={duration:null!=he?he:ie.duration,delay:this.currentTimeline.currentTime+(null!=je?je:0)+ie.delay,easing:""},Pt=new Li(this._driver,ie.element,ie.keyframes,ie.preStyleProps,ie.postStyleProps,wt,ie.stretchStartingKeyframe);return this.timelines.push(Pt),wt}incrementTime(ie){this.currentTimeline.forwardTime(this.currentTimeline.duration+ie)}delayNextStep(ie){ie>0&&this.currentTimeline.delayNextStep(ie)}invokeQuery(ie,he,je,wt,Pt,Qt){let Xt=[];if(wt&&Xt.push(this.element),ie.length>0){ie=(ie=ie.replace(ke,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let Ti=this._driver.query(this.element,ie,1!=je);0!==je&&(Ti=je<0?Ti.slice(Ti.length+je,Ti.length):Ti.slice(0,je)),Xt.push(...Ti)}return!Pt&&0==Xt.length&&Qt.push(`\`query("${he}")\` returned zero elements. (Use \`query("${he}", { optional: true })\` if you wish to allow this.)`),Xt}}class Rt{constructor(ie,he,je,wt){this._driver=ie,this.element=he,this.startTime=je,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(ie){const he=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||he?(this.forwardTime(this.currentTime+ie),he&&this.snapshotCurrentStyles()):this.startTime+=ie}fork(ie,he){return this.applyStylesToKeyframe(),new Rt(this._driver,ie,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(ie){this.applyStylesToKeyframe(),this.duration=ie,this._loadKeyframe()}_updateStyle(ie,he){this._localTimelineStyles[ie]=he,this._globalTimelineStyles[ie]=he,this._styleSummary[ie]={time:this.currentTime,value:he}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(ie){ie&&(this._previousKeyframe.easing=ie),Object.keys(this._globalTimelineStyles).forEach(he=>{this._backFill[he]=this._globalTimelineStyles[he]||y.l3,this._currentKeyframe[he]=y.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(ie,he,je,wt){he&&(this._previousKeyframe.easing=he);const Pt=wt&&wt.params||{},Qt=function ci(xt,ie){const he={};let je;return xt.forEach(wt=>{"*"===wt?(je=je||Object.keys(ie),je.forEach(Pt=>{he[Pt]=y.l3})):Oe(wt,!1,he)}),he}(ie,this._globalTimelineStyles);Object.keys(Qt).forEach(Xt=>{const pi=ce(Qt[Xt],Pt,je);this._pendingStyles[Xt]=pi,this._localTimelineStyles.hasOwnProperty(Xt)||(this._backFill[Xt]=this._globalTimelineStyles.hasOwnProperty(Xt)?this._globalTimelineStyles[Xt]:y.l3),this._updateStyle(Xt,pi)})}applyStylesToKeyframe(){const ie=this._pendingStyles,he=Object.keys(ie);0!=he.length&&(this._pendingStyles={},he.forEach(je=>{this._currentKeyframe[je]=ie[je]}),Object.keys(this._localTimelineStyles).forEach(je=>{this._currentKeyframe.hasOwnProperty(je)||(this._currentKeyframe[je]=this._localTimelineStyles[je])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(ie=>{const he=this._localTimelineStyles[ie];this._pendingStyles[ie]=he,this._updateStyle(ie,he)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const ie=[];for(let he in this._currentKeyframe)ie.push(he);return ie}mergeTimelineCollectedStyles(ie){Object.keys(ie._styleSummary).forEach(he=>{const je=this._styleSummary[he],wt=ie._styleSummary[he];(!je||wt.time>je.time)&&this._updateStyle(he,wt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const ie=new Set,he=new Set,je=1===this._keyframes.size&&0===this.duration;let wt=[];this._keyframes.forEach((Xt,pi)=>{const Ti=Oe(Xt,!0);Object.keys(Ti).forEach(Zi=>{const tn=Ti[Zi];tn==y.k1?ie.add(Zi):tn==y.l3&&he.add(Zi)}),je||(Ti.offset=pi/this.duration),wt.push(Ti)});const Pt=ie.size?Le(ie.values()):[],Qt=he.size?Le(he.values()):[];if(je){const Xt=wt[0],pi=Re(Xt);Xt.offset=0,pi.offset=1,wt=[Xt,pi]}return $t(this.element,wt,Pt,Qt,this.duration,this.startTime,this.easing,!1)}}class Li extends Rt{constructor(ie,he,je,wt,Pt,Qt,Xt=!1){super(ie,he,Qt.delay),this.keyframes=je,this.preStyleProps=wt,this.postStyleProps=Pt,this._stretchStartingKeyframe=Xt,this.timings={duration:Qt.duration,delay:Qt.delay,easing:Qt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let ie=this.keyframes,{delay:he,duration:je,easing:wt}=this.timings;if(this._stretchStartingKeyframe&&he){const Pt=[],Qt=je+he,Xt=he/Qt,pi=Oe(ie[0],!1);pi.offset=0,Pt.push(pi);const Ti=Oe(ie[0],!1);Ti.offset=si(Xt),Pt.push(Ti);const Zi=ie.length-1;for(let tn=1;tn<=Zi;tn++){let Mn=Oe(ie[tn],!1);Mn.offset=si((he+Mn.offset*je)/Qt),Pt.push(Mn)}je=Qt,he=0,wt="",ie=Pt}return $t(this.element,ie,this.preStyleProps,this.postStyleProps,je,he,wt,!0)}}function si(xt,ie=3){const he=Math.pow(10,ie-1);return Math.round(xt*he)/he}class Ui{}class Xi extends Ui{normalizePropertyName(ie,he){return q(ie)}normalizeStyleValue(ie,he,je,wt){let Pt="";const Qt=je.toString().trim();if(Ke[he]&&0!==je&&"0"!==je)if("number"==typeof je)Pt="px";else{const Xt=je.match(/^[+-]?[\d\.]+([a-z]*)$/);Xt&&0==Xt[1].length&&wt.push(`Please provide a CSS unit value for ${ie}:${je}`)}return Qt+Pt}}const Ke=(()=>function _t(xt){const ie={};return xt.forEach(he=>ie[he]=!0),ie}("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 _e(xt,ie,he,je,wt,Pt,Qt,Xt,pi,Ti,Zi,tn,Mn){return{type:0,element:xt,triggerName:ie,isRemovalTransition:wt,fromState:he,fromStyles:Pt,toState:je,toStyles:Qt,timelines:Xt,queriedElements:pi,preStyleProps:Ti,postStyleProps:Zi,totalTime:tn,errors:Mn}}const qe={};class yt{constructor(ie,he,je){this._triggerName=ie,this.ast=he,this._stateStyles=je}match(ie,he,je,wt){return function ue(xt,ie,he,je,wt){return xt.some(Pt=>Pt(ie,he,je,wt))}(this.ast.matchers,ie,he,je,wt)}buildStyles(ie,he,je){const wt=this._stateStyles["*"],Pt=this._stateStyles[ie],Qt=wt?wt.buildStyles(he,je):{};return Pt?Pt.buildStyles(he,je):Qt}build(ie,he,je,wt,Pt,Qt,Xt,pi,Ti,Zi){const tn=[],Mn=this.ast.options&&this.ast.options.params||qe,tt=this.buildStyles(je,Xt&&Xt.params||qe,tn),Et=pi&&pi.params||qe,It=this.buildStyles(wt,Et,tn),zt=new Set,ri=new Map,vi=new Map,Mi="void"===wt,Ai={params:Object.assign(Object.assign({},Mn),Et)},Ki=Zi?[]:st(ie,he,this.ast.animation,Pt,Qt,tt,It,Ai,Ti,tn);let un=0;if(Ki.forEach(En=>{un=Math.max(En.duration+En.delay,un)}),tn.length)return _e(he,this._triggerName,je,wt,Mi,tt,It,[],[],ri,vi,un,tn);Ki.forEach(En=>{const zn=En.element,Rr=I(ri,zn,{});En.preStyleProps.forEach(wr=>Rr[wr]=!0);const Fr=I(vi,zn,{});En.postStyleProps.forEach(wr=>Fr[wr]=!0),zn!==he&&zt.add(zn)});const gn=Le(zt.values());return _e(he,this._triggerName,je,wt,Mi,tt,It,Ki,gn,ri,vi,un)}}class Je{constructor(ie,he,je){this.styles=ie,this.defaultParams=he,this.normalizer=je}buildStyles(ie,he){const je={},wt=Re(this.defaultParams);return Object.keys(ie).forEach(Pt=>{const Qt=ie[Pt];null!=Qt&&(wt[Pt]=Qt)}),this.styles.styles.forEach(Pt=>{if("string"!=typeof Pt){const Qt=Pt;Object.keys(Qt).forEach(Xt=>{let pi=Qt[Xt];pi.length>1&&(pi=ce(pi,wt,he));const Ti=this.normalizer.normalizePropertyName(Xt,he);pi=this.normalizer.normalizeStyleValue(Xt,Ti,pi,he),je[Ti]=pi})}}),je}}class kt{constructor(ie,he,je){this.name=ie,this.ast=he,this._normalizer=je,this.transitionFactories=[],this.states={},he.states.forEach(wt=>{this.states[wt.name]=new Je(wt.style,wt.options&&wt.options.params||{},je)}),Ni(this.states,"true","1"),Ni(this.states,"false","0"),he.transitions.forEach(wt=>{this.transitionFactories.push(new yt(ie,wt,this.states))}),this.fallbackTransition=function yi(xt,ie,he){return new yt(xt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Qt,Xt)=>!0],options:null,queryCount:0,depCount:0},ie)}(ie,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(ie,he,je,wt){return this.transitionFactories.find(Qt=>Qt.match(ie,he,je,wt))||null}matchStyles(ie,he,je){return this.fallbackTransition.buildStyles(ie,he,je)}}function Ni(xt,ie,he){xt.hasOwnProperty(ie)?xt.hasOwnProperty(he)||(xt[he]=xt[ie]):xt.hasOwnProperty(he)&&(xt[ie]=xt[he])}const Si=new Nt;class qi{constructor(ie,he,je){this.bodyNode=ie,this._driver=he,this._normalizer=je,this._animations={},this._playersById={},this.players=[]}register(ie,he){const je=[],wt=jt(this._driver,he,je);if(je.length)throw new Error(`Unable to build the animation due to the following errors: ${je.join("\n")}`);this._animations[ie]=wt}_buildPlayer(ie,he,je){const wt=ie.element,Pt=l(0,this._normalizer,0,ie.keyframes,he,je);return this._driver.animate(wt,Pt,ie.duration,ie.delay,ie.easing,[],!0)}create(ie,he,je={}){const wt=[],Pt=this._animations[ie];let Qt;const Xt=new Map;if(Pt?(Qt=st(this._driver,he,Pt,u,_,{},{},je,Si,wt),Qt.forEach(Zi=>{const tn=I(Xt,Zi.element,{});Zi.postStyleProps.forEach(Mn=>tn[Mn]=null)})):(wt.push("The requested animation doesn't exist or has already been destroyed"),Qt=[]),wt.length)throw new Error(`Unable to create the animation due to the following errors: ${wt.join("\n")}`);Xt.forEach((Zi,tn)=>{Object.keys(Zi).forEach(Mn=>{Zi[Mn]=this._driver.computeStyle(tn,Mn,y.l3)})});const Ti=M(Qt.map(Zi=>{const tn=Xt.get(Zi.element);return this._buildPlayer(Zi,{},tn)}));return this._playersById[ie]=Ti,Ti.onDestroy(()=>this.destroy(ie)),this.players.push(Ti),Ti}destroy(ie){const he=this._getPlayer(ie);he.destroy(),delete this._playersById[ie];const je=this.players.indexOf(he);je>=0&&this.players.splice(je,1)}_getPlayer(ie){const he=this._playersById[ie];if(!he)throw new Error(`Unable to find the timeline player referenced by ${ie}`);return he}listen(ie,he,je,wt){const Pt=L(he,"","","");return R(this._getPlayer(ie),je,Pt,wt),()=>{}}command(ie,he,je,wt){if("register"==je)return void this.register(ie,wt[0]);if("create"==je)return void this.create(ie,he,wt[0]||{});const Pt=this._getPlayer(ie);switch(je){case"play":Pt.play();break;case"pause":Pt.pause();break;case"reset":Pt.reset();break;case"restart":Pt.restart();break;case"finish":Pt.finish();break;case"init":Pt.init();break;case"setPosition":Pt.setPosition(parseFloat(wt[0]));break;case"destroy":this.destroy(ie)}}}const ot="ng-animate-queued",gt="ng-animate-disabled",Lt=".ng-animate-disabled",Yi=[],$i={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ln="__ng_removed";class _n{constructor(ie,he=""){this.namespaceId=he;const je=ie&&ie.hasOwnProperty("value");if(this.value=function La(xt){return null!=xt?xt:null}(je?ie.value:ie),je){const Pt=Re(ie);delete Pt.value,this.options=Pt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(ie){const he=ie.params;if(he){const je=this.options.params;Object.keys(he).forEach(wt=>{null==je[wt]&&(je[wt]=he[wt])})}}}const kn="void",dr=new _n(kn);class wi{constructor(ie,he,je){this.id=ie,this.hostElement=he,this._engine=je,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+ie,ur(he,this._hostClassName)}listen(ie,he,je,wt){if(!this._triggers.hasOwnProperty(he))throw new Error(`Unable to listen on the animation trigger event "${je}" because the animation trigger "${he}" doesn't exist!`);if(null==je||0==je.length)throw new Error(`Unable to listen on the animation trigger "${he}" because the provided event is undefined!`);if(!function Or(xt){return"start"==xt||"done"==xt}(je))throw new Error(`The provided animation trigger event "${je}" for the animation trigger "${he}" is not supported!`);const Pt=I(this._elementListeners,ie,[]),Qt={name:he,phase:je,callback:wt};Pt.push(Qt);const Xt=I(this._engine.statesByElement,ie,{});return Xt.hasOwnProperty(he)||(ur(ie,x),ur(ie,x+"-"+he),Xt[he]=dr),()=>{this._engine.afterFlush(()=>{const pi=Pt.indexOf(Qt);pi>=0&&Pt.splice(pi,1),this._triggers[he]||delete Xt[he]})}}register(ie,he){return!this._triggers[ie]&&(this._triggers[ie]=he,!0)}_getTrigger(ie){const he=this._triggers[ie];if(!he)throw new Error(`The provided animation trigger "${ie}" has not been registered!`);return he}trigger(ie,he,je,wt=!0){const Pt=this._getTrigger(he),Qt=new dn(this.id,he,ie);let Xt=this._engine.statesByElement.get(ie);Xt||(ur(ie,x),ur(ie,x+"-"+he),this._engine.statesByElement.set(ie,Xt={}));let pi=Xt[he];const Ti=new _n(je,this.id);if(!(je&&je.hasOwnProperty("value"))&&pi&&Ti.absorbOptions(pi.options),Xt[he]=Ti,pi||(pi=dr),Ti.value!==kn&&pi.value===Ti.value){if(!function Ya(xt,ie){const he=Object.keys(xt),je=Object.keys(ie);if(he.length!=je.length)return!1;for(let wt=0;wt{z(ie,It),we(ie,zt)})}return}const Mn=I(this._engine.playersByElement,ie,[]);Mn.forEach(Et=>{Et.namespaceId==this.id&&Et.triggerName==he&&Et.queued&&Et.destroy()});let On=Pt.matchTransition(pi.value,Ti.value,ie,Ti.params),tt=!1;if(!On){if(!wt)return;On=Pt.fallbackTransition,tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:ie,triggerName:he,transition:On,fromState:pi,toState:Ti,player:Qt,isFallbackTransition:tt}),tt||(ur(ie,ot),Qt.onStart(()=>{pa(ie,ot)})),Qt.onDone(()=>{let Et=this.players.indexOf(Qt);Et>=0&&this.players.splice(Et,1);const It=this._engine.playersByElement.get(ie);if(It){let zt=It.indexOf(Qt);zt>=0&&It.splice(zt,1)}}),this.players.push(Qt),Mn.push(Qt),Qt}deregister(ie){delete this._triggers[ie],this._engine.statesByElement.forEach((he,je)=>{delete he[ie]}),this._elementListeners.forEach((he,je)=>{this._elementListeners.set(je,he.filter(wt=>wt.name!=ie))})}clearElementCache(ie){this._engine.statesByElement.delete(ie),this._elementListeners.delete(ie);const he=this._engine.playersByElement.get(ie);he&&(he.forEach(je=>je.destroy()),this._engine.playersByElement.delete(ie))}_signalRemovalForInnerTriggers(ie,he){const je=this._engine.driver.query(ie,r,!0);je.forEach(wt=>{if(wt[Ln])return;const Pt=this._engine.fetchNamespacesByElement(wt);Pt.size?Pt.forEach(Qt=>Qt.triggerLeaveAnimation(wt,he,!1,!0)):this.clearElementCache(wt)}),this._engine.afterFlushAnimationsDone(()=>je.forEach(wt=>this.clearElementCache(wt)))}triggerLeaveAnimation(ie,he,je,wt){const Pt=this._engine.statesByElement.get(ie);if(Pt){const Qt=[];if(Object.keys(Pt).forEach(Xt=>{if(this._triggers[Xt]){const pi=this.trigger(ie,Xt,kn,wt);pi&&Qt.push(pi)}}),Qt.length)return this._engine.markElementAsRemoved(this.id,ie,!0,he),je&&M(Qt).onDone(()=>this._engine.processLeaveNode(ie)),!0}return!1}prepareLeaveAnimationListeners(ie){const he=this._elementListeners.get(ie),je=this._engine.statesByElement.get(ie);if(he&&je){const wt=new Set;he.forEach(Pt=>{const Qt=Pt.name;if(wt.has(Qt))return;wt.add(Qt);const pi=this._triggers[Qt].fallbackTransition,Ti=je[Qt]||dr,Zi=new _n(kn),tn=new dn(this.id,Qt,ie);this._engine.totalQueuedPlayers++,this._queue.push({element:ie,triggerName:Qt,transition:pi,fromState:Ti,toState:Zi,player:tn,isFallbackTransition:!0})})}}removeNode(ie,he){const je=this._engine;if(ie.childElementCount&&this._signalRemovalForInnerTriggers(ie,he),this.triggerLeaveAnimation(ie,he,!0))return;let wt=!1;if(je.totalAnimations){const Pt=je.players.length?je.playersByQueriedElement.get(ie):[];if(Pt&&Pt.length)wt=!0;else{let Qt=ie;for(;Qt=Qt.parentNode;)if(je.statesByElement.get(Qt)){wt=!0;break}}}if(this.prepareLeaveAnimationListeners(ie),wt)je.markElementAsRemoved(this.id,ie,!1,he);else{const Pt=ie[Ln];(!Pt||Pt===$i)&&(je.afterFlush(()=>this.clearElementCache(ie)),je.destroyInnerAnimations(ie),je._onRemovalComplete(ie,he))}}insertNode(ie,he){ur(ie,this._hostClassName)}drainQueuedTransitions(ie){const he=[];return this._queue.forEach(je=>{const wt=je.player;if(wt.destroyed)return;const Pt=je.element,Qt=this._elementListeners.get(Pt);Qt&&Qt.forEach(Xt=>{if(Xt.name==je.triggerName){const pi=L(Pt,je.triggerName,je.fromState.value,je.toState.value);pi._data=ie,R(je.player,Xt.phase,pi,Xt.callback)}}),wt.markedForDestroy?this._engine.afterFlush(()=>{wt.destroy()}):he.push(je)}),this._queue=[],he.sort((je,wt)=>{const Pt=je.transition.ast.depCount,Qt=wt.transition.ast.depCount;return 0==Pt||0==Qt?Pt-Qt:this._engine.driver.containsElement(je.element,wt.element)?1:-1})}destroy(ie){this.players.forEach(he=>he.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,ie)}elementContainsData(ie){let he=!1;return this._elementListeners.has(ie)&&(he=!0),he=!!this._queue.find(je=>je.element===ie)||he,he}}class Fi{constructor(ie,he,je){this.bodyNode=ie,this.driver=he,this._normalizer=je,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,Pt)=>{}}_onRemovalComplete(ie,he){this.onRemovalComplete(ie,he)}get queuedPlayers(){const ie=[];return this._namespaceList.forEach(he=>{he.players.forEach(je=>{je.queued&&ie.push(je)})}),ie}createNamespace(ie,he){const je=new wi(ie,he,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,he)?this._balanceNamespaceList(je,he):(this.newHostElements.set(he,je),this.collectEnterElement(he)),this._namespaceLookup[ie]=je}_balanceNamespaceList(ie,he){const je=this._namespaceList.length-1;if(je>=0){let wt=!1;for(let Pt=je;Pt>=0;Pt--)if(this.driver.containsElement(this._namespaceList[Pt].hostElement,he)){this._namespaceList.splice(Pt+1,0,ie),wt=!0;break}wt||this._namespaceList.splice(0,0,ie)}else this._namespaceList.push(ie);return this.namespacesByHostElement.set(he,ie),ie}register(ie,he){let je=this._namespaceLookup[ie];return je||(je=this.createNamespace(ie,he)),je}registerTrigger(ie,he,je){let wt=this._namespaceLookup[ie];wt&&wt.register(he,je)&&this.totalAnimations++}destroy(ie,he){if(!ie)return;const je=this._fetchNamespace(ie);this.afterFlush(()=>{this.namespacesByHostElement.delete(je.hostElement),delete this._namespaceLookup[ie];const wt=this._namespaceList.indexOf(je);wt>=0&&this._namespaceList.splice(wt,1)}),this.afterFlushAnimationsDone(()=>je.destroy(he))}_fetchNamespace(ie){return this._namespaceLookup[ie]}fetchNamespacesByElement(ie){const he=new Set,je=this.statesByElement.get(ie);if(je){const wt=Object.keys(je);for(let Pt=0;Pt=0&&this.collectedLeaveElements.splice(Qt,1)}if(ie){const Qt=this._fetchNamespace(ie);Qt&&Qt.insertNode(he,je)}wt&&this.collectEnterElement(he)}collectEnterElement(ie){this.collectedEnterElements.push(ie)}markElementAsDisabled(ie,he){he?this.disabledNodes.has(ie)||(this.disabledNodes.add(ie),ur(ie,gt)):this.disabledNodes.has(ie)&&(this.disabledNodes.delete(ie),pa(ie,gt))}removeNode(ie,he,je,wt){if(Gn(he)){const Pt=ie?this._fetchNamespace(ie):null;if(Pt?Pt.removeNode(he,wt):this.markElementAsRemoved(ie,he,!1,wt),je){const Qt=this.namespacesByHostElement.get(he);Qt&&Qt.id!==ie&&Qt.removeNode(he,wt)}}else this._onRemovalComplete(he,wt)}markElementAsRemoved(ie,he,je,wt){this.collectedLeaveElements.push(he),he[Ln]={namespaceId:ie,setForRemoval:wt,hasAnimation:je,removedBeforeQueried:!1}}listen(ie,he,je,wt,Pt){return Gn(he)?this._fetchNamespace(ie).listen(he,je,wt,Pt):()=>{}}_buildInstruction(ie,he,je,wt,Pt){return ie.transition.build(this.driver,ie.element,ie.fromState.value,ie.toState.value,je,wt,ie.fromState.options,ie.toState.options,he,Pt)}destroyInnerAnimations(ie){let he=this.driver.query(ie,r,!0);he.forEach(je=>this.destroyActiveAnimationsForElement(je)),0!=this.playersByQueriedElement.size&&(he=this.driver.query(ie,Z,!0),he.forEach(je=>this.finishActiveQueriedAnimationOnElement(je)))}destroyActiveAnimationsForElement(ie){const he=this.playersByElement.get(ie);he&&he.forEach(je=>{je.queued?je.markedForDestroy=!0:je.destroy()})}finishActiveQueriedAnimationOnElement(ie){const he=this.playersByQueriedElement.get(ie);he&&he.forEach(je=>je.finish())}whenRenderingDone(){return new Promise(ie=>{if(this.players.length)return M(this.players).onDone(()=>ie());ie()})}processLeaveNode(ie){const he=ie[Ln];if(he&&he.setForRemoval){if(ie[Ln]=$i,he.namespaceId){this.destroyInnerAnimations(ie);const je=this._fetchNamespace(he.namespaceId);je&&je.clearElementCache(ie)}this._onRemovalComplete(ie,he.setForRemoval)}this.driver.matchesElement(ie,Lt)&&this.markElementAsDisabled(ie,!1),this.driver.query(ie,Lt,!0).forEach(je=>{this.markElementAsDisabled(je,!1)})}flush(ie=-1){let he=[];if(this.newHostElements.size&&(this.newHostElements.forEach((je,wt)=>this._balanceNamespaceList(je,wt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let je=0;jeje()),this._flushFns=[],this._whenQuietFns.length){const je=this._whenQuietFns;this._whenQuietFns=[],he.length?M(he).onDone(()=>{je.forEach(wt=>wt())}):je.forEach(wt=>wt())}}reportError(ie){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${ie.join("\n")}`)}_flushAnimations(ie,he){const je=new Nt,wt=[],Pt=new Map,Qt=[],Xt=new Map,pi=new Map,Ti=new Map,Zi=new Set;this.disabledNodes.forEach(Hi=>{Zi.add(Hi);const on=this.driver.query(Hi,".ng-animate-queued",!0);for(let nn=0;nn{const nn=u+Et++;tt.set(on,nn),Hi.forEach(Pn=>ur(Pn,nn))});const It=[],zt=new Set,ri=new Set;for(let Hi=0;Hizt.add(Pn)):ri.add(on))}const vi=new Map,Mi=Fa(Mn,Array.from(zt));Mi.forEach((Hi,on)=>{const nn=_+Et++;vi.set(on,nn),Hi.forEach(Pn=>ur(Pn,nn))}),ie.push(()=>{On.forEach((Hi,on)=>{const nn=tt.get(on);Hi.forEach(Pn=>pa(Pn,nn))}),Mi.forEach((Hi,on)=>{const nn=vi.get(on);Hi.forEach(Pn=>pa(Pn,nn))}),It.forEach(Hi=>{this.processLeaveNode(Hi)})});const Ai=[],Ki=[];for(let Hi=this._namespaceList.length-1;Hi>=0;Hi--)this._namespaceList[Hi].drainQueuedTransitions(he).forEach(nn=>{const Pn=nn.player,jn=nn.element;if(Ai.push(Pn),this.collectedEnterElements.length){const Ia=jn[Ln];if(Ia&&Ia.setForMove)return void Pn.destroy()}const da=!tn||!this.driver.containsElement(tn,jn),Xr=vi.get(jn),$r=tt.get(jn),Yn=this._buildInstruction(nn,je,$r,Xr,da);if(Yn.errors&&Yn.errors.length)Ki.push(Yn);else{if(da)return Pn.onStart(()=>z(jn,Yn.fromStyles)),Pn.onDestroy(()=>we(jn,Yn.toStyles)),void wt.push(Pn);if(nn.isFallbackTransition)return Pn.onStart(()=>z(jn,Yn.fromStyles)),Pn.onDestroy(()=>we(jn,Yn.toStyles)),void wt.push(Pn);Yn.timelines.forEach(Ia=>Ia.stretchStartingKeyframe=!0),je.append(jn,Yn.timelines),Qt.push({instruction:Yn,player:Pn,element:jn}),Yn.queriedElements.forEach(Ia=>I(Xt,Ia,[]).push(Pn)),Yn.preStyleProps.forEach((Ia,Ps)=>{const Zs=Object.keys(Ia);if(Zs.length){let va=pi.get(Ps);va||pi.set(Ps,va=new Set),Zs.forEach(us=>va.add(us))}}),Yn.postStyleProps.forEach((Ia,Ps)=>{const Zs=Object.keys(Ia);let va=Ti.get(Ps);va||Ti.set(Ps,va=new Set),Zs.forEach(us=>va.add(us))})}});if(Ki.length){const Hi=[];Ki.forEach(on=>{Hi.push(`@${on.triggerName} has failed due to:\n`),on.errors.forEach(nn=>Hi.push(`- ${nn}\n`))}),Ai.forEach(on=>on.destroy()),this.reportError(Hi)}const un=new Map,gn=new Map;Qt.forEach(Hi=>{const on=Hi.element;je.has(on)&&(gn.set(on,on),this._beforeAnimationBuild(Hi.player.namespaceId,Hi.instruction,un))}),wt.forEach(Hi=>{const on=Hi.element;this._getPreviousPlayers(on,!1,Hi.namespaceId,Hi.triggerName,null).forEach(Pn=>{I(un,on,[]).push(Pn),Pn.destroy()})});const En=It.filter(Hi=>Zr(Hi,pi,Ti)),zn=new Map;Ma(zn,this.driver,ri,Ti,y.l3).forEach(Hi=>{Zr(Hi,pi,Ti)&&En.push(Hi)});const Fr=new Map;On.forEach((Hi,on)=>{Ma(Fr,this.driver,new Set(Hi),pi,y.k1)}),En.forEach(Hi=>{const on=zn.get(Hi),nn=Fr.get(Hi);zn.set(Hi,Object.assign(Object.assign({},on),nn))});const wr=[],Vn=[],mr={};Qt.forEach(Hi=>{const{element:on,player:nn,instruction:Pn}=Hi;if(je.has(on)){if(Zi.has(on))return nn.onDestroy(()=>we(on,Pn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(Pn.totalTime),void wt.push(nn);let jn=mr;if(gn.size>1){let Xr=on;const $r=[];for(;Xr=Xr.parentNode;){const Yn=gn.get(Xr);if(Yn){jn=Yn;break}$r.push(Xr)}$r.forEach(Yn=>gn.set(Yn,jn))}const da=this._buildAnimation(nn.namespaceId,Pn,un,Pt,Fr,zn);if(nn.setRealPlayer(da),jn===mr)wr.push(nn);else{const Xr=this.playersByElement.get(jn);Xr&&Xr.length&&(nn.parentPlayer=M(Xr)),wt.push(nn)}}else z(on,Pn.fromStyles),nn.onDestroy(()=>we(on,Pn.toStyles)),Vn.push(nn),Zi.has(on)&&wt.push(nn)}),Vn.forEach(Hi=>{const on=Pt.get(Hi.element);if(on&&on.length){const nn=M(on);Hi.setRealPlayer(nn)}}),wt.forEach(Hi=>{Hi.parentPlayer?Hi.syncPlayerEvents(Hi.parentPlayer):Hi.destroy()});for(let Hi=0;Hi!da.destroyed);jn.length?ma(this,on,jn):this.processLeaveNode(on)}return It.length=0,wr.forEach(Hi=>{this.players.push(Hi),Hi.onDone(()=>{Hi.destroy();const on=this.players.indexOf(Hi);this.players.splice(on,1)}),Hi.play()}),wr}elementContainsData(ie,he){let je=!1;const wt=he[Ln];return wt&&wt.setForRemoval&&(je=!0),this.playersByElement.has(he)&&(je=!0),this.playersByQueriedElement.has(he)&&(je=!0),this.statesByElement.has(he)&&(je=!0),this._fetchNamespace(ie).elementContainsData(he)||je}afterFlush(ie){this._flushFns.push(ie)}afterFlushAnimationsDone(ie){this._whenQuietFns.push(ie)}_getPreviousPlayers(ie,he,je,wt,Pt){let Qt=[];if(he){const Xt=this.playersByQueriedElement.get(ie);Xt&&(Qt=Xt)}else{const Xt=this.playersByElement.get(ie);if(Xt){const pi=!Pt||Pt==kn;Xt.forEach(Ti=>{Ti.queued||!pi&&Ti.triggerName!=wt||Qt.push(Ti)})}}return(je||wt)&&(Qt=Qt.filter(Xt=>!(je&&je!=Xt.namespaceId||wt&&wt!=Xt.triggerName))),Qt}_beforeAnimationBuild(ie,he,je){const Pt=he.element,Qt=he.isRemovalTransition?void 0:ie,Xt=he.isRemovalTransition?void 0:he.triggerName;for(const pi of he.timelines){const Ti=pi.element,Zi=Ti!==Pt,tn=I(je,Ti,[]);this._getPreviousPlayers(Ti,Zi,Qt,Xt,he.toState).forEach(On=>{const tt=On.getRealPlayer();tt.beforeDestroy&&tt.beforeDestroy(),On.destroy(),tn.push(On)})}z(Pt,he.fromStyles)}_buildAnimation(ie,he,je,wt,Pt,Qt){const Xt=he.triggerName,pi=he.element,Ti=[],Zi=new Set,tn=new Set,Mn=he.timelines.map(tt=>{const Et=tt.element;Zi.add(Et);const It=Et[Ln];if(It&&It.removedBeforeQueried)return new y.ZN(tt.duration,tt.delay);const zt=Et!==pi,ri=function Ir(xt){const ie=[];return Ga(xt,ie),ie}((je.get(Et)||Yi).map(un=>un.getRealPlayer())).filter(un=>!!un.element&&un.element===Et),vi=Pt.get(Et),Mi=Qt.get(Et),Ai=l(0,this._normalizer,0,tt.keyframes,vi,Mi),Ki=this._buildPlayer(tt,Ai,ri);if(tt.subTimeline&&wt&&tn.add(Et),zt){const un=new dn(ie,Xt,Et);un.setRealPlayer(Ki),Ti.push(un)}return Ki});Ti.forEach(tt=>{I(this.playersByQueriedElement,tt.element,[]).push(tt),tt.onDone(()=>function Lr(xt,ie,he){let je;if(xt instanceof Map){if(je=xt.get(ie),je){if(je.length){const wt=je.indexOf(he);je.splice(wt,1)}0==je.length&&xt.delete(ie)}}else if(je=xt[ie],je){if(je.length){const wt=je.indexOf(he);je.splice(wt,1)}0==je.length&&delete xt[ie]}return je}(this.playersByQueriedElement,tt.element,tt))}),Zi.forEach(tt=>ur(tt,b));const On=M(Mn);return On.onDestroy(()=>{Zi.forEach(tt=>pa(tt,b)),we(pi,he.toStyles)}),tn.forEach(tt=>{I(wt,tt,[]).push(On)}),On}_buildPlayer(ie,he,je){return he.length>0?this.driver.animate(ie.element,he,ie.duration,ie.delay,ie.easing,je):new y.ZN(ie.duration,ie.delay)}}class dn{constructor(ie,he,je){this.namespaceId=ie,this.triggerName=he,this.element=je,this._player=new y.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(ie){this._containsRealPlayer||(this._player=ie,Object.keys(this._queuedCallbacks).forEach(he=>{this._queuedCallbacks[he].forEach(je=>R(ie,he,void 0,je))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(ie.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(ie){this.totalTime=ie}syncPlayerEvents(ie){const he=this._player;he.triggerCallback&&ie.onStart(()=>he.triggerCallback("start")),ie.onDone(()=>this.finish()),ie.onDestroy(()=>this.destroy())}_queueEvent(ie,he){I(this._queuedCallbacks,ie,[]).push(he)}onDone(ie){this.queued&&this._queueEvent("done",ie),this._player.onDone(ie)}onStart(ie){this.queued&&this._queueEvent("start",ie),this._player.onStart(ie)}onDestroy(ie){this.queued&&this._queueEvent("destroy",ie),this._player.onDestroy(ie)}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(ie){this.queued||this._player.setPosition(ie)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(ie){const he=this._player;he.triggerCallback&&he.triggerCallback(ie)}}function Gn(xt){return xt&&1===xt.nodeType}function Ra(xt,ie){const he=xt.style.display;return xt.style.display=null!=ie?ie:"none",he}function Ma(xt,ie,he,je,wt){const Pt=[];he.forEach(pi=>Pt.push(Ra(pi)));const Qt=[];je.forEach((pi,Ti)=>{const Zi={};pi.forEach(tn=>{const Mn=Zi[tn]=ie.computeStyle(Ti,tn,wt);(!Mn||0==Mn.length)&&(Ti[Ln]=Cn,Qt.push(Ti))}),xt.set(Ti,Zi)});let Xt=0;return he.forEach(pi=>Ra(pi,Pt[Xt++])),Qt}function Fa(xt,ie){const he=new Map;if(xt.forEach(Xt=>he.set(Xt,[])),0==ie.length)return he;const wt=new Set(ie),Pt=new Map;function Qt(Xt){if(!Xt)return 1;let pi=Pt.get(Xt);if(pi)return pi;const Ti=Xt.parentNode;return pi=he.has(Ti)?Ti:wt.has(Ti)?1:Qt(Ti),Pt.set(Xt,pi),pi}return ie.forEach(Xt=>{const pi=Qt(Xt);1!==pi&&he.get(pi).push(Xt)}),he}const xr="$$classes";function ur(xt,ie){if(xt.classList)xt.classList.add(ie);else{let he=xt[xr];he||(he=xt[xr]={}),he[ie]=!0}}function pa(xt,ie){if(xt.classList)xt.classList.remove(ie);else{let he=xt[xr];he&&delete he[ie]}}function ma(xt,ie,he){M(he).onDone(()=>xt.processLeaveNode(ie))}function Ga(xt,ie){for(let he=0;hewt.add(Pt)):ie.set(xt,je),he.delete(xt),!0}class Pr{constructor(ie,he,je){this.bodyNode=ie,this._driver=he,this._normalizer=je,this._triggerCache={},this.onRemovalComplete=(wt,Pt)=>{},this._transitionEngine=new Fi(ie,he,je),this._timelineEngine=new qi(ie,he,je),this._transitionEngine.onRemovalComplete=(wt,Pt)=>this.onRemovalComplete(wt,Pt)}registerTrigger(ie,he,je,wt,Pt){const Qt=ie+"-"+wt;let Xt=this._triggerCache[Qt];if(!Xt){const pi=[],Ti=jt(this._driver,Pt,pi);if(pi.length)throw new Error(`The animation trigger "${wt}" has failed to build due to the following errors:\n - ${pi.join("\n - ")}`);Xt=function St(xt,ie,he){return new kt(xt,ie,he)}(wt,Ti,this._normalizer),this._triggerCache[Qt]=Xt}this._transitionEngine.registerTrigger(he,wt,Xt)}register(ie,he){this._transitionEngine.register(ie,he)}destroy(ie,he){this._transitionEngine.destroy(ie,he)}onInsert(ie,he,je,wt){this._transitionEngine.insertNode(ie,he,je,wt)}onRemove(ie,he,je,wt){this._transitionEngine.removeNode(ie,he,wt||!1,je)}disableAnimations(ie,he){this._transitionEngine.markElementAsDisabled(ie,he)}process(ie,he,je,wt){if("@"==je.charAt(0)){const[Pt,Qt]=A(je);this._timelineEngine.command(Pt,he,Qt,wt)}else this._transitionEngine.trigger(ie,he,je,wt)}listen(ie,he,je,wt,Pt){if("@"==je.charAt(0)){const[Qt,Xt]=A(je);return this._timelineEngine.listen(Qt,he,Xt,Pt)}return this._transitionEngine.listen(ie,he,je,wt,Pt)}flush(ie=-1){this._transitionEngine.flush(ie)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Kn(xt,ie){let he=null,je=null;return Array.isArray(ie)&&ie.length?(he=Qn(ie[0]),ie.length>1&&(je=Qn(ie[ie.length-1]))):ie&&(he=Qn(ie)),he||je?new vn(xt,he,je):null}let vn=(()=>{class xt{constructor(he,je,wt){this._element=he,this._startStyles=je,this._endStyles=wt,this._state=0;let Pt=xt.initialStylesByElement.get(he);Pt||xt.initialStylesByElement.set(he,Pt={}),this._initialStyles=Pt}start(){this._state<1&&(this._startStyles&&we(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(we(this._element,this._initialStyles),this._endStyles&&(we(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(xt.initialStylesByElement.delete(this._element),this._startStyles&&(z(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),we(this._element,this._initialStyles),this._state=3)}}return xt.initialStylesByElement=new WeakMap,xt})();function Qn(xt){let ie=null;const he=Object.keys(xt);for(let je=0;jethis._handleCallback(pi)}apply(){(function $n(xt,ie){const he=ha(xt,"").trim();let je=0;he.length&&(je=function pr(xt,ie){let he=0;for(let je=0;je=this._delay&&je>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Aa(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function wa(xt,ie){const je=ha(xt,"").split(","),wt=ca(je,ie);wt>=0&&(je.splice(wt,1),Vr(xt,"",je.join(",")))}(this._element,this._name))}}function ga(xt,ie,he){Vr(xt,"PlayState",he,Nr(xt,ie))}function Nr(xt,ie){const he=ha(xt,"");return he.indexOf(",")>0?ca(he.split(","),ie):ca([he],ie)}function ca(xt,ie){for(let he=0;he=0)return he;return-1}function Aa(xt,ie,he){he?xt.removeEventListener(kr,ie):xt.addEventListener(kr,ie)}function Vr(xt,ie,he,je){const wt=Wa+ie;if(null!=je){const Pt=xt.style[wt];if(Pt.length){const Qt=Pt.split(",");Qt[je]=he,he=Qt.join(",")}}xt.style[wt]=he}function ha(xt,ie){return xt.style[Wa+ie]||""}class Oa{constructor(ie,he,je,wt,Pt,Qt,Xt,pi){this.element=ie,this.keyframes=he,this.animationName=je,this._duration=wt,this._delay=Pt,this._finalStyles=Xt,this._specialStyles=pi,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Qt||"linear",this.totalTime=wt+Pt,this._buildStyler()}onStart(ie){this._onStartFns.push(ie)}onDone(ie){this._onDoneFns.push(ie)}onDestroy(ie){this._onDestroyFns.push(ie)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(ie=>ie()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(ie=>ie()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(ie=>ie()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(ie){this._styler.setPosition(ie)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(ie){const he="start"==ie?this._onStartFns:this._onDoneFns;he.forEach(je=>je()),he.length=0}beforeDestroy(){this.init();const ie={};if(this.hasStarted()){const he=this._state>=3;Object.keys(this._finalStyles).forEach(je=>{"offset"!=je&&(ie[je]=he?this._finalStyles[je]:lt(this.element,je))})}this.currentSnapshot=ie}}class ra extends y.ZN{constructor(ie,he){super(),this.element=ie,this._startingStyles={},this.__initialized=!1,this._styles=se(he)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(ie=>{this._startingStyles[ie]=this.element.style[ie]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(ie=>this.element.style.setProperty(ie,this._styles[ie])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(ie=>{const he=this._startingStyles[ie];he?this.element.style.setProperty(ie,he):this.element.style.removeProperty(ie)}),this._startingStyles=null,super.destroy())}}class Zn{constructor(){this._count=0}validateStyleProperty(ie){return ee(ie)}matchesElement(ie,he){return le(ie,he)}containsElement(ie,he){return re(ie,he)}query(ie,he,je){return de(ie,he,je)}computeStyle(ie,he,je){return window.getComputedStyle(ie)[he]}buildKeyframeElement(ie,he,je){je=je.map(Xt=>se(Xt));let wt=`@keyframes ${he} {\n`,Pt="";je.forEach(Xt=>{Pt=" ";const pi=parseFloat(Xt.offset);wt+=`${Pt}${100*pi}% {\n`,Pt+=" ",Object.keys(Xt).forEach(Ti=>{const Zi=Xt[Ti];switch(Ti){case"offset":return;case"easing":return void(Zi&&(wt+=`${Pt}animation-timing-function: ${Zi};\n`));default:return void(wt+=`${Pt}${Ti}: ${Zi};\n`)}}),wt+=`${Pt}}\n`}),wt+="}\n";const Qt=document.createElement("style");return Qt.textContent=wt,Qt}animate(ie,he,je,wt,Pt,Qt=[],Xt){const pi=Qt.filter(It=>It instanceof Oa),Ti={};oe(je,wt)&&pi.forEach(It=>{let zt=It.currentSnapshot;Object.keys(zt).forEach(ri=>Ti[ri]=zt[ri])});const Zi=function ja(xt){let ie={};return xt&&(Array.isArray(xt)?xt:[xt]).forEach(je=>{Object.keys(je).forEach(wt=>{"offset"==wt||"easing"==wt||(ie[wt]=je[wt])})}),ie}(he=Ce(ie,he,Ti));if(0==je)return new ra(ie,Zi);const tn="gen_css_kf_"+this._count++,Mn=this.buildKeyframeElement(ie,tn,he);(function ns(xt){var ie;const he=null===(ie=xt.getRootNode)||void 0===ie?void 0:ie.call(xt);return"undefined"!=typeof ShadowRoot&&he instanceof ShadowRoot?he:document.head})(ie).appendChild(Mn);const tt=Kn(ie,he),Et=new Oa(ie,he,tn,je,wt,Pt,Zi,tt);return Et.onDestroy(()=>function Xe(xt){xt.parentNode.removeChild(xt)}(Mn)),Et}}class ne{constructor(ie,he,je,wt){this.element=ie,this.keyframes=he,this.options=je,this._specialStyles=wt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=je.duration,this._delay=je.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ie=>ie()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const ie=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,ie,this.options),this._finalKeyframe=ie.length?ie[ie.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(ie,he,je){return ie.animate(he,je)}onStart(ie){this._onStartFns.push(ie)}onDone(ie){this._onDoneFns.push(ie)}onDestroy(ie){this._onDestroyFns.push(ie)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(ie=>ie()),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(ie=>ie()),this._onDestroyFns=[])}setPosition(ie){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=ie*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const ie={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(he=>{"offset"!=he&&(ie[he]=this._finished?this._finalKeyframe[he]:lt(this.element,he))}),this.currentSnapshot=ie}triggerCallback(ie){const he="start"==ie?this._onStartFns:this._onDoneFns;he.forEach(je=>je()),he.length=0}}class Qe{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(mi().toString()),this._cssKeyframesDriver=new Zn}validateStyleProperty(ie){return ee(ie)}matchesElement(ie,he){return le(ie,he)}containsElement(ie,he){return re(ie,he)}query(ie,he,je){return de(ie,he,je)}computeStyle(ie,he,je){return window.getComputedStyle(ie)[he]}overrideWebAnimationsSupport(ie){this._isNativeImpl=ie}animate(ie,he,je,wt,Pt,Qt=[],Xt){if(!Xt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(ie,he,je,wt,Pt,Qt);const Zi={duration:je,delay:wt,fill:0==wt?"both":"forwards"};Pt&&(Zi.easing=Pt);const tn={},Mn=Qt.filter(tt=>tt instanceof ne);oe(je,wt)&&Mn.forEach(tt=>{let Et=tt.currentSnapshot;Object.keys(Et).forEach(It=>tn[It]=Et[It])});const On=Kn(ie,he=Ce(ie,he=he.map(tt=>Oe(tt,!1)),tn));return new ne(ie,he,Zi,On)}}function mi(){return C()&&Element.prototype.animate||{}}var Ct=m(9808);let ti=(()=>{class xt extends y._j{constructor(he,je){super(),this._nextAnimationId=0,this._renderer=he.createRenderer(je.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(he){const je=this._nextAnimationId.toString();this._nextAnimationId++;const wt=Array.isArray(he)?(0,y.vP)(he):he;return xi(this._renderer,null,je,"register",[wt]),new bt(je,this._renderer)}}return xt.\u0275fac=function(he){return new(he||xt)(e.LFG(e.FYo),e.LFG(Ct.K0))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class bt extends y.LC{constructor(ie,he){super(),this._id=ie,this._renderer=he}create(ie,he){return new Yt(this._id,ie,he||{},this._renderer)}}class Yt{constructor(ie,he,je,wt){this.id=ie,this.element=he,this._renderer=wt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",je)}_listen(ie,he){return this._renderer.listen(this.element,`@@${this.id}:${ie}`,he)}_command(ie,...he){return xi(this._renderer,this.element,this.id,ie,he)}onDone(ie){this._listen("done",ie)}onStart(ie){this._listen("start",ie)}onDestroy(ie){this._listen("destroy",ie)}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(ie){this._command("setPosition",ie)}getPosition(){var ie,he;return null!==(he=null===(ie=this._renderer.engine.players[+this.id])||void 0===ie?void 0:ie.getPosition())&&void 0!==he?he:0}}function xi(xt,ie,he,je,wt){return xt.setProperty(ie,`@@${he}:${je}`,wt)}const yn="@.disabled";let An=(()=>{class xt{constructor(he,je,wt){this.delegate=he,this.engine=je,this._zone=wt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),je.onRemovalComplete=(Pt,Qt)=>{const Xt=null==Qt?void 0:Qt.parentNode(Pt);Xt&&Qt.removeChild(Xt,Pt)}}createRenderer(he,je){const Pt=this.delegate.createRenderer(he,je);if(!(he&&je&&je.data&&je.data.animation)){let Zi=this._rendererCache.get(Pt);return Zi||(Zi=new Wi("",Pt,this.engine),this._rendererCache.set(Pt,Zi)),Zi}const Qt=je.id,Xt=je.id+"-"+this._currentId;this._currentId++,this.engine.register(Xt,he);const pi=Zi=>{Array.isArray(Zi)?Zi.forEach(pi):this.engine.registerTrigger(Qt,Xt,he,Zi.name,Zi)};return je.data.animation.forEach(pi),new Cr(this,Xt,Pt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(he,je,wt){he>=0&&heje(wt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Pt=>{const[Qt,Xt]=Pt;Qt(Xt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([je,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 xt.\u0275fac=function(he){return new(he||xt)(e.LFG(e.FYo),e.LFG(Pr),e.LFG(e.R0b))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class Wi{constructor(ie,he,je){this.namespaceId=ie,this.delegate=he,this.engine=je,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(ie,he){return this.delegate.createElement(ie,he)}createComment(ie){return this.delegate.createComment(ie)}createText(ie){return this.delegate.createText(ie)}appendChild(ie,he){this.delegate.appendChild(ie,he),this.engine.onInsert(this.namespaceId,he,ie,!1)}insertBefore(ie,he,je,wt=!0){this.delegate.insertBefore(ie,he,je),this.engine.onInsert(this.namespaceId,he,ie,wt)}removeChild(ie,he,je){this.engine.onRemove(this.namespaceId,he,this.delegate,je)}selectRootElement(ie,he){return this.delegate.selectRootElement(ie,he)}parentNode(ie){return this.delegate.parentNode(ie)}nextSibling(ie){return this.delegate.nextSibling(ie)}setAttribute(ie,he,je,wt){this.delegate.setAttribute(ie,he,je,wt)}removeAttribute(ie,he,je){this.delegate.removeAttribute(ie,he,je)}addClass(ie,he){this.delegate.addClass(ie,he)}removeClass(ie,he){this.delegate.removeClass(ie,he)}setStyle(ie,he,je,wt){this.delegate.setStyle(ie,he,je,wt)}removeStyle(ie,he,je){this.delegate.removeStyle(ie,he,je)}setProperty(ie,he,je){"@"==he.charAt(0)&&he==yn?this.disableAnimations(ie,!!je):this.delegate.setProperty(ie,he,je)}setValue(ie,he){this.delegate.setValue(ie,he)}listen(ie,he,je){return this.delegate.listen(ie,he,je)}disableAnimations(ie,he){this.engine.disableAnimations(ie,he)}}class Cr extends Wi{constructor(ie,he,je,wt){super(he,je,wt),this.factory=ie,this.namespaceId=he}setProperty(ie,he,je){"@"==he.charAt(0)?"."==he.charAt(1)&&he==yn?this.disableAnimations(ie,je=void 0===je||!!je):this.engine.process(this.namespaceId,ie,he.substr(1),je):this.delegate.setProperty(ie,he,je)}listen(ie,he,je){if("@"==he.charAt(0)){const wt=function Un(xt){switch(xt){case"body":return document.body;case"document":return document;case"window":return window;default:return xt}}(ie);let Pt=he.substr(1),Qt="";return"@"!=Pt.charAt(0)&&([Pt,Qt]=function Rn(xt){const ie=xt.indexOf(".");return[xt.substring(0,ie),xt.substr(ie+1)]}(Pt)),this.engine.listen(this.namespaceId,wt,Pt,Qt,Xt=>{this.factory.scheduleListenerCallback(Xt._data||-1,je,Xt)})}return this.delegate.listen(ie,he,je)}}let _a=(()=>{class xt extends Pr{constructor(he,je,wt){super(he.body,je,wt)}ngOnDestroy(){this.flush()}}return xt.\u0275fac=function(he){return new(he||xt)(e.LFG(Ct.K0),e.LFG(v),e.LFG(Ui))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();const Pi=new e.OlP("AnimationModuleType"),Nn=[{provide:y._j,useClass:ti},{provide:Ui,useFactory:function ds(){return new Xi}},{provide:Pr,useClass:_a},{provide:e.FYo,useFactory:function vs(xt,ie,he){return new An(xt,ie,he)},deps:[t.se,Pr,e.R0b]}],zs=[{provide:v,useFactory:function Mr(){return function Wt(){return"function"==typeof mi()}()?new Qe:new Zn}},{provide:Pi,useValue:"BrowserAnimations"},...Nn],fr=[{provide:v,useClass:ye},{provide:Pi,useValue:"NoopAnimations"},...Nn];let Us=(()=>{class xt{static withConfig(he){return{ngModule:xt,providers:he.disableAnimations?fr:zs}}}return xt.\u0275fac=function(he){return new(he||xt)},xt.\u0275mod=e.oAB({type:xt}),xt.\u0275inj=e.cJS({providers:zs,imports:[t.b2]}),xt})()},2313:(Ge,Q,m)=>{"use strict";m.d(Q,{b2:()=>vt,H7:()=>$t,t6:()=>et,q6:()=>z,se:()=>u});var e=m(9808),t=m(5e3);class y extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class C extends y{static makeCurrent(){(0,e.HT)(new C)}onAndCancel(Be,at,st){return Be.addEventListener(at,st,!1),()=>{Be.removeEventListener(at,st,!1)}}dispatchEvent(Be,at){Be.dispatchEvent(at)}remove(Be){Be.parentNode&&Be.parentNode.removeChild(Be)}createElement(Be,at){return(at=at||this.getDefaultDocument()).createElement(Be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Be){return Be.nodeType===Node.ELEMENT_NODE}isShadowRoot(Be){return Be instanceof DocumentFragment}getGlobalEventTarget(Be,at){return"window"===at?window:"document"===at?Be:"body"===at?Be.body:null}getBaseHref(Be){const at=function M(){return o=o||document.querySelector("base"),o?o.getAttribute("href"):null}();return null==at?null:function R(ke){l=l||document.createElement("a"),l.setAttribute("href",ke);const Be=l.pathname;return"/"===Be.charAt(0)?Be:`/${Be}`}(at)}resetBaseElement(){o=null}getUserAgent(){return window.navigator.userAgent}getCookie(Be){return(0,e.Mx)(document.cookie,Be)}}let l,o=null;const s=new t.OlP("TRANSITION_ID"),I=[{provide:t.ip1,useFactory:function L(ke,Be,at){return()=>{at.get(t.CZH).donePromise.then(()=>{const st=(0,e.q)(),At=Be.querySelectorAll(`style[ng-transition="${ke}"]`);for(let li=0;li{const li=Be.findTestabilityInTree(st,At);if(null==li)throw new Error("Could not find testability for element.");return li},t.dqk.getAllAngularTestabilities=()=>Be.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>Be.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(st=>{const At=t.dqk.getAllAngularTestabilities();let li=At.length,Bt=!1;const Rt=function(Li){Bt=Bt||Li,li--,0==li&&st(Bt)};At.forEach(function(Li){Li.whenStable(Rt)})})}findTestabilityInTree(Be,at,st){if(null==at)return null;const At=Be.getTestability(at);return null!=At?At:st?(0,e.q)().isShadowRoot(at)?this.findTestabilityInTree(Be,at.host,!0):this.findTestabilityInTree(Be,at.parentElement,!0):null}}let E=(()=>{class ke{build(){return new XMLHttpRequest}}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const P=new t.OlP("EventManagerPlugins");let w=(()=>{class ke{constructor(at,st){this._zone=st,this._eventNameToPlugin=new Map,at.forEach(At=>At.manager=this),this._plugins=at.slice().reverse()}addEventListener(at,st,At){return this._findPluginFor(st).addEventListener(at,st,At)}addGlobalEventListener(at,st,At){return this._findPluginFor(st).addGlobalEventListener(at,st,At)}getZone(){return this._zone}_findPluginFor(at){const st=this._eventNameToPlugin.get(at);if(st)return st;const At=this._plugins;for(let li=0;li{class ke{constructor(){this._stylesSet=new Set}addStyles(at){const st=new Set;at.forEach(At=>{this._stylesSet.has(At)||(this._stylesSet.add(At),st.add(At))}),this.onStylesAdded(st)}onStylesAdded(at){}getAllStyles(){return Array.from(this._stylesSet)}}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),W=(()=>{class ke extends j{constructor(at){super(),this._doc=at,this._hostNodes=new Map,this._hostNodes.set(at.head,[])}_addStylesToHost(at,st,At){at.forEach(li=>{const Bt=this._doc.createElement("style");Bt.textContent=li,At.push(st.appendChild(Bt))})}addHost(at){const st=[];this._addStylesToHost(this._stylesSet,at,st),this._hostNodes.set(at,st)}removeHost(at){const st=this._hostNodes.get(at);st&&st.forEach(te),this._hostNodes.delete(at)}onStylesAdded(at){this._hostNodes.forEach((st,At)=>{this._addStylesToHost(at,At,st)})}ngOnDestroy(){this._hostNodes.forEach(at=>at.forEach(te))}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();function te(ke){(0,e.q)().remove(ke)}const ee={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/"},ge=/%COMP%/g;function i(ke,Be,at){for(let st=0;st{if("__ngUnwrap__"===Be)return ke;!1===ke(Be)&&(Be.preventDefault(),Be.returnValue=!1)}}let u=(()=>{class ke{constructor(at,st,At){this.eventManager=at,this.sharedStylesHost=st,this.appId=At,this.rendererByCompId=new Map,this.defaultRenderer=new _(at)}createRenderer(at,st){if(!at||!st)return this.defaultRenderer;switch(st.encapsulation){case t.ifc.Emulated:{let At=this.rendererByCompId.get(st.id);return At||(At=new x(this.eventManager,this.sharedStylesHost,st,this.appId),this.rendererByCompId.set(st.id,At)),At.applyToHost(at),At}case 1:case t.ifc.ShadowDom:return new r(this.eventManager,this.sharedStylesHost,at,st);default:if(!this.rendererByCompId.has(st.id)){const At=i(st.id,st.styles,[]);this.sharedStylesHost.addStyles(At),this.rendererByCompId.set(st.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(w),t.LFG(W),t.LFG(t.AFp))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();class _{constructor(Be){this.eventManager=Be,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Be,at){return at?document.createElementNS(ee[at]||at,Be):document.createElement(Be)}createComment(Be){return document.createComment(Be)}createText(Be){return document.createTextNode(Be)}appendChild(Be,at){Be.appendChild(at)}insertBefore(Be,at,st){Be&&Be.insertBefore(at,st)}removeChild(Be,at){Be&&Be.removeChild(at)}selectRootElement(Be,at){let st="string"==typeof Be?document.querySelector(Be):Be;if(!st)throw new Error(`The selector "${Be}" did not match any elements`);return at||(st.textContent=""),st}parentNode(Be){return Be.parentNode}nextSibling(Be){return Be.nextSibling}setAttribute(Be,at,st,At){if(At){at=At+":"+at;const li=ee[At];li?Be.setAttributeNS(li,at,st):Be.setAttribute(at,st)}else Be.setAttribute(at,st)}removeAttribute(Be,at,st){if(st){const At=ee[st];At?Be.removeAttributeNS(At,at):Be.removeAttribute(`${st}:${at}`)}else Be.removeAttribute(at)}addClass(Be,at){Be.classList.add(at)}removeClass(Be,at){Be.classList.remove(at)}setStyle(Be,at,st,At){At&(t.JOm.DashCase|t.JOm.Important)?Be.style.setProperty(at,st,At&t.JOm.Important?"important":""):Be.style[at]=st}removeStyle(Be,at,st){st&t.JOm.DashCase?Be.style.removeProperty(at):Be.style[at]=""}setProperty(Be,at,st){Be[at]=st}setValue(Be,at){Be.nodeValue=at}listen(Be,at,st){return"string"==typeof Be?this.eventManager.addGlobalEventListener(Be,at,a(st)):this.eventManager.addEventListener(Be,at,a(st))}}class x extends _{constructor(Be,at,st,At){super(Be),this.component=st;const li=i(At+"-"+st.id,st.styles,[]);at.addStyles(li),this.contentAttr=function ye(ke){return"_ngcontent-%COMP%".replace(ge,ke)}(At+"-"+st.id),this.hostAttr=function v(ke){return"_nghost-%COMP%".replace(ge,ke)}(At+"-"+st.id)}applyToHost(Be){super.setAttribute(Be,this.hostAttr,"")}createElement(Be,at){const st=super.createElement(Be,at);return super.setAttribute(st,this.contentAttr,""),st}}class r extends _{constructor(Be,at,st,At){super(Be),this.sharedStylesHost=at,this.hostEl=st,this.shadowRoot=st.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const li=i(At.id,At.styles,[]);for(let Bt=0;Bt{class ke extends V{constructor(at){super(at)}supports(at){return!0}addEventListener(at,st,At){return at.addEventListener(st,At,!1),()=>this.removeEventListener(at,st,At)}removeEventListener(at,st,At){return at.removeEventListener(st,At)}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const Z=["alt","control","meta","shift"],U={"\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"},ve={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"},be={alt:ke=>ke.altKey,control:ke=>ke.ctrlKey,meta:ke=>ke.metaKey,shift:ke=>ke.shiftKey};let Re=(()=>{class ke extends V{constructor(at){super(at)}supports(at){return null!=ke.parseEventName(at)}addEventListener(at,st,At){const li=ke.parseEventName(st),Bt=ke.eventCallback(li.fullKey,At,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(at,li.domEventName,Bt))}static parseEventName(at){const st=at.toLowerCase().split("."),At=st.shift();if(0===st.length||"keydown"!==At&&"keyup"!==At)return null;const li=ke._normalizeKey(st.pop());let Bt="";if(Z.forEach(Li=>{const si=st.indexOf(Li);si>-1&&(st.splice(si,1),Bt+=Li+".")}),Bt+=li,0!=st.length||0===li.length)return null;const Rt={};return Rt.domEventName=At,Rt.fullKey=Bt,Rt}static getEventFullKey(at){let st="",At=function ze(ke){let Be=ke.key;if(null==Be){if(Be=ke.keyIdentifier,null==Be)return"Unidentified";Be.startsWith("U+")&&(Be=String.fromCharCode(parseInt(Be.substring(2),16)),3===ke.location&&ve.hasOwnProperty(Be)&&(Be=ve[Be]))}return U[Be]||Be}(at);return At=At.toLowerCase()," "===At?At="space":"."===At&&(At="dot"),Z.forEach(li=>{li!=At&&be[li](at)&&(st+=li+".")}),st+=At,st}static eventCallback(at,st,At){return li=>{ke.getEventFullKey(li)===at&&At.runGuarded(()=>st(li))}}static _normalizeKey(at){return"esc"===at?"escape":at}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const z=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:e.bD},{provide:t.g9A,useValue:function Oe(){C.makeCurrent(),A.init()},multi:!0},{provide:e.K0,useFactory:function Me(){return(0,t.RDi)(document),document},deps:[]}]),Ze=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function K(){return new t.qLn},deps:[]},{provide:P,useClass:b,multi:!0,deps:[e.K0,t.R0b,t.Lbi]},{provide:P,useClass:Re,multi:!0,deps:[e.K0]},{provide:u,useClass:u,deps:[w,W,t.AFp]},{provide:t.FYo,useExisting:u},{provide:j,useExisting:W},{provide:W,useClass:W,deps:[e.K0]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b]},{provide:w,useClass:w,deps:[P,t.R0b]},{provide:e.JF,useClass:E,deps:[]}];let vt=(()=>{class ke{constructor(at){if(at)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(at){return{ngModule:ke,providers:[{provide:t.AFp,useValue:at.appId},{provide:s,useExisting:t.AFp},I]}}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(ke,12))},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:Ze,imports:[e.ez,t.hGG]}),ke})();"undefined"!=typeof window&&window;const Ve={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},Ee=new t.OlP("HammerGestureConfig"),Y=new t.OlP("HammerLoader");let pe=(()=>{class ke{constructor(){this.events=[],this.overrides={}}buildHammer(at){const st=new Hammer(at,this.options);st.get("pinch").set({enable:!0}),st.get("rotate").set({enable:!0});for(const At in this.overrides)st.get(At).set(this.overrides[At]);return st}}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),De=(()=>{class ke extends V{constructor(at,st,At,li){super(at),this._config=st,this.console=At,this.loader=li,this._loaderPromise=null}supports(at){return!(!Ve.hasOwnProperty(at.toLowerCase())&&!this.isCustomEvent(at)||!window.Hammer&&!this.loader)}addEventListener(at,st,At){const li=this.manager.getZone();if(st=st.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Bt=!1,Rt=()=>{Bt=!0};return this._loaderPromise.then(()=>{window.Hammer?Bt||(Rt=this.addEventListener(at,st,At)):Rt=()=>{}}).catch(()=>{Rt=()=>{}}),()=>{Rt()}}return li.runOutsideAngular(()=>{const Bt=this._config.buildHammer(at),Rt=function(Li){li.runGuarded(function(){At(Li)})};return Bt.on(st,Rt),()=>{Bt.off(st,Rt),"function"==typeof Bt.destroy&&Bt.destroy()}})}isCustomEvent(at){return this._config.events.indexOf(at)>-1}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0),t.LFG(Ee),t.LFG(t.c2e),t.LFG(Y,8))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),et=(()=>{class ke{}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:[{provide:P,useClass:De,multi:!0,deps:[e.K0,Ee,t.c2e,[new t.FiY,Y]]},{provide:Ee,useClass:pe,deps:[]}]}),ke})(),$t=(()=>{class ke{}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:function(at){let st=null;return st=at?new(at||ke):t.LFG(Jt),st},providedIn:"root"}),ke})(),Jt=(()=>{class ke extends $t{constructor(at){super(),this._doc=at}sanitize(at,st){if(null==st)return null;switch(at){case t.q3G.NONE:return st;case t.q3G.HTML:return(0,t.qzn)(st,"HTML")?(0,t.z3N)(st):(0,t.EiD)(this._doc,String(st)).toString();case t.q3G.STYLE:return(0,t.qzn)(st,"Style")?(0,t.z3N)(st):st;case t.q3G.SCRIPT:if((0,t.qzn)(st,"Script"))return(0,t.z3N)(st);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.yhl)(st),(0,t.qzn)(st,"URL")?(0,t.z3N)(st):(0,t.mCW)(String(st));case t.q3G.RESOURCE_URL:if((0,t.qzn)(st,"ResourceURL"))return(0,t.z3N)(st);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${at} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(at){return(0,t.JVY)(at)}bypassSecurityTrustStyle(at){return(0,t.L6k)(at)}bypassSecurityTrustScript(at){return(0,t.eBb)(at)}bypassSecurityTrustUrl(at){return(0,t.LAX)(at)}bypassSecurityTrustResourceUrl(at){return(0,t.pB0)(at)}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:function(at){let st=null;return st=at?new at:function Nt(ke){return new Jt(ke.get(e.K0))}(t.LFG(t.zs3)),st},providedIn:"root"}),ke})()},1402:(Ge,Q,m)=>{"use strict";m.d(Q,{gz:()=>Si,gk:()=>N,m2:()=>Z,Q3:()=>U,OD:()=>b,Av:()=>Oe,F0:()=>nn,rH:()=>da,Od:()=>Yn,yS:()=>Xr,Bz:()=>hc,lC:()=>wa});var e=m(5e3),t=m(8306),y=m(727),C=m(4482),o=m(5403);function M(){return(0,C.e)((Ye,Te)=>{let xe=null;Ye._refCount++;const $e=new o.Q(Te,void 0,void 0,void 0,()=>{if(!Ye||Ye._refCount<=0||0<--Ye._refCount)return void(xe=null);const dt=Ye._connection,Ot=xe;xe=null,dt&&(!Ot||dt===Ot)&&dt.unsubscribe(),Te.unsubscribe()});Ye.subscribe($e),$e.closed||(xe=Ye.connect())})}class l extends t.y{constructor(Te,xe){super(),this.source=Te,this.subjectFactory=xe,this._subject=null,this._refCount=0,this._connection=null,(0,C.A)(Te)&&(this.lift=Te.lift)}_subscribe(Te){return this.getSubject().subscribe(Te)}getSubject(){const Te=this._subject;return(!Te||Te.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Te}=this;this._subject=this._connection=null,null==Te||Te.unsubscribe()}connect(){let Te=this._connection;if(!Te){Te=this._connection=new y.w0;const xe=this.getSubject();Te.add(this.source.subscribe(new o.Q(xe,void 0,()=>{this._teardown(),xe.complete()},$e=>{this._teardown(),xe.error($e)},()=>this._teardown()))),Te.closed&&(this._connection=null,Te=y.w0.EMPTY)}return Te}refCount(){return M()(this)}}var R=m(457),s=m(9646),L=m(1135),I=m(9841),A=m(6805),E=m(7272),P=m(9770),w=m(515),V=m(7579),j=m(9300);function W(Ye){return Ye<=0?()=>w.E:(0,C.e)((Te,xe)=>{let $e=[];Te.subscribe(new o.Q(xe,dt=>{$e.push(dt),Ye<$e.length&&$e.shift()},()=>{for(const dt of $e)xe.next(dt);xe.complete()},void 0,()=>{$e=null}))})}var te=m(8068),ee=m(6590),ge=m(4671),re=m(4004),de=m(3900),se=m(5698),ye=m(8675),v=m(5026),i=m(262),a=m(4351),p=m(590),u=m(5577),_=m(8505),D=m(8746),O=m(8189),x=m(9808);class r{constructor(Te,xe){this.id=Te,this.url=xe}}class b extends r{constructor(Te,xe,$e="imperative",dt=null){super(Te,xe),this.navigationTrigger=$e,this.restoredState=dt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Z extends r{constructor(Te,xe,$e){super(Te,xe),this.urlAfterRedirects=$e}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class N extends r{constructor(Te,xe,$e){super(Te,xe),this.reason=$e}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class U extends r{constructor(Te,xe,$e){super(Te,xe),this.error=$e}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ve extends r{constructor(Te,xe,$e,dt){super(Te,xe),this.urlAfterRedirects=$e,this.state=dt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class be extends r{constructor(Te,xe,$e,dt){super(Te,xe),this.urlAfterRedirects=$e,this.state=dt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Re extends r{constructor(Te,xe,$e,dt,Ot){super(Te,xe),this.urlAfterRedirects=$e,this.state=dt,this.shouldActivate=Ot}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ze extends r{constructor(Te,xe,$e,dt){super(Te,xe),this.urlAfterRedirects=$e,this.state=dt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Oe extends r{constructor(Te,xe,$e,dt){super(Te,xe),this.urlAfterRedirects=$e,this.state=dt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Me{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class we{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ze{constructor(Te){this.snapshot=Te}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(Te){this.snapshot=Te}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fe{constructor(Te,xe,$e){this.routerEvent=Te,this.position=xe,this.anchor=$e}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ne="primary";class ce{constructor(Te){this.params=Te||{}}has(Te){return Object.prototype.hasOwnProperty.call(this.params,Te)}get(Te){if(this.has(Te)){const xe=this.params[Te];return Array.isArray(xe)?xe[0]:xe}return null}getAll(Te){if(this.has(Te)){const xe=this.params[Te];return Array.isArray(xe)?xe:[xe]}return[]}get keys(){return Object.keys(this.params)}}function Le(Ye){return new ce(Ye)}const Pe="ngNavigationCancelingError";function q(Ye){const Te=Error("NavigationCancelingError: "+Ye);return Te[Pe]=!0,Te}function oe(Ye,Te,xe){const $e=xe.path.split("/");if($e.length>Ye.length||"full"===xe.pathMatch&&(Te.hasChildren()||$e.length$e[Ot]===dt)}return Ye===Te}function nt(Ye){return Array.prototype.concat.apply([],Ye)}function ft(Ye){return Ye.length>0?Ye[Ye.length-1]:null}function rt(Ye,Te){for(const xe in Ye)Ye.hasOwnProperty(xe)&&Te(Ye[xe],xe)}function Mt(Ye){return(0,e.CqO)(Ye)?Ye:(0,e.QGY)(Ye)?(0,R.D)(Promise.resolve(Ye)):(0,s.of)(Ye)}const Ft={exact:function ei(Ye,Te,xe){if(!et(Ye.segments,Te.segments)||!Ve(Ye.segments,Te.segments,xe)||Ye.numberOfChildren!==Te.numberOfChildren)return!1;for(const $e in Te.children)if(!Ye.children[$e]||!ei(Ye.children[$e],Te.children[$e],xe))return!1;return!0},subset:ai},Vt={exact:function jt(Ye,Te){return Ue(Ye,Te)},subset:function ki(Ye,Te){return Object.keys(Te).length<=Object.keys(Ye).length&&Object.keys(Te).every(xe=>lt(Ye[xe],Te[xe]))},ignored:()=>!0};function Ii(Ye,Te,xe){return Ft[xe.paths](Ye.root,Te.root,xe.matrixParams)&&Vt[xe.queryParams](Ye.queryParams,Te.queryParams)&&!("exact"===xe.fragment&&Ye.fragment!==Te.fragment)}function ai(Ye,Te,xe){return hi(Ye,Te,Te.segments,xe)}function hi(Ye,Te,xe,$e){if(Ye.segments.length>xe.length){const dt=Ye.segments.slice(0,xe.length);return!(!et(dt,xe)||Te.hasChildren()||!Ve(dt,xe,$e))}if(Ye.segments.length===xe.length){if(!et(Ye.segments,xe)||!Ve(Ye.segments,xe,$e))return!1;for(const dt in Te.children)if(!Ye.children[dt]||!ai(Ye.children[dt],Te.children[dt],$e))return!1;return!0}{const dt=xe.slice(0,Ye.segments.length),Ot=xe.slice(Ye.segments.length);return!!(et(Ye.segments,dt)&&Ve(Ye.segments,dt,$e)&&Ye.children[Ne])&&hi(Ye.children[Ne],Te,Ot,$e)}}function Ve(Ye,Te,xe){return Te.every(($e,dt)=>Vt[xe](Ye[dt].parameters,$e.parameters))}class Ee{constructor(Te,xe,$e){this.root=Te,this.queryParams=xe,this.fragment=$e}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Le(this.queryParams)),this._queryParamMap}toString(){return ct.serialize(this)}}class Y{constructor(Te,xe){this.segments=Te,this.children=xe,this.parent=null,rt(xe,($e,dt)=>$e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ke(this)}}class pe{constructor(Te,xe){this.path=Te,this.parameters=xe}get parameterMap(){return this._parameterMap||(this._parameterMap=Le(this.parameters)),this._parameterMap}toString(){return Li(this)}}function et(Ye,Te){return Ye.length===Te.length&&Ye.every((xe,$e)=>xe.path===Te[$e].path)}class Nt{}class Jt{parse(Te){const xe=new _e(Te);return new Ee(xe.parseRootSegment(),xe.parseQueryParams(),xe.parseFragment())}serialize(Te){const xe=`/${Be(Te.root,!0)}`,$e=function ci(Ye){const Te=Object.keys(Ye).map(xe=>{const $e=Ye[xe];return Array.isArray($e)?$e.map(dt=>`${st(xe)}=${st(dt)}`).join("&"):`${st(xe)}=${st($e)}`}).filter(xe=>!!xe);return Te.length?`?${Te.join("&")}`:""}(Te.queryParams);return`${xe}${$e}${"string"==typeof Te.fragment?`#${function At(Ye){return encodeURI(Ye)}(Te.fragment)}`:""}`}}const ct=new Jt;function ke(Ye){return Ye.segments.map(Te=>Li(Te)).join("/")}function Be(Ye,Te){if(!Ye.hasChildren())return ke(Ye);if(Te){const xe=Ye.children[Ne]?Be(Ye.children[Ne],!1):"",$e=[];return rt(Ye.children,(dt,Ot)=>{Ot!==Ne&&$e.push(`${Ot}:${Be(dt,!1)}`)}),$e.length>0?`${xe}(${$e.join("//")})`:xe}{const xe=function $t(Ye,Te){let xe=[];return rt(Ye.children,($e,dt)=>{dt===Ne&&(xe=xe.concat(Te($e,dt)))}),rt(Ye.children,($e,dt)=>{dt!==Ne&&(xe=xe.concat(Te($e,dt)))}),xe}(Ye,($e,dt)=>dt===Ne?[Be(Ye.children[Ne],!1)]:[`${dt}:${Be($e,!1)}`]);return 1===Object.keys(Ye.children).length&&null!=Ye.children[Ne]?`${ke(Ye)}/${xe[0]}`:`${ke(Ye)}/(${xe.join("//")})`}}function at(Ye){return encodeURIComponent(Ye).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function st(Ye){return at(Ye).replace(/%3B/gi,";")}function li(Ye){return at(Ye).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(Ye){return decodeURIComponent(Ye)}function Rt(Ye){return Bt(Ye.replace(/\+/g,"%20"))}function Li(Ye){return`${li(Ye.path)}${function si(Ye){return Object.keys(Ye).map(Te=>`;${li(Te)}=${li(Ye[Te])}`).join("")}(Ye.parameters)}`}const sn=/^[^\/()?;=#]+/;function Ui(Ye){const Te=Ye.match(sn);return Te?Te[0]:""}const Di=/^[^=?&#]+/,Ke=/^[^&#]+/;class _e{constructor(Te){this.url=Te,this.remaining=Te}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y([],{}):new Y([],this.parseChildren())}parseQueryParams(){const Te={};if(this.consumeOptional("?"))do{this.parseQueryParam(Te)}while(this.consumeOptional("&"));return Te}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Te=[];for(this.peekStartsWith("(")||Te.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Te.push(this.parseSegment());let xe={};this.peekStartsWith("/(")&&(this.capture("/"),xe=this.parseParens(!0));let $e={};return this.peekStartsWith("(")&&($e=this.parseParens(!1)),(Te.length>0||Object.keys(xe).length>0)&&($e[Ne]=new Y(Te,xe)),$e}parseSegment(){const Te=Ui(this.remaining);if(""===Te&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Te),new pe(Bt(Te),this.parseMatrixParams())}parseMatrixParams(){const Te={};for(;this.consumeOptional(";");)this.parseParam(Te);return Te}parseParam(Te){const xe=Ui(this.remaining);if(!xe)return;this.capture(xe);let $e="";if(this.consumeOptional("=")){const dt=Ui(this.remaining);dt&&($e=dt,this.capture($e))}Te[Bt(xe)]=Bt($e)}parseQueryParam(Te){const xe=function Xi(Ye){const Te=Ye.match(Di);return Te?Te[0]:""}(this.remaining);if(!xe)return;this.capture(xe);let $e="";if(this.consumeOptional("=")){const qt=function _t(Ye){const Te=Ye.match(Ke);return Te?Te[0]:""}(this.remaining);qt&&($e=qt,this.capture($e))}const dt=Rt(xe),Ot=Rt($e);if(Te.hasOwnProperty(dt)){let qt=Te[dt];Array.isArray(qt)||(qt=[qt],Te[dt]=qt),qt.push(Ot)}else Te[dt]=Ot}parseParens(Te){const xe={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const $e=Ui(this.remaining),dt=this.remaining[$e.length];if("/"!==dt&&")"!==dt&&";"!==dt)throw new Error(`Cannot parse url '${this.url}'`);let Ot;$e.indexOf(":")>-1?(Ot=$e.substr(0,$e.indexOf(":")),this.capture(Ot),this.capture(":")):Te&&(Ot=Ne);const qt=this.parseChildren();xe[Ot]=1===Object.keys(qt).length?qt[Ne]:new Y([],qt),this.consumeOptional("//")}return xe}peekStartsWith(Te){return this.remaining.startsWith(Te)}consumeOptional(Te){return!!this.peekStartsWith(Te)&&(this.remaining=this.remaining.substring(Te.length),!0)}capture(Te){if(!this.consumeOptional(Te))throw new Error(`Expected "${Te}".`)}}class qe{constructor(Te){this._root=Te}get root(){return this._root.value}parent(Te){const xe=this.pathFromRoot(Te);return xe.length>1?xe[xe.length-2]:null}children(Te){const xe=yt(Te,this._root);return xe?xe.children.map($e=>$e.value):[]}firstChild(Te){const xe=yt(Te,this._root);return xe&&xe.children.length>0?xe.children[0].value:null}siblings(Te){const xe=ue(Te,this._root);return xe.length<2?[]:xe[xe.length-2].children.map(dt=>dt.value).filter(dt=>dt!==Te)}pathFromRoot(Te){return ue(Te,this._root).map(xe=>xe.value)}}function yt(Ye,Te){if(Ye===Te.value)return Te;for(const xe of Te.children){const $e=yt(Ye,xe);if($e)return $e}return null}function ue(Ye,Te){if(Ye===Te.value)return[Te];for(const xe of Te.children){const $e=ue(Ye,xe);if($e.length)return $e.unshift(Te),$e}return[]}class Je{constructor(Te,xe){this.value=Te,this.children=xe}toString(){return`TreeNode(${this.value})`}}function St(Ye){const Te={};return Ye&&Ye.children.forEach(xe=>Te[xe.value.outlet]=xe),Te}class kt extends qe{constructor(Te,xe){super(Te),this.snapshot=xe,Lt(this,Te)}toString(){return this.snapshot.toString()}}function yi(Ye,Te){const xe=function Ni(Ye,Te){const qt=new Kt([],{},{},"",{},Ne,Te,null,Ye.root,-1,{});return new gt("",new Je(qt,[]))}(Ye,Te),$e=new L.X([new pe("",{})]),dt=new L.X({}),Ot=new L.X({}),qt=new L.X({}),ii=new L.X(""),Ei=new Si($e,dt,qt,ii,Ot,Ne,Te,xe.root);return Ei.snapshot=xe.root,new kt(new Je(Ei,[]),xe)}class Si{constructor(Te,xe,$e,dt,Ot,qt,ii,Ei){this.url=Te,this.params=xe,this.queryParams=$e,this.fragment=dt,this.data=Ot,this.outlet=qt,this.component=ii,this._futureSnapshot=Ei}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,re.U)(Te=>Le(Te)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,re.U)(Te=>Le(Te)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qi(Ye,Te="emptyOnly"){const xe=Ye.pathFromRoot;let $e=0;if("always"!==Te)for($e=xe.length-1;$e>=1;){const dt=xe[$e],Ot=xe[$e-1];if(dt.routeConfig&&""===dt.routeConfig.path)$e--;else{if(Ot.component)break;$e--}}return function ot(Ye){return Ye.reduce((Te,xe)=>({params:Object.assign(Object.assign({},Te.params),xe.params),data:Object.assign(Object.assign({},Te.data),xe.data),resolve:Object.assign(Object.assign({},Te.resolve),xe._resolvedData)}),{params:{},data:{},resolve:{}})}(xe.slice($e))}class Kt{constructor(Te,xe,$e,dt,Ot,qt,ii,Ei,an,Wn,xn){this.url=Te,this.params=xe,this.queryParams=$e,this.fragment=dt,this.data=Ot,this.outlet=qt,this.component=ii,this.routeConfig=Ei,this._urlSegment=an,this._lastPathIndex=Wn,this._resolve=xn}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=Le(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Le(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map($e=>$e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gt extends qe{constructor(Te,xe){super(xe),this.url=Te,Lt(this,xe)}toString(){return ui(this._root)}}function Lt(Ye,Te){Te.value._routerState=Ye,Te.children.forEach(xe=>Lt(Ye,xe))}function ui(Ye){const Te=Ye.children.length>0?` { ${Ye.children.map(ui).join(", ")} } `:"";return`${Ye.value}${Te}`}function Ci(Ye){if(Ye.snapshot){const Te=Ye.snapshot,xe=Ye._futureSnapshot;Ye.snapshot=xe,Ue(Te.queryParams,xe.queryParams)||Ye.queryParams.next(xe.queryParams),Te.fragment!==xe.fragment&&Ye.fragment.next(xe.fragment),Ue(Te.params,xe.params)||Ye.params.next(xe.params),function Ce(Ye,Te){if(Ye.length!==Te.length)return!1;for(let xe=0;xeUe(xe.parameters,Te[$e].parameters))}(Ye.url,Te.url);return xe&&!(!Ye.parent!=!Te.parent)&&(!Ye.parent||Yi(Ye.parent,Te.parent))}function Cn(Ye,Te,xe){if(xe&&Ye.shouldReuseRoute(Te.value,xe.value.snapshot)){const $e=xe.value;$e._futureSnapshot=Te.value;const dt=function Ln(Ye,Te,xe){return Te.children.map($e=>{for(const dt of xe.children)if(Ye.shouldReuseRoute($e.value,dt.value.snapshot))return Cn(Ye,$e,dt);return Cn(Ye,$e)})}(Ye,Te,xe);return new Je($e,dt)}{if(Ye.shouldAttach(Te.value)){const Ot=Ye.retrieve(Te.value);if(null!==Ot){const qt=Ot.route;return qt.value._futureSnapshot=Te.value,qt.children=Te.children.map(ii=>Cn(Ye,ii)),qt}}const $e=function _n(Ye){return new Si(new L.X(Ye.url),new L.X(Ye.params),new L.X(Ye.queryParams),new L.X(Ye.fragment),new L.X(Ye.data),Ye.outlet,Ye.component,Ye)}(Te.value),dt=Te.children.map(Ot=>Cn(Ye,Ot));return new Je($e,dt)}}function dr(Ye){return"object"==typeof Ye&&null!=Ye&&!Ye.outlets&&!Ye.segmentPath}function wi(Ye){return"object"==typeof Ye&&null!=Ye&&Ye.outlets}function Fi(Ye,Te,xe,$e,dt){let Ot={};return $e&&rt($e,(qt,ii)=>{Ot[ii]=Array.isArray(qt)?qt.map(Ei=>`${Ei}`):`${qt}`}),new Ee(xe.root===Ye?Te:dn(xe.root,Ye,Te),Ot,dt)}function dn(Ye,Te,xe){const $e={};return rt(Ye.children,(dt,Ot)=>{$e[Ot]=dt===Te?xe:dn(dt,Te,xe)}),new Y(Ye.segments,$e)}class Lr{constructor(Te,xe,$e){if(this.isAbsolute=Te,this.numberOfDoubleDots=xe,this.commands=$e,Te&&$e.length>0&&dr($e[0]))throw new Error("Root segment cannot have matrix parameters");const dt=$e.find(wi);if(dt&&dt!==ft($e))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gn{constructor(Te,xe,$e){this.segmentGroup=Te,this.processChildren=xe,this.index=$e}}function Fa(Ye,Te,xe){if(Ye||(Ye=new Y([],{})),0===Ye.segments.length&&Ye.hasChildren())return xr(Ye,Te,xe);const $e=function hs(Ye,Te,xe){let $e=0,dt=Te;const Ot={match:!1,pathIndex:0,commandIndex:0};for(;dt=xe.length)return Ot;const qt=Ye.segments[dt],ii=xe[$e];if(wi(ii))break;const Ei=`${ii}`,an=$e0&&void 0===Ei)break;if(Ei&&an&&"object"==typeof an&&void 0===an.outlets){if(!Ir(Ei,an,qt))return Ot;$e+=2}else{if(!Ir(Ei,{},qt))return Ot;$e++}dt++}return{match:!0,pathIndex:dt,commandIndex:$e}}(Ye,Te,xe),dt=xe.slice($e.commandIndex);if($e.match&&$e.pathIndex{"string"==typeof Ot&&(Ot=[Ot]),null!==Ot&&(dt[qt]=Fa(Ye.children[qt],Te,Ot))}),rt(Ye.children,(Ot,qt)=>{void 0===$e[qt]&&(dt[qt]=Ot)}),new Y(Ye.segments,dt)}}function ur(Ye,Te,xe){const $e=Ye.segments.slice(0,Te);let dt=0;for(;dt{"string"==typeof xe&&(xe=[xe]),null!==xe&&(Te[$e]=ur(new Y([],{}),0,xe))}),Te}function ma(Ye){const Te={};return rt(Ye,(xe,$e)=>Te[$e]=`${xe}`),Te}function Ir(Ye,Te,xe){return Ye==xe.path&&Ue(Te,xe.parameters)}class Ya{constructor(Te,xe,$e,dt){this.routeReuseStrategy=Te,this.futureState=xe,this.currState=$e,this.forwardEvent=dt}activate(Te){const xe=this.futureState._root,$e=this.currState?this.currState._root:null;this.deactivateChildRoutes(xe,$e,Te),Ci(this.futureState.root),this.activateChildRoutes(xe,$e,Te)}deactivateChildRoutes(Te,xe,$e){const dt=St(xe);Te.children.forEach(Ot=>{const qt=Ot.value.outlet;this.deactivateRoutes(Ot,dt[qt],$e),delete dt[qt]}),rt(dt,(Ot,qt)=>{this.deactivateRouteAndItsChildren(Ot,$e)})}deactivateRoutes(Te,xe,$e){const dt=Te.value,Ot=xe?xe.value:null;if(dt===Ot)if(dt.component){const qt=$e.getContext(dt.outlet);qt&&this.deactivateChildRoutes(Te,xe,qt.children)}else this.deactivateChildRoutes(Te,xe,$e);else Ot&&this.deactivateRouteAndItsChildren(xe,$e)}deactivateRouteAndItsChildren(Te,xe){Te.value.component&&this.routeReuseStrategy.shouldDetach(Te.value.snapshot)?this.detachAndStoreRouteSubtree(Te,xe):this.deactivateRouteAndOutlet(Te,xe)}detachAndStoreRouteSubtree(Te,xe){const $e=xe.getContext(Te.value.outlet),dt=$e&&Te.value.component?$e.children:xe,Ot=St(Te);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],dt);if($e&&$e.outlet){const qt=$e.outlet.detach(),ii=$e.children.onOutletDeactivated();this.routeReuseStrategy.store(Te.value.snapshot,{componentRef:qt,route:Te,contexts:ii})}}deactivateRouteAndOutlet(Te,xe){const $e=xe.getContext(Te.value.outlet),dt=$e&&Te.value.component?$e.children:xe,Ot=St(Te);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],dt);$e&&$e.outlet&&($e.outlet.deactivate(),$e.children.onOutletDeactivated(),$e.attachRef=null,$e.resolver=null,$e.route=null)}activateChildRoutes(Te,xe,$e){const dt=St(xe);Te.children.forEach(Ot=>{this.activateRoutes(Ot,dt[Ot.value.outlet],$e),this.forwardEvent(new vt(Ot.value.snapshot))}),Te.children.length&&this.forwardEvent(new z(Te.value.snapshot))}activateRoutes(Te,xe,$e){const dt=Te.value,Ot=xe?xe.value:null;if(Ci(dt),dt===Ot)if(dt.component){const qt=$e.getOrCreateContext(dt.outlet);this.activateChildRoutes(Te,xe,qt.children)}else this.activateChildRoutes(Te,xe,$e);else if(dt.component){const qt=$e.getOrCreateContext(dt.outlet);if(this.routeReuseStrategy.shouldAttach(dt.snapshot)){const ii=this.routeReuseStrategy.retrieve(dt.snapshot);this.routeReuseStrategy.store(dt.snapshot,null),qt.children.onOutletReAttached(ii.contexts),qt.attachRef=ii.componentRef,qt.route=ii.route.value,qt.outlet&&qt.outlet.attach(ii.componentRef,ii.route.value),Ci(ii.route.value),this.activateChildRoutes(Te,null,qt.children)}else{const ii=function Zr(Ye){for(let Te=Ye.parent;Te;Te=Te.parent){const xe=Te.routeConfig;if(xe&&xe._loadedConfig)return xe._loadedConfig;if(xe&&xe.component)return null}return null}(dt.snapshot),Ei=ii?ii.module.componentFactoryResolver:null;qt.attachRef=null,qt.route=dt,qt.resolver=Ei,qt.outlet&&qt.outlet.activateWith(dt,Ei),this.activateChildRoutes(Te,null,qt.children)}}else this.activateChildRoutes(Te,null,$e)}}class Pr{constructor(Te,xe){this.routes=Te,this.module=xe}}function Kn(Ye){return"function"==typeof Ye}function Qn(Ye){return Ye instanceof Ee}const la=Symbol("INITIAL_VALUE");function Jr(){return(0,de.w)(Ye=>(0,I.a)(Ye.map(Te=>Te.pipe((0,se.q)(1),(0,ye.O)(la)))).pipe((0,v.R)((Te,xe)=>{let $e=!1;return xe.reduce((dt,Ot,qt)=>dt!==la?dt:(Ot===la&&($e=!0),$e||!1!==Ot&&qt!==xe.length-1&&!Qn(Ot)?dt:Ot),Te)},la),(0,j.h)(Te=>Te!==la),(0,re.U)(Te=>Qn(Te)?Te:!0===Te),(0,se.q)(1)))}class ga{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new $n,this.attachRef=null}}class $n{constructor(){this.contexts=new Map}onChildOutletCreated(Te,xe){const $e=this.getOrCreateContext(Te);$e.outlet=xe,this.contexts.set(Te,$e)}onChildOutletDestroyed(Te){const xe=this.getContext(Te);xe&&(xe.outlet=null,xe.attachRef=null)}onOutletDeactivated(){const Te=this.contexts;return this.contexts=new Map,Te}onOutletReAttached(Te){this.contexts=Te}getOrCreateContext(Te){let xe=this.getContext(Te);return xe||(xe=new ga,this.contexts.set(Te,xe)),xe}getContext(Te){return this.contexts.get(Te)||null}}let wa=(()=>{class Ye{constructor(xe,$e,dt,Ot,qt){this.parentContexts=xe,this.location=$e,this.resolver=dt,this.changeDetector=qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Ot||Ne,xe.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const xe=this.parentContexts.getContext(this.name);xe&&xe.route&&(xe.attachRef?this.attach(xe.attachRef,xe.route):this.activateWith(xe.route,xe.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 xe=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(xe.instance),xe}attach(xe,$e){this.activated=xe,this._activatedRoute=$e,this.location.insert(xe.hostView),this.attachEvents.emit(xe.instance)}deactivate(){if(this.activated){const xe=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(xe)}}activateWith(xe,$e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=xe;const qt=($e=$e||this.resolver).resolveComponentFactory(xe._futureSnapshot.routeConfig.component),ii=this.parentContexts.getOrCreateContext(this.name).children,Ei=new Nr(xe,ii,this.location.injector);this.activated=this.location.createComponent(qt,this.location.length,Ei),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.Y36($n),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ye})();class Nr{constructor(Te,xe,$e){this.route=Te,this.childContexts=xe,this.parent=$e}get(Te,xe){return Te===Si?this.route:Te===$n?this.childContexts:this.parent.get(Te,xe)}}let ca=(()=>{class Ye{}return Ye.\u0275fac=function(xe){return new(xe||Ye)},Ye.\u0275cmp=e.Xpm({type:Ye,selectors:[["ng-component"]],decls:1,vars:0,template:function(xe,$e){1&xe&&e._UZ(0,"router-outlet")},directives:[wa],encapsulation:2}),Ye})();function Aa(Ye,Te=""){for(let xe=0;xeSr($e)===Te);return xe.push(...Ye.filter($e=>Sr($e)!==Te)),xe}const Oa={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ra(Ye,Te,xe){var $e;if(""===Te.path)return"full"===Te.pathMatch&&(Ye.hasChildren()||xe.length>0)?Object.assign({},Oa):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ot=(Te.matcher||oe)(xe,Ye,Te);if(!Ot)return Object.assign({},Oa);const qt={};rt(Ot.posParams,(Ei,an)=>{qt[an]=Ei.path});const ii=Ot.consumed.length>0?Object.assign(Object.assign({},qt),Ot.consumed[Ot.consumed.length-1].parameters):qt;return{matched:!0,consumedSegments:Ot.consumed,lastChild:Ot.consumed.length,parameters:ii,positionalParamSegments:null!==($e=Ot.posParams)&&void 0!==$e?$e:{}}}function Gr(Ye,Te,xe,$e,dt="corrected"){if(xe.length>0&&function ns(Ye,Te,xe){return xe.some($e=>Xe(Ye,Te,$e)&&Sr($e)!==Ne)}(Ye,xe,$e)){const qt=new Y(Te,function Zn(Ye,Te,xe,$e){const dt={};dt[Ne]=$e,$e._sourceSegment=Ye,$e._segmentIndexShift=Te.length;for(const Ot of xe)if(""===Ot.path&&Sr(Ot)!==Ne){const qt=new Y([],{});qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,dt[Sr(Ot)]=qt}return dt}(Ye,Te,$e,new Y(xe,Ye.children)));return qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,{segmentGroup:qt,slicedSegments:[]}}if(0===xe.length&&function ja(Ye,Te,xe){return xe.some($e=>Xe(Ye,Te,$e))}(Ye,xe,$e)){const qt=new Y(Ye.segments,function Ha(Ye,Te,xe,$e,dt,Ot){const qt={};for(const ii of $e)if(Xe(Ye,xe,ii)&&!dt[Sr(ii)]){const Ei=new Y([],{});Ei._sourceSegment=Ye,Ei._segmentIndexShift="legacy"===Ot?Ye.segments.length:Te.length,qt[Sr(ii)]=Ei}return Object.assign(Object.assign({},dt),qt)}(Ye,Te,xe,$e,Ye.children,dt));return qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,{segmentGroup:qt,slicedSegments:xe}}const Ot=new Y(Ye.segments,Ye.children);return Ot._sourceSegment=Ye,Ot._segmentIndexShift=Te.length,{segmentGroup:Ot,slicedSegments:xe}}function Xe(Ye,Te,xe){return(!(Ye.hasChildren()||Te.length>0)||"full"!==xe.pathMatch)&&""===xe.path}function me(Ye,Te,xe,$e){return!!(Sr(Ye)===$e||$e!==Ne&&Xe(Te,xe,Ye))&&("**"===Ye.path||ra(Te,Ye,xe).matched)}function J(Ye,Te,xe){return 0===Te.length&&!Ye.children[xe]}class ne{constructor(Te){this.segmentGroup=Te||null}}class Qe{constructor(Te){this.urlTree=Te}}function Wt(Ye){return new t.y(Te=>Te.error(new ne(Ye)))}function mi(Ye){return new t.y(Te=>Te.error(new Qe(Ye)))}function Ct(Ye){return new t.y(Te=>Te.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Ye}'`)))}class Yt{constructor(Te,xe,$e,dt,Ot){this.configLoader=xe,this.urlSerializer=$e,this.urlTree=dt,this.config=Ot,this.allowRedirects=!0,this.ngModule=Te.get(e.h0i)}apply(){const Te=Gr(this.urlTree.root,[],[],this.config).segmentGroup,xe=new Y(Te.segments,Te.children);return this.expandSegmentGroup(this.ngModule,this.config,xe,Ne).pipe((0,re.U)(Ot=>this.createUrlTree(Bi(Ot),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,i.K)(Ot=>{if(Ot instanceof Qe)return this.allowRedirects=!1,this.match(Ot.urlTree);throw Ot instanceof ne?this.noMatchError(Ot):Ot}))}match(Te){return this.expandSegmentGroup(this.ngModule,this.config,Te.root,Ne).pipe((0,re.U)(dt=>this.createUrlTree(Bi(dt),Te.queryParams,Te.fragment))).pipe((0,i.K)(dt=>{throw dt instanceof ne?this.noMatchError(dt):dt}))}noMatchError(Te){return new Error(`Cannot match any routes. URL Segment: '${Te.segmentGroup}'`)}createUrlTree(Te,xe,$e){const dt=Te.segments.length>0?new Y([],{[Ne]:Te}):Te;return new Ee(dt,xe,$e)}expandSegmentGroup(Te,xe,$e,dt){return 0===$e.segments.length&&$e.hasChildren()?this.expandChildren(Te,xe,$e).pipe((0,re.U)(Ot=>new Y([],Ot))):this.expandSegment(Te,$e,xe,$e.segments,dt,!0)}expandChildren(Te,xe,$e){const dt=[];for(const Ot of Object.keys($e.children))"primary"===Ot?dt.unshift(Ot):dt.push(Ot);return(0,R.D)(dt).pipe((0,a.b)(Ot=>{const qt=$e.children[Ot],ii=is(xe,Ot);return this.expandSegmentGroup(Te,ii,qt,Ot).pipe((0,re.U)(Ei=>({segment:Ei,outlet:Ot})))}),(0,v.R)((Ot,qt)=>(Ot[qt.outlet]=qt.segment,Ot),{}),function le(Ye,Te){const xe=arguments.length>=2;return $e=>$e.pipe(Ye?(0,j.h)((dt,Ot)=>Ye(dt,Ot,$e)):ge.y,W(1),xe?(0,ee.d)(Te):(0,te.T)(()=>new A.K))}())}expandSegment(Te,xe,$e,dt,Ot,qt){return(0,R.D)($e).pipe((0,a.b)(ii=>this.expandSegmentAgainstRoute(Te,xe,$e,ii,dt,Ot,qt).pipe((0,i.K)(an=>{if(an instanceof ne)return(0,s.of)(null);throw an}))),(0,p.P)(ii=>!!ii),(0,i.K)((ii,Ei)=>{if(ii instanceof A.K||"EmptyError"===ii.name){if(J(xe,dt,Ot))return(0,s.of)(new Y([],{}));throw new ne(xe)}throw ii}))}expandSegmentAgainstRoute(Te,xe,$e,dt,Ot,qt,ii){return me(dt,xe,Ot,qt)?void 0===dt.redirectTo?this.matchSegmentAgainstRoute(Te,xe,dt,Ot,qt):ii&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Te,xe,$e,dt,Ot,qt):Wt(xe):Wt(xe)}expandSegmentAgainstRouteUsingRedirect(Te,xe,$e,dt,Ot,qt){return"**"===dt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Te,$e,dt,qt):this.expandRegularSegmentAgainstRouteUsingRedirect(Te,xe,$e,dt,Ot,qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Te,xe,$e,dt){const Ot=this.applyRedirectCommands([],$e.redirectTo,{});return $e.redirectTo.startsWith("/")?mi(Ot):this.lineralizeSegments($e,Ot).pipe((0,u.z)(qt=>{const ii=new Y(qt,{});return this.expandSegment(Te,ii,xe,qt,dt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Te,xe,$e,dt,Ot,qt){const{matched:ii,consumedSegments:Ei,lastChild:an,positionalParamSegments:Wn}=ra(xe,dt,Ot);if(!ii)return Wt(xe);const xn=this.applyRedirectCommands(Ei,dt.redirectTo,Wn);return dt.redirectTo.startsWith("/")?mi(xn):this.lineralizeSegments(dt,xn).pipe((0,u.z)(er=>this.expandSegment(Te,xe,$e,er.concat(Ot.slice(an)),qt,!1)))}matchSegmentAgainstRoute(Te,xe,$e,dt,Ot){if("**"===$e.path)return $e.loadChildren?($e._loadedConfig?(0,s.of)($e._loadedConfig):this.configLoader.load(Te.injector,$e)).pipe((0,re.U)(er=>($e._loadedConfig=er,new Y(dt,{})))):(0,s.of)(new Y(dt,{}));const{matched:qt,consumedSegments:ii,lastChild:Ei}=ra(xe,$e,dt);if(!qt)return Wt(xe);const an=dt.slice(Ei);return this.getChildConfig(Te,$e,dt).pipe((0,u.z)(xn=>{const er=xn.module,ar=xn.routes,{segmentGroup:ao,slicedSegments:ea}=Gr(xe,ii,an,ar),ys=new Y(ao.segments,ao.children);if(0===ea.length&&ys.hasChildren())return this.expandChildren(er,ar,ys).pipe((0,re.U)(Ea=>new Y(ii,Ea)));if(0===ar.length&&0===ea.length)return(0,s.of)(new Y(ii,{}));const fs=Sr($e)===Ot;return this.expandSegment(er,ys,ar,ea,fs?Ne:Ot,!0).pipe((0,re.U)(bs=>new Y(ii.concat(bs.segments),bs.children)))}))}getChildConfig(Te,xe,$e){return xe.children?(0,s.of)(new Pr(xe.children,Te)):xe.loadChildren?void 0!==xe._loadedConfig?(0,s.of)(xe._loadedConfig):this.runCanLoadGuards(Te.injector,xe,$e).pipe((0,u.z)(dt=>dt?this.configLoader.load(Te.injector,xe).pipe((0,re.U)(Ot=>(xe._loadedConfig=Ot,Ot))):function ti(Ye){return new t.y(Te=>Te.error(q(`Cannot load children because the guard of the route "path: '${Ye.path}'" returned false`)))}(xe))):(0,s.of)(new Pr([],Te))}runCanLoadGuards(Te,xe,$e){const dt=xe.canLoad;if(!dt||0===dt.length)return(0,s.of)(!0);const Ot=dt.map(qt=>{const ii=Te.get(qt);let Ei;if(function Tr(Ye){return Ye&&Kn(Ye.canLoad)}(ii))Ei=ii.canLoad(xe,$e);else{if(!Kn(ii))throw new Error("Invalid CanLoad guard");Ei=ii(xe,$e)}return Mt(Ei)});return(0,s.of)(Ot).pipe(Jr(),(0,_.b)(qt=>{if(!Qn(qt))return;const ii=q(`Redirecting to "${this.urlSerializer.serialize(qt)}"`);throw ii.url=qt,ii}),(0,re.U)(qt=>!0===qt))}lineralizeSegments(Te,xe){let $e=[],dt=xe.root;for(;;){if($e=$e.concat(dt.segments),0===dt.numberOfChildren)return(0,s.of)($e);if(dt.numberOfChildren>1||!dt.children[Ne])return Ct(Te.redirectTo);dt=dt.children[Ne]}}applyRedirectCommands(Te,xe,$e){return this.applyRedirectCreatreUrlTree(xe,this.urlSerializer.parse(xe),Te,$e)}applyRedirectCreatreUrlTree(Te,xe,$e,dt){const Ot=this.createSegmentGroup(Te,xe.root,$e,dt);return new Ee(Ot,this.createQueryParams(xe.queryParams,this.urlTree.queryParams),xe.fragment)}createQueryParams(Te,xe){const $e={};return rt(Te,(dt,Ot)=>{if("string"==typeof dt&&dt.startsWith(":")){const ii=dt.substring(1);$e[Ot]=xe[ii]}else $e[Ot]=dt}),$e}createSegmentGroup(Te,xe,$e,dt){const Ot=this.createSegments(Te,xe.segments,$e,dt);let qt={};return rt(xe.children,(ii,Ei)=>{qt[Ei]=this.createSegmentGroup(Te,ii,$e,dt)}),new Y(Ot,qt)}createSegments(Te,xe,$e,dt){return xe.map(Ot=>Ot.path.startsWith(":")?this.findPosParam(Te,Ot,dt):this.findOrReturn(Ot,$e))}findPosParam(Te,xe,$e){const dt=$e[xe.path.substring(1)];if(!dt)throw new Error(`Cannot redirect to '${Te}'. Cannot find '${xe.path}'.`);return dt}findOrReturn(Te,xe){let $e=0;for(const dt of xe){if(dt.path===Te.path)return xe.splice($e),dt;$e++}return Te}}function Bi(Ye){const Te={};for(const $e of Object.keys(Ye.children)){const Ot=Bi(Ye.children[$e]);(Ot.segments.length>0||Ot.hasChildren())&&(Te[$e]=Ot)}return function xi(Ye){if(1===Ye.numberOfChildren&&Ye.children[Ne]){const Te=Ye.children[Ne];return new Y(Ye.segments.concat(Te.segments),Te.children)}return Ye}(new Y(Ye.segments,Te))}class An{constructor(Te){this.path=Te,this.route=this.path[this.path.length-1]}}class Wi{constructor(Te,xe){this.component=Te,this.route=xe}}function Cr(Ye,Te,xe){const $e=Ye._root;return Mr($e,Te?Te._root:null,xe,[$e.value])}function Rn(Ye,Te,xe){const $e=function _a(Ye){if(!Ye)return null;for(let Te=Ye.parent;Te;Te=Te.parent){const xe=Te.routeConfig;if(xe&&xe._loadedConfig)return xe._loadedConfig}return null}(Te);return($e?$e.module.injector:xe).get(Ye)}function Mr(Ye,Te,xe,$e,dt={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=St(Te);return Ye.children.forEach(qt=>{(function ds(Ye,Te,xe,$e,dt={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=Ye.value,qt=Te?Te.value:null,ii=xe?xe.getContext(Ye.value.outlet):null;if(qt&&Ot.routeConfig===qt.routeConfig){const Ei=function vs(Ye,Te,xe){if("function"==typeof xe)return xe(Ye,Te);switch(xe){case"pathParamsChange":return!et(Ye.url,Te.url);case"pathParamsOrQueryParamsChange":return!et(Ye.url,Te.url)||!Ue(Ye.queryParams,Te.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yi(Ye,Te)||!Ue(Ye.queryParams,Te.queryParams);default:return!Yi(Ye,Te)}}(qt,Ot,Ot.routeConfig.runGuardsAndResolvers);Ei?dt.canActivateChecks.push(new An($e)):(Ot.data=qt.data,Ot._resolvedData=qt._resolvedData),Mr(Ye,Te,Ot.component?ii?ii.children:null:xe,$e,dt),Ei&&ii&&ii.outlet&&ii.outlet.isActivated&&dt.canDeactivateChecks.push(new Wi(ii.outlet.component,qt))}else qt&&Pi(Te,ii,dt),dt.canActivateChecks.push(new An($e)),Mr(Ye,null,Ot.component?ii?ii.children:null:xe,$e,dt)})(qt,Ot[qt.value.outlet],xe,$e.concat([qt.value]),dt),delete Ot[qt.value.outlet]}),rt(Ot,(qt,ii)=>Pi(qt,xe.getContext(ii),dt)),dt}function Pi(Ye,Te,xe){const $e=St(Ye),dt=Ye.value;rt($e,(Ot,qt)=>{Pi(Ot,dt.component?Te?Te.children.getContext(qt):null:Te,xe)}),xe.canDeactivateChecks.push(new Wi(dt.component&&Te&&Te.outlet&&Te.outlet.isActivated?Te.outlet.component:null,dt))}class je{}function wt(Ye){return new t.y(Te=>Te.error(Ye))}class Qt{constructor(Te,xe,$e,dt,Ot,qt){this.rootComponentType=Te,this.config=xe,this.urlTree=$e,this.url=dt,this.paramsInheritanceStrategy=Ot,this.relativeLinkResolution=qt}recognize(){const Te=Gr(this.urlTree.root,[],[],this.config.filter(qt=>void 0===qt.redirectTo),this.relativeLinkResolution).segmentGroup,xe=this.processSegmentGroup(this.config,Te,Ne);if(null===xe)return null;const $e=new Kt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),dt=new Je($e,xe),Ot=new gt(this.url,dt);return this.inheritParamsAndData(Ot._root),Ot}inheritParamsAndData(Te){const xe=Te.value,$e=qi(xe,this.paramsInheritanceStrategy);xe.params=Object.freeze($e.params),xe.data=Object.freeze($e.data),Te.children.forEach(dt=>this.inheritParamsAndData(dt))}processSegmentGroup(Te,xe,$e){return 0===xe.segments.length&&xe.hasChildren()?this.processChildren(Te,xe):this.processSegment(Te,xe,xe.segments,$e)}processChildren(Te,xe){const $e=[];for(const Ot of Object.keys(xe.children)){const qt=xe.children[Ot],ii=is(Te,Ot),Ei=this.processSegmentGroup(ii,qt,Ot);if(null===Ei)return null;$e.push(...Ei)}const dt=Zi($e);return function Xt(Ye){Ye.sort((Te,xe)=>Te.value.outlet===Ne?-1:xe.value.outlet===Ne?1:Te.value.outlet.localeCompare(xe.value.outlet))}(dt),dt}processSegment(Te,xe,$e,dt){for(const Ot of Te){const qt=this.processSegmentAgainstRoute(Ot,xe,$e,dt);if(null!==qt)return qt}return J(xe,$e,dt)?[]:null}processSegmentAgainstRoute(Te,xe,$e,dt){if(Te.redirectTo||!me(Te,xe,$e,dt))return null;let Ot,qt=[],ii=[];if("**"===Te.path){const ar=$e.length>0?ft($e).parameters:{};Ot=new Kt($e,ar,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tt(Te),Sr(Te),Te.component,Te,Mn(xe),On(xe)+$e.length,Et(Te))}else{const ar=ra(xe,Te,$e);if(!ar.matched)return null;qt=ar.consumedSegments,ii=$e.slice(ar.lastChild),Ot=new Kt(qt,ar.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tt(Te),Sr(Te),Te.component,Te,Mn(xe),On(xe)+qt.length,Et(Te))}const Ei=function pi(Ye){return Ye.children?Ye.children:Ye.loadChildren?Ye._loadedConfig.routes:[]}(Te),{segmentGroup:an,slicedSegments:Wn}=Gr(xe,qt,ii,Ei.filter(ar=>void 0===ar.redirectTo),this.relativeLinkResolution);if(0===Wn.length&&an.hasChildren()){const ar=this.processChildren(Ei,an);return null===ar?null:[new Je(Ot,ar)]}if(0===Ei.length&&0===Wn.length)return[new Je(Ot,[])];const xn=Sr(Te)===dt,er=this.processSegment(Ei,an,Wn,xn?Ne:dt);return null===er?null:[new Je(Ot,er)]}}function Ti(Ye){const Te=Ye.value.routeConfig;return Te&&""===Te.path&&void 0===Te.redirectTo}function Zi(Ye){const Te=[],xe=new Set;for(const $e of Ye){if(!Ti($e)){Te.push($e);continue}const dt=Te.find(Ot=>$e.value.routeConfig===Ot.value.routeConfig);void 0!==dt?(dt.children.push(...$e.children),xe.add(dt)):Te.push($e)}for(const $e of xe){const dt=Zi($e.children);Te.push(new Je($e.value,dt))}return Te.filter($e=>!xe.has($e))}function Mn(Ye){let Te=Ye;for(;Te._sourceSegment;)Te=Te._sourceSegment;return Te}function On(Ye){let Te=Ye,xe=Te._segmentIndexShift?Te._segmentIndexShift:0;for(;Te._sourceSegment;)Te=Te._sourceSegment,xe+=Te._segmentIndexShift?Te._segmentIndexShift:0;return xe-1}function tt(Ye){return Ye.data||{}}function Et(Ye){return Ye.resolve||{}}function Ai(Ye){return(0,de.w)(Te=>{const xe=Ye(Te);return xe?(0,R.D)(xe).pipe((0,re.U)(()=>Te)):(0,s.of)(Te)})}class gn extends class un{shouldDetach(Te){return!1}store(Te,xe){}shouldAttach(Te){return!1}retrieve(Te){return null}shouldReuseRoute(Te,xe){return Te.routeConfig===xe.routeConfig}}{}const En=new e.OlP("ROUTES");class zn{constructor(Te,xe,$e,dt){this.injector=Te,this.compiler=xe,this.onLoadStartListener=$e,this.onLoadEndListener=dt}load(Te,xe){if(xe._loader$)return xe._loader$;this.onLoadStartListener&&this.onLoadStartListener(xe);const dt=this.loadModuleFactory(xe.loadChildren).pipe((0,re.U)(Ot=>{this.onLoadEndListener&&this.onLoadEndListener(xe);const qt=Ot.create(Te);return new Pr(nt(qt.injector.get(En,void 0,e.XFs.Self|e.XFs.Optional)).map(pr),qt)}),(0,i.K)(Ot=>{throw xe._loader$=void 0,Ot}));return xe._loader$=new l(dt,()=>new V.x).pipe(M()),xe._loader$}loadModuleFactory(Te){return Mt(Te()).pipe((0,u.z)(xe=>xe instanceof e.YKP?(0,s.of)(xe):(0,R.D)(this.compiler.compileModuleAsync(xe))))}}class Fr{shouldProcessUrl(Te){return!0}extract(Te){return Te}merge(Te,xe){return Te}}function wr(Ye){throw Ye}function Vn(Ye,Te,xe){return Te.parse("/")}function mr(Ye,Te){return(0,s.of)(null)}const Hi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},on={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let nn=(()=>{class Ye{constructor(xe,$e,dt,Ot,qt,ii,Ei){this.rootComponentType=xe,this.urlSerializer=$e,this.rootContexts=dt,this.location=Ot,this.config=Ei,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new V.x,this.errorHandler=wr,this.malformedUriErrorHandler=Vn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:mr,afterPreactivation:mr},this.urlHandlingStrategy=new Fr,this.routeReuseStrategy=new gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=qt.get(e.h0i),this.console=qt.get(e.c2e);const xn=qt.get(e.R0b);this.isNgZoneEnabled=xn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Ei),this.currentUrlTree=function Zt(){return new Ee(new Y([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new zn(qt,ii,er=>this.triggerEvent(new K(er)),er=>this.triggerEvent(new Me(er))),this.routerState=yi(this.currentUrlTree,this.rootComponentType),this.transitions=new L.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 xe;return null===(xe=this.location.getState())||void 0===xe?void 0:xe.\u0275routerPageId}setupNavigations(xe){const $e=this.events;return xe.pipe((0,j.h)(dt=>0!==dt.id),(0,re.U)(dt=>Object.assign(Object.assign({},dt),{extractedUrl:this.urlHandlingStrategy.extract(dt.rawUrl)})),(0,de.w)(dt=>{let Ot=!1,qt=!1;return(0,s.of)(dt).pipe((0,_.b)(ii=>{this.currentNavigation={id:ii.id,initialUrl:ii.currentRawUrl,extractedUrl:ii.extractedUrl,trigger:ii.source,extras:ii.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,de.w)(ii=>{const Ei=this.browserUrlTree.toString(),an=!this.navigated||ii.extractedUrl.toString()!==Ei||Ei!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||an)&&this.urlHandlingStrategy.shouldProcessUrl(ii.rawUrl))return jn(ii.source)&&(this.browserUrlTree=ii.extractedUrl),(0,s.of)(ii).pipe((0,de.w)(xn=>{const er=this.transitions.getValue();return $e.next(new b(xn.id,this.serializeUrl(xn.extractedUrl),xn.source,xn.restoredState)),er!==this.transitions.getValue()?w.E:Promise.resolve(xn)}),function yn(Ye,Te,xe,$e){return(0,de.w)(dt=>function bt(Ye,Te,xe,$e,dt){return new Yt(Ye,Te,xe,$e,dt).apply()}(Ye,Te,xe,dt.extractedUrl,$e).pipe((0,re.U)(Ot=>Object.assign(Object.assign({},dt),{urlAfterRedirects:Ot}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,_.b)(xn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xn.urlAfterRedirects})}),function It(Ye,Te,xe,$e,dt){return(0,u.z)(Ot=>function Pt(Ye,Te,xe,$e,dt="emptyOnly",Ot="legacy"){try{const qt=new Qt(Ye,Te,xe,$e,dt,Ot).recognize();return null===qt?wt(new je):(0,s.of)(qt)}catch(qt){return wt(qt)}}(Ye,Te,Ot.urlAfterRedirects,xe(Ot.urlAfterRedirects),$e,dt).pipe((0,re.U)(qt=>Object.assign(Object.assign({},Ot),{targetSnapshot:qt}))))}(this.rootComponentType,this.config,xn=>this.serializeUrl(xn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,_.b)(xn=>{if("eager"===this.urlUpdateStrategy){if(!xn.extras.skipLocationChange){const ar=this.urlHandlingStrategy.merge(xn.urlAfterRedirects,xn.rawUrl);this.setBrowserUrl(ar,xn)}this.browserUrlTree=xn.urlAfterRedirects}const er=new ve(xn.id,this.serializeUrl(xn.extractedUrl),this.serializeUrl(xn.urlAfterRedirects),xn.targetSnapshot);$e.next(er)}));if(an&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:er,extractedUrl:ar,source:ao,restoredState:ea,extras:ys}=ii,fs=new b(er,this.serializeUrl(ar),ao,ea);$e.next(fs);const ks=yi(ar,this.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},ii),{targetSnapshot:ks,urlAfterRedirects:ar,extras:Object.assign(Object.assign({},ys),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ii.rawUrl,ii.resolve(null),w.E}),Ai(ii=>{const{targetSnapshot:Ei,id:an,extractedUrl:Wn,rawUrl:xn,extras:{skipLocationChange:er,replaceUrl:ar}}=ii;return this.hooks.beforePreactivation(Ei,{navigationId:an,appliedUrlTree:Wn,rawUrlTree:xn,skipLocationChange:!!er,replaceUrl:!!ar})}),(0,_.b)(ii=>{const Ei=new be(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot);this.triggerEvent(Ei)}),(0,re.U)(ii=>Object.assign(Object.assign({},ii),{guards:Cr(ii.targetSnapshot,ii.currentSnapshot,this.rootContexts)})),function Nn(Ye,Te){return(0,u.z)(xe=>{const{targetSnapshot:$e,currentSnapshot:dt,guards:{canActivateChecks:Ot,canDeactivateChecks:qt}}=xe;return 0===qt.length&&0===Ot.length?(0,s.of)(Object.assign(Object.assign({},xe),{guardsResult:!0})):function zs(Ye,Te,xe,$e){return(0,R.D)(Ye).pipe((0,u.z)(dt=>function he(Ye,Te,xe,$e,dt){const Ot=Te&&Te.routeConfig?Te.routeConfig.canDeactivate:null;if(!Ot||0===Ot.length)return(0,s.of)(!0);const qt=Ot.map(ii=>{const Ei=Rn(ii,Te,dt);let an;if(function kr(Ye){return Ye&&Kn(Ye.canDeactivate)}(Ei))an=Mt(Ei.canDeactivate(Ye,Te,xe,$e));else{if(!Kn(Ei))throw new Error("Invalid CanDeactivate guard");an=Mt(Ei(Ye,Te,xe,$e))}return an.pipe((0,p.P)())});return(0,s.of)(qt).pipe(Jr())}(dt.component,dt.route,xe,Te,$e)),(0,p.P)(dt=>!0!==dt,!0))}(qt,$e,dt,Ye).pipe((0,u.z)(ii=>ii&&function vn(Ye){return"boolean"==typeof Ye}(ii)?function fr(Ye,Te,xe,$e){return(0,R.D)(Te).pipe((0,a.b)(dt=>(0,E.z)(function rs(Ye,Te){return null!==Ye&&Te&&Te(new we(Ye)),(0,s.of)(!0)}(dt.route.parent,$e),function Us(Ye,Te){return null!==Ye&&Te&&Te(new Ze(Ye)),(0,s.of)(!0)}(dt.route,$e),function ie(Ye,Te,xe){const $e=Te[Te.length-1],Ot=Te.slice(0,Te.length-1).reverse().map(qt=>function Un(Ye){const Te=Ye.routeConfig?Ye.routeConfig.canActivateChild:null;return Te&&0!==Te.length?{node:Ye,guards:Te}:null}(qt)).filter(qt=>null!==qt).map(qt=>(0,P.P)(()=>{const ii=qt.guards.map(Ei=>{const an=Rn(Ei,qt.node,xe);let Wn;if(function Wa(Ye){return Ye&&Kn(Ye.canActivateChild)}(an))Wn=Mt(an.canActivateChild($e,Ye));else{if(!Kn(an))throw new Error("Invalid CanActivateChild guard");Wn=Mt(an($e,Ye))}return Wn.pipe((0,p.P)())});return(0,s.of)(ii).pipe(Jr())}));return(0,s.of)(Ot).pipe(Jr())}(Ye,dt.path,xe),function xt(Ye,Te,xe){const $e=Te.routeConfig?Te.routeConfig.canActivate:null;if(!$e||0===$e.length)return(0,s.of)(!0);const dt=$e.map(Ot=>(0,P.P)(()=>{const qt=Rn(Ot,Te,xe);let ii;if(function Ba(Ye){return Ye&&Kn(Ye.canActivate)}(qt))ii=Mt(qt.canActivate(Te,Ye));else{if(!Kn(qt))throw new Error("Invalid CanActivate guard");ii=Mt(qt(Te,Ye))}return ii.pipe((0,p.P)())}));return(0,s.of)(dt).pipe(Jr())}(Ye,dt.route,xe))),(0,p.P)(dt=>!0!==dt,!0))}($e,Ot,Ye,Te):(0,s.of)(ii)),(0,re.U)(ii=>Object.assign(Object.assign({},xe),{guardsResult:ii})))})}(this.ngModule.injector,ii=>this.triggerEvent(ii)),(0,_.b)(ii=>{if(Qn(ii.guardsResult)){const an=q(`Redirecting to "${this.serializeUrl(ii.guardsResult)}"`);throw an.url=ii.guardsResult,an}const Ei=new Re(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot,!!ii.guardsResult);this.triggerEvent(Ei)}),(0,j.h)(ii=>!!ii.guardsResult||(this.restoreHistory(ii),this.cancelNavigationTransition(ii,""),!1)),Ai(ii=>{if(ii.guards.canActivateChecks.length)return(0,s.of)(ii).pipe((0,_.b)(Ei=>{const an=new ze(Ei.id,this.serializeUrl(Ei.extractedUrl),this.serializeUrl(Ei.urlAfterRedirects),Ei.targetSnapshot);this.triggerEvent(an)}),(0,de.w)(Ei=>{let an=!1;return(0,s.of)(Ei).pipe(function zt(Ye,Te){return(0,u.z)(xe=>{const{targetSnapshot:$e,guards:{canActivateChecks:dt}}=xe;if(!dt.length)return(0,s.of)(xe);let Ot=0;return(0,R.D)(dt).pipe((0,a.b)(qt=>function ri(Ye,Te,xe,$e){return function vi(Ye,Te,xe,$e){const dt=Object.keys(Ye);if(0===dt.length)return(0,s.of)({});const Ot={};return(0,R.D)(dt).pipe((0,u.z)(qt=>function Mi(Ye,Te,xe,$e){const dt=Rn(Ye,Te,$e);return Mt(dt.resolve?dt.resolve(Te,xe):dt(Te,xe))}(Ye[qt],Te,xe,$e).pipe((0,_.b)(ii=>{Ot[qt]=ii}))),W(1),(0,u.z)(()=>Object.keys(Ot).length===dt.length?(0,s.of)(Ot):w.E))}(Ye._resolve,Ye,Te,$e).pipe((0,re.U)(Ot=>(Ye._resolvedData=Ot,Ye.data=Object.assign(Object.assign({},Ye.data),qi(Ye,xe).resolve),null)))}(qt.route,$e,Ye,Te)),(0,_.b)(()=>Ot++),W(1),(0,u.z)(qt=>Ot===dt.length?(0,s.of)(xe):w.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,_.b)({next:()=>an=!0,complete:()=>{an||(this.restoreHistory(Ei),this.cancelNavigationTransition(Ei,"At least one route resolver didn't emit any value."))}}))}),(0,_.b)(Ei=>{const an=new Oe(Ei.id,this.serializeUrl(Ei.extractedUrl),this.serializeUrl(Ei.urlAfterRedirects),Ei.targetSnapshot);this.triggerEvent(an)}))}),Ai(ii=>{const{targetSnapshot:Ei,id:an,extractedUrl:Wn,rawUrl:xn,extras:{skipLocationChange:er,replaceUrl:ar}}=ii;return this.hooks.afterPreactivation(Ei,{navigationId:an,appliedUrlTree:Wn,rawUrlTree:xn,skipLocationChange:!!er,replaceUrl:!!ar})}),(0,re.U)(ii=>{const Ei=function $i(Ye,Te,xe){const $e=Cn(Ye,Te._root,xe?xe._root:void 0);return new kt($e,Te)}(this.routeReuseStrategy,ii.targetSnapshot,ii.currentRouterState);return Object.assign(Object.assign({},ii),{targetRouterState:Ei})}),(0,_.b)(ii=>{this.currentUrlTree=ii.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ii.urlAfterRedirects,ii.rawUrl),this.routerState=ii.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ii.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ii),this.browserUrlTree=ii.urlAfterRedirects)}),((Ye,Te,xe)=>(0,re.U)($e=>(new Ya(Te,$e.targetRouterState,$e.currentRouterState,xe).activate(Ye),$e)))(this.rootContexts,this.routeReuseStrategy,ii=>this.triggerEvent(ii)),(0,_.b)({next(){Ot=!0},complete(){Ot=!0}}),(0,D.x)(()=>{var ii;Ot||qt||this.cancelNavigationTransition(dt,`Navigation ID ${dt.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id)===dt.id&&(this.currentNavigation=null)}),(0,i.K)(ii=>{if(qt=!0,function $(Ye){return Ye&&Ye[Pe]}(ii)){const Ei=Qn(ii.url);Ei||(this.navigated=!0,this.restoreHistory(dt,!0));const an=new N(dt.id,this.serializeUrl(dt.extractedUrl),ii.message);$e.next(an),Ei?setTimeout(()=>{const Wn=this.urlHandlingStrategy.merge(ii.url,this.rawUrlTree),xn={skipLocationChange:dt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jn(dt.source)};this.scheduleNavigation(Wn,"imperative",null,xn,{resolve:dt.resolve,reject:dt.reject,promise:dt.promise})},0):dt.resolve(!1)}else{this.restoreHistory(dt,!0);const Ei=new U(dt.id,this.serializeUrl(dt.extractedUrl),ii);$e.next(Ei);try{dt.resolve(this.errorHandler(ii))}catch(an){dt.reject(an)}}return w.E}))}))}resetRootComponentType(xe){this.rootComponentType=xe,this.routerState.root.component=this.rootComponentType}setTransition(xe){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),xe))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(xe=>{const $e="popstate"===xe.type?"popstate":"hashchange";"popstate"===$e&&setTimeout(()=>{var dt;const Ot={replaceUrl:!0},qt=(null===(dt=xe.state)||void 0===dt?void 0:dt.navigationId)?xe.state:null;if(qt){const Ei=Object.assign({},qt);delete Ei.navigationId,delete Ei.\u0275routerPageId,0!==Object.keys(Ei).length&&(Ot.state=Ei)}const ii=this.parseUrl(xe.url);this.scheduleNavigation(ii,$e,qt,Ot)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(xe){this.events.next(xe)}resetConfig(xe){Aa(xe),this.config=xe.map(pr),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(xe,$e={}){const{relativeTo:dt,queryParams:Ot,fragment:qt,queryParamsHandling:ii,preserveFragment:Ei}=$e,an=dt||this.routerState.root,Wn=Ei?this.currentUrlTree.fragment:qt;let xn=null;switch(ii){case"merge":xn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Ot);break;case"preserve":xn=this.currentUrlTree.queryParams;break;default:xn=Ot||null}return null!==xn&&(xn=this.removeEmptyProps(xn)),function kn(Ye,Te,xe,$e,dt){if(0===xe.length)return Fi(Te.root,Te.root,Te,$e,dt);const Ot=function La(Ye){if("string"==typeof Ye[0]&&1===Ye.length&&"/"===Ye[0])return new Lr(!0,0,Ye);let Te=0,xe=!1;const $e=Ye.reduce((dt,Ot,qt)=>{if("object"==typeof Ot&&null!=Ot){if(Ot.outlets){const ii={};return rt(Ot.outlets,(Ei,an)=>{ii[an]="string"==typeof Ei?Ei.split("/"):Ei}),[...dt,{outlets:ii}]}if(Ot.segmentPath)return[...dt,Ot.segmentPath]}return"string"!=typeof Ot?[...dt,Ot]:0===qt?(Ot.split("/").forEach((ii,Ei)=>{0==Ei&&"."===ii||(0==Ei&&""===ii?xe=!0:".."===ii?Te++:""!=ii&&dt.push(ii))}),dt):[...dt,Ot]},[]);return new Lr(xe,Te,$e)}(xe);if(Ot.toRoot())return Fi(Te.root,new Y([],{}),Te,$e,dt);const qt=function Or(Ye,Te,xe){if(Ye.isAbsolute)return new Gn(Te.root,!0,0);if(-1===xe.snapshot._lastPathIndex){const Ot=xe.snapshot._urlSegment;return new Gn(Ot,Ot===Te.root,0)}const $e=dr(Ye.commands[0])?0:1;return function Ra(Ye,Te,xe){let $e=Ye,dt=Te,Ot=xe;for(;Ot>dt;){if(Ot-=dt,$e=$e.parent,!$e)throw new Error("Invalid number of '../'");dt=$e.segments.length}return new Gn($e,!1,dt-Ot)}(xe.snapshot._urlSegment,xe.snapshot._lastPathIndex+$e,Ye.numberOfDoubleDots)}(Ot,Te,Ye),ii=qt.processChildren?xr(qt.segmentGroup,qt.index,Ot.commands):Fa(qt.segmentGroup,qt.index,Ot.commands);return Fi(qt.segmentGroup,ii,Te,$e,dt)}(an,this.currentUrlTree,xe,xn,null!=Wn?Wn:null)}navigateByUrl(xe,$e={skipLocationChange:!1}){const dt=Qn(xe)?xe:this.parseUrl(xe),Ot=this.urlHandlingStrategy.merge(dt,this.rawUrlTree);return this.scheduleNavigation(Ot,"imperative",null,$e)}navigate(xe,$e={skipLocationChange:!1}){return function Pn(Ye){for(let Te=0;Te{const Ot=xe[dt];return null!=Ot&&($e[dt]=Ot),$e},{})}processNavigations(){this.navigations.subscribe(xe=>{this.navigated=!0,this.lastSuccessfulId=xe.id,this.currentPageId=xe.targetPageId,this.events.next(new Z(xe.id,this.serializeUrl(xe.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,xe.resolve(!0)},xe=>{this.console.warn(`Unhandled Navigation Error: ${xe}`)})}scheduleNavigation(xe,$e,dt,Ot,qt){var ii,Ei,an;if(this.disposed)return Promise.resolve(!1);const Wn=this.transitions.value,xn=jn($e)&&Wn&&!jn(Wn.source),er=Wn.rawUrl.toString()===xe.toString(),ar=Wn.id===(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id);if(xn&&er&&ar)return Promise.resolve(!0);let ea,ys,fs;qt?(ea=qt.resolve,ys=qt.reject,fs=qt.promise):fs=new Promise((Ea,Ol)=>{ea=Ea,ys=Ol});const ks=++this.navigationId;let bs;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(dt=this.location.getState()),bs=dt&&dt.\u0275routerPageId?dt.\u0275routerPageId:Ot.replaceUrl||Ot.skipLocationChange?null!==(Ei=this.browserPageId)&&void 0!==Ei?Ei:0:(null!==(an=this.browserPageId)&&void 0!==an?an:0)+1):bs=0,this.setTransition({id:ks,targetPageId:bs,source:$e,restoredState:dt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:xe,extras:Ot,resolve:ea,reject:ys,promise:fs,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fs.catch(Ea=>Promise.reject(Ea))}setBrowserUrl(xe,$e){const dt=this.urlSerializer.serialize(xe),Ot=Object.assign(Object.assign({},$e.extras.state),this.generateNgRouterState($e.id,$e.targetPageId));this.location.isCurrentPathEqualTo(dt)||$e.extras.replaceUrl?this.location.replaceState(dt,"",Ot):this.location.go(dt,"",Ot)}restoreHistory(xe,$e=!1){var dt,Ot;if("computed"===this.canceledNavigationResolution){const qt=this.currentPageId-xe.targetPageId;"popstate"!==xe.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(dt=this.currentNavigation)||void 0===dt?void 0:dt.finalUrl)||0===qt?this.currentUrlTree===(null===(Ot=this.currentNavigation)||void 0===Ot?void 0:Ot.finalUrl)&&0===qt&&(this.resetState(xe),this.browserUrlTree=xe.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(qt)}else"replace"===this.canceledNavigationResolution&&($e&&this.resetState(xe),this.resetUrlToCurrentUrlTree())}resetState(xe){this.routerState=xe.currentRouterState,this.currentUrlTree=xe.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,xe.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(xe,$e){const dt=new N(xe.id,this.serializeUrl(xe.extractedUrl),$e);this.triggerEvent(dt),xe.resolve(!1)}generateNgRouterState(xe,$e){return"computed"===this.canceledNavigationResolution?{navigationId:xe,\u0275routerPageId:$e}:{navigationId:xe}}}return Ye.\u0275fac=function(xe){e.$Z()},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function jn(Ye){return"imperative"!==Ye}let da=(()=>{class Ye{constructor(xe,$e,dt,Ot,qt){this.router=xe,this.route=$e,this.tabIndexAttribute=dt,this.renderer=Ot,this.el=qt,this.commands=null,this.onChanges=new V.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(xe){if(null!=this.tabIndexAttribute)return;const $e=this.renderer,dt=this.el.nativeElement;null!==xe?$e.setAttribute(dt,"tabindex",xe):$e.removeAttribute(dt,"tabindex")}ngOnChanges(xe){this.onChanges.next(this)}set routerLink(xe){null!=xe?(this.commands=Array.isArray(xe)?xe:[xe],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const xe={skipLocationChange:$r(this.skipLocationChange),replaceUrl:$r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,xe),!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:$r(this.preserveFragment)})}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.Y36(nn),e.Y36(Si),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(xe,$e){1&xe&&e.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:[e.TTD]}),Ye})(),Xr=(()=>{class Ye{constructor(xe,$e,dt){this.router=xe,this.route=$e,this.locationStrategy=dt,this.commands=null,this.href=null,this.onChanges=new V.x,this.subscription=xe.events.subscribe(Ot=>{Ot instanceof Z&&this.updateTargetUrlAndHref()})}set routerLink(xe){this.commands=null!=xe?Array.isArray(xe)?xe:[xe]:null}ngOnChanges(xe){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(xe,$e,dt,Ot,qt){if(0!==xe||$e||dt||Ot||qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ii={skipLocationChange:$r(this.skipLocationChange),replaceUrl:$r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ii),!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:$r(this.preserveFragment)})}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.Y36(nn),e.Y36(Si),e.Y36(x.S$))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(xe,$e){1&xe&&e.NdJ("click",function(Ot){return $e.onClick(Ot.button,Ot.ctrlKey,Ot.shiftKey,Ot.altKey,Ot.metaKey)}),2&xe&&e.uIk("target",$e.target)("href",$e.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ye})();function $r(Ye){return""===Ye||!!Ye}let Yn=(()=>{class Ye{constructor(xe,$e,dt,Ot,qt,ii){this.router=xe,this.element=$e,this.renderer=dt,this.cdr=Ot,this.link=qt,this.linkWithHref=ii,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=xe.events.subscribe(Ei=>{Ei instanceof Z&&this.update()})}ngAfterContentInit(){(0,s.of)(this.links.changes,this.linksWithHrefs.changes,(0,s.of)(null)).pipe((0,O.J)()).subscribe(xe=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var xe;null===(xe=this.linkInputChangesSubscription)||void 0===xe||xe.unsubscribe();const $e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(dt=>!!dt).map(dt=>dt.onChanges);this.linkInputChangesSubscription=(0,R.D)($e).pipe((0,O.J)()).subscribe(dt=>{this.isActive!==this.isLinkActive(this.router)(dt)&&this.update()})}set routerLinkActive(xe){const $e=Array.isArray(xe)?xe:xe.split(" ");this.classes=$e.filter(dt=>!!dt)}ngOnChanges(xe){this.update()}ngOnDestroy(){var xe;this.routerEventsSubscription.unsubscribe(),null===(xe=this.linkInputChangesSubscription)||void 0===xe||xe.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const xe=this.hasActiveLinks();this.isActive!==xe&&(this.isActive=xe,this.cdr.markForCheck(),this.classes.forEach($e=>{xe?this.renderer.addClass(this.element.nativeElement,$e):this.renderer.removeClass(this.element.nativeElement,$e)}),this.isActiveChange.emit(xe))})}isLinkActive(xe){const $e=function io(Ye){return!!Ye.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return dt=>!!dt.urlTree&&xe.isActive(dt.urlTree,$e)}hasActiveLinks(){const xe=this.isLinkActive(this.router);return this.link&&xe(this.link)||this.linkWithHref&&xe(this.linkWithHref)||this.links.some(xe)||this.linksWithHrefs.some(xe)}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.Y36(nn),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(da,8),e.Y36(Xr,8))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","routerLinkActive",""]],contentQueries:function(xe,$e,dt){if(1&xe&&(e.Suo(dt,da,5),e.Suo(dt,Xr,5)),2&xe){let Ot;e.iGM(Ot=e.CRH())&&($e.links=Ot),e.iGM(Ot=e.CRH())&&($e.linksWithHrefs=Ot)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[e.TTD]}),Ye})();class Ia{}class Zs{preload(Te,xe){return(0,s.of)(null)}}let va=(()=>{class Ye{constructor(xe,$e,dt,Ot){this.router=xe,this.injector=dt,this.preloadingStrategy=Ot,this.loader=new zn(dt,$e,Ei=>xe.triggerEvent(new K(Ei)),Ei=>xe.triggerEvent(new Me(Ei)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,j.h)(xe=>xe instanceof Z),(0,a.b)(()=>this.preload())).subscribe(()=>{})}preload(){const xe=this.injector.get(e.h0i);return this.processRoutes(xe,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(xe,$e){const dt=[];for(const Ot of $e)if(Ot.loadChildren&&!Ot.canLoad&&Ot._loadedConfig){const qt=Ot._loadedConfig;dt.push(this.processRoutes(qt.module,qt.routes))}else Ot.loadChildren&&!Ot.canLoad?dt.push(this.preloadConfig(xe,Ot)):Ot.children&&dt.push(this.processRoutes(xe,Ot.children));return(0,R.D)(dt).pipe((0,O.J)(),(0,re.U)(Ot=>{}))}preloadConfig(xe,$e){return this.preloadingStrategy.preload($e,()=>($e._loadedConfig?(0,s.of)($e._loadedConfig):this.loader.load(xe.injector,$e)).pipe((0,u.z)(Ot=>($e._loadedConfig=Ot,this.processRoutes(Ot.module,Ot.routes)))))}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.LFG(nn),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(Ia))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),us=(()=>{class Ye{constructor(xe,$e,dt={}){this.router=xe,this.viewportScroller=$e,this.options=dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},dt.scrollPositionRestoration=dt.scrollPositionRestoration||"disabled",dt.anchorScrolling=dt.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(xe=>{xe instanceof b?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=xe.navigationTrigger,this.restoredId=xe.restoredState?xe.restoredState.navigationId:0):xe instanceof Z&&(this.lastId=xe.id,this.scheduleScrollEvent(xe,this.router.parseUrl(xe.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(xe=>{xe instanceof Fe&&(xe.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(xe.position):xe.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(xe.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(xe,$e){this.router.triggerEvent(new Fe(xe,"popstate"===this.lastSource?this.store[this.restoredId]:null,$e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ye.\u0275fac=function(xe){e.$Z()},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();const Vs=new e.OlP("ROUTER_CONFIGURATION"),no=new e.OlP("ROUTER_FORROOT_GUARD"),tl=[x.Ye,{provide:Nt,useClass:Jt},{provide:nn,useFactory:function nl(Ye,Te,xe,$e,dt,Ot,qt={},ii,Ei){const an=new nn(null,Ye,Te,xe,$e,dt,nt(Ot));return ii&&(an.urlHandlingStrategy=ii),Ei&&(an.routeReuseStrategy=Ei),function Oo(Ye,Te){Ye.errorHandler&&(Te.errorHandler=Ye.errorHandler),Ye.malformedUriErrorHandler&&(Te.malformedUriErrorHandler=Ye.malformedUriErrorHandler),Ye.onSameUrlNavigation&&(Te.onSameUrlNavigation=Ye.onSameUrlNavigation),Ye.paramsInheritanceStrategy&&(Te.paramsInheritanceStrategy=Ye.paramsInheritanceStrategy),Ye.relativeLinkResolution&&(Te.relativeLinkResolution=Ye.relativeLinkResolution),Ye.urlUpdateStrategy&&(Te.urlUpdateStrategy=Ye.urlUpdateStrategy),Ye.canceledNavigationResolution&&(Te.canceledNavigationResolution=Ye.canceledNavigationResolution)}(qt,an),qt.enableTracing&&an.events.subscribe(Wn=>{var xn,er;null===(xn=console.group)||void 0===xn||xn.call(console,`Router Event: ${Wn.constructor.name}`),console.log(Wn.toString()),console.log(Wn),null===(er=console.groupEnd)||void 0===er||er.call(console)}),an},deps:[Nt,$n,x.Ye,e.zs3,e.Sil,En,Vs,[class Rr{},new e.FiY],[class Ki{},new e.FiY]]},$n,{provide:Si,useFactory:function Ll(Ye){return Ye.routerState.root},deps:[nn]},va,Zs,class Ps{preload(Te,xe){return xe().pipe((0,i.K)(()=>(0,s.of)(null)))}},{provide:Vs,useValue:{enableTracing:!1}}];function cc(){return new e.PXZ("Router",nn)}let hc=(()=>{class Ye{constructor(xe,$e){}static forRoot(xe,$e){return{ngModule:Ye,providers:[tl,il(xe),{provide:no,useFactory:Lo,deps:[[nn,new e.FiY,new e.tp0]]},{provide:Vs,useValue:$e||{}},{provide:x.S$,useFactory:$c,deps:[x.lw,[new e.tBr(x.mr),new e.FiY],Vs]},{provide:us,useFactory:Xc,deps:[nn,x.EM,Vs]},{provide:Ia,useExisting:$e&&$e.preloadingStrategy?$e.preloadingStrategy:Zs},{provide:e.PXZ,multi:!0,useFactory:cc},[Io,{provide:e.ip1,multi:!0,useFactory:ro,deps:[Io]},{provide:Gs,useFactory:dc,deps:[Io]},{provide:e.tb,multi:!0,useExisting:Gs}]]}}static forChild(xe){return{ngModule:Ye,providers:[il(xe)]}}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.LFG(no,8),e.LFG(nn,8))},Ye.\u0275mod=e.oAB({type:Ye}),Ye.\u0275inj=e.cJS({}),Ye})();function Xc(Ye,Te,xe){return xe.scrollOffset&&Te.setOffset(xe.scrollOffset),new us(Ye,Te,xe)}function $c(Ye,Te,xe={}){return xe.useHash?new x.Do(Ye,Te):new x.b0(Ye,Te)}function Lo(Ye){return"guarded"}function il(Ye){return[{provide:e.deG,multi:!0,useValue:Ye},{provide:En,multi:!0,useValue:Ye}]}let Io=(()=>{class Ye{constructor(xe){this.injector=xe,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new V.x}appInitializer(){return this.injector.get(x.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let $e=null;const dt=new Promise(ii=>$e=ii),Ot=this.injector.get(nn),qt=this.injector.get(Vs);return"disabled"===qt.initialNavigation?(Ot.setUpLocationChangeListener(),$e(!0)):"enabled"===qt.initialNavigation||"enabledBlocking"===qt.initialNavigation?(Ot.hooks.afterPreactivation=()=>this.initNavigation?(0,s.of)(null):(this.initNavigation=!0,$e(!0),this.resultOfPreactivationDone),Ot.initialNavigation()):$e(!0),dt})}bootstrapListener(xe){const $e=this.injector.get(Vs),dt=this.injector.get(va),Ot=this.injector.get(us),qt=this.injector.get(nn),ii=this.injector.get(e.z2F);xe===ii.components[0]&&(("enabledNonBlocking"===$e.initialNavigation||void 0===$e.initialNavigation)&&qt.initialNavigation(),dt.setUpPreloading(),Ot.init(),qt.resetRootComponentType(ii.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.LFG(e.zs3))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function ro(Ye){return Ye.appInitializer.bind(Ye)}function dc(Ye){return Ye.bootstrapListener.bind(Ye)}const Gs=new e.OlP("Router Initializer")},9444:(Ge,Q,m)=>{"use strict";m.d(Q,{BN:()=>Xt,uH:()=>On});var e=m(5e3);function t(tt){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Et){return typeof Et}:function(Et){return Et&&"function"==typeof Symbol&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et})(tt)}function C(tt,Et){for(var It=0;It0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function Ui(tt){return"".concat(tt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Xi(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,": ").concat(tt[It],";")},"")}function Ke(tt){return tt.size!==At.size||tt.x!==At.x||tt.y!==At.y||tt.rotate!==At.rotate||tt.flipX||tt.flipY}function _t(tt){var Et=tt.transform,zt=tt.iconWidth,ri={transform:"translate(".concat(tt.containerWidth/2," 256)")},vi="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),Mi="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),Ai="rotate(".concat(Et.rotate," 0 0)");return{outer:ri,inner:{transform:"".concat(vi," ").concat(Mi," ").concat(Ai)},path:{transform:"translate(".concat(zt/2*-1," -256)")}}}var qe={x:0,y:0,width:"100%",height:"100%"};function yt(tt){var Et=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tt.attributes&&(tt.attributes.fill||Et)&&(tt.attributes.fill="black"),tt}function ue(tt){return"g"===tt.tag?tt.children:[tt]}function Ni(tt){var Et=tt.icons,It=Et.main,zt=Et.mask,ri=tt.prefix,vi=tt.iconName,Mi=tt.transform,Ai=tt.symbol,Ki=tt.title,un=tt.maskId,gn=tt.titleId,En=tt.extra,zn=tt.watchable,Rr=void 0!==zn&&zn,Fr=zt.found?zt:It,wr=Fr.width,Vn=Fr.height,mr="fak"===ri,Hi=mr?"":"fa-w-".concat(Math.ceil(wr/Vn*16)),on=[Ce.replacementClass,vi?"".concat(Ce.familyPrefix,"-").concat(vi):"",Hi].filter(function(Yn){return-1===En.classes.indexOf(Yn)}).filter(function(Yn){return""!==Yn||!!Yn}).concat(En.classes).join(" "),nn={children:[],attributes:l({},En.attributes,{"data-prefix":ri,"data-icon":vi,class:on,role:En.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(wr," ").concat(Vn)})},Pn=mr&&!~En.classes.indexOf("fa-fw")?{width:"".concat(wr/Vn*16*.0625,"em")}:{};Rr&&(nn.attributes["data-fa-i2svg"]=""),Ki&&nn.children.push({tag:"title",attributes:{id:nn.attributes["aria-labelledby"]||"title-".concat(gn||Li())},children:[Ki]});var jn=l({},nn,{prefix:ri,iconName:vi,main:It,mask:zt,maskId:un,transform:Mi,symbol:Ai,styles:l({},Pn,En.styles)}),da=zt.found&&It.found?function Je(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.mask,vi=tt.maskId,Ki=zt.icon,gn=ri.icon,En=_t({transform:tt.transform,containerWidth:ri.width,iconWidth:zt.width}),zn={tag:"rect",attributes:l({},qe,{fill:"white"})},Rr=Ki.children?{children:Ki.children.map(yt)}:{},Fr={tag:"g",attributes:l({},En.inner),children:[yt(l({tag:Ki.tag,attributes:l({},Ki.attributes,En.path)},Rr))]},wr={tag:"g",attributes:l({},En.outer),children:[Fr]},Vn="mask-".concat(vi||Li()),mr="clip-".concat(vi||Li()),Hi={tag:"mask",attributes:l({},qe,{id:Vn,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[zn,wr]},on={tag:"defs",children:[{tag:"clipPath",attributes:{id:mr},children:ue(gn)},Hi]};return Et.push(on,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(mr,")"),mask:"url(#".concat(Vn,")")},qe)}),{children:Et,attributes:It}}(jn):function St(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.transform,Mi=Xi(tt.styles);if(Mi.length>0&&(It.style=Mi),Ke(ri)){var Ai=_t({transform:ri,containerWidth:zt.width,iconWidth:zt.width});Et.push({tag:"g",attributes:l({},Ai.outer),children:[{tag:"g",attributes:l({},Ai.inner),children:[{tag:zt.icon.tag,children:zt.icon.children,attributes:l({},zt.icon.attributes,Ai.path)}]}]})}else Et.push(zt.icon);return{children:Et,attributes:It}}(jn),$r=da.attributes;return jn.children=da.children,jn.attributes=$r,Ai?function yi(tt){var It=tt.iconName,zt=tt.children,vi=tt.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l({},tt.attributes,{id:!0===vi?"".concat(tt.prefix,"-").concat(Ce.familyPrefix,"-").concat(It):vi}),children:zt}]}]}(jn):function kt(tt){var Et=tt.children,It=tt.main,zt=tt.mask,ri=tt.attributes,vi=tt.styles,Mi=tt.transform;if(Ke(Mi)&&It.found&&!zt.found){var un={x:It.width/It.height/2,y:.5};ri.style=Xi(l({},vi,{"transform-origin":"".concat(un.x+Mi.x/16,"em ").concat(un.y+Mi.y/16,"em")}))}return[{tag:"svg",attributes:ri,children:Et}]}(jn)}var $i=function(Et,It,zt,ri){var Ki,un,gn,vi=Object.keys(Et),Mi=vi.length,Ai=void 0!==ri?function(Et,It){return function(zt,ri,vi,Mi){return Et.call(It,zt,ri,vi,Mi)}}(It,ri):It;for(void 0===zt?(Ki=1,gn=Et[vi[0]]):(Ki=0,gn=zt);Ki2&&void 0!==arguments[2]?arguments[2]:{},zt=It.skipHooks,ri=void 0!==zt&&zt,vi=Object.keys(Et).reduce(function(Mi,Ai){var Ki=Et[Ai];return Ki.icon?Mi[Ki.iconName]=Ki.icon:Mi[Ai]=Ki,Mi},{});"function"!=typeof lt.hooks.addPack||ri?lt.styles[tt]=l({},lt.styles[tt]||{},vi):lt.hooks.addPack(tt,vi),"fas"===tt&&Ln("fa",Et)}var _n=lt.styles,kn=lt.shims,dn=function(){var Et=function(ri){return $i(_n,function(vi,Mi,Ai){return vi[Ai]=$i(Mi,ri,{}),vi},{})};Et(function(zt,ri,vi){return ri[3]&&(zt[ri[3]]=vi),zt}),Et(function(zt,ri,vi){var Mi=ri[2];return zt[vi]=vi,Mi.forEach(function(Ai){zt[Ai]=vi}),zt});var It="far"in _n;$i(kn,function(zt,ri){var Mi=ri[1];return"far"===Mi&&!It&&(Mi="fas"),zt[ri[0]]={prefix:Mi,iconName:ri[2]},zt},{})};function Fa(tt,Et,It){if(tt&&tt[Et]&&tt[Et][It])return{prefix:Et,iconName:It,icon:tt[Et][It]}}function xr(tt){var Et=tt.tag,It=tt.attributes,zt=void 0===It?{}:It,ri=tt.children,vi=void 0===ri?[]:ri;return"string"==typeof tt?Ui(tt):"<".concat(Et," ").concat(function Di(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,'="').concat(Ui(tt[It]),'" ')},"").trim()}(zt),">").concat(vi.map(xr).join(""),"")}dn();function Nr(tt){this.name="MissingIcon",this.message=tt||"Icon unavailable",this.stack=(new Error).stack}(Nr.prototype=Object.create(Error.prototype)).constructor=Nr;var ca={fill:"currentColor"},Aa={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ha=(l({},ca,{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"}),l({},Aa,{attributeName:"opacity"}));function Gr(tt){var Et=tt[0],It=tt[1],vi=R(tt.slice(4),1)[0];return{found:!0,width:Et,height:It,icon:Array.isArray(vi)?{tag:"g",attributes:{class:"".concat(Ce.familyPrefix,"-").concat(Fe.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ce.familyPrefix,"-").concat(Fe.SECONDARY),fill:"currentColor",d:vi[0]}},{tag:"path",attributes:{class:"".concat(Ce.familyPrefix,"-").concat(Fe.PRIMARY),fill:"currentColor",d:vi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:vi}}}}function Yt(){Ce.autoAddCss&&!Cr&&(function Bt(tt){if(tt&&a){var Et=se.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=tt;for(var It=se.head.childNodes,zt=null,ri=It.length-1;ri>-1;ri--){var vi=It[ri],Mi=(vi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Mi)>-1&&(zt=vi)}return se.head.insertBefore(Et,zt),tt}}(function ti(){var Et=O,It=Ce.familyPrefix,zt=Ce.replacementClass,ri='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n 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 {\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-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: 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: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\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-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\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\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 -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\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}\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: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\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 color: #fff;\n}';if("fa"!==It||zt!==Et){var vi=new RegExp("\\.".concat("fa","\\-"),"g"),Mi=new RegExp("\\--".concat("fa","\\-"),"g"),Ai=new RegExp("\\.".concat(Et),"g");ri=ri.replace(vi,".".concat(It,"-")).replace(Mi,"--".concat(It,"-")).replace(Ai,".".concat(zt))}return ri}()),Cr=!0)}function xi(tt,Et){return Object.defineProperty(tt,"abstract",{get:Et}),Object.defineProperty(tt,"html",{get:function(){return tt.abstract.map(function(zt){return xr(zt)})}}),Object.defineProperty(tt,"node",{get:function(){if(a){var zt=se.createElement("div");return zt.innerHTML=tt.html,zt.children}}}),tt}function Bi(tt){var Et=tt.prefix,It=void 0===Et?"fa":Et,zt=tt.iconName;if(zt)return Fa(An.definitions,It,zt)||Fa(lt.styles,It,zt)}l({},ca,{cx:"256",cy:"364",r:"28"}),l({},Aa,{attributeName:"r",values:"28;14;28;28;14;28;"}),l({},ha,{values:"1;0;1;1;0;1;"}),l({},ca,{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"}),l({},ha,{values:"1;0;0;0;0;1;"}),l({},ca,{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"}),l({},ha,{values:"0;0;1;1;0;0;"});var An=new(function(){function tt(){(function y(tt,Et){if(!(tt instanceof Et))throw new TypeError("Cannot call a class as a function")})(this,tt),this.definitions={}}return function o(tt,Et,It){Et&&C(tt.prototype,Et),It&&C(tt,It)}(tt,[{key:"add",value:function(){for(var It=this,zt=arguments.length,ri=new Array(zt),vi=0;vi1&&void 0!==arguments[1]?arguments[1]:{},zt=(Et||{}).icon?Et:Bi(Et||{}),ri=It.mask;return ri&&(ri=(ri||{}).icon?ri:Bi(ri||{})),tt(zt,l({},It,{mask:ri}))}}(function(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},It=Et.transform,zt=void 0===It?At:It,ri=Et.symbol,vi=void 0!==ri&&ri,Mi=Et.mask,Ai=void 0===Mi?null:Mi,Ki=Et.maskId,un=void 0===Ki?null:Ki,gn=Et.title,En=void 0===gn?null:gn,zn=Et.titleId,Rr=void 0===zn?null:zn,Fr=Et.classes,wr=void 0===Fr?[]:Fr,Vn=Et.attributes,mr=void 0===Vn?{}:Vn,Hi=Et.styles,on=void 0===Hi?{}:Hi;if(tt){var nn=tt.prefix,Pn=tt.iconName,jn=tt.icon;return xi(l({type:"icon"},tt),function(){return Yt(),Ce.autoA11y&&(En?mr["aria-labelledby"]="".concat(Ce.replacementClass,"-title-").concat(Rr||Li()):(mr["aria-hidden"]="true",mr.focusable="false")),Ni({icons:{main:Gr(jn),mask:Ai?Gr(Ai.icon):{found:!1,width:null,height:null,icon:{}}},prefix:nn,iconName:Pn,transform:l({},At,zt),symbol:vi,title:En,maskId:un,titleId:Rr,extra:{attributes:mr,styles:on,classes:wr}})})}}),zs=m(2313);const fr=["*"],xt=tt=>{const Et={"fa-spin":tt.spin,"fa-pulse":tt.pulse,"fa-fw":tt.fixedWidth,"fa-border":tt.border,"fa-inverse":tt.inverse,"fa-layers-counter":tt.counter,"fa-flip-horizontal":"horizontal"===tt.flip||"both"===tt.flip,"fa-flip-vertical":"vertical"===tt.flip||"both"===tt.flip,[`fa-${tt.size}`]:null!==tt.size,[`fa-rotate-${tt.rotate}`]:null!==tt.rotate,[`fa-pull-${tt.pull}`]:null!==tt.pull,[`fa-stack-${tt.stackItemSize}`]:null!=tt.stackItemSize};return Object.keys(Et).map(It=>Et[It]?It:null).filter(It=>It)};let je=(()=>{class tt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),wt=(()=>{class tt{constructor(){this.definitions={}}addIcons(...It){for(const zt of It){zt.prefix in this.definitions||(this.definitions[zt.prefix]={}),this.definitions[zt.prefix][zt.iconName]=zt;for(const ri of zt.icon[2])"string"==typeof ri&&(this.definitions[zt.prefix][ri]=zt)}}addIconPacks(...It){for(const zt of It){const ri=Object.keys(zt).map(vi=>zt[vi]);this.addIcons(...ri)}}getIconDefinition(It,zt){return It in this.definitions&&zt in this.definitions[It]?this.definitions[It][zt]:null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),Pt=(()=>{class tt{constructor(){this.stackItemSize="1x"}ngOnChanges(It){if("size"in It)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275dir=e.lG2({type:tt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.TTD]}),tt})(),Qt=(()=>{class tt{constructor(It,zt){this.renderer=It,this.elementRef=zt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(It){"size"in It&&(null!=It.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${It.size.currentValue}`),null!=It.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${It.size.previousValue}`))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(e.Qsj),e.Y36(e.SBq))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[e.TTD],ngContentSelectors:fr,decls:1,vars:0,template:function(It,zt){1&It&&(e.F$t(),e.Hsn(0))},encapsulation:2}),tt})(),Xt=(()=>{class tt{constructor(It,zt,ri,vi,Mi){this.sanitizer=It,this.config=zt,this.iconLibrary=ri,this.stackItem=vi,this.classes=[],null!=Mi&&null==vi&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(It){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let zt=null;if(zt=null==this.icon?this.config.fallbackIcon:this.icon,It){const ri=this.findIconDefinition(zt);if(null!=ri){const vi=this.buildParams();this.renderIcon(ri,vi)}}}render(){this.ngOnChanges({})}findIconDefinition(It){const zt=((tt,Et)=>(tt=>void 0!==tt.prefix&&void 0!==tt.iconName)(tt)?tt:Array.isArray(tt)&&2===tt.length?{prefix:tt[0],iconName:tt[1]}:"string"==typeof tt?{prefix:Et,iconName:tt}:void 0)(It,this.config.defaultPrefix);if("icon"in zt)return zt;const ri=this.iconLibrary.getIconDefinition(zt.prefix,zt.iconName);return null!=ri?ri:((tt=>{throw new Error(`Could not find icon with iconName=${tt.iconName} and prefix=${tt.prefix} in the icon library.`)})(zt),null)}buildParams(){const It={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},zt="string"==typeof this.transform?Rn_transform(this.transform):this.transform;return{title:this.title,transform:zt,classes:[...xt(It),...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(It,zt){const ri=_a(It,zt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(ri.html.join("\n"))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(zs.H7),e.Y36(je),e.Y36(wt),e.Y36(Pt,8),e.Y36(Qt,8))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(It,zt){2&It&&(e.Ikx("innerHTML",zt.renderedIconHTML,e.oJD),e.uIk("title",zt.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[e.TTD],decls:0,vars:0,template:function(It,zt){},encapsulation:2}),tt})(),On=(()=>{class tt{}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275mod=e.oAB({type:tt}),tt.\u0275inj=e.cJS({}),tt})()},6642:(Ge,Q,m)=>{"use strict";m.d(Q,{eX:()=>Re,sQ:()=>Ii,GW:()=>a,l4:()=>ze});var e=m(5620),t=m(6451),y=m(8306),C=m(7579),o=m(515),M=m(9646),l=m(2843),R=m(576);class L{constructor(Ee,Y,pe){this.kind=Ee,this.value=Y,this.error=pe,this.hasValue="N"===Ee}observe(Ee){return I(this,Ee)}do(Ee,Y,pe){const{kind:De,value:et,error:$t}=this;return"N"===De?null==Ee?void 0:Ee(et):"E"===De?null==Y?void 0:Y($t):null==pe?void 0:pe()}accept(Ee,Y,pe){var De;return(0,R.m)(null===(De=Ee)||void 0===De?void 0:De.next)?this.observe(Ee):this.do(Ee,Y,pe)}toObservable(){const{kind:Ee,value:Y,error:pe}=this,De="N"===Ee?(0,M.of)(Y):"E"===Ee?(0,l._)(()=>pe):"C"===Ee?o.E:0;if(!De)throw new TypeError(`Unexpected notification kind ${Ee}`);return De}static createNext(Ee){return new L("N",Ee)}static createError(Ee){return new L("E",void 0,Ee)}static createComplete(){return L.completeNotification}}function I(Ve,Ee){var Y,pe,De;const{kind:et,value:$t,error:Nt}=Ve;if("string"!=typeof et)throw new TypeError('Invalid notification, missing "kind"');"N"===et?null===(Y=Ee.next)||void 0===Y||Y.call(Ee,$t):"E"===et?null===(pe=Ee.error)||void 0===pe||pe.call(Ee,Nt):null===(De=Ee.complete)||void 0===De||De.call(Ee)}L.completeNotification=new L("C");var A=m(4482),E=m(5403),w=m(8421);function V(Ve,Ee,Y,pe){return(0,A.e)((De,et)=>{let $t;Ee&&"function"!=typeof Ee?({duration:Y,element:$t,connector:pe}=Ee):$t=Ee;const Nt=new Map,Jt=at=>{Nt.forEach(at),at(et)},ct=at=>Jt(st=>st.error(at)),ke=new j(et,at=>{try{const st=Ve(at);let At=Nt.get(st);if(!At){Nt.set(st,At=pe?pe():new C.x);const li=function Be(at,st){const At=new y.y(li=>{ke.activeGroups++;const Bt=st.subscribe(li);return()=>{Bt.unsubscribe(),0==--ke.activeGroups&&ke.teardownAttempted&&ke.unsubscribe()}});return At.key=at,At}(st,At);if(et.next(li),Y){const Bt=new E.Q(At,()=>{At.complete(),null==Bt||Bt.unsubscribe()},void 0,void 0,()=>Nt.delete(st));ke.add((0,w.Xf)(Y(li)).subscribe(Bt))}}At.next($t?$t(at):at)}catch(st){ct(st)}},()=>Jt(at=>at.complete()),ct,()=>Nt.clear());De.subscribe(ke)})}class j extends E.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var W=m(4004);function te(Ve,Ee){return Ee?Y=>Y.pipe(te((pe,De)=>(0,w.Xf)(Ve(pe,De)).pipe((0,W.U)((et,$t)=>Ee(pe,et,De,$t))))):(0,A.e)((Y,pe)=>{let De=0,et=null,$t=!1;Y.subscribe(new E.Q(pe,Nt=>{et||(et=new E.Q(pe,void 0,()=>{et=null,$t&&pe.complete()}),(0,w.Xf)(Ve(Nt,De++)).subscribe(et))},()=>{$t=!0,!et&&pe.complete()}))})}var ge=m(8502),le=m(262),re=m(9300),de=m(5577),se=m(5698),ye=m(5e3);const v={dispatch:!0,useEffectsErrorHandler:!0},i="__@ngrx/effects_create__";function a(Ve,Ee){const Y=Ve(),pe=Object.assign(Object.assign({},v),Ee);return Object.defineProperty(Y,i,{value:pe}),Y}function p(Ve){return Object.getOwnPropertyNames(Ve).filter(pe=>!(!Ve[pe]||!Ve[pe].hasOwnProperty(i))&&Ve[pe][i].hasOwnProperty("dispatch")).map(pe=>Object.assign({propertyName:pe},Ve[pe][i]))}function u(Ve){return Object.getPrototypeOf(Ve)}const _="__@ngrx/effects__";function O(Ve){return(0,e.qC)(b,u)(Ve)}function b(Ve){return function x(Ve){return Ve.constructor.hasOwnProperty(_)}(Ve)?Ve.constructor[_]:[]}function U(Ve,Ee,Y){const pe=u(Ve).constructor.name,De=function N(Ve){return[O,p].reduce((Y,pe)=>Y.concat(pe(Ve)),[])}(Ve).map(({propertyName:et,dispatch:$t,useEffectsErrorHandler:Nt})=>{const Jt="function"==typeof Ve[et]?Ve[et]():Ve[et],ct=Nt?Y(Jt,Ee):Jt;return!1===$t?ct.pipe((0,ge.l)()):ct.pipe(function P(){return(0,A.e)((Ve,Ee)=>{Ve.subscribe(new E.Q(Ee,Y=>{Ee.next(L.createNext(Y))},()=>{Ee.next(L.createComplete()),Ee.complete()},Y=>{Ee.next(L.createError(Y)),Ee.complete()}))})}()).pipe((0,W.U)(Be=>({effect:Ve[et],notification:Be,propertyName:et,sourceName:pe,sourceInstance:Ve})))});return(0,t.T)(...De)}function be(Ve,Ee,Y=10){return Ve.pipe((0,le.K)(pe=>(Ee&&Ee.handleError(pe),Y<=1?Ve:be(Ve,Ee,Y-1))))}let Re=(()=>{class Ve extends y.y{constructor(Y){super(),Y&&(this.source=Y)}lift(Y){const pe=new Ve;return pe.source=this,pe.operator=Y,pe}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(ye.LFG(e.Y$))},Ve.\u0275prov=ye.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function ze(...Ve){return(0,re.h)(Ee=>Ve.some(Y=>"string"==typeof Y?Y===Ee.type:Y.type===Ee.type))}function ce(Ve){return Le(Ve,"ngrxOnInitEffects")}function Le(Ve,Ee){return Ve&&Ee in Ve&&"function"==typeof Ve[Ee]}const Pe=new ye.OlP("@ngrx/effects Internal Root Guard"),q=new ye.OlP("@ngrx/effects User Provided Effects"),$=new ye.OlP("@ngrx/effects Internal Root Effects"),oe=new ye.OlP("@ngrx/effects Root Effects"),Ce=new ye.OlP("@ngrx/effects Internal Feature Effects"),Ue=new ye.OlP("@ngrx/effects Feature Effects"),lt=new ye.OlP("@ngrx/effects Effects Error Handler");let nt=(()=>{class Ve extends C.x{constructor(Y,pe){super(),this.errorHandler=Y,this.effectsErrorHandler=pe}addEffects(Y){this.next(Y)}toActions(){return this.pipe(V(u),(0,de.z)(Y=>Y.pipe(V(ft))),(0,de.z)(Y=>{const pe=Y.pipe(te(et=>function it(Ve,Ee){return Y=>{const pe=U(Y,Ve,Ee);return function Fe(Ve){return Le(Ve,"ngrxOnRunEffects")}(Y)?Y.ngrxOnRunEffects(pe):pe}}(this.errorHandler,this.effectsErrorHandler)(et)),(0,W.U)(et=>(function Oe(Ve,Ee){if("N"===Ve.notification.kind){const Y=Ve.notification.value;!function K(Ve){return"function"!=typeof Ve&&Ve&&Ve.type&&"string"==typeof Ve.type}(Y)&&Ee.handleError(new Error(`Effect ${function Me({propertyName:Ve,sourceInstance:Ee,sourceName:Y}){const pe="function"==typeof Ee[Ve];return`"${Y}.${String(Ve)}${pe?"()":""}"`}(Ve)} dispatched an invalid action: ${function we(Ve){try{return JSON.stringify(Ve)}catch(Ee){return Ve}}(Y)}`))}}(et,this.errorHandler),et.notification)),(0,re.h)(et=>"N"===et.kind&&null!=et.value),function ee(){return(0,A.e)((Ve,Ee)=>{Ve.subscribe(new E.Q(Ee,Y=>I(Y,Ee)))})}()),De=Y.pipe((0,se.q)(1),(0,re.h)(ce),(0,W.U)(et=>et.ngrxOnInitEffects()));return(0,t.T)(pe,De)}))}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(ye.LFG(ye.qLn),ye.LFG(lt))},Ve.\u0275prov=ye.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function ft(Ve){return function Ze(Ve){return Le(Ve,"ngrxOnIdentifyEffects")}(Ve)?Ve.ngrxOnIdentifyEffects():""}let rt=(()=>{class Ve{constructor(Y,pe){this.effectSources=Y,this.store=pe,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(ye.LFG(nt),ye.LFG(e.yh))},Ve.\u0275prov=ye.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Mt="@ngrx/effects/init";(0,e.PH)(Mt);let Ft=(()=>{class Ve{constructor(Y,pe,De,et,$t,Nt,Jt){this.sources=Y,pe.start(),et.forEach(ct=>Y.addEffects(ct)),De.dispatch({type:Mt})}addEffects(Y){this.sources.addEffects(Y)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(ye.LFG(nt),ye.LFG(rt),ye.LFG(e.yh),ye.LFG(oe),ye.LFG(e.cr,8),ye.LFG(e.CK,8),ye.LFG(Pe,8))},Ve.\u0275mod=ye.oAB({type:Ve}),Ve.\u0275inj=ye.cJS({}),Ve})(),Vt=(()=>{class Ve{constructor(Y,pe,De,et){pe.forEach($t=>$t.forEach(Nt=>Y.addEffects(Nt)))}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(ye.LFG(Ft),ye.LFG(Ue),ye.LFG(e.cr,8),ye.LFG(e.CK,8))},Ve.\u0275mod=ye.oAB({type:Ve}),Ve.\u0275inj=ye.cJS({}),Ve})(),Ii=(()=>{class Ve{static forFeature(Y=[]){return{ngModule:Vt,providers:[Y,{provide:Ce,multi:!0,useValue:Y},{provide:q,multi:!0,useValue:[]},{provide:Ue,multi:!0,useFactory:jt,deps:[ye.zs3,Ce,q]}]}}static forRoot(Y=[]){return{ngModule:Ft,providers:[{provide:lt,useValue:be},rt,nt,Re,Y,{provide:$,useValue:[Y]},{provide:Pe,useFactory:ki,deps:[[rt,new ye.FiY,new ye.tp0],[$,new ye.PiD]]},{provide:q,multi:!0,useValue:[]},{provide:oe,useFactory:jt,deps:[ye.zs3,$,q]}]}}}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=ye.oAB({type:Ve}),Ve.\u0275inj=ye.cJS({}),Ve})();function jt(Ve,Ee,Y){const pe=[];for(const De of Ee)pe.push(...De);for(const De of Y)pe.push(...De);return function ei(Ve,Ee){return Ee.map(Y=>Ve.get(Y))}(Ve,pe)}function ki(Ve,Ee){if((1!==Ee.length||0!==Ee[0].length)&&Ve)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(Ge){const Q={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}},m="function"==typeof Ge?Ge():Ge,y=Object.assign({},Q,{features:m.features||!!m.logOnly&&{pause:!0,export:!0,test:!0}||Q.features},m);if(y.maxAge&&y.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${y.maxAge}`);return y}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(Q,m){if(this.action=Q,this.timestamp=m,this.type=PERFORM_ACTION,void 0===Q.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(Q){this.timestamp=Q,this.type=RESET}}class Rollback{constructor(Q){this.timestamp=Q,this.type=ROLLBACK}}class Commit{constructor(Q){this.timestamp=Q,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(Q){this.id=Q,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(Q,m,e=!0){this.start=Q,this.end=m,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(Q){this.index=Q,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(Q){this.actionId=Q,this.type=JUMP_TO_ACTION}}class ImportState{constructor(Q){this.nextLiftedState=Q,this.type=IMPORT_STATE}}class LockChanges{constructor(Q){this.status=Q,this.type=LOCK_CHANGES}}class PauseRecording{constructor(Q){this.status=Q,this.type=PAUSE_RECORDING}}function difference(Ge,Q){return Ge.filter(m=>Q.indexOf(m)<0)}function unliftState(Ge){const{computedStates:Q,currentStateIndex:m}=Ge;if(m>=Q.length){const{state:t}=Q[Q.length-1];return t}const{state:e}=Q[m];return e}function unliftAction(Ge){return Ge.actionsById[Ge.nextActionId-1]}function liftAction(Ge){return new PerformAction(Ge,+Date.now())}function sanitizeActions(Ge,Q){return Object.keys(Q).reduce((m,e)=>{const t=Number(e);return m[t]=sanitizeAction(Ge,Q[t],t),m},{})}function sanitizeAction(Ge,Q,m){return Object.assign(Object.assign({},Q),{action:Ge(Q.action,m)})}function sanitizeStates(Ge,Q){return Q.map((m,e)=>({state:sanitizeState(Ge,m.state,e),error:m.error}))}function sanitizeState(Ge,Q,m){return Ge(Q,m)}function shouldFilterActions(Ge){return Ge.predicate||Ge.actionsSafelist||Ge.actionsBlocklist}function filterLiftedState(Ge,Q,m,e){const t=[],y={},C=[];return Ge.stagedActionIds.forEach((o,M)=>{const l=Ge.actionsById[o];!l||M&&isActionFiltered(Ge.computedStates[M],l,Q,m,e)||(y[o]=l,t.push(o),C.push(Ge.computedStates[M]))}),Object.assign(Object.assign({},Ge),{stagedActionIds:t,actionsById:y,computedStates:C})}function isActionFiltered(Ge,Q,m,e,t){const y=m&&!m(Ge,Q.action),C=e&&!Q.action.type.match(e.map(M=>escapeRegExp(M)).join("|")),o=t&&Q.action.type.match(t.map(M=>escapeRegExp(M)).join("|"));return y||C||o}function escapeRegExp(Ge){return Ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Ge,Q,m,e,t){if(e)return{state:m,error:"Interrupted by an error up the chain"};let C,y=m;try{y=Ge(m,Q)}catch(o){C=o.toString(),t.handleError(o)}return{state:y,error:C}}function recomputeStates(Ge,Q,m,e,t,y,C,o,M){if(Q>=Ge.length&&Ge.length===y.length)return Ge;const l=Ge.slice(0,Q),R=y.length-(M?1:0);for(let s=Q;s-1?A:computeNextEntry(m,I,E,P,o);l.push(V)}return M&&l.push(Ge[Ge.length-1]),l}function liftInitialState(Ge,Q){return{monitorState:Q(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Ge,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Ge,Q,m,e,t={}){return y=>(C,o)=>{let{monitorState:M,actionsById:l,nextActionId:R,stagedActionIds:s,skippedActionIds:L,committedState:I,currentStateIndex:A,computedStates:E,isLocked:P,isPaused:w}=C||Q;function V(te){let ee=te,ge=s.slice(1,ee+1);for(let le=0;le-1===ge.indexOf(le)),s=[0,...s.slice(ee+1)],I=E[ee].state,E=E.slice(ee),A=A>ee?A-ee:0}function j(){l={0:liftAction(INIT_ACTION)},R=1,s=[0],L=[],I=E[A].state,A=0,E=[]}C||(l=Object.create(l));let W=0;switch(o.type){case LOCK_CHANGES:P=o.status,W=1/0;break;case PAUSE_RECORDING:w=o.status,w?(s=[...s,R],l[R]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),R++,W=s.length-1,E=E.concat(E[E.length-1]),A===s.length-2&&A++,W=1/0):j();break;case RESET:l={0:liftAction(INIT_ACTION)},R=1,s=[0],L=[],I=Ge,A=0,E=[];break;case COMMIT:j();break;case ROLLBACK:l={0:liftAction(INIT_ACTION)},R=1,s=[0],L=[],A=0,E=[];break;case TOGGLE_ACTION:{const{id:te}=o;L=-1===L.indexOf(te)?[te,...L]:L.filter(ge=>ge!==te),W=s.indexOf(te);break}case SET_ACTIONS_ACTIVE:{const{start:te,end:ee,active:ge}=o,le=[];for(let re=te;ret.maxAge&&(E=recomputeStates(E,W,y,I,l,s,L,m,w),V(s.length-t.maxAge),W=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(E.filter(ee=>ee.error).length>0)W=0,t.maxAge&&s.length>t.maxAge&&(E=recomputeStates(E,W,y,I,l,s,L,m,w),V(s.length-t.maxAge),W=1/0);else{if(!w&&!P){A===s.length-1&&A++;const ee=R++;l[ee]=new PerformAction(o,+Date.now()),s=[...s,ee],W=s.length-1,E=recomputeStates(E,W,y,I,l,s,L,m,w)}E=E.map(ee=>Object.assign(Object.assign({},ee),{state:y(ee.state,RECOMPUTE_ACTION)})),A=s.length-1,t.maxAge&&s.length>t.maxAge&&V(s.length-t.maxAge),W=1/0}break;default:W=1/0}return E=recomputeStates(E,W,y,I,l,s,L,m,w),M=e(M,o),{monitorState:M,actionsById:l,nextActionId:R,stagedActionIds:s,skippedActionIds:L,committedState:I,currentStateIndex:A,computedStates:E,isLocked:P,isPaused:w}}}let DevtoolsDispatcher=(()=>{class Ge extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Ge.\u0275fac=function(){let Q;return function(e){return(Q||(Q=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Ge)))(e||Ge)}}(),Ge.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();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(Ge,Q,m){this.config=Q,this.dispatcher=m,this.devtoolsExtension=Ge,this.createActionStreams()}notify(Ge,Q){if(this.devtoolsExtension)if(Ge.type===PERFORM_ACTION){if(Q.isLocked||Q.isPaused)return;const m=unliftState(Q);if(shouldFilterActions(this.config)&&isActionFiltered(m,Ge,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,m,Q.currentStateIndex):m,t=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Ge,Q.nextActionId):Ge;this.sendToReduxDevtools(()=>this.extensionConnection.send(t,e))}else{const m=Object.assign(Object.assign({},Q),{stagedActionIds:Q.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,Q.actionsById):Q.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,Q.computedStates):Q.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,m,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Ge=>{const Q=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=Q,Q.init(),Q.subscribe(m=>Ge.next(m)),Q.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Ge=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),Q=Ge.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.START)),m=Ge.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.STOP)),e=Ge.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o=>this.unwrapAction(o.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(o=>o.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.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)(()=>o),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(o)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(o))),y=Ge.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o=>this.unwrapAction(o.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),C=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m));this.start$=Q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>y)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>C))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Ge){var Q;const m={name:Ge.name,features:Ge.features,serialize:Ge.serialize,autoPause:null!==(Q=Ge.autoPause)&&void 0!==Q&&Q};return!1!==Ge.maxAge&&(m.maxAge=Ge.maxAge),m}sendToReduxDevtools(Ge){try{Ge()}catch(Q){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",Q)}}}return DevtoolsExtension.\u0275fac=function Ge(Q){return new(Q||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 Ge{constructor(m,e,t,y,C,o,M,l){const R=liftInitialState(M,l.monitor),s=liftReducerWith(M,R,o,l.monitor,l),L=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),y.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),m,y.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),I=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s)),A=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),E=L.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(I),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:j},[W,te])=>{let ee=te(j,W);return W.type!==PERFORM_ACTION&&shouldFilterActions(l)&&(ee=filterLiftedState(ee,l.predicate,l.actionsSafelist,l.actionsBlocklist)),y.notify(W,ee),{state:ee,action:W}},{state:R,action:null})).subscribe(({state:j,action:W})=>{A.next(j),W.type===PERFORM_ACTION&&C.next(W.action)}),P=y.start$.subscribe(()=>{this.refresh()}),w=A.asObservable(),V=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=P,this.stateSubscription=E,this.dispatcher=m,this.liftedState=w,this.state=V}dispatch(m){this.dispatcher.next(m)}next(m){this.dispatcher.next(m)}error(m){}complete(){}performAction(m){this.dispatch(new PerformAction(m,+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(m){this.dispatch(new ToggleAction(m))}jumpToAction(m){this.dispatch(new JumpToAction(m))}jumpToState(m){this.dispatch(new JumpToState(m))}importState(m){this.dispatch(new ImportState(m))}lockChanges(m){this.dispatch(new LockChanges(m))}pauseRecording(m){this.dispatch(new PauseRecording(m))}}return Ge.\u0275fac=function(m){return new(m||Ge)(_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))},Ge.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();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(Ge,Q){return Boolean(Ge)||Q.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Ge="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Ge]?window[Ge]:null}function createStateObservable(Ge){return Ge.state}let StoreDevtoolsModule=(()=>{class Ge{static instrument(m={}){return{ngModule:Ge,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:m},{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 Ge.\u0275fac=function(m){return new(m||Ge)},Ge.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Ge}),Ge.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Ge})()},5620:(Ge,Q,m)=>{"use strict";m.d(Q,{UO:()=>te,qg:()=>W,Y6:()=>re,mK:()=>we,n$:()=>Me,Y$:()=>Fe,FR:()=>ce,yh:()=>$,CK:()=>qe,Aw:()=>yt,cr:()=>_e,wb:()=>z,qC:()=>ze,PH:()=>P,ZF:()=>Jt,Lq:()=>qi,P1:()=>et,on:()=>Si,Ky:()=>w});var e=m(5e3),t=m(1135),y=m(8306),C=m(7579),o=m(233),M=m(4004),R=m(5363),s=m(1365),L=m(5026),I=m(1884);const A={};function P(ot,Kt){if(A[ot]=(A[ot]||0)+1,"function"==typeof Kt)return j(ot,(...Lt)=>Object.assign(Object.assign({},Kt(...Lt)),{type:ot}));switch(Kt?Kt._as:"empty"){case"empty":return j(ot,()=>({type:ot}));case"props":return j(ot,Lt=>Object.assign(Object.assign({},Lt),{type:ot}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function j(ot,Kt){return Object.defineProperty(Kt,"type",{value:ot,writable:!1})}const W="@ngrx/store/init";let te=(()=>{class ot extends t.X{constructor(){super({type:W})}next(gt){if("function"==typeof gt)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===gt)throw new TypeError("Actions must be objects");if(void 0===gt.type)throw new TypeError("Actions must have a type property");super.next(gt)}complete(){}ngOnDestroy(){super.complete()}}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const ee=[te],ge=new e.OlP("@ngrx/store Internal Root Guard"),le=new e.OlP("@ngrx/store Internal Initial State"),re=new e.OlP("@ngrx/store Initial State"),de=new e.OlP("@ngrx/store Reducer Factory"),se=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),ye=new e.OlP("@ngrx/store Initial Reducers"),v=new e.OlP("@ngrx/store Internal Initial Reducers"),i=new e.OlP("@ngrx/store Store Features"),a=new e.OlP("@ngrx/store Internal Store Reducers"),p=new e.OlP("@ngrx/store Internal Feature Reducers"),u=new e.OlP("@ngrx/store Internal Feature Configs"),_=new e.OlP("@ngrx/store Internal Store Features"),D=new e.OlP("@ngrx/store Internal Feature Reducers Token"),O=new e.OlP("@ngrx/store Feature Reducers"),x=new e.OlP("@ngrx/store User Provided Meta Reducers"),r=new e.OlP("@ngrx/store Meta Reducers"),b=new e.OlP("@ngrx/store Internal Resolved Meta Reducers"),Z=new e.OlP("@ngrx/store User Runtime Checks Config"),N=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),U=new e.OlP("@ngrx/store Internal Runtime Checks"),ve=new e.OlP("@ngrx/store Check if Action types are unique");function be(ot,Kt={}){const gt=Object.keys(ot),Lt={};for(let Ci=0;CiCi(ui),gt(Kt))}}function Oe(ot,Kt){return Array.isArray(Kt)&&Kt.length>0&&(ot=ze.apply(null,[...Kt,ot])),(gt,Lt)=>{const ui=ot(gt);return(Ci,Yi)=>ui(Ci=void 0===Ci?Lt:Ci,Yi)}}class Me extends y.y{}class we extends te{}const z="@ngrx/store/update-reducers";let Ze=(()=>{class ot extends t.X{constructor(gt,Lt,ui,Ci){super(Ci(ui,Lt)),this.dispatcher=gt,this.initialState=Lt,this.reducers=ui,this.reducerFactory=Ci}get currentReducers(){return this.reducers}addFeature(gt){this.addFeatures([gt])}addFeatures(gt){const Lt=gt.reduce((ui,{reducers:Ci,reducerFactory:Yi,metaReducers:$i,initialState:Cn,key:Ln})=>{const _n="function"==typeof Ci?function K(ot){const Kt=Array.isArray(ot)&&ot.length>0?ze(...ot):gt=>gt;return(gt,Lt)=>(gt=Kt(gt),(ui,Ci)=>gt(ui=void 0===ui?Lt:ui,Ci))}($i)(Ci,Cn):Oe(Yi,$i)(Ci,Cn);return ui[Ln]=_n,ui},{});this.addReducers(Lt)}removeFeature(gt){this.removeFeatures([gt])}removeFeatures(gt){this.removeReducers(gt.map(Lt=>Lt.key))}addReducer(gt,Lt){this.addReducers({[gt]:Lt})}addReducers(gt){this.reducers=Object.assign(Object.assign({},this.reducers),gt),this.updateReducers(Object.keys(gt))}removeReducer(gt){this.removeReducers([gt])}removeReducers(gt){gt.forEach(Lt=>{this.reducers=function Re(ot,Kt){return Object.keys(ot).filter(gt=>gt!==Kt).reduce((gt,Lt)=>Object.assign(gt,{[Lt]:ot[Lt]}),{})}(this.reducers,Lt)}),this.updateReducers(gt)}updateReducers(gt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:z,features:gt})}ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(we),e.LFG(re),e.LFG(ye),e.LFG(de))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const vt=[Ze,{provide:Me,useExisting:Ze},{provide:we,useExisting:te}];let Fe=(()=>{class ot extends C.x{ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(){let Kt;return function(Lt){return(Kt||(Kt=e.n5z(ot)))(Lt||ot)}}(),ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const Ne=[Fe];class ce extends y.y{}let Le=(()=>{class ot extends t.X{constructor(gt,Lt,ui,Ci){super(Ci);const Ln=gt.pipe((0,R.Q)(o.N)).pipe((0,s.M)(Lt)).pipe((0,L.R)(Pe,{state:Ci}));this.stateSubscription=Ln.subscribe(({state:_n,action:kn})=>{this.next(_n),ui.next(kn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return ot.INIT=W,ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(te),e.LFG(Me),e.LFG(Fe),e.LFG(re))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();function Pe(ot={state:void 0},[Kt,gt]){const{state:Lt}=ot;return{state:gt(Lt,Kt),action:Kt}}const q=[Le,{provide:ce,useExisting:Le}];let $=(()=>{class ot extends y.y{constructor(gt,Lt,ui){super(),this.actionsObserver=Lt,this.reducerManager=ui,this.source=gt}select(gt,...Lt){return Ce.call(null,gt,...Lt)(this)}lift(gt){const Lt=new ot(this,this.actionsObserver,this.reducerManager);return Lt.operator=gt,Lt}dispatch(gt){this.actionsObserver.next(gt)}next(gt){this.actionsObserver.next(gt)}error(gt){this.actionsObserver.error(gt)}complete(){this.actionsObserver.complete()}addReducer(gt,Lt){this.reducerManager.addReducer(gt,Lt)}removeReducer(gt){this.reducerManager.removeReducer(gt)}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(ce),e.LFG(te),e.LFG(Ze))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const oe=[$];function Ce(ot,Kt,...gt){return function(ui){let Ci;if("string"==typeof ot){const Yi=[Kt,...gt].filter(Boolean);Ci=ui.pipe(function l(...ot){const Kt=ot.length;if(0===Kt)throw new Error("list of properties cannot be empty.");return(0,M.U)(gt=>{let Lt=gt;for(let ui=0;uiot(Yi,Kt)))}return Ci.pipe((0,I.x)())}}const lt="https://ngrx.io/guide/store/configuration/runtime-checks";function nt(ot){return void 0===ot}function ft(ot){return null===ot}function it(ot){return Array.isArray(ot)}function Ft(ot){return"object"==typeof ot&&null!==ot}function jt(ot){return"function"==typeof ot}function Ee(ot,Kt){return ot===Kt}function Y(ot,Kt,gt){for(let Lt=0;Lt_n.release&&"function"==typeof _n.release),$i=ot(function(..._n){return Ci.apply(null,_n)}),Cn=De(function(_n,kn){return Kt.stateFn.apply(null,[_n,ui,kn,$i])});return Object.assign(Cn.memoized,{release:function Ln(){Cn.reset(),$i.reset(),Yi.forEach(_n=>_n.release())},projector:$i.memoized,setResult:Cn.setResult,clearResult:Cn.clearResult})}}(De)(...ot)}function $t(ot,Kt,gt,Lt){if(void 0===gt){const Ci=Kt.map(Yi=>Yi(ot));return Lt.memoized.apply(null,Ci)}const ui=Kt.map(Ci=>Ci(ot,gt));return Lt.memoized.apply(null,[...ui,gt])}function Jt(ot){return et(Kt=>{const gt=Kt[ot];return(0,e.X6Q)()&&!(ot in Kt)&&console.warn(`@ngrx/store: The feature name "${ot}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${ot}', ...) or StoreModule.forFeature('${ot}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),gt},Kt=>Kt)}function st(ot){Object.freeze(ot);const Kt=jt(ot);return Object.getOwnPropertyNames(ot).forEach(gt=>{if(!gt.startsWith("\u0275")&&function ki(ot,Kt){return Object.prototype.hasOwnProperty.call(ot,Kt)}(ot,gt)&&(!Kt||"caller"!==gt&&"callee"!==gt&&"arguments"!==gt)){const Lt=ot[gt];(Ft(Lt)||jt(Lt))&&!Object.isFrozen(Lt)&&st(Lt)}}),ot}function li(ot,Kt=[]){return(nt(ot)||ft(ot))&&0===Kt.length?{path:["root"],value:ot}:Object.keys(ot).reduce((Lt,ui)=>{if(Lt)return Lt;const Ci=ot[ui];return function ei(ot){return jt(ot)&&ot.hasOwnProperty("\u0275cmp")}(Ci)?Lt:!(nt(Ci)||ft(Ci)||function Zt(ot){return"number"==typeof ot}(Ci)||function Mt(ot){return"boolean"==typeof ot}(Ci)||function rt(ot){return"string"==typeof ot}(Ci)||it(Ci))&&(function Ii(ot){if(!function Vt(ot){return Ft(ot)&&!it(ot)}(ot))return!1;const Kt=Object.getPrototypeOf(ot);return Kt===Object.prototype||null===Kt}(Ci)?li(Ci,[...Kt,ui]):{path:[...Kt,ui],value:Ci})},!1)}function Bt(ot,Kt){if(!1===ot)return;const gt=ot.path.join("."),Lt=new Error(`Detected unserializable ${Kt} at "${gt}". ${lt}#strict${Kt}serializability`);throw Lt.value=ot.value,Lt.unserializablePath=gt,Lt}function Li(ot){return(0,e.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},ot):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function si({strictActionSerializability:ot,strictStateSerializability:Kt}){return gt=>ot||Kt?function At(ot,Kt){return function(gt,Lt){Kt.action(Lt)&&Bt(li(Lt),"action");const ui=ot(gt,Lt);return Kt.state()&&Bt(li(ui),"state"),ui}}(gt,{action:Lt=>ot&&!sn(Lt),state:()=>Kt}):gt}function ci({strictActionImmutability:ot,strictStateImmutability:Kt}){return gt=>ot||Kt?function at(ot,Kt){return function(gt,Lt){const ui=Kt.action(Lt)?st(Lt):Lt,Ci=ot(gt,ui);return Kt.state()?st(Ci):Ci}}(gt,{action:Lt=>ot&&!sn(Lt),state:()=>Kt}):gt}function sn(ot){return ot.type.startsWith("@ngrx")}function Ui({strictActionWithinNgZone:ot}){return Kt=>ot?function Rt(ot,Kt){return function(gt,Lt){if(Kt.action(Lt)&&!e.R0b.isInAngularZone())throw new Error(`Action '${Lt.type}' running outside NgZone. ${lt}#strictactionwithinngzone`);return ot(gt,Lt)}}(Kt,{action:gt=>ot&&!sn(gt)}):Kt}function Di(ot){return[{provide:N,useValue:ot},{provide:Z,useFactory:Ke,deps:[N]},{provide:U,deps:[Z],useFactory:Li},{provide:r,multi:!0,deps:[U],useFactory:ci},{provide:r,multi:!0,deps:[U],useFactory:si},{provide:r,multi:!0,deps:[U],useFactory:Ui}]}function Xi(){return[{provide:ve,multi:!0,deps:[U],useFactory:_t}]}function Ke(ot){return ot}function _t(ot){if(!ot.strictActionTypeUniqueness)return;const Kt=Object.entries(A).filter(([,gt])=>gt>1).map(([gt])=>gt);if(Kt.length)throw new Error(`Action types are registered more than once, ${Kt.map(gt=>`"${gt}"`).join(", ")}. ${lt}#strictactiontypeuniqueness`)}let _e=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i){}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(te),e.LFG(Me),e.LFG(Fe),e.LFG($),e.LFG(ge,8),e.LFG(ve,8))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})(),qe=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi){this.features=gt,this.featureReducers=Lt,this.reducerManager=ui;const $i=gt.map((Cn,Ln)=>{const kn=Lt.shift()[Ln];return Object.assign(Object.assign({},Cn),{reducers:kn,initialState:kt(Cn.initialState)})});ui.addFeatures($i)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(_),e.LFG(O),e.LFG(Ze),e.LFG(_e),e.LFG(ve,8))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})(),yt=(()=>{class ot{static forRoot(gt,Lt={}){return{ngModule:_e,providers:[{provide:ge,useFactory:Ni,deps:[[$,new e.FiY,new e.tp0]]},{provide:le,useValue:Lt.initialState},{provide:re,useFactory:kt,deps:[le]},{provide:v,useValue:gt},{provide:a,useExisting:gt instanceof e.OlP?gt:v},{provide:ye,deps:[e.zs3,v,[new e.tBr(a)]],useFactory:ue},{provide:x,useValue:Lt.metaReducers?Lt.metaReducers:[]},{provide:b,deps:[r,x],useFactory:yi},{provide:se,useValue:Lt.reducerFactory?Lt.reducerFactory:be},{provide:de,deps:[se,b],useFactory:Oe},ee,vt,Ne,q,oe,Di(Lt.runtimeChecks),Xi()]}}static forFeature(gt,Lt,ui={}){return{ngModule:qe,providers:[{provide:u,multi:!0,useValue:gt instanceof Object?{}:ui},{provide:i,multi:!0,useValue:{key:gt instanceof Object?gt.name:gt,reducerFactory:ui instanceof e.OlP||!ui.reducerFactory?be:ui.reducerFactory,metaReducers:ui instanceof e.OlP||!ui.metaReducers?[]:ui.metaReducers,initialState:ui instanceof e.OlP||!ui.initialState?void 0:ui.initialState}},{provide:_,deps:[e.zs3,u,i],useFactory:Je},{provide:p,multi:!0,useValue:gt instanceof Object?gt.reducer:Lt},{provide:D,multi:!0,useExisting:Lt instanceof e.OlP?Lt:p},{provide:O,multi:!0,deps:[e.zs3,p,[new e.tBr(D)]],useFactory:St},Xi()]}}}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})();function ue(ot,Kt){return Kt instanceof e.OlP?ot.get(Kt):Kt}function Je(ot,Kt,gt){return gt.map((Lt,ui)=>{if(Kt[ui]instanceof e.OlP){const Ci=ot.get(Kt[ui]);return{key:Lt.key,reducerFactory:Ci.reducerFactory?Ci.reducerFactory:be,metaReducers:Ci.metaReducers?Ci.metaReducers:[],initialState:Ci.initialState}}return Lt})}function St(ot,Kt){return Kt.map(Lt=>Lt instanceof e.OlP?ot.get(Lt):Lt)}function kt(ot){return"function"==typeof ot?ot():ot}function yi(ot,Kt){return ot.concat(Kt)}function Ni(ot){if(ot)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Si(...ot){return{reducer:ot.pop(),types:ot.map(Lt=>Lt.type)}}function qi(ot,...Kt){const gt=new Map;for(const Lt of Kt)for(const ui of Lt.types){const Ci=gt.get(ui);gt.set(ui,Ci?($i,Cn)=>Lt.reducer(Ci($i,Cn),Cn):Lt.reducer)}return function(Lt=ot,ui){const Ci=gt.get(ui.type);return Ci?Ci(Lt,ui):Lt}}},159:(Ge,Q,m)=>{"use strict";m.d(Q,{uU:()=>s,OF:()=>L});var e=m(5e3),t=m(9808),y=m(655),C=m(3259);function o(I,A){if(1&I&&e._UZ(0,"canvas",1),2&I){const E=e.oxw();e.Q6J("qrCode",E.value)("qrCodeErrorCorrectionLevel",E.errorCorrectionLevel)("qrCodeCenterImageSrc",E.centerImageSrc)("qrCodeCenterImageWidth",E.centerImageSize)("qrCodeCenterImageHeight",E.centerImageSize)("qrCodeMargin",E.margin)("width",E.size)("height",E.size)("darkColor",E.darkColor)("lightColor",E.lightColor)}}const M=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let l=(()=>{class I{constructor(E){this.viewContainerRef=E,this.errorCorrectionLevel=I.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var E,P;return(0,y.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const w=this.viewContainerRef.element.nativeElement;if(!w)return;const V=w.getContext("2d");V&&V.clearRect(0,0,V.canvas.width,V.canvas.height);const j=null!==(E=this.errorCorrectionLevel)&&void 0!==E?E:I.DEFAULT_ERROR_CORRECTION_LEVEL,W=M.test(this.darkColor)?this.darkColor:void 0,te=M.test(this.lightColor)?this.lightColor:void 0;(0,e.X6Q)()&&(!W&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!te&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield C.toCanvas(w,this.value,{version:this.version,errorCorrectionLevel:j,width:this.width,margin:this.margin,color:{dark:W,light:te}});const ee=this.centerImageSrc,ge=R(this.centerImageWidth,I.DEFAULT_CENTER_IMAGE_SIZE),le=R(this.centerImageHeight,I.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&V){this.centerImage||(this.centerImage=new Image(ge,le)),ee!==(null===(P=this.centerImage)||void 0===P?void 0:P.src)&&(this.centerImage.src=ee),ge!==this.centerImage.width&&(this.centerImage.width=ge),le!==this.centerImage.height&&(this.centerImage.height=le);const re=this.centerImage;re.onload=()=>{V.drawImage(re,w.width/2-ge/2,w.height/2-le/2,ge,le)}}})}}return I.DEFAULT_ERROR_CORRECTION_LEVEL="M",I.DEFAULT_CENTER_IMAGE_SIZE=40,I.\u0275fac=function(E){return new(E||I)(e.Y36(e.s_b))},I.\u0275dir=e.lG2({type:I,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[e.TTD]}),I})();function R(I,A){return void 0===I||""===I?A:"string"==typeof I?parseInt(I,10):I}let s=(()=>{class I{}return I.\u0275fac=function(E){return new(E||I)},I.\u0275cmp=e.Xpm({type:I,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(E,P){1&E&&e.YNc(0,o,1,10,"canvas",0),2&E&&e.Q6J("ngIf",P.value)},directives:[t.O5,l],encapsulation:2}),I})(),L=(()=>{class I{}return I.\u0275fac=function(E){return new(E||I)},I.\u0275mod=e.oAB({type:I}),I.\u0275inj=e.cJS({imports:[[t.ez]]}),I})()},4946:Ge=>{"use strict";Ge.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:Ge=>{"use strict";Ge.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:Ge=>{"use strict";Ge.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:Ge=>{"use strict";Ge.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:Ge=>{"use strict";Ge.exports={i8:"6.5.4"}},2562:Ge=>{"use strict";Ge.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"}')}},Ge=>{Ge(Ge.s=8864)}]); \ No newline at end of file diff --git a/frontend/main.f6fd53cb12618878.js b/frontend/main.f6fd53cb12618878.js new file mode 100644 index 00000000..b04f1f80 --- /dev/null +++ b/frontend/main.f6fd53cb12618878.js @@ -0,0 +1 @@ +var M5=Object.defineProperty,w5=Object.defineProperties,A5=Object.getOwnPropertyDescriptors,m8=Object.getOwnPropertySymbols,E5=Object.prototype.hasOwnProperty,T5=Object.prototype.propertyIsEnumerable,g8=(Ge,Q,m)=>Q in Ge?M5(Ge,Q,{enumerable:!0,configurable:!0,writable:!0,value:m}):Ge[Q]=m,to=(Ge,Q)=>{for(var m in Q||(Q={}))E5.call(Q,m)&&g8(Ge,m,Q[m]);if(m8)for(var m of m8(Q))T5.call(Q,m)&&g8(Ge,m,Q[m]);return Ge},_8=(Ge,Q)=>w5(Ge,A5(Q));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(Ge,Q,m)=>{"use strict";m.d(Q,{Sbq:()=>w,Vfw:()=>W,N2j:()=>ye,DL8:()=>$,BDt:()=>at,Acd:()=>gt,koM:()=>Vr,OS1:()=>pr,dT$:()=>Qt,mh3:()=>Xt,b7W:()=>Ti,kZ_:()=>wr,q7m:()=>ii,FlN:()=>ao,KOR:()=>Ea,Ssp:()=>bo,eHv:()=>Yr,Mdf:()=>a1,Aq:()=>aa,qO$:()=>Ph,vqe:()=>os,sqG:()=>C1,Krp:()=>pl,uli:()=>z0,nNP:()=>E1,byT:()=>Z0,SuH:()=>I1,co4:()=>X0,aj4:()=>Pc,kXW:()=>Ja,XsY:()=>vl,USL:()=>Fc,r8p:()=>bd,o4t:()=>Td,Psp:()=>Y1,dLy:()=>_2,FpQ:()=>x2,wn1:()=>vr,xf3:()=>Ud,HLz:()=>J1,NBC:()=>Z2,CgH:()=>$a,B$L:()=>qr,hkK:()=>$2,hnx:()=>Pu,gNZ:()=>jc,FJU:()=>s0,FVb:()=>qc,X5K:()=>nh,wyP:()=>sh});var w={prefix:"fas",iconName:"angle-double-down",icon:[320,512,[],"f103","M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]},W={prefix:"fas",iconName:"angle-double-up",icon:[320,512,[],"f102","M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]},ye={prefix:"fas",iconName:"archive",icon:[512,512,[],"f187","M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]},$={prefix:"fas",iconName:"balance-scale",icon:[640,512,[],"f24e","M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},at={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},gt={prefix:"fas",iconName:"bullhorn",icon:[576,512,[],"f0a1","M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"]},Vr={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},pr={prefix:"fas",iconName:"chart-pie",icon:[544,512,[],"f200","M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]},Qt={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"]},Xt={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},Ti={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},wr={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},ii={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},ao={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]},Ea={prefix:"fas",iconName:"eject",icon:[448,512,[],"f052","M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]},bo={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},Yr={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},a1={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},aa={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},Ph={prefix:"fas",iconName:"history",icon:[512,512,[],"f1da","M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]},os={prefix:"fas",iconName:"infinity",icon:[640,512,[],"f534","M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]},C1={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},pl={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]},z0={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]},E1={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},Z0={prefix:"fas",iconName:"lock",icon:[448,512,[],"f023","M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]},I1={prefix:"fas",iconName:"map-signs",icon:[512,512,[],"f277","M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]},X0={prefix:"fas",iconName:"money-bill-alt",icon:[640,512,[],"f3d1","M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]},Pc={prefix:"fas",iconName:"money-bill-wave",icon:[640,512,[],"f53a","M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]},Ja={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},vl={prefix:"fas",iconName:"paint-brush",icon:[512,512,[],"f1fc","M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]},Fc={prefix:"fas",iconName:"percentage",icon:[384,512,[],"f541","M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]},bd={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},Td={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},Y1={prefix:"fas",iconName:"question",icon:[384,512,[],"f128","M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]},_2={prefix:"fas",iconName:"receipt",icon:[384,512,[],"f543","M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]},x2={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},vr={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},Ud={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]},J1={prefix:"fas",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},Z2={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},$a={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},qr={prefix:"fas",iconName:"unlock-alt",icon:[448,512,[],"f13e","M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]},$2={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},Pu={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},jc={prefix:"fas",iconName:"user-cog",icon:[640,512,[],"f4fe","M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]},s0={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},qc={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]},nh={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},sh={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]}},429:(Ge,Q,m)=>{"use strict";m.d(Q,{Ni:()=>y,xH:()=>C,oo:()=>o,CN:()=>M,CX:()=>l,SN:()=>R,RX:()=>s,HJ:()=>L,I8:()=>I,EG:()=>A,Lu:()=>E,g3:()=>P,xS:()=>w,_E:()=>V,$W:()=>W,Z8:()=>te,El:()=>ee,X3:()=>le,z:()=>re,EK:()=>de,cQ:()=>se,HI:()=>ye,oV:()=>v,TM:()=>i,WO:()=>a,kL:()=>p,UR:()=>u,as:()=>_,pW:()=>D,YX:()=>O,BL:()=>x,OG:()=>r,Sf:()=>b,$A:()=>Z,n7:()=>N,v_:()=>U,u0:()=>ve,QJ:()=>be,WM:()=>Re,Nr:()=>ze,Rd:()=>Oe,YP:()=>K,aL:()=>Me,g6:()=>we,Wi:()=>z,Ly:()=>vt,UH:()=>Fe,eM:()=>Ne,VD:()=>ce,yl:()=>Le,Zu:()=>Pe,dh:()=>q,ZH:()=>$,i9:()=>oe,JK:()=>Ce,uT:()=>Ue,d7:()=>lt,e9:()=>nt,_9:()=>ft,en:()=>it});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.AB.UPDATE_API_CALL_STATUS_CLN,(0,e.Ky)()),C=(0,e.PH)(t.AB.RESET_CLN_STORE,(0,e.Ky)()),o=(0,e.PH)(t.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,e.Ky)()),M=(0,e.PH)(t.AB.FETCH_INFO_CLN,(0,e.Ky)()),l=(0,e.PH)(t.AB.SET_INFO_CLN,(0,e.Ky)()),R=(0,e.PH)(t.AB.FETCH_FEES_CLN),s=(0,e.PH)(t.AB.SET_FEES_CLN,(0,e.Ky)()),L=(0,e.PH)(t.AB.FETCH_FEE_RATES_CLN,(0,e.Ky)()),I=(0,e.PH)(t.AB.SET_FEE_RATES_CLN,(0,e.Ky)()),A=(0,e.PH)(t.AB.FETCH_BALANCE_CLN),E=(0,e.PH)(t.AB.SET_BALANCE_CLN,(0,e.Ky)()),P=(0,e.PH)(t.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),w=(0,e.PH)(t.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,e.Ky)()),V=(0,e.PH)(t.AB.GET_NEW_ADDRESS_CLN,(0,e.Ky)()),W=((0,e.PH)(t.AB.SET_NEW_ADDRESS_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_PEERS_CLN)),te=(0,e.PH)(t.AB.SET_PEERS_CLN,(0,e.Ky)()),ee=(0,e.PH)(t.AB.SAVE_NEW_PEER_CLN,(0,e.Ky)()),le=((0,e.PH)(t.AB.NEWLY_ADDED_PEER_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.ADD_PEER_CLN,(0,e.Ky)())),re=(0,e.PH)(t.AB.DETACH_PEER_CLN,(0,e.Ky)()),de=(0,e.PH)(t.AB.REMOVE_PEER_CLN,(0,e.Ky)()),se=(0,e.PH)(t.AB.FETCH_PAYMENTS_CLN),ye=(0,e.PH)(t.AB.SET_PAYMENTS_CLN,(0,e.Ky)()),v=(0,e.PH)(t.AB.SEND_PAYMENT_CLN,(0,e.Ky)()),i=(0,e.PH)(t.AB.SEND_PAYMENT_STATUS_CLN,(0,e.Ky)()),a=(0,e.PH)(t.AB.GET_QUERY_ROUTES_CLN,(0,e.Ky)()),p=(0,e.PH)(t.AB.SET_QUERY_ROUTES_CLN,(0,e.Ky)()),u=(0,e.PH)(t.AB.FETCH_CHANNELS_CLN),_=(0,e.PH)(t.AB.SET_CHANNELS_CLN,(0,e.Ky)()),D=(0,e.PH)(t.AB.UPDATE_CHANNEL_CLN,(0,e.Ky)()),O=(0,e.PH)(t.AB.SAVE_NEW_CHANNEL_CLN,(0,e.Ky)()),x=(0,e.PH)(t.AB.CLOSE_CHANNEL_CLN,(0,e.Ky)()),r=(0,e.PH)(t.AB.REMOVE_CHANNEL_CLN,(0,e.Ky)()),b=(0,e.PH)(t.AB.PEER_LOOKUP_CLN,(0,e.Ky)()),Z=(0,e.PH)(t.AB.CHANNEL_LOOKUP_CLN,(0,e.Ky)()),N=(0,e.PH)(t.AB.INVOICE_LOOKUP_CLN,(0,e.Ky)()),U=(0,e.PH)(t.AB.SET_LOOKUP_CLN,(0,e.Ky)()),ve=(0,e.PH)(t.AB.GET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),be=(0,e.PH)(t.AB.SET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),Re=(0,e.PH)(t.AB.FETCH_INVOICES_CLN,(0,e.Ky)()),ze=(0,e.PH)(t.AB.SET_INVOICES_CLN,(0,e.Ky)()),Oe=(0,e.PH)(t.AB.SAVE_NEW_INVOICE_CLN,(0,e.Ky)()),K=(0,e.PH)(t.AB.ADD_INVOICE_CLN,(0,e.Ky)()),Me=(0,e.PH)(t.AB.UPDATE_INVOICE_CLN,(0,e.Ky)()),we=(0,e.PH)(t.AB.DELETE_EXPIRED_INVOICE_CLN,(0,e.Ky)()),z=(0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_CLN,(0,e.Ky)()),vt=((0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_UTXOS_CLN)),Fe=(0,e.PH)(t.AB.SET_UTXOS_CLN,(0,e.Ky)()),Ne=(0,e.PH)(t.AB.FETCH_OFFER_INVOICE_CLN,(0,e.Ky)()),ce=(0,e.PH)(t.AB.SET_OFFER_INVOICE_CLN,(0,e.Ky)()),Le=(0,e.PH)(t.AB.FETCH_OFFERS_CLN),Pe=(0,e.PH)(t.AB.SET_OFFERS_CLN,(0,e.Ky)()),q=(0,e.PH)(t.AB.SAVE_NEW_OFFER_CLN,(0,e.Ky)()),$=(0,e.PH)(t.AB.ADD_OFFER_CLN,(0,e.Ky)()),oe=(0,e.PH)(t.AB.DISABLE_OFFER_CLN,(0,e.Ky)()),Ce=(0,e.PH)(t.AB.UPDATE_OFFER_CLN,(0,e.Ky)()),Ue=(0,e.PH)(t.AB.FETCH_OFFER_BOOKMARKS_CLN),lt=(0,e.PH)(t.AB.SET_OFFER_BOOKMARKS_CLN,(0,e.Ky)()),nt=(0,e.PH)(t.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),ft=(0,e.PH)(t.AB.DELETE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),it=(0,e.PH)(t.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,e.Ky)())},4947:(Ge,Q,m)=>{"use strict";m.d(Q,{J:()=>ye});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),R=m(1365),s=m(2340),L=m(1786),I=m(5566),A=m(7731),E=m(7861),P=m(429),w=m(9828),V=m(1462),j=m(5e3),W=m(8138),te=m(5620),ee=m(5986),ge=m(62),le=m(5043),re=m(1402),de=m(7998),se=m(9808);let ye=(()=>{class v{constructor(a,p,u,_,D,O,x,r,b){this.actions=a,this.httpClient=p,this.store=u,this.sessionService=_,this.commonService=D,this.logger=O,this.router=x,this.wsService=r,this.location=b,this.CHILD_API_URL=s.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INFO_CLN),(0,C.z)(Z=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,P.Ni)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+s.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,M.U)(N=>(this.logger.info(N),N.chains&&N.chains.length&&N.chains[0]&&"object"==typeof N.chains[0]&&N.chains[0].hasOwnProperty("chain")&&N.chains[0].chain.toLowerCase().indexOf("bitcoin")<0?(this.store.dispatch((0,P.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,E.ts)()),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:A.pg.LOGOUT}):(this.initializeRemainingData(N,Z.payload.loadPage),this.store.dispatch((0,P.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_INFO})),{type:A.AB.SET_INFO_CLN,payload:N||{}}))),(0,l.K)(N=>{const U=this.commonService.extractErrorCode(N),ve="ETIMEDOUT"===U?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(N);return this.router.navigate(["/error"],{state:{errorCode:U,errorMessage:ve}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:U,error:ve}),(0,y.of)({type:A.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEES_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.FEES_API))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEES_CLN,payload:Z||{}})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEE_RATES_CLN),(0,C.z)(Z=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchFeeRates"+Z.payload,status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/feeRates/"+Z.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"FetchFeeRates"+Z.payload,status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEE_RATES_CLN,payload:N||{}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchFeeRates"+Z.payload,A.m6.NO_SPINNER,"Fetching Fee Rates Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.BALANCE_API))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_BALANCE_CLN,payload:Z||{}})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:Z||{}})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_NEW_ADDRESS_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+s.NZ.ON_CHAIN_API+"?type="+Z.payload.addressCode).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.AB.SET_NEW_ADDRESS_CLN,payload:N&&N.address?N.address:{}})),(0,l.K)(N=>(this.handleErrorWithAlert("GenerateNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+s.NZ.ON_CHAIN_API+"?type="+Z.payload.addressId,N),(0,y.of)({type:A.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_NEW_ADDRESS_CLN),(0,M.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PEERS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PEERS_API).pipe((0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PEERS_CLN,payload:Z||[]})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",Z),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_PEER_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PEERS_API,{id:Z.payload.id}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.Z8)({payload:N||[]})),{type:A.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:N.find(U=>0===Z.payload.id.indexOf(U.id))}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DETACH_PEER_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.PEERS_API+"/"+Z.payload.id+"?force="+Z.payload.force).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully!"})),{type:A.AB.REMOVE_PEER_CLN,payload:{id:Z.payload.id}})),(0,l.K)(N=>(this.handleErrorWithAlert("PeerDisconnect",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+s.NZ.PEERS_API+"/"+Z.payload.id,N),(0,y.of)({type:A.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_CHANNELS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listChannels"))),(0,M.U)(Z=>{this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.u0)({payload:{status:A.OO.SETTLED,maxLen:10,offset:0}}));const N={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return Z.forEach(U=>{"CHANNELD_NORMAL"===U.state?U.connected?N.activeChannels.push(U):N.inactiveChannels.push(U):N.pendingChannels.push(U)}),{type:A.AB.SET_CHANNELS_CLN,payload:N}}),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_CHANNEL_CLN),(0,C.z)(Z=>{this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}}));const N={id:Z.payload.peerId,satoshis:Z.payload.satoshis,feeRate:Z.payload.feeRate,announce:Z.payload.announce};return Z.payload.minconf&&(N.minconf=Z.payload.minconf),Z.payload.utxos&&(N.utxos=Z.payload.utxos),Z.payload.requestAmount&&(N.request_amt=Z.payload.requestAmount),Z.payload.compactLease&&(N.compact_lease=Z.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API,N).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.Ly)()),{type:A.AB.FETCH_CHANNELS_CLN})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,y.of)({type:A.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.UPDATE_CHANNEL_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/setChannelFee",{id:Z.payload.channelId,base:Z.payload.baseFeeMsat,ppm:Z.payload.feeRate}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===Z.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:A.AB.FETCH_CHANNELS_CLN})),(0,l.K)(N=>(this.handleErrorWithAlert("UpdateChannel",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API,N),(0,y.of)({type:A.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CLOSE_CHANNEL_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:Z.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+Z.payload.channelId+(Z.payload.force?"?force="+Z.payload.force:"")).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:Z.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.g3)()),this.store.dispatch((0,E.jW)({payload:"Channel Closed Successfully!"})),{type:A.AB.REMOVE_CHANNEL_CLN,payload:Z.payload})),(0,l.K)(U=>(this.handleErrorWithAlert("CloseChannel",Z.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_API,U),(0,y.of)({type:A.pg.VOID})))))))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PAYMENTS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PAYMENTS_CLN,payload:Z||[]})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_INVOICE_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.OFFERS_API+"/fetchOfferInvoice",Z.payload).pipe((0,M.U)(N=>{this.logger.info(N),setTimeout(()=>{this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,P.VD)({payload:N||{}}))},500)}),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchOfferInvoice",A.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",N),(0,y.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_OFFER_INVOICE_CLN),(0,M.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SEND_PAYMENT_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:Z.payload.uiMessage})),this.store.dispatch((0,P.Ni)({payload:{action:"SendPayment",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PAYMENTS_API,Z.payload).pipe((0,M.U)(N=>{this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}}));let U="Payment Sent Successfully!";N.saveToDBError&&(U="Payment Sent Successfully but Offer Saving to Database Failed."),N.saveToDBResponse&&"NA"!==N.saveToDBResponse&&(this.store.dispatch((0,P.e9)({payload:N.saveToDBResponse})),U="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.cQ)()),this.store.dispatch((0,E.uO)({payload:Z.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:U})),this.store.dispatch((0,P.TM)({payload:N.paymentResponse}))},1e3)}),(0,l.K)(N=>(this.logger.error("Error: "+JSON.stringify(N)),Z.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",Z.payload.uiMessage,"Send Payment Failed.",N):this.handleErrorWithAlert("SendPayment",Z.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.PAYMENTS_API,N),(0,y.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_QUERY_ROUTES_CLN),(0,C.z)(Z=>(this.store.dispatch((0,P.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/getRoute/"+Z.payload.destPubkey+"/"+Z.payload.amount).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.COMPLETED}})),{type:A.AB.SET_QUERY_ROUTES_CLN,payload:N})),(0,l.K)(N=>(this.store.dispatch((0,P.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/getRoute/"+Z.payload.destPubkey+"/"+Z.payload.amount,N),(0,y.of)({type:A.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_QUERY_ROUTES_CLN),(0,M.U)(Z=>Z.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.PEER_LOOKUP_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/listNode/"+Z.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),{type:A.AB.SET_LOOKUP_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/listNode/"+Z.payload,N),(0,y.of)({type:A.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CHANNEL_LOOKUP_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:Z.payload.uiMessage})),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/listChannel/"+Z.payload.shortChannelID).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:Z.payload.uiMessage})),{type:A.AB.SET_LOOKUP_CLN,payload:N})),(0,l.K)(N=>(Z.payload.showError?this.handleErrorWithAlert("Lookup",Z.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/listChannel/"+Z.payload.shortChannelID,N):this.store.dispatch((0,E.uO)({payload:Z.payload.uiMessage})),this.store.dispatch((0,P.v_)({payload:[]})),(0,y.of)({type:A.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.INVOICE_LOOKUP_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.INVOICES_API+"?label="+Z.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),N.invoices&&N.invoices.length&&N.invoices.length>0&&this.store.dispatch((0,P.aL)({payload:N.invoices[0]})),{type:A.AB.SET_LOOKUP_CLN,payload:N.invoices&&N.invoices.length&&N.invoices.length>0?N.invoices[0]:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",N),this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:A.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_LOOKUP_CLN),(0,M.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_FORWARDING_HISTORY_CLN),(0,R.M)(this.store.select(w.ey)),(0,C.z)(([Z,N])=>{const U=Z.payload.status?Z.payload.status:"settled",ve=Z.payload.maxLen?Z.payload.maxLen:10,be=Z.payload.offset?Z.payload.offset:0,Re=U.charAt(0).toUpperCase();this.store.dispatch((0,P.Ni)({payload:{action:"FetchForwardingHistory"+Re,status:A.Bn.INITIATED}}));const ze=!!N.api_version&&this.commonService.isVersionCompatible(N.api_version,"0.7.3");let Oe="";return Oe=ze?this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwardsPaginated?status="+U+"&maxLen="+ve+"&offset="+be+"&sortBy=received_time&sortOrder=DESC":this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwards?status="+U,this.httpClient.get(Oe).pipe((0,M.U)(K=>{if(this.logger.info(K),this.store.dispatch((0,P.Ni)({payload:{action:"FetchForwardingHistory"+Re,status:A.Bn.COMPLETED}})),ze)return{type:A.AB.SET_FORWARDING_HISTORY_CLN,payload:K};{const Me=[],we=[],z=[];return K.forEach(Ze=>{Ze.status===A.OO.SETTLED?z.push(Ze):Ze.status===A.OO.FAILED?we.push(Ze):Ze.status===A.OO.LOCAL_FAILED&&Me.push(Ze)}),Z.payload.status===A.OO.FAILED?this.store.dispatch((0,P.QJ)({payload:{status:A.OO.FAILED,offset:be,maxLen:ve,totalForwards:we.length,listForwards:we}})):Z.payload.status===A.OO.LOCAL_FAILED?this.store.dispatch((0,P.QJ)({payload:{status:A.OO.LOCAL_FAILED,offset:be,maxLen:ve,totalForwards:Me.length,listForwards:Me}})):Z.payload.status===A.OO.SETTLED&&this.store.dispatch((0,P.QJ)({payload:{status:A.OO.SETTLED,offset:be,maxLen:ve,totalForwards:z.length,listForwards:z}})),{type:A.pg.VOID}}}),(0,l.K)(K=>(this.handleErrorWithAlert("FetchForwardingHistory"+Re,A.m6.NO_SPINNER,"Get "+U+" Forwarding History Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwardsPaginated?status="+U,K),(0,y.of)({type:A.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_EXPIRED_INVOICE_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.INVOICES_API+(Z.payload?"?maxexpiry="+Z.payload:"")).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.DELETE_INVOICE})),this.store.dispatch((0,E.jW)({payload:"Invoices Deleted Successfully!"})),{type:A.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,l.K)(U=>(this.handleErrorWithAlert("DeleteInvoices",A.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+s.NZ.INVOICES_API,U),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_INVOICE_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.ADD_INVOICE})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.INVOICES_API,{label:Z.payload.label,amount:Z.payload.amount,description:Z.payload.description,expiry:Z.payload.expiry,private:Z.payload.private}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.ADD_INVOICE})),N.msatoshi=Z.payload.amount,N.label=Z.payload.label,N.expires_at=Math.round((new Date).getTime()/1e3+Z.payload.expiry),N.description=Z.payload.description,N.status="unpaid",setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:N,newlyAdded:!0,component:I.y}}}))},100),{type:A.AB.ADD_INVOICE_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SaveNewInvoice",A.m6.ADD_INVOICE,"Add Invoice Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_OFFER_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.CREATE_OFFER})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.OFFERS_API,{amount:Z.payload.amount,description:Z.payload.description,vendor:Z.payload.vendor}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{offer:N,newlyAdded:!0,component:V.k}}}))},100),{type:A.AB.ADD_OFFER_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SaveNewOffer",A.m6.CREATE_OFFER,"Create Offer Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INVOICES_CLN),(0,C.z)(Z=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.INVOICES_API+"?num_max_invoices="+(Z.payload.num_max_invoices?Z.payload.num_max_invoices:1e6)+"&index_offset="+(Z.payload.index_offset?Z.payload.index_offset:0)+"&reversed="+(!Z.payload.reversed||Z.payload.reversed)).pipe((0,M.U)(be=>(this.logger.info(be),this.store.dispatch((0,P.Ni)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),{type:A.AB.SET_INVOICES_CLN,payload:be})),(0,l.K)(be=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",be),(0,y.of)({type:A.pg.VOID})))))))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFERS_CLN),(0,C.z)(Z=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchOffers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.OFFERS_API).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"FetchOffers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFERS_CLN,payload:N.offers?N.offers:[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchOffers",A.m6.NO_SPINNER,"Fetching Offers Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DISABLE_OFFER_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,P.Ni)({payload:{action:"DisableOffer",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.OFFERS_API+"/"+Z.payload.offer_id).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"DisableOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,E.jW)({payload:"Offer Disabled Successfully!"})),{type:A.AB.UPDATE_OFFER_CLN,payload:{offer:N}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("DisableOffer",A.m6.DISABLE_OFFER,"Disabling Offer Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,C.z)(Z=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.OFFERS_API+"/offerbookmarks").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFER_BOOKMARKS_CLN,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",A.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_OFFER_BOOKMARK_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,P.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.OFFERS_API+"/offerbookmark/"+Z.payload.bolt12).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,E.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:A.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:Z.payload.bolt12}})),(0,l.K)(N=>(this.handleErrorWithAlert("DeleteOfferBookmark",A.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+s.NZ.OFFERS_API+"/offerbookmark/"+Z.payload.bolt12,N),(0,y.of)({type:A.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_CHANNEL_TRANSACTION_CLN),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.ON_CHAIN_API,Z.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.Ly)()),{type:A.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_UTXOS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.ON_CHAIN_API+"/utxos"))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.AB.SET_UTXOS_CLN,payload:Z.outputs||[]})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",Z),(0,y.of)({type:A.pg.VOID}))))),this.store.select(w.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(Z=>{Z.FetchInfo.status!==A.Bn.COMPLETED&&Z.FetchInfo.status!==A.Bn.ERROR||Z.FetchFees.status!==A.Bn.COMPLETED&&Z.FetchFees.status!==A.Bn.ERROR||Z.FetchChannels.status!==A.Bn.COMPLETED&&Z.FetchChannels.status!==A.Bn.ERROR||Z.FetchBalance.status!==A.Bn.COMPLETED&&Z.FetchBalance.status!==A.Bn.ERROR||Z.FetchLocalRemoteBalance.status!==A.Bn.COMPLETED&&Z.FetchLocalRemoteBalance.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(Z=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(Z)),Z)switch(Z.event){case A.nM.INVOICE:this.logger.info(Z),Z&&Z.data&&Z.data.label&&this.store.dispatch((0,P.aL)({payload:Z.data}));break;case A.nM.SEND_PAYMENT:case A.nM.BLOCK_HEIGHT:this.logger.info(Z);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(Z))}})}initializeRemainingData(a,p){this.sessionService.setItem("clUnlocked","true");const u={identity_pubkey:a.id,alias:a.alias,testnet:"testnet"===a.network.toLowerCase(),chains:a.chains,uris:a.uris,version:a.version,api_version:a.api_version,numberOfPendingChannels:a.num_pending_channels};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:u}));let _=this.location.path();_.includes("/lnd/")?_=_.replace("/lnd/","/cln/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/cln/")),(_.includes("/login")||_.includes("/error")||""===_||"HOME"===p||_.includes("?access-key="))&&(_="/cln/home"),this.router.navigate([_]),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,P.SN)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.g3)()),this.store.dispatch((0,P.HJ)({payload:"perkw"})),this.store.dispatch((0,P.HJ)({payload:"perkb"})),this.store.dispatch((0,P.$W)()),this.store.dispatch((0,P.Ly)()),this.store.dispatch((0,P.cQ)())}handleErrorWithoutAlert(a,p,u,_){if(this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const D=this.commonService.extractErrorMessage(_,u);this.store.dispatch((0,P.Ni)({payload:{action:a,status:A.Bn.ERROR,statusCode:_.status.toString(),message:D}}))}}handleErrorWithAlert(a,p,u,_,D){if(this.logger.error(D),401===D.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const O=this.commonService.extractErrorMessage(D);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:D.status,message:O,URL:_},component:L.H}}})),this.store.dispatch((0,P.Ni)({payload:{action:a,status:A.Bn.ERROR,statusCode:D.status.toString(),message:O,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return v.\u0275fac=function(a){return new(a||v)(j.LFG(e.eX),j.LFG(W.eN),j.LFG(te.yh),j.LFG(ee.m),j.LFG(ge.v),j.LFG(le.mQ),j.LFG(re.F0),j.LFG(de.d),j.LFG(se.Ye))},v.\u0275prov=j.Yz7({token:v,factory:v.\u0275fac}),v})()},9828:(Ge,Q,m)=>{"use strict";m.d(Q,{lw:()=>y,ey:()=>C,yA:()=>M,PP:()=>l,Wi:()=>R,JG:()=>s,zm:()=>L,hx:()=>I,gc:()=>A,T4:()=>E,ZW:()=>P,Rn:()=>w,Wj:()=>V,Bo:()=>j,xQ:()=>W,lK:()=>te,OL:()=>ee,jK:()=>ge,Ao:()=>le,Hz:()=>re,Y_:()=>de,EQ:()=>se});var e=m(5620);const t=(0,e.ZF)("cln"),y=(0,e.P1)(t,v=>v.nodeSettings),C=(0,e.P1)(t,v=>v.information),M=((0,e.P1)(t,v=>v.apisCallStatus.FetchInfo),(0,e.P1)(t,v=>v.apisCallStatus)),l=(0,e.P1)(t,v=>({payments:v.payments,apiCallStatus:v.apisCallStatus.FetchPayments})),R=(0,e.P1)(t,v=>({peers:v.peers,apiCallStatus:v.apisCallStatus.FetchPeers})),s=(0,e.P1)(t,v=>({fees:v.fees,apiCallStatus:v.apisCallStatus.FetchFees})),L=(0,e.P1)(t,v=>({feeRatesPerKB:v.feeRatesPerKB,apiCallStatus:v.apisCallStatus.FetchFeeRatesperkb})),I=(0,e.P1)(t,v=>({feeRatesPerKW:v.feeRatesPerKW,apiCallStatus:v.apisCallStatus.FetchFeeRatesperkw})),A=(0,e.P1)(t,v=>({listInvoices:v.invoices,apiCallStatus:v.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,v=>({utxos:v.utxos,apiCallStatus:v.apisCallStatus.FetchUTXOs})),P=(0,e.P1)(t,v=>({activeChannels:v.activeChannels,pendingChannels:v.pendingChannels,inactiveChannels:v.inactiveChannels,apiCallStatus:v.apisCallStatus.FetchChannels})),w=(0,e.P1)(t,v=>({balance:v.balance,apiCallStatus:v.apisCallStatus.FetchBalance})),V=(0,e.P1)(t,v=>({localRemoteBalance:v.localRemoteBalance,apiCallStatus:v.apisCallStatus.FetchLocalRemoteBalance})),j=(0,e.P1)(t,v=>({forwardingHistory:v.forwardingHistory,apiCallStatus:v.apisCallStatus.FetchForwardingHistoryS})),W=(0,e.P1)(t,v=>({failedForwardingHistory:v.failedForwardingHistory,apiCallStatus:v.apisCallStatus.FetchForwardingHistoryF})),te=(0,e.P1)(t,v=>({localFailedForwardingHistory:v.localFailedForwardingHistory,apiCallStatus:v.apisCallStatus.FetchForwardingHistoryL})),ee=(0,e.P1)(t,v=>({information:v.information,nodeSettings:v.nodeSettings,balance:v.balance})),ge=(0,e.P1)(t,v=>({information:v.information,balance:v.balance,numPeers:v.peers.length})),le=(0,e.P1)(t,v=>({information:v.information,balance:v.balance})),re=(0,e.P1)(t,v=>({information:v.information,nodeSettings:v.nodeSettings,apisCallStatus:[v.apisCallStatus.FetchInfo,v.apisCallStatus.FetchForwardingHistoryS]})),de=(0,e.P1)(t,v=>({offers:v.offers,apiCallStatus:v.apisCallStatus.FetchOffers})),se=(0,e.P1)(t,v=>({offersBookmarks:v.offersBookmarks,apiCallStatus:v.apisCallStatus.FetchOfferBookmarks}))},5566:(Ge,Q,m)=>{"use strict";m.d(Q,{y:()=>vt});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(9828),l=m(5e3),R=m(5043),s=m(62),L=m(7261),I=m(5620),A=m(7093),E=m(9808),P=m(3322),w=m(9224),V=m(9444),j=m(7423),W=m(4834),te=m(159),ee=m(7238),ge=m(773),le=m(3390),re=m(6895);function de(Fe,Ne){if(1&Fe&&l._UZ(0,"qr-code",33),2&Fe){const ce=l.oxw();l.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function se(Fe,Ne){1&Fe&&(l.TgZ(0,"span",34),l._uU(1,"N/A"),l.qZA())}const ye=function(Fe){return{"mr-0":Fe}};function v(Fe,Ne){if(1&Fe&&l._UZ(0,"span",35),2&Fe){const ce=l.oxw();l.Q6J("ngClass",l.VKq(1,ye,ce.screenSize===ce.screenSizeEnum.XS))}}function i(Fe,Ne){if(1&Fe&&l._UZ(0,"span",36),2&Fe){const ce=l.oxw();l.Q6J("ngClass",l.VKq(1,ye,ce.screenSize===ce.screenSizeEnum.XS))}}function a(Fe,Ne){if(1&Fe&&l._UZ(0,"span",37),2&Fe){const ce=l.oxw();l.Q6J("ngClass",l.VKq(1,ye,ce.screenSize===ce.screenSizeEnum.XS))}}function p(Fe,Ne){if(1&Fe&&l._UZ(0,"qr-code",33),2&Fe){const ce=l.oxw();l.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function u(Fe,Ne){1&Fe&&(l.TgZ(0,"span",38),l._uU(1,"QR Code Not Applicable"),l.qZA())}function _(Fe,Ne){1&Fe&&l._UZ(0,"mat-divider",39),2&Fe&&l.Q6J("inset",!0)}function D(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div",19),l.TgZ(1,"div",40),l._UZ(2,"fa-icon",41),l.TgZ(3,"span"),l._uU(4),l.qZA(),l.qZA(),l.qZA()),2&Fe){const ce=l.oxw();l.xp6(2),l.Q6J("icon",ce.faExclamationTriangle),l.xp6(2),l.Oqu(null==ce.invoice?null:ce.invoice.warning_capacity)}}function O(Fe,Ne){1&Fe&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function x(Fe,Ne){1&Fe&&l._UZ(0,"span",47)}const r=function(){return[]};function b(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div",43),l.TgZ(1,"div",44),l.TgZ(2,"span",45),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,x,1,0,"span",46),l.qZA(),l.qZA()),2&Fe){const ce=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,r).constructor(35))}}function Z(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&Fe){const ce=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats")}}function N(Fe,Ne){if(1&Fe&&(l.ynx(0),l.YNc(1,b,6,5,"div",42),l.YNc(2,Z,3,3,"div",23),l.BQk()),2&Fe){const ce=l.oxw();l.xp6(1),l.Q6J("ngIf",ce.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!ce.flgInvoicePaid)}}function U(Fe,Ne){1&Fe&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function ve(Fe,Ne){1&Fe&&l._UZ(0,"mat-spinner",49),2&Fe&&l.Q6J("diameter",20)}function be(Fe,Ne){if(1&Fe&&(l.ynx(0),l.YNc(1,U,2,0,"span",23),l.YNc(2,ve,1,1,"mat-spinner",48),l.BQk()),2&Fe){const ce=l.oxw();l.xp6(1),l.Q6J("ngIf","unpaid"!==(null==ce.invoice?null:ce.invoice.status)||!ce.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==ce.invoice?null:ce.invoice.status)&&ce.flgVersionCompatible)}}function Re(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",25),l.TgZ(2,"div",19),l.TgZ(3,"div",26),l.TgZ(4,"h4",21),l._uU(5,"Payment Hash"),l.qZA(),l.TgZ(6,"span",24),l._uU(7),l.qZA(),l.qZA(),l.qZA(),l._UZ(8,"mat-divider",25),l.TgZ(9,"div",19),l.TgZ(10,"div",26),l.TgZ(11,"h4",21),l._uU(12,"Label"),l.qZA(),l.TgZ(13,"span",24),l._uU(14),l.qZA(),l.qZA(),l.qZA(),l._UZ(15,"mat-divider",25),l.qZA()),2&Fe){const ce=l.oxw();l.xp6(7),l.Oqu(null==ce.invoice?null:ce.invoice.payment_hash),l.xp6(7),l.Oqu(null==ce.invoice?null:ce.invoice.label)}}function ze(Fe,Ne){1&Fe&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function Oe(Fe,Ne){1&Fe&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function K(Fe,Ne){if(1&Fe){const ce=l.EpF();l.TgZ(0,"button",50),l.NdJ("copied",function(Pe){return l.CHM(ce),l.oxw().onCopyPayment(Pe)}),l._uU(1,"Copy Invoice"),l.qZA()}if(2&Fe){const ce=l.oxw();l.Q6J("payload",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))}}function Me(Fe,Ne){if(1&Fe){const ce=l.EpF();l.TgZ(0,"button",51),l.NdJ("click",function(){return l.CHM(ce),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const we=function(Fe){return{"display-none":Fe}},z=function(Fe){return{"xs-scroll-y":Fe}},Ze=function(Fe,Ne){return{"mt-2":Fe,"mt-1":Ne}};let vt=(()=>{class Fe{constructor(ce,Le,Pe,q,$,oe){this.dialogRef=ce,this.data=Le,this.logger=Pe,this.commonService=q,this.snackBar=$,this.store=oe,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(ce=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ce.api_version,"0.6.0")}),this.store.select(M.gc).pipe((0,C.R)(this.unSubs[1])).subscribe(ce=>{const Le=this.invoice.status;this.invoice=(ce.listInvoices.invoices||[]).find(q=>q.payment_hash===this.invoice.payment_hash),Le!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ce)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ce){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ce)}ngOnDestroy(){this.unSubs.forEach(ce=>{ce.next(null),ce.complete()})}}return Fe.\u0275fac=function(ce){return new(ce||Fe)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(I.yh))},Fe.\u0275cmp=l.Xpm({type:Fe,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ce,Le){if(1&ce&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,de,1,3,"qr-code",2),l.YNc(3,se,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.YNc(10,v,1,3,"span",9),l.YNc(11,i,1,3,"span",10),l.YNc(12,a,1,3,"span",11),l.qZA(),l.qZA(),l.TgZ(13,"button",12),l.NdJ("click",function(){return Le.onClose()}),l._uU(14,"X"),l.qZA(),l.qZA(),l.TgZ(15,"mat-card-content",13),l.TgZ(16,"div",14),l.TgZ(17,"div",15),l.YNc(18,p,1,3,"qr-code",2),l.YNc(19,u,2,0,"span",16),l.qZA(),l.YNc(20,_,1,1,"mat-divider",17),l.YNc(21,D,5,2,"div",18),l.TgZ(22,"div",19),l.TgZ(23,"div",20),l.TgZ(24,"h4",21),l._uU(25),l.qZA(),l.TgZ(26,"span",22),l._uU(27),l.ALo(28,"number"),l.YNc(29,O,2,0,"ng-container",23),l.qZA(),l.qZA(),l.TgZ(30,"div",20),l.TgZ(31,"h4",21),l._uU(32,"Amount Received"),l.qZA(),l.TgZ(33,"span",24),l.YNc(34,N,3,2,"ng-container",23),l.YNc(35,be,3,2,"ng-container",23),l.qZA(),l.qZA(),l.qZA(),l._UZ(36,"mat-divider",25),l.TgZ(37,"div",19),l.TgZ(38,"div",20),l.TgZ(39,"h4",21),l._uU(40,"Date Expiry"),l.qZA(),l.TgZ(41,"span",22),l._uU(42),l.ALo(43,"date"),l.qZA(),l.qZA(),l.TgZ(44,"div",20),l.TgZ(45,"h4",21),l._uU(46,"Date Settled"),l.qZA(),l.TgZ(47,"span",22),l._uU(48),l.ALo(49,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(50,"mat-divider",25),l.TgZ(51,"div",19),l.TgZ(52,"div",26),l.TgZ(53,"h4",21),l._uU(54,"Description"),l.qZA(),l.TgZ(55,"span",22),l._uU(56),l.qZA(),l.qZA(),l.qZA(),l._UZ(57,"mat-divider",25),l.TgZ(58,"div",19),l.TgZ(59,"div",26),l.TgZ(60,"h4",21),l._uU(61),l.qZA(),l.TgZ(62,"span",24),l._uU(63),l.qZA(),l.qZA(),l.qZA(),l.YNc(64,Re,16,2,"div",23),l.TgZ(65,"div",27),l.TgZ(66,"button",28),l.NdJ("click",function(){return Le.onShowAdvanced()}),l.YNc(67,ze,2,0,"p",29),l.YNc(68,Oe,2,0,"ng-template",null,30,l.W1O),l.qZA(),l.YNc(70,K,2,1,"button",31),l.YNc(71,Me,2,0,"button",32),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&ce){const Pe=l.MAs(69);l.xp6(1),l.Q6J("fxLayoutAlign",null!=Le.invoice&&Le.invoice.bolt11&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||null!=Le.invoice&&Le.invoice.bolt12&&""!==(null==Le.invoice?null:Le.invoice.bolt12)?"center start":"center center")("ngClass",l.VKq(40,we,Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12)),l.xp6(4),l.Q6J("icon",Le.faReceipt),l.xp6(2),l.hij(" ",Le.screenSize===Le.screenSizeEnum.XS?Le.newlyAdded?"Created":"Invoice":Le.newlyAdded?"Invoice Created":"Invoice Information"," "),l.xp6(1),l.Q6J("ngIf","paid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","expired"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(3),l.Q6J("ngClass",l.VKq(42,z,Le.screenSize===Le.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=Le.invoice&&Le.invoice.bolt11&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||null!=Le.invoice&&Le.invoice.bolt12&&""!==(null==Le.invoice?null:Le.invoice.bolt12)?"center start":"center center")("ngClass",l.VKq(44,we,Le.screenSize!==Le.screenSizeEnum.XS&&Le.screenSize!==Le.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM),l.xp6(1),l.Q6J("ngIf",null==Le.invoice?null:Le.invoice.warning_capacity),l.xp6(4),l.Oqu(Le.screenSize===Le.screenSizeEnum.XS?"Amount":"Amount Requested"),l.xp6(2),l.hij(" ",l.lcZ(28,32,(null==Le.invoice?null:Le.invoice.msatoshi)/1e3||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.msatoshi)||"0"===(null==Le.invoice?null:Le.invoice.msatoshi)),l.xp6(5),l.Q6J("ngIf","paid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","paid"!==(null==Le.invoice?null:Le.invoice.status)),l.xp6(7),l.Oqu(l.xi3(43,34,1e3*(null==Le.invoice?null:Le.invoice.expires_at),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.xi3(49,37,1e3*(null==Le.invoice?null:Le.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),l.xp6(8),l.Oqu((null==Le.invoice?null:Le.invoice.description)||"-"),l.xp6(5),l.hij("",null!=Le.invoice&&Le.invoice.bolt12?"Bolt12":null!=Le.invoice&&Le.invoice.bolt11&&!Le.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),l.xp6(2),l.Oqu((null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",Le.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(46,Ze,!Le.showAdvanced,Le.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!Le.showAdvanced)("ngIfElse",Pe),l.xp6(3),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12))}},directives:[A.xw,A.Wh,A.yH,E.mk,P.oO,E.O5,w.dk,V.BN,j.lW,w.dn,W.d,te.uU,ee.gM,E.sg,ge.$g,le.h,re.y],pipes:[E.JJ,E.uU],styles:[""]}),Fe})()},1462:(Ge,Q,m)=>{"use strict";m.d(Q,{k:()=>U});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(9828),l=m(5e3),R=m(5043),s=m(62),L=m(7261),I=m(5620),A=m(8104),E=m(7093),P=m(9808),w=m(3322),V=m(9224),j=m(9444),W=m(7423),te=m(4834),ee=m(159),ge=m(3390),le=m(6895);function re(ve,be){if(1&ve&&l._UZ(0,"qr-code",28),2&ve){const Re=l.oxw();l.Q6J("value",null==Re.offer?null:Re.offer.bolt12)("size",Re.qrWidth)("errorCorrectionLevel","L")}}function de(ve,be){1&ve&&(l.TgZ(0,"span",29),l._uU(1,"N/A"),l.qZA())}function se(ve,be){if(1&ve&&l._UZ(0,"qr-code",28),2&ve){const Re=l.oxw();l.Q6J("value",null==Re.offer?null:Re.offer.bolt12)("size",Re.qrWidth)("errorCorrectionLevel","L")}}function ye(ve,be){1&ve&&(l.TgZ(0,"span",30),l._uU(1,"QR Code Not Applicable"),l.qZA())}function v(ve,be){1&ve&&l._UZ(0,"mat-divider",31),2&ve&&l.Q6J("inset",!0)}function i(ve,be){1&ve&&l._UZ(0,"mat-divider",19)}function a(ve,be){if(1&ve&&(l.TgZ(0,"div",15),l.TgZ(1,"div",16),l.TgZ(2,"h4",17),l._uU(3,"Used"),l.qZA(),l.TgZ(4,"span",18),l._uU(5),l.qZA(),l.qZA(),l.TgZ(6,"div",16),l.TgZ(7,"h4",17),l._uU(8,"Single Use"),l.qZA(),l.TgZ(9,"span",18),l._uU(10),l.qZA(),l.qZA(),l.qZA()),2&ve){const Re=l.oxw(2);l.xp6(5),l.hij(" ",null!=Re.offer&&Re.offer.used?null!=Re.offer&&Re.offer.used?"Yes":"No":"N/K"," "),l.xp6(5),l.hij(" ",null!=Re.offer&&Re.offer.single_use?null!=Re.offer&&Re.offer.single_use?"Yes":"No":"N/K"," ")}}function p(ve,be){1&ve&&l._UZ(0,"mat-divider",19)}function u(ve,be){if(1&ve&&(l.TgZ(0,"div",15),l.TgZ(1,"div",20),l.TgZ(2,"h4",17),l._uU(3,"Vendor"),l.qZA(),l.TgZ(4,"span",34),l._uU(5),l.qZA(),l.qZA(),l.qZA()),2&ve){const Re=l.oxw(2);l.xp6(5),l.Oqu((null==Re.offerDecoded?null:Re.offerDecoded.vendor)||(null==Re.offerDecoded?null:Re.offerDecoded.issuer))}}function _(ve,be){if(1&ve&&(l.TgZ(0,"div"),l.YNc(1,i,1,0,"mat-divider",32),l.YNc(2,a,11,2,"div",33),l.YNc(3,p,1,0,"mat-divider",32),l.YNc(4,u,6,1,"div",33),l._UZ(5,"mat-divider",19),l.TgZ(6,"div",15),l.TgZ(7,"div",20),l.TgZ(8,"h4",17),l._uU(9,"Offer ID"),l.qZA(),l.TgZ(10,"span",18),l._uU(11),l.qZA(),l.qZA(),l.qZA(),l._UZ(12,"mat-divider",19),l.qZA()),2&ve){const Re=l.oxw();l.xp6(1),l.Q6J("ngIf",(null==Re.offer?null:Re.offer.used)||(null==Re.offer?null:Re.offer.single_use)),l.xp6(1),l.Q6J("ngIf",(null==Re.offer?null:Re.offer.used)||(null==Re.offer?null:Re.offer.single_use)),l.xp6(1),l.Q6J("ngIf",(null==Re.offerDecoded?null:Re.offerDecoded.vendor)||(null==Re.offerDecoded?null:Re.offerDecoded.issuer)),l.xp6(1),l.Q6J("ngIf",(null==Re.offerDecoded?null:Re.offerDecoded.vendor)||(null==Re.offerDecoded?null:Re.offerDecoded.issuer)),l.xp6(7),l.Oqu(Re.offerDecoded.offer_id)}}function D(ve,be){1&ve&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function O(ve,be){1&ve&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function x(ve,be){if(1&ve){const Re=l.EpF();l.TgZ(0,"button",35),l.NdJ("copied",function(Oe){return l.CHM(Re),l.oxw().onCopyOffer(Oe)}),l._uU(1,"Copy Offer"),l.qZA()}if(2&ve){const Re=l.oxw();l.Q6J("payload",null==Re.offer?null:Re.offer.bolt12)}}function r(ve,be){if(1&ve){const Re=l.EpF();l.TgZ(0,"button",36),l.NdJ("click",function(){return l.CHM(Re),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const b=function(ve){return{"display-none":ve}},Z=function(ve){return{"xs-scroll-y":ve}},N=function(ve,be){return{"mt-2":ve,"mt-1":be}};let U=(()=>{class ve{constructor(Re,ze,Oe,K,Me,we,z){this.dialogRef=Re,this.data=ze,this.logger=Oe,this.commonService=K,this.snackBar=Me,this.store=we,this.dataService=z,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(Re=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Re.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,C.R)(this.unSubs[1])).subscribe(Re=>{this.offerDecoded=Re,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(Re){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+Re)}ngOnDestroy(){this.unSubs.forEach(Re=>{Re.next(null),Re.complete()})}}return ve.\u0275fac=function(Re){return new(Re||ve)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(I.yh),l.Y36(A.D))},ve.\u0275cmp=l.Xpm({type:ve,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(Re,ze){if(1&Re&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,re,1,3,"qr-code",2),l.YNc(3,de,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return ze.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,se,1,3,"qr-code",2),l.YNc(16,ye,2,0,"span",13),l.qZA(),l.YNc(17,v,1,1,"mat-divider",14),l.TgZ(18,"div",15),l.TgZ(19,"div",16),l.TgZ(20,"h4",17),l._uU(21,"Amount Requested (Sats)"),l.qZA(),l.TgZ(22,"span",18),l._uU(23),l.ALo(24,"number"),l.qZA(),l.qZA(),l.TgZ(25,"div",16),l.TgZ(26,"h4",17),l._uU(27,"Active"),l.qZA(),l.TgZ(28,"span",18),l._uU(29),l.qZA(),l.qZA(),l.qZA(),l._UZ(30,"mat-divider",19),l.TgZ(31,"div",15),l.TgZ(32,"div",20),l.TgZ(33,"h4",17),l._uU(34,"Description"),l.qZA(),l.TgZ(35,"span",18),l._uU(36),l.qZA(),l.qZA(),l.qZA(),l._UZ(37,"mat-divider",19),l.TgZ(38,"div",15),l.TgZ(39,"div",20),l.TgZ(40,"h4",17),l._uU(41,"Offer Request"),l.qZA(),l.TgZ(42,"span",18),l._uU(43),l.qZA(),l.qZA(),l.qZA(),l.YNc(44,_,13,5,"div",21),l.TgZ(45,"div",22),l.TgZ(46,"button",23),l.NdJ("click",function(){return ze.onShowAdvanced()}),l.YNc(47,D,2,0,"p",24),l.YNc(48,O,2,0,"ng-template",null,25,l.W1O),l.qZA(),l.YNc(50,x,2,1,"button",26),l.YNc(51,r,2,0,"button",27),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&Re){const Oe=l.MAs(49);l.xp6(1),l.Q6J("fxLayoutAlign",null!=ze.offer&&ze.offer.bolt12&&""!==(null==ze.offer?null:ze.offer.bolt12)?"center start":"center center")("ngClass",l.VKq(24,b,ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12)),l.xp6(4),l.Q6J("icon",ze.faReceipt),l.xp6(2),l.Oqu(ze.screenSize===ze.screenSizeEnum.XS?ze.newlyAdded?"Created":"Offer":ze.newlyAdded?"Offer Created":"Offer Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(26,Z,ze.screenSize===ze.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=ze.offer&&ze.offer.bolt12&&""!==(null==ze.offer?null:ze.offer.bolt12)?"center start":"center center")("ngClass",l.VKq(28,b,ze.screenSize!==ze.screenSizeEnum.XS&&ze.screenSize!==ze.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM),l.xp6(6),l.hij(" ",null!=ze.offerDecoded&&ze.offerDecoded.amount_msat&&0!==(null==ze.offerDecoded?null:ze.offerDecoded.amount)?l.lcZ(24,22,(null==ze.offerDecoded?null:ze.offerDecoded.amount)/1e3):"Open Offer"," "),l.xp6(6),l.hij(" ",null!=ze.offer&&ze.offer.active?null!=ze.offer&&ze.offer.active?"Active":"Inactive":"N/K"," "),l.xp6(7),l.hij(" ",null==ze.offerDecoded?null:ze.offerDecoded.description," "),l.xp6(7),l.Oqu(null==ze.offer?null:ze.offer.bolt12),l.xp6(1),l.Q6J("ngIf",ze.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(30,N,!ze.showAdvanced,ze.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!ze.showAdvanced)("ngIfElse",Oe),l.xp6(3),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12))}},directives:[E.xw,E.Wh,E.yH,P.mk,w.oO,P.O5,V.dk,j.BN,W.lW,V.dn,te.d,ee.uU,ge.h,le.y],pipes:[P.JJ],styles:[""]}),ve})()},2994:(Ge,Q,m)=>{"use strict";m.d(Q,{QZ:()=>y,Fd:()=>C,Zr:()=>o,iz:()=>M,CX:()=>l,SN:()=>R,RX:()=>s,UR:()=>L,eN:()=>I,TW:()=>A,i:()=>E,iL:()=>P,Bw:()=>w,On:()=>V,HG:()=>j,$W:()=>W,Z8:()=>te,El:()=>ee,GD:()=>re,EK:()=>de,_E:()=>se,YX:()=>v,pW:()=>i,BL:()=>a,OG:()=>p,cQ:()=>u,HI:()=>_,WO:()=>D,kL:()=>O,oV:()=>x,TM:()=>r,mC:()=>b,Lf:()=>Z,Iy:()=>N,WM:()=>ve,Nr:()=>be,Z$:()=>Re,YP:()=>ze,aL:()=>Oe,Sf:()=>K,n7:()=>Me,DJ:()=>z,ti:()=>Ze});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),C=(0,e.PH)(t.lr.RESET_ECL_STORE,(0,e.Ky)()),o=(0,e.PH)(t.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,e.Ky)()),M=(0,e.PH)(t.lr.FETCH_INFO_ECL,(0,e.Ky)()),l=(0,e.PH)(t.lr.SET_INFO_ECL,(0,e.Ky)()),R=(0,e.PH)(t.lr.FETCH_FEES_ECL),s=(0,e.PH)(t.lr.SET_FEES_ECL,(0,e.Ky)()),L=(0,e.PH)(t.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),I=(0,e.PH)(t.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),A=(0,e.PH)(t.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),E=(0,e.PH)(t.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),P=(0,e.PH)(t.lr.FETCH_ONCHAIN_BALANCE_ECL),w=(0,e.PH)(t.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),V=(0,e.PH)(t.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),j=(0,e.PH)(t.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),W=(0,e.PH)(t.lr.FETCH_PEERS_ECL),te=(0,e.PH)(t.lr.SET_PEERS_ECL,(0,e.Ky)()),ee=(0,e.PH)(t.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),re=((0,e.PH)(t.lr.NEWLY_ADDED_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.ADD_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.DETACH_PEER_ECL,(0,e.Ky)())),de=(0,e.PH)(t.lr.REMOVE_PEER_ECL,(0,e.Ky)()),se=(0,e.PH)(t.lr.GET_NEW_ADDRESS_ECL),v=((0,e.PH)(t.lr.SET_NEW_ADDRESS_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.SAVE_NEW_CHANNEL_ECL,(0,e.Ky)())),i=(0,e.PH)(t.lr.UPDATE_CHANNEL_ECL,(0,e.Ky)()),a=(0,e.PH)(t.lr.CLOSE_CHANNEL_ECL,(0,e.Ky)()),p=(0,e.PH)(t.lr.REMOVE_CHANNEL_ECL,(0,e.Ky)()),u=(0,e.PH)(t.lr.FETCH_PAYMENTS_ECL),_=(0,e.PH)(t.lr.SET_PAYMENTS_ECL,(0,e.Ky)()),D=(0,e.PH)(t.lr.GET_QUERY_ROUTES_ECL,(0,e.Ky)()),O=(0,e.PH)(t.lr.SET_QUERY_ROUTES_ECL,(0,e.Ky)()),x=(0,e.PH)(t.lr.SEND_PAYMENT_ECL,(0,e.Ky)()),r=(0,e.PH)(t.lr.SEND_PAYMENT_STATUS_ECL,(0,e.Ky)()),b=(0,e.PH)(t.lr.FETCH_TRANSACTIONS_ECL),Z=(0,e.PH)(t.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),N=(0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),ve=((0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.FETCH_INVOICES_ECL)),be=(0,e.PH)(t.lr.SET_INVOICES_ECL,(0,e.Ky)()),Re=(0,e.PH)(t.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),ze=(0,e.PH)(t.lr.ADD_INVOICE_ECL,(0,e.Ky)()),Oe=(0,e.PH)(t.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),K=(0,e.PH)(t.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),Me=(0,e.PH)(t.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),z=((0,e.PH)(t.lr.SET_LOOKUP_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.UPDATE_CHANNEL_STATE_ECL,(0,e.Ky)())),Ze=(0,e.PH)(t.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,e.Ky)())},3289:(Ge,Q,m)=>{"use strict";m.d(Q,{o:()=>de});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),R=m(2340),s=m(1786),L=m(7731),I=m(7861),A=m(7766),E=m(2994),P=m(2501),w=m(5e3),V=m(8138),j=m(5620),W=m(5986),te=m(62),ee=m(5043),ge=m(1402),le=m(7998),re=m(9808);let de=(()=>{class se{constructor(v,i,a,p,u,_,D,O,x){this.actions=v,this.httpClient=i,this.store=a,this.sessionService=p,this.commonService=u,this.logger=_,this.router=D,this.wsService=O,this.location=x,this.CHILD_API_URL=R.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchECL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_INFO_ECL),(0,C.z)(r=>(this.flgInitialized=!1,this.store.dispatch((0,I.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,I.ac)({payload:L.m6.GET_NODE_INFO})),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(L.pg.SET_SELECTED_NODE))),(0,M.U)(b=>(this.logger.info(b),this.initializeRemainingData(b,r.payload.loadPage),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.GET_NODE_INFO})),{type:L.lr.SET_INFO_ECL,payload:b||{}})),(0,l.K)(b=>{const Z=this.commonService.extractErrorCode(b),N=503===Z?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(b);return this.router.navigate(["/error"],{state:{errorCode:Z,errorMessage:N}}),this.handleErrorWithoutAlert("FetchInfo",L.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:Z,error:N}),(0,y.of)({type:L.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_FEES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/fees").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:L.Bn.COMPLETED}})),{type:L.lr.SET_FEES_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchFees",L.m6.NO_SPINNER,"Fetching Fees Failed.",r),(0,y.of)({type:L.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_PAYMENTS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/payments").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PAYMENTS_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchPayments",L.m6.NO_SPINNER,"Fetching Payments Failed.",r),(0,y.of)({type:L.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_CHANNELS_ECL),(0,C.z)(r=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API).pipe((0,M.U)(b=>(this.logger.info(b),this.rawChannelsList=b,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:L.Bn.COMPLETED}})),r.payload&&r.payload.fetchPayments&&this.store.dispatch((0,E.cQ)()),{type:L.pg.VOID})),(0,l.K)(b=>(this.handleErrorWithoutAlert("FetchChannels",L.m6.NO_SPINNER,"Fetching Channels Failed.",b),(0,y.of)({type:L.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/balance"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.COMPLETED}})),{type:L.lr.SET_ONCHAIN_BALANCE_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchOnchainBalance",L.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",r),(0,y.of)({type:L.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_PEERS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PEERS_ECL,payload:r||[]})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchPeers",L.m6.NO_SPINNER,"Fetching Peers Failed.",r),(0,y.of)({type:L.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.GET_NEW_ADDRESS_ECL),(0,C.z)(()=>(this.store.dispatch((0,I.ac)({payload:L.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,I.uO)({payload:L.m6.GENERATE_NEW_ADDRESS})),{type:L.lr.SET_NEW_ADDRESS_ECL,payload:r})),(0,l.K)(r=>(this.handleErrorWithAlert("GetNewAddress",L.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API,r),(0,y.of)({type:L.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_NEW_ADDRESS_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SAVE_NEW_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API+(r.payload.id.includes("@")?"?uri=":"?nodeId=")+r.payload.id,{}).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.COMPLETED}})),b=b||[],this.store.dispatch((0,I.uO)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:b})),{type:L.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:b.find(Z=>Z.nodeId===(r.payload.id.includes("@")?r.payload.id.substring(0,r.payload.id.indexOf("@")):r.payload.id))}})),(0,l.K)(b=>(this.handleErrorWithoutAlert("SaveNewPeer",L.m6.CONNECT_PEER,"Peer Connection Failed.",b),(0,y.of)({type:L.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.DETACH_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+r.payload.nodeId).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,I.uO)({payload:L.m6.DISCONNECT_PEER})),this.store.dispatch((0,I.jW)({payload:"Disconnecting Peer!"})),{type:L.lr.REMOVE_PEER_ECL,payload:{nodeId:r.payload.nodeId}})),(0,l.K)(b=>(this.handleErrorWithAlert("DisconnectPeer",L.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+r.payload.nodeId,b),(0,y.of)({type:L.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SAVE_NEW_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,r.payload.feeRate&&r.payload.feeRate>0?{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private,fundingFeerateSatByte:r.payload.feeRate}:{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private}).pipe((0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.COMPLETED}})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,I.uO)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,I.jW)({payload:"Channel Added Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,l.K)(Z=>(this.handleErrorWithoutAlert("SaveNewChannel",L.m6.OPEN_CHANNEL,"Opening Channel Failed.",Z),(0,y.of)({type:L.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.UPDATE_CHANNEL_ECL),(0,C.z)(r=>{this.store.dispatch((0,I.ac)({payload:L.m6.UPDATE_CHAN_POLICY}));let b="?feeBaseMsat="+r.payload.baseFeeMsat+"&feeProportionalMillionths="+r.payload.feeRate;return b=r.payload.nodeIds?b+"&nodeIds="+r.payload.nodeIds:r.payload.nodeId?b+"&nodeId="+r.payload.nodeId:r.payload.channelIds?b+"&channelIds="+r.payload.channelIds:b+"&channelId="+r.payload.channelId,this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/updateRelayFee"+b,{}).pipe((0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,I.uO)({payload:L.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,I.jW)(r.payload.nodeIds||r.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,l.K)(Z=>(this.handleErrorWithAlert("UpdateChannels",L.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,Z),(0,y.of)({type:L.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.CLOSE_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"?channelId="+r.payload.channelId+"&force="+r.payload.force).pipe((0,M.U)(b=>(this.logger.info(b),setTimeout(()=>{this.store.dispatch((0,I.uO)({payload:r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,I.jW)({payload:r.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:L.pg.VOID})),(0,l.K)(b=>(this.handleErrorWithAlert("CloseChannel",r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,b),(0,y.of)({type:L.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.GET_QUERY_ROUTES_ECL),(0,C.z)(r=>this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount).pipe((0,M.U)(b=>(this.logger.info(b),{type:L.lr.SET_QUERY_ROUTES_ECL,payload:b})),(0,l.K)(b=>(this.store.dispatch((0,E.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",L.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount,b),(0,y.of)({type:L.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_QUERY_ROUTES_ECL),(0,M.U)(r=>r.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SEND_PAYMENT_ECL),(0,C.z)(r=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,I.ac)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.latestPaymentRes=b,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:L.pg.VOID})),(0,l.K)(b=>(this.logger.error("Error: "+JSON.stringify(b)),r.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed.",b):this.handleErrorWithAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,b),(0,y.of)({type:L.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_TRANSACTIONS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:L.Bn.COMPLETED}})),{type:L.lr.SET_TRANSACTIONS_ECL,payload:r||[]})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchTransactions",L.m6.NO_SPINNER,"Fetching Transactions Failed.",r),(0,y.of)({type:L.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SEND_ONCHAIN_FUNDS_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,E.iL)()),{type:L.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithoutAlert("SendOnchainFunds",L.m6.SEND_FUNDS,"Sending Fund Failed.",b),(0,y.of)({type:L.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.CREATE_INVOICE_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.CREATE_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.CREATE_INVOICE})),b.timestamp=Math.round((new Date).getTime()/1e3),b.expiresAt=Math.round(b.timestamp+r.payload.expireIn),b.description=r.payload.description,b.status="unpaid",setTimeout(()=>{this.store.dispatch((0,I.qR)({payload:{data:{invoice:b,newlyAdded:!0,component:A.R}}}))},100),{type:L.lr.ADD_INVOICE_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithoutAlert("CreateInvoice",L.m6.CREATE_INVOICE,"Create Invoice Failed.",b),(0,y.of)({type:L.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_INVOICES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:L.Bn.COMPLETED}})),{type:L.lr.SET_INVOICES_ECL,payload:r})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchInvoices",L.m6.NO_SPINNER,"Fetching Invoices Failed.",r),(0,y.of)({type:L.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.PEER_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.SEARCHING_NODE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.SEARCHING_NODE})),{type:L.lr.SET_LOOKUP_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithAlert("Lookup",L.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+r.payload,b),(0,y.of)({type:L.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.INVOICE_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,I.ac)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"/"+r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.aL)({payload:b})),{type:L.lr.SET_LOOKUP_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithoutAlert("Lookup",L.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",b),this.store.dispatch((0,I.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:L.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_LOOKUP_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.handleSendPaymentStatus=r=>{this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:L.Bn.COMPLETED}})),this.store.dispatch((0,I.uO)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,E.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,I.jW)({payload:r}))},this.store.select(P.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(r=>{r.FetchInfo.status!==L.Bn.COMPLETED&&r.FetchInfo.status!==L.Bn.ERROR||r.FetchFees.status!==L.Bn.COMPLETED&&r.FetchFees.status!==L.Bn.ERROR||r.FetchOnchainBalance.status!==L.Bn.COMPLETED&&r.FetchOnchainBalance.status!==L.Bn.ERROR||r.FetchChannels.status!==L.Bn.COMPLETED&&r.FetchChannels.status!==L.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,I.uO)({payload:L.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(r=>{this.logger.info("Received new message from the service: "+JSON.stringify(r));let b="";if(r)switch(r.type){case L.$v.PAYMENT_SENT:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,b="Payment Sent: "+(r.paymentHash?"with payment hash "+r.paymentHash:JSON.stringify(r)),this.handleSendPaymentStatus(b));break;case L.$v.PAYMENT_FAILED:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,b="Payment Failed: "+(r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].t?r.failures[0].t:r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].e&&r.failures[0].e.failureMessage?r.failures[0].e.failureMessage:JSON.stringify(r)),this.handleSendPaymentStatus(b));break;case L.$v.PAYMENT_RECEIVED:this.store.dispatch((0,E.aL)({payload:r}));break;case L.$v.PAYMENT_RELAYED:delete r.source,this.store.dispatch((0,E.ti)({payload:r}));break;case L.$v.CHANNEL_STATE_CHANGED:"NORMAL"===r.currentState||"CLOSED"===r.currentState?(this.rawChannelsList=this.rawChannelsList.map(Z=>(Z.channelId===r.channelId&&Z.nodeId===r.remoteNodeId&&(Z.state=r.currentState),Z)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,E.DJ)({payload:r}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(r))}})}setChannelsAndStatusAndBalances(){let v=0,i=0,a=0,p={localBalance:0,remoteBalance:0},u=[];const _=[],D=[],O={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((x,r)=>{x&&("NORMAL"===x.state?(v=x.toLocal+x.toRemote,i+=x.toLocal,a+=x.toRemote,x.balancedness=0===v?1:+(1-Math.abs((x.toLocal-x.toRemote)/v)).toFixed(3),u.push(x),O.active.channels=O.active.channels+1,O.active.capacity=O.active.capacity+x.toLocal):x.state.includes("WAIT")||x.state.includes("CLOSING")||x.state.includes("SYNCING")?(x.state=x.state.replace(/_/g," "),_.push(x),O.pending.channels=O.pending.channels+1,O.pending.capacity=O.pending.capacity+x.toLocal):(x.state=x.state.replace(/_/g," "),D.push(x),O.inactive.channels=O.inactive.channels+1,O.inactive.capacity=O.inactive.capacity+x.toLocal))}),p={localBalance:i,remoteBalance:a},u=this.commonService.sortDescByKey(u,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(u)),this.logger.info("Pending Channels: "+JSON.stringify(_)),this.logger.info("Inactive Channels: "+JSON.stringify(D)),this.logger.info("Lightning Balances: "+JSON.stringify(p)),this.logger.info("Channels Status: "+JSON.stringify(O)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:u,pending:_,inactive:D,balances:p,status:O})),this.store.dispatch((0,E.eN)({payload:u})),this.store.dispatch((0,E.TW)({payload:_})),this.store.dispatch((0,E.i)({payload:D})),this.store.dispatch((0,E.On)({payload:p})),this.store.dispatch((0,E.HG)({payload:O}))}initializeRemainingData(v,i){this.sessionService.setItem("eclUnlocked","true");const a={identity_pubkey:v.nodeId,alias:v.alias,testnet:"testnet"===v.network,chains:v.publicAddresses,uris:v.uris,version:v.version,numberOfPendingChannels:0};this.store.dispatch((0,I.ac)({payload:L.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,I._V)({payload:a}));let p=this.location.path();p.includes("/lnd/")?p=p.replace("/lnd/","/ecl/"):p.includes("/cln/")&&(p=p.replace("/cln/","/ecl/")),(p.includes("/login")||p.includes("/error")||""===p||"HOME"===i||p.includes("?access-key="))&&(p="/ecl/home"),this.router.navigate([p]),this.store.dispatch((0,E.WM)()),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,E.$W)())}handleErrorWithoutAlert(v,i,a,p){this.logger.error("ERROR IN: "+v+"\n"+JSON.stringify(p)),401===p.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,I.ts)()),this.store.dispatch((0,I.kS)()),this.store.dispatch((0,I.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,I.uO)({payload:i})),this.store.dispatch((0,E.QZ)({payload:{action:v,status:L.Bn.ERROR,statusCode:p.status.toString(),message:this.commonService.extractErrorMessage(p,a)}})))}handleErrorWithAlert(v,i,a,p,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,I.ts)()),this.store.dispatch((0,I.kS)()),this.store.dispatch((0,I.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,I.uO)({payload:i}));const _=this.commonService.extractErrorMessage(u);this.store.dispatch((0,I.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:u.status,message:_,URL:p},component:s.H}}})),this.store.dispatch((0,E.QZ)({payload:{action:v,status:L.Bn.ERROR,statusCode:u.status.toString(),message:_,URL:p}}))}}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return se.\u0275fac=function(v){return new(v||se)(w.LFG(e.eX),w.LFG(V.eN),w.LFG(j.yh),w.LFG(W.m),w.LFG(te.v),w.LFG(ee.mQ),w.LFG(ge.F0),w.LFG(le.d),w.LFG(re.Ye))},se.\u0275prov=w.Yz7({token:se,factory:se.\u0275fac}),se})()},2501:(Ge,Q,m)=>{"use strict";m.d(Q,{pg:()=>y,yD:()=>C,T$:()=>o,yA:()=>l,PP:()=>R,JG:()=>s,Xz:()=>L,dx:()=>I,Ef:()=>A,Bo:()=>E,kY:()=>P});var e=m(5620);const t=(0,e.ZF)("ecl"),y=(0,e.P1)(t,w=>w.nodeSettings),C=(0,e.P1)(t,w=>w.information),o=(0,e.P1)(t,w=>({information:w.information,apiCallStatus:w.apisCallStatus.FetchInfo})),l=((0,e.P1)(t,w=>w.apisCallStatus.FetchInfo),(0,e.P1)(t,w=>w.apisCallStatus)),R=(0,e.P1)(t,w=>({payments:w.payments,apiCallStatus:w.apisCallStatus.FetchPayments})),s=(0,e.P1)(t,w=>({fees:w.fees,apiCallStatus:w.apisCallStatus.FetchFees})),L=(0,e.P1)(t,w=>({activeChannels:w.activeChannels,pendingChannels:w.pendingChannels,inactiveChannels:w.inactiveChannels,lightningBalance:w.lightningBalance,channelsStatus:w.channelsStatus,apiCallStatus:w.apisCallStatus.FetchChannels})),I=(0,e.P1)(t,w=>({transactions:w.transactions,apiCallStatus:w.apisCallStatus.FetchTransactions})),A=(0,e.P1)(t,w=>({invoices:w.invoices,apiCallStatus:w.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,w=>({peers:w.peers,apiCallStatus:w.apisCallStatus.FetchPeers})),P=(0,e.P1)(t,w=>({onchainBalance:w.onchainBalance,apiCallStatus:w.apisCallStatus.FetchOnchainBalance}))},7766:(Ge,Q,m)=>{"use strict";m.d(Q,{R:()=>Oe});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(2501),l=m(5e3),R=m(5043),s=m(62),L=m(7261),I=m(5620),A=m(7093),E=m(9808),P=m(3322),w=m(9224),V=m(9444),j=m(7423),W=m(4834),te=m(159),ee=m(773),ge=m(3390),le=m(6895);function re(K,Me){if(1&K&&l._UZ(0,"qr-code",29),2&K){const we=l.oxw();l.Q6J("value",null==we.invoice?null:we.invoice.serialized)("size",we.qrWidth)("errorCorrectionLevel","L")}}function de(K,Me){1&K&&(l.TgZ(0,"span",30),l._uU(1,"N/A"),l.qZA())}function se(K,Me){if(1&K&&l._UZ(0,"qr-code",29),2&K){const we=l.oxw();l.Q6J("value",null==we.invoice?null:we.invoice.serialized)("size",we.qrWidth)("errorCorrectionLevel","L")}}function ye(K,Me){1&K&&(l.TgZ(0,"span",31),l._uU(1,"QR Code Not Applicable"),l.qZA())}function v(K,Me){1&K&&l._UZ(0,"mat-divider",32),2&K&&l.Q6J("inset",!0)}function i(K,Me){1&K&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function a(K,Me){1&K&&l._UZ(0,"span",38)}const p=function(){return[]};function u(K,Me){if(1&K&&(l.TgZ(0,"div",34),l.TgZ(1,"div",35),l.TgZ(2,"span",36),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,a,1,0,"span",37),l.qZA(),l.qZA()),2&K){const we=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,null==we.invoice?null:we.invoice.amountSettled)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,p).constructor(35))}}function _(K,Me){if(1&K&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&K){const we=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,null==we.invoice?null:we.invoice.amountSettled)," Sats")}}function D(K,Me){if(1&K&&(l.ynx(0),l.YNc(1,u,6,5,"div",33),l.YNc(2,_,3,3,"div",19),l.BQk()),2&K){const we=l.oxw();l.xp6(1),l.Q6J("ngIf",we.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!we.flgInvoicePaid)}}function O(K,Me){1&K&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function x(K,Me){1&K&&l._UZ(0,"mat-spinner",40),2&K&&l.Q6J("diameter",20)}function r(K,Me){if(1&K&&(l.ynx(0),l.YNc(1,O,2,0,"span",19),l.YNc(2,x,1,1,"mat-spinner",39),l.BQk()),2&K){const we=l.oxw();l.xp6(1),l.Q6J("ngIf","unpaid"!==(null==we.invoice?null:we.invoice.status)||!we.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==we.invoice?null:we.invoice.status)&&we.flgVersionCompatible)}}function b(K,Me){if(1&K&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",20),l.TgZ(2,"div",15),l.TgZ(3,"div",41),l.TgZ(4,"h4",17),l._uU(5,"Date Expiry"),l.qZA(),l.TgZ(6,"span",18),l._uU(7),l.ALo(8,"date"),l.qZA(),l.qZA(),l.TgZ(9,"div",42),l.TgZ(10,"h4",17),l._uU(11,"Date Settled"),l.qZA(),l.TgZ(12,"span",21),l._uU(13),l.ALo(14,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(15,"mat-divider",20),l.TgZ(16,"div",15),l.TgZ(17,"div",22),l.TgZ(18,"h4",17),l._uU(19,"Payment Hash"),l.qZA(),l.TgZ(20,"span",21),l._uU(21),l.qZA(),l.qZA(),l.qZA(),l._UZ(22,"mat-divider",20),l.TgZ(23,"div",15),l.TgZ(24,"div",22),l.TgZ(25,"h4",17),l._uU(26,"Node Id"),l.qZA(),l.TgZ(27,"span",21),l._uU(28),l.qZA(),l.qZA(),l.qZA(),l._UZ(29,"mat-divider",20),l.qZA()),2&K){const we=l.oxw();l.xp6(7),l.Oqu(l.xi3(8,4,1e3*(null==we.invoice?null:we.invoice.expiresAt),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.xi3(14,7,1e3*(null==we.invoice?null:we.invoice.receivedAt),"dd/MMM/y HH:mm")),l.xp6(8),l.Oqu(null==we.invoice?null:we.invoice.paymentHash),l.xp6(7),l.Oqu(null==we.invoice?null:we.invoice.nodeId)}}function Z(K,Me){1&K&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function N(K,Me){1&K&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function U(K,Me){if(1&K){const we=l.EpF();l.TgZ(0,"button",43),l.NdJ("copied",function(Ze){return l.CHM(we),l.oxw().onCopyPayment(Ze)}),l._uU(1,"Copy Invoice"),l.qZA()}if(2&K){const we=l.oxw();l.Q6J("payload",null==we.invoice?null:we.invoice.serialized)}}function ve(K,Me){if(1&K){const we=l.EpF();l.TgZ(0,"button",44),l.NdJ("click",function(){return l.CHM(we),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const be=function(K){return{"display-none":K}},Re=function(K){return{"xs-scroll-y":K}},ze=function(K,Me){return{"mt-2":K,"mt-1":Me}};let Oe=(()=>{class K{constructor(we,z,Ze,vt,Fe,Ne){this.dialogRef=we,this.data=z,this.logger=Ze,this.commonService=vt,this.snackBar=Fe,this.store=Ne,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.yD).pipe((0,C.R)(this.unSubs[0])).subscribe(we=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(we.version,"0.5.0")}),this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(we=>{const z=this.invoice.status;this.invoice=(we.invoices&&we.invoices.length>0?we.invoices:[]).find(vt=>vt.paymentHash===this.invoice.paymentHash),z!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(we)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(we){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+we)}ngOnDestroy(){this.unSubs.forEach(we=>{we.next(null),we.complete()})}}return K.\u0275fac=function(we){return new(we||K)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(I.yh))},K.\u0275cmp=l.Xpm({type:K,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(we,z){if(1&we&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,re,1,3,"qr-code",2),l.YNc(3,de,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return z.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,se,1,3,"qr-code",2),l.YNc(16,ye,2,0,"span",13),l.qZA(),l.YNc(17,v,1,1,"mat-divider",14),l.TgZ(18,"div",15),l.TgZ(19,"div",16),l.TgZ(20,"h4",17),l._uU(21,"Amount Requested"),l.qZA(),l.TgZ(22,"span",18),l._uU(23),l.ALo(24,"number"),l.YNc(25,i,2,0,"ng-container",19),l.qZA(),l.qZA(),l.TgZ(26,"div",16),l.TgZ(27,"h4",17),l._uU(28,"Amount Settled"),l.qZA(),l.TgZ(29,"span",18),l.YNc(30,D,3,2,"ng-container",19),l.YNc(31,r,3,2,"ng-container",19),l.qZA(),l.qZA(),l.qZA(),l._UZ(32,"mat-divider",20),l.TgZ(33,"div",15),l.TgZ(34,"div",16),l.TgZ(35,"h4",17),l._uU(36,"Date Created"),l.qZA(),l.TgZ(37,"span",21),l._uU(38),l.ALo(39,"date"),l.qZA(),l.qZA(),l.TgZ(40,"div",16),l.TgZ(41,"h4",17),l._uU(42,"Status"),l.qZA(),l.TgZ(43,"span",21),l._uU(44),l.ALo(45,"titlecase"),l.qZA(),l.qZA(),l.qZA(),l._UZ(46,"mat-divider",20),l.TgZ(47,"div",15),l.TgZ(48,"div",22),l.TgZ(49,"h4",17),l._uU(50,"Description"),l.qZA(),l.TgZ(51,"span",18),l._uU(52),l.qZA(),l.qZA(),l.qZA(),l._UZ(53,"mat-divider",20),l.TgZ(54,"div",15),l.TgZ(55,"div",22),l.TgZ(56,"h4",17),l._uU(57,"Invoice"),l.qZA(),l.TgZ(58,"span",21),l._uU(59),l.qZA(),l.qZA(),l.qZA(),l.YNc(60,b,30,10,"div",19),l.TgZ(61,"div",23),l.TgZ(62,"button",24),l.NdJ("click",function(){return z.onShowAdvanced()}),l.YNc(63,Z,2,0,"p",25),l.YNc(64,N,2,0,"ng-template",null,26,l.W1O),l.qZA(),l.YNc(66,U,2,1,"button",27),l.YNc(67,ve,2,0,"button",28),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&we){const Ze=l.MAs(65);l.xp6(1),l.Q6J("fxLayoutAlign",null!=z.invoice&&z.invoice.serialized&&""!==(null==z.invoice?null:z.invoice.serialized)?"center start":"center center")("ngClass",l.VKq(33,be,z.screenSize===z.screenSizeEnum.XS||z.screenSize===z.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized)),l.xp6(4),l.Q6J("icon",z.faReceipt),l.xp6(2),l.Oqu(z.screenSize===z.screenSizeEnum.XS?z.newlyAdded?"Created":"Invoice":z.newlyAdded?"Invoice Created":"Invoice Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(35,Re,z.screenSize===z.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=z.invoice&&z.invoice.serialized&&""!==(null==z.invoice?null:z.invoice.serialized)?"center start":"center center")("ngClass",l.VKq(37,be,z.screenSize!==z.screenSizeEnum.XS&&z.screenSize!==z.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",z.screenSize===z.screenSizeEnum.XS||z.screenSize===z.screenSizeEnum.SM),l.xp6(6),l.hij("",l.lcZ(24,26,(null==z.invoice?null:z.invoice.amount)||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.amount)||"0"===(null==z.invoice?null:z.invoice.amount)),l.xp6(5),l.Q6J("ngIf",null==z.invoice?null:z.invoice.amountSettled),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.amountSettled)),l.xp6(7),l.Oqu(l.xi3(39,28,1e3*(null==z.invoice?null:z.invoice.timestamp),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.lcZ(45,31,null==z.invoice?null:z.invoice.status)),l.xp6(8),l.Oqu((null==z.invoice?null:z.invoice.description)||"-"),l.xp6(7),l.Oqu((null==z.invoice?null:z.invoice.serialized)||"N/A"),l.xp6(1),l.Q6J("ngIf",z.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(39,ze,!z.showAdvanced,z.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!z.showAdvanced)("ngIfElse",Ze),l.xp6(3),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized))}},directives:[A.xw,A.Wh,A.yH,E.mk,P.oO,E.O5,w.dk,V.BN,j.lW,w.dn,W.d,te.uU,E.sg,ee.$g,ge.h,le.y],pipes:[E.JJ,E.uU,E.rS],styles:[""]}),K})()},6523:(Ge,Q,m)=>{"use strict";m.d(Q,{PC:()=>y,Ll:()=>C,JT:()=>o,sQ:()=>M,CX:()=>l,$W:()=>R,Z8:()=>s,El:()=>L,z:()=>A,EK:()=>E,Rd:()=>P,YP:()=>V,SN:()=>j,RX:()=>W,Bl:()=>te,Jl:()=>ee,Rv:()=>ge,ks:()=>le,UR:()=>re,as:()=>de,Z7:()=>se,TW:()=>ye,Zh:()=>v,_L:()=>i,pW:()=>a,YX:()=>p,BL:()=>u,OG:()=>_,Vv:()=>D,Cp:()=>O,tb:()=>b,B_:()=>Z,vV:()=>N,WM:()=>ve,Nr:()=>be,aL:()=>Re,qY:()=>ze,mC:()=>Oe,Lf:()=>K,Ly:()=>Me,UH:()=>we,cQ:()=>z,HI:()=>Ze,oV:()=>vt,dV:()=>Ne,_E:()=>Le,Wi:()=>q,fu:()=>oe,y2:()=>Ue,xG:()=>nt,Sf:()=>ft,$A:()=>it,n7:()=>rt,yZ:()=>Mt,u0:()=>Ft,QJ:()=>Vt,WO:()=>Ii,kL:()=>jt,Jo:()=>ei,Fr:()=>ki});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.uR.UPDATE_API_CALL_STATUS_LND,(0,e.Ky)()),C=(0,e.PH)(t.uR.RESET_LND_STORE,(0,e.Ky)()),o=(0,e.PH)(t.uR.SET_CHILD_NODE_SETTINGS_LND,(0,e.Ky)()),M=(0,e.PH)(t.uR.FETCH_INFO_LND,(0,e.Ky)()),l=(0,e.PH)(t.uR.SET_INFO_LND,(0,e.Ky)()),R=(0,e.PH)(t.uR.FETCH_PEERS_LND),s=(0,e.PH)(t.uR.SET_PEERS_LND,(0,e.Ky)()),L=(0,e.PH)(t.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),A=((0,e.PH)(t.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(t.uR.DETACH_PEER_LND,(0,e.Ky)())),E=(0,e.PH)(t.uR.REMOVE_PEER_LND,(0,e.Ky)()),P=(0,e.PH)(t.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),V=((0,e.PH)(t.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.ADD_INVOICE_LND,(0,e.Ky)())),j=(0,e.PH)(t.uR.FETCH_FEES_LND),W=(0,e.PH)(t.uR.SET_FEES_LND,(0,e.Ky)()),te=(0,e.PH)(t.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ee=(0,e.PH)(t.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),ge=(0,e.PH)(t.uR.FETCH_NETWORK_LND),le=(0,e.PH)(t.uR.SET_NETWORK_LND,(0,e.Ky)()),re=(0,e.PH)(t.uR.FETCH_CHANNELS_LND),de=(0,e.PH)(t.uR.SET_CHANNELS_LND,(0,e.Ky)()),se=(0,e.PH)(t.uR.FETCH_PENDING_CHANNELS_LND),ye=(0,e.PH)(t.uR.SET_PENDING_CHANNELS_LND,(0,e.Ky)()),v=(0,e.PH)(t.uR.FETCH_CLOSED_CHANNELS_LND),i=(0,e.PH)(t.uR.SET_CLOSED_CHANNELS_LND,(0,e.Ky)()),a=(0,e.PH)(t.uR.UPDATE_CHANNEL_LND,(0,e.Ky)()),p=(0,e.PH)(t.uR.SAVE_NEW_CHANNEL_LND,(0,e.Ky)()),u=(0,e.PH)(t.uR.CLOSE_CHANNEL_LND,(0,e.Ky)()),_=(0,e.PH)(t.uR.REMOVE_CHANNEL_LND,(0,e.Ky)()),D=(0,e.PH)(t.uR.BACKUP_CHANNELS_LND,(0,e.Ky)()),O=(0,e.PH)(t.uR.VERIFY_CHANNEL_LND,(0,e.Ky)()),b=((0,e.PH)(t.uR.BACKUP_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.VERIFY_CHANNEL_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.RESTORE_CHANNELS_LIST_LND)),Z=(0,e.PH)(t.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),N=(0,e.PH)(t.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),ve=((0,e.PH)(t.uR.RESTORE_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_INVOICES_LND,(0,e.Ky)())),be=(0,e.PH)(t.uR.SET_INVOICES_LND,(0,e.Ky)()),Re=(0,e.PH)(t.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),ze=(0,e.PH)(t.uR.UPDATE_PAYMENT_LND,(0,e.Ky)()),Oe=(0,e.PH)(t.uR.FETCH_TRANSACTIONS_LND),K=(0,e.PH)(t.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),Me=(0,e.PH)(t.uR.FETCH_UTXOS_LND),we=(0,e.PH)(t.uR.SET_UTXOS_LND,(0,e.Ky)()),z=(0,e.PH)(t.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),Ze=(0,e.PH)(t.uR.SET_PAYMENTS_LND,(0,e.Ky)()),vt=(0,e.PH)(t.uR.SEND_PAYMENT_LND,(0,e.Ky)()),Ne=((0,e.PH)(t.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),Le=((0,e.PH)(t.uR.SET_GRAPH_NODE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_NEW_ADDRESS_LND,(0,e.Ky)())),q=((0,e.PH)(t.uR.SET_NEW_ADDRESS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_LND,(0,e.Ky)())),oe=((0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GEN_SEED_LND,(0,e.Ky)())),Ue=((0,e.PH)(t.uR.GEN_SEED_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.INIT_WALLET_LND,(0,e.Ky)())),nt=((0,e.PH)(t.uR.INIT_WALLET_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.UNLOCK_WALLET_LND,(0,e.Ky)())),ft=(0,e.PH)(t.uR.PEER_LOOKUP_LND,(0,e.Ky)()),it=(0,e.PH)(t.uR.CHANNEL_LOOKUP_LND,(0,e.Ky)()),rt=(0,e.PH)(t.uR.INVOICE_LOOKUP_LND,(0,e.Ky)()),Mt=(0,e.PH)(t.uR.PAYMENT_LOOKUP_LND,(0,e.Ky)()),Ft=((0,e.PH)(t.uR.SET_LOOKUP_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_FORWARDING_HISTORY_LND,(0,e.Ky)())),Vt=(0,e.PH)(t.uR.SET_FORWARDING_HISTORY_LND,(0,e.Ky)()),Ii=(0,e.PH)(t.uR.GET_QUERY_ROUTES_LND,(0,e.Ky)()),jt=(0,e.PH)(t.uR.SET_QUERY_ROUTES_LND,(0,e.Ky)()),ei=(0,e.PH)(t.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),ki=(0,e.PH)(t.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,e.Ky)())},711:(Ge,Q,m)=>{"use strict";m.d(Q,{l:()=>ye});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),R=m(1365),s=m(2340),L=m(8627),I=m(1786),A=m(7731),E=m(7861),P=m(6523),w=m(6529),V=m(5e3),j=m(8138),W=m(5620),te=m(5043),ee=m(62),ge=m(5986),le=m(8966),re=m(1402),de=m(7998),se=m(9808);let ye=(()=>{class v{constructor(a,p,u,_,D,O,x,r,b,Z){this.actions=a,this.httpClient=p,this.store=u,this.logger=_,this.commonService=D,this.sessionService=O,this.dialog=x,this.router=r,this.wsService=b,this.location=Z,this.CHILD_API_URL=s.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x],this.infoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INFO_LND),(0,C.z)(N=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,M.U)(U=>(this.logger.info(U),U.chains&&U.chains.length&&U.chains[0]&&("string"==typeof U.chains[0]&&U.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof U.chains[0]&&U.chains[0].hasOwnProperty("chain")&&U.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):U.identity_pubkey?(U.lnImplementation="LND",this.initializeRemainingData(U,N.payload.loadPage),this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),{type:A.uR.SET_INFO_LND,payload:U||{}}):(this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:A.uR.SET_INFO_LND,payload:{}}))),(0,l.K)(U=>{if("string"==typeof U.error.error&&U.error.error.includes("Not Found")||"string"==typeof U.error.error&&U.error.error.includes("wallet locked")||502===U.status&&!U.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",U);else if("string"==typeof U.error.error&&U.error.error.includes("starting up")&&500===U.status)setTimeout(()=>{this.store.dispatch((0,P.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const ve=this.commonService.extractErrorCode(U),be=503===ve?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(U);this.router.navigate(["/error"],{state:{errorCode:ve,errorMessage:be}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:ve,error:be})}return(0,y.of)({type:A.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PEERS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PEERS_API).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PEERS_LND,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_PEER_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PEERS_API,{pubkey:N.payload.pubkey,host:N.payload.host,perm:N.payload.perm}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.Z8)({payload:U||[]})),{type:A.uR.NEWLY_ADDED_PEER_LND,payload:{peer:U[0]}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",U),(0,y.of)({type:A.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.DETACH_PEER_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.PEERS_API+"/"+N.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully."})),{type:A.uR.REMOVE_PEER_LND,payload:{pubkey:N.payload.pubkey}})),(0,l.K)(U=>(this.handleErrorWithAlert("DetachPeer",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+s.NZ.PEERS_API+"/"+N.payload.pubkey,U),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_INVOICE_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.INVOICES_API,{memo:N.payload.memo,amount:N.payload.invoiceValue,private:N.payload.private,expiry:N.payload.expiry}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:N.payload.pageSize,reversed:!0}})),N.payload.openModal?(U.memo=N.payload.memo,U.value=N.payload.invoiceValue,U.expiry=N.payload.expiry,U.cltv_expiry="144",U.private=N.payload.private,U.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:U,newlyAdded:!0,component:L.v}}}))},100),{type:A.pg.CLOSE_SPINNER,payload:N.payload.uiMessage}):{type:A.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:U.payment_request}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewInvoice",N.payload.uiMessage,"Add Invoice Failed.",U),(0,y.of)({type:A.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_CHANNEL_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.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,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:A.uR.FETCH_PENDING_CHANNELS_LND})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,y.of)({type:A.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UPDATE_CHANNEL_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:N.payload.baseFeeMsat,feeRate:N.payload.feeRate,timeLockDelta:N.payload.timeLockDelta,chanPoint:N.payload.chanPoint}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===N.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:A.uR.FETCH_CHANNELS_LND})),(0,l.K)(U=>(this.handleErrorWithAlert("UpdateChannels",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/chanPolicy",U),(0,y.of)({type:A.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CLOSE_CHANNEL_LND),(0,C.z)(N=>{this.store.dispatch((0,E.ac)({payload:N.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL}));let U=this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly;return N.payload.targetConf&&(U=U+"&target_conf="+N.payload.targetConf),N.payload.satPerByte&&(U=U+"&sat_per_byte="+N.payload.satPerByte),this.httpClient.delete(U).pipe((0,M.U)(ve=>(this.logger.info(ve),this.store.dispatch((0,E.uO)({payload:N.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Z7)()),this.store.dispatch((0,P.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:ve.message}})),{type:A.pg.VOID})),(0,l.K)(ve=>(this.handleErrorWithAlert("CloseChannel",N.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly,ve),(0,y.of)({type:A.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.BACKUP_CHANNELS_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"BackupChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"BackupChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:N.payload.showMessage+" "+U.message})),{type:A.uR.BACKUP_CHANNELS_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("BackupChannels",N.payload.uiMessage,N.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint,U),(0,y.of)({type:A.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.VERIFY_CHANNEL_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"VerifyChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"VerifyChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,E.jW)({payload:U.message})),{type:A.uR.VERIFY_CHANNEL_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("VerifyChannel",A.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,U),(0,y.of)({type:A.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannels",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,E.jW)({payload:U.message})),this.store.dispatch((0,P.B_)({payload:U.list})),{type:A.uR.RESTORE_CHANNELS_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("RestoreChannels",A.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,U),(0,y.of)({type:A.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_FEES_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.FEES_API))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),N.forwarding_events_history&&(this.store.dispatch((0,P.QJ)({payload:N.forwarding_events_history})),delete N.forwarding_events_history),{type:A.uR.SET_FEES_LND,payload:N||{}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",N),(0,y.of)({type:A.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.BALANCE_API))),(0,M.U)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),this.logger.info(N),{type:A.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:N||{total_balance:""}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",N),(0,y.of)({type:A.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_NETWORK_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchNetwork",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/info"))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchNetwork",status:A.Bn.COMPLETED}})),{type:A.uR.SET_NETWORK_LND,payload:N||{}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchNetwork",A.m6.NO_SPINNER,"Fetching Network Failed.",N),(0,y.of)({type:A.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CHANNELS_LND,payload:N.channels||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PENDING_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/pending").pipe((0,M.U)(N=>{this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.COMPLETED}}));const U={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&&(U.total_limbo_balance=N.total_limbo_balance,N.pending_closing_channels&&(U.closing.num_channels=N.pending_closing_channels.length,U.total_channels=U.total_channels+N.pending_closing_channels.length,N.pending_closing_channels.forEach(ve=>{U.closing.limbo_balance=+U.closing.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)})),N.pending_force_closing_channels&&(U.force_closing.num_channels=N.pending_force_closing_channels.length,U.total_channels=U.total_channels+N.pending_force_closing_channels.length,N.pending_force_closing_channels.forEach(ve=>{U.force_closing.limbo_balance=+U.force_closing.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)})),N.pending_open_channels&&(U.open.num_channels=N.pending_open_channels.length,U.total_channels=U.total_channels+N.pending_open_channels.length,N.pending_open_channels.forEach(ve=>{U.open.limbo_balance=+U.open.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)})),N.waiting_close_channels&&(U.waiting_close.num_channels=N.waiting_close_channels.length,U.total_channels=U.total_channels+N.waiting_close_channels.length,N.waiting_close_channels.forEach(ve=>{U.waiting_close.limbo_balance=+U.waiting_close.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)}))),{type:A.uR.SET_PENDING_CHANNELS_LND,payload:N?{pendingChannels:N,pendingChannelsSummary:U}:{pendingChannels:{},pendingChannelsSummary:U}}}),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchPendingChannels",A.m6.NO_SPINNER,"Fetching Pending Channels Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CLOSED_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/closed").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CLOSED_CHANNELS_LND,payload:N.channels||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchClosedChannels",A.m6.NO_SPINNER,"Fetching Closed Channels Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INVOICES_LND),(0,C.z)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.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,M.U)(Re=>(this.logger.info(Re),this.store.dispatch((0,P.PC)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),N.payload.reversed&&!N.payload.index_offset&&(Re.total_invoices=+Re.last_index_offset),{type:A.uR.SET_INVOICES_LND,payload:Re})),(0,l.K)(Re=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",Re),(0,y.of)({type:A.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_TRANSACTIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.TRANSACTIONS_API))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_TRANSACTIONS_LND,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchTransactions",A.m6.NO_SPINNER,"Fetching Transactions Failed.",N),(0,y.of)({type:A.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_UTXOS_LND),(0,R.M)(this.store.select(w.Q5)),(0,C.z)(([N,U])=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/getUTXOs?max_confs="+(U&&U.block_height?U.block_height:1e9)))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.uR.SET_UTXOS_LND,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",N),(0,y.of)({type:A.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PAYMENTS_LND),(0,C.z)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.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,M.U)(Re=>(this.logger.info(Re),this.store.dispatch((0,P.PC)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PAYMENTS_LND,payload:Re})),(0,l.K)(Re=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",Re),(0,y.of)({type:A.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SEND_PAYMENT_LND),(0,C.z)(N=>{this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:A.Bn.INITIATED}}));const U={};return U.paymentReq=N.payload.paymentReq,N.payload.paymentAmount&&(U.paymentAmount=N.payload.paymentAmount),N.payload.outgoingChannel&&(U.outgoingChannel=N.payload.outgoingChannel.chan_id),N.payload.allowSelfPayment&&(U.allowSelfPayment=N.payload.allowSelfPayment),N.payload.lastHopPubkey&&(U.lastHopPubkey=N.payload.lastHopPubkey),N.payload.feeLimitType&&N.payload.feeLimitType!==A.Vc[0].id&&(U.feeLimit={},U.feeLimit[N.payload.feeLimitType]=N.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",U).pipe((0,M.U)(ve=>{if(this.logger.info(ve),this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),ve.payment_error)return N.payload.allowSelfPayment?(this.store.dispatch((0,P.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:ve}):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",ve.payment_error):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",ve.payment_error),{type:A.pg.VOID});if(this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.cQ)({payload:{max_payments:A.IV,reversed:!0}})),N.payload.allowSelfPayment)this.store.dispatch((0,P.WM)({payload:{num_max_invoices:A.IV,reversed:!0}}));else{let be="Payment Sent Successfully.";ve.payment_route&&ve.payment_route.total_fees_msat&&(be="Payment sent successfully with the total fee "+ve.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,E.jW)({payload:be}))}return{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:ve}}),(0,l.K)(ve=>(this.logger.error("Error: "+JSON.stringify(ve)),N.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",ve),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),(0,y.of)({type:A.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(ve)}})):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",ve):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",ve),(0,y.of)({type:A.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_GRAPH_NODE_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,P.PC)({payload:{action:"FetchGraphNode",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+N.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,P.PC)({payload:{action:"FetchGraphNode",status:A.Bn.COMPLETED}})),{type:A.uR.SET_GRAPH_NODE_LND,payload:U&&U.node?{node:U.node}:{node:null}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchGraphNode",A.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",U),(0,y.of)({type:A.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_GRAPH_NODE_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_NEW_ADDRESS_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.uR.SET_NEW_ADDRESS_LND,payload:U&&U.address?U.address:{}})),(0,l.K)(U=>(this.handleErrorWithAlert("GetNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+s.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId,U),(0,y.of)({type:A.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_NEW_ADDRESS_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_CHANNEL_TRANSACTION_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.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,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.mC)()),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),{type:A.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",U),(0,y.of)({type:A.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_FORWARDING_HISTORY_LND),(0,C.z)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.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,M.U)(ve=>(this.logger.info(ve),this.store.dispatch((0,P.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.uR.SET_FORWARDING_HISTORY_LND,payload:ve})),(0,l.K)(ve=>(this.handleErrorWithAlert("FetchForwardingHistory",A.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+s.NZ.SWITCH_API,ve),(0,y.of)({type:A.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_QUERY_ROUTES_LND),(0,C.z)(N=>{let U=this.CHILD_API_URL+s.NZ.NETWORK_API+"/routes/"+N.payload.destPubkey+"/"+N.payload.amount;return N.payload.outgoingChanId&&(U=U+"?outgoing_chan_id="+N.payload.outgoingChanId),this.httpClient.get(U).pipe((0,M.U)(ve=>(this.logger.info(ve),{type:A.uR.SET_QUERY_ROUTES_LND,payload:ve})),(0,l.K)(ve=>(this.store.dispatch((0,P.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+s.NZ.NETWORK_API,ve),(0,y.of)({type:A.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_QUERY_ROUTES_LND),(0,M.U)(N=>N.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/genseed/"+N.payload).pipe((0,M.U)(U=>(this.logger.info("Generated GenSeed!"),this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.GEN_SEED})),{type:A.uR.GEN_SEED_RESPONSE_LND,payload:U.cipher_seed_mnemonic})),(0,l.K)(U=>(this.handleErrorWithAlert("GenSeed",A.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/genseed/"+N.payload,U),(0,y.of)({type:A.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,C.z)(()=>this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,M.U)(N=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(N),{type:A.pg.VOID})),(0,l.K)(N=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",A.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",N),(0,y.of)({type:A.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_RESPONSE_LND),(0,M.U)(N=>N.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_RESPONSE_LND),(0,M.U)(N=>N.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+s.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,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.INITIALIZE_WALLET})),{type:A.uR.INIT_WALLET_RESPONSE_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("InitWallet",A.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/initwallet",U),(0,y.of)({type:A.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UNLOCK_WALLET_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+s.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:N.payload.pwd}).pipe((0,M.U)(U=>(this.logger.info(U),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,E.uO)({payload:A.m6.UNLOCK_WALLET})),this.store.dispatch((0,E.ac)({payload:A.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,E.uO)({payload:A.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,P.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:A.pg.VOID})),(0,l.K)(U=>(this.handleErrorWithAlert("UnlockWallet",A.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/unlockwallet",U),(0,y.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PEER_LOOKUP_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+N.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+N.payload,U),(0,y.of)({type:A.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CHANNEL_LOOKUP_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/edge/"+N.payload.channelID).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("Lookup",N.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/edge/"+N.payload.channelID,U),(0,y.of)({type:A.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INVOICE_LOOKUP_LND),(0,C.z)(N=>{this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}}));let U=this.CHILD_API_URL+s.NZ.INVOICES_API+"/lookup";return U=N.payload.paymentAddress&&""!==N.payload.paymentAddress?U+"?payment_addr="+N.payload.paymentAddress:U+"?payment_hash="+N.payload.paymentHash,this.httpClient.get(U).pipe((0,M.U)(ve=>(this.logger.info(ve),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.aL)({payload:ve})),{type:A.uR.SET_LOOKUP_LND,payload:ve})),(0,l.K)(ve=>(this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",ve),N.payload.openSnackBar&&this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:ve}}))))}))),this.paymentLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PAYMENT_LOOKUP_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"/lookup/"+N.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.qY)({payload:U})),{type:A.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",U),(0,y.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:U}})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_LOOKUP_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LIST_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.COMPLETED}})),{type:A.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:N||{all_restore_exists:!1,files:[]}})),(0,l.K)(N=>(this.handleErrorWithAlert("RestoreChannelsList",A.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API,N),(0,y.of)({type:A.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"/alltransactions").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchLightningTransactions",A.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",N),(0,y.of)({type:A.pg.VOID})))))))),this.store.select(w.yA).pipe((0,o.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.FetchBalanceBlockchain.status!==A.Bn.COMPLETED&&N.FetchBalanceBlockchain.status!==A.Bn.ERROR||N.FetchAllChannels.status!==A.Bn.COMPLETED&&N.FetchAllChannels.status!==A.Bn.ERROR||N.FetchPendingChannels.status!==A.Bn.COMPLETED&&N.FetchPendingChannels.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(N=>{this.logger.info("Received new message from the service: "+JSON.stringify(N)),N&&(N.type===A.g8.INVOICE?(this.logger.info(N),N&&N.result&&N.result.payment_request&&this.store.dispatch((0,P.aL)({payload:N.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(N)))})}initializeRemainingData(a,p){this.sessionService.setItem("lndUnlocked","true");const u={identity_pubkey:a.identity_pubkey,alias:a.alias,testnet:a.testnet,chains:a.chains,uris:a.uris,version:a.version?a.version.split(" ")[0]:""};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:u}));let _=this.location.path();_.includes("/cln/")?_=_.replace("/cln/","/lnd/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===p||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Z7)()),this.store.dispatch((0,P.Zh)()),this.store.dispatch((0,P.$W)()),this.store.dispatch((0,P.Rv)()),this.store.dispatch((0,P.SN)()),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,P.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(a,p,u,_){this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:p})),this.store.dispatch((0,P.PC)({payload:{action:a,status:A.Bn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,u)}})))}handleErrorWithAlert(a,p,u,_,D){if(this.logger.error(D),401===D.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const O=this.commonService.extractErrorMessage(D);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:D.status,message:O,URL:_},component:I.H}}})),this.store.dispatch((0,P.PC)({payload:{action:a,status:A.Bn.ERROR,statusCode:D.status.toString(),message:O,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return v.\u0275fac=function(a){return new(a||v)(V.LFG(e.eX),V.LFG(j.eN),V.LFG(W.yh),V.LFG(te.mQ),V.LFG(ee.v),V.LFG(ge.m),V.LFG(le.uw),V.LFG(re.F0),V.LFG(de.d),V.LFG(se.Ye))},v.\u0275prov=V.Yz7({token:v,factory:v.\u0275fac}),v})()},6529:(Ge,Q,m)=>{"use strict";m.d(Q,{$k:()=>y,Q5:()=>C,yA:()=>M,Bo:()=>l,PP:()=>R,JG:()=>s,Wi:()=>L,dx:()=>I,Ef:()=>A,ZW:()=>E,ni:()=>w,P2:()=>V,qU:()=>j,T4:()=>te,N7:()=>ee,l5:()=>ge,_f:()=>le,bx:()=>re});var e=m(5620);const t=(0,e.ZF)("lnd"),y=(0,e.P1)(t,de=>de.nodeSettings),C=(0,e.P1)(t,de=>de.information),M=((0,e.P1)(t,de=>({information:de.information,apiCallStatus:de.apisCallStatus.FetchInfo})),(0,e.P1)(t,de=>de.apisCallStatus)),l=(0,e.P1)(t,de=>({forwardingHistory:de.forwardingHistory,apiCallStatus:de.apisCallStatus.FetchForwardingHistory})),R=(0,e.P1)(t,de=>({listPayments:de.listPayments,apiCallStatus:de.apisCallStatus.FetchPayments})),s=(0,e.P1)(t,de=>({fees:de.fees,apiCallStatus:de.apisCallStatus.FetchFees})),L=(0,e.P1)(t,de=>({peers:de.peers,apiCallStatus:de.apisCallStatus.FetchPeers})),I=(0,e.P1)(t,de=>({transactions:de.transactions,apiCallStatus:de.apisCallStatus.FetchTransactions})),A=(0,e.P1)(t,de=>({listInvoices:de.listInvoices,apiCallStatus:de.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,de=>({channels:de.channels,channelsSummary:de.channelsSummary,lightningBalance:de.lightningBalance,apiCallStatus:de.apisCallStatus.FetchAllChannels})),w=((0,e.P1)(t,de=>({channelsSummary:de.channelsSummary,pendingChannels:de.pendingChannels,closedChannels:de.closedChannels,apiCallStatus:de.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,de=>({pendingChannels:de.pendingChannels,pendingChannelsSummary:de.pendingChannelsSummary,apiCallStatus:de.apisCallStatus.FetchPendingChannels}))),V=(0,e.P1)(t,de=>({closedChannels:de.closedChannels,apiCallStatus:de.apisCallStatus.FetchClosedChannels})),j=(0,e.P1)(t,de=>({blockchainBalance:de.blockchainBalance,apiCallStatus:de.apisCallStatus.FetchBalanceBlockchain})),te=((0,e.P1)(t,de=>({lightningBalance:de.lightningBalance,apiCallStatus:de.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,de=>({utxos:de.utxos,apiCallStatus:de.apisCallStatus.FetchUTXOs}))),ee=(0,e.P1)(t,de=>({networkInfo:de.networkInfo,apiCallStatus:de.apisCallStatus.FetchNetwork})),ge=(0,e.P1)(t,de=>({allLightningTransactions:de.allLightningTransactions,apiCallStatus:de.apisCallStatus.FetchLightningTransactions})),le=(0,e.P1)(t,de=>({channels:de.channels,pendingChannels:de.pendingChannels,closedChannels:de.closedChannels})),re=(0,e.P1)(t,de=>({information:de.information,nodeSettings:de.nodeSettings,apiCallStatus:de.apisCallStatus.FetchInfo}))},8627:(Ge,Q,m)=>{"use strict";m.d(Q,{v:()=>$});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(6529),l=m(5e3),R=m(5043),s=m(62),L=m(7261),I=m(5620),A=m(7093),E=m(9808),P=m(3322),w=m(9224),V=m(9444),j=m(7423),W=m(644),te=m(4834),ee=m(159),ge=m(773),le=m(1125),re=m(7238),de=m(5245),se=m(3390),ye=m(6895);const v=["scrollContainer"];function i(oe,Ce){if(1&oe&&l._UZ(0,"qr-code",32),2&oe){const Ue=l.oxw();l.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function a(oe,Ce){1&oe&&(l.TgZ(0,"span",33),l._uU(1,"N/A"),l.qZA())}function p(oe,Ce){if(1&oe&&l._UZ(0,"qr-code",32),2&oe){const Ue=l.oxw();l.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function u(oe,Ce){1&oe&&(l.TgZ(0,"span",34),l._uU(1,"QR Code Not Applicable"),l.qZA())}function _(oe,Ce){1&oe&&l._UZ(0,"mat-divider",22),2&oe&&l.Q6J("inset",!0)}function D(oe,Ce){1&oe&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function O(oe,Ce){1&oe&&l._UZ(0,"span",40)}const x=function(){return[]};function r(oe,Ce){if(1&oe&&(l.TgZ(0,"div",36),l.TgZ(1,"div",37),l.TgZ(2,"span",38),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,O,1,0,"span",39),l.qZA(),l.qZA()),2&oe){const Ue=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,x).constructor(35))}}function b(oe,Ce){if(1&oe&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&oe){const Ue=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats")}}function Z(oe,Ce){if(1&oe&&(l.ynx(0),l.YNc(1,r,6,5,"div",35),l.YNc(2,b,3,3,"div",21),l.BQk()),2&oe){const Ue=l.oxw();l.xp6(1),l.Q6J("ngIf",Ue.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!Ue.flgInvoicePaid)}}function N(oe,Ce){1&oe&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function U(oe,Ce){1&oe&&l._UZ(0,"mat-spinner",42),2&oe&&l.Q6J("diameter",20)}function ve(oe,Ce){if(1&oe&&(l.ynx(0),l.YNc(1,N,2,0,"span",21),l.YNc(2,U,1,1,"mat-spinner",41),l.BQk()),2&oe){const Ue=l.oxw();l.xp6(1),l.Q6J("ngIf","OPEN"!==(null==Ue.invoice?null:Ue.invoice.state)||!Ue.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","OPEN"===(null==Ue.invoice?null:Ue.invoice.state)&&Ue.flgVersionCompatible)}}const be=function(oe){return{"mr-0":oe}};function Re(oe,Ce){if(1&oe&&l._UZ(0,"span",59),2&oe){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,be,Ue.screenSize===Ue.screenSizeEnum.XS))}}function ze(oe,Ce){if(1&oe&&l._UZ(0,"span",60),2&oe){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,be,Ue.screenSize===Ue.screenSizeEnum.XS))}}function Oe(oe,Ce){if(1&oe&&l._UZ(0,"span",61),2&oe){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,be,Ue.screenSize===Ue.screenSizeEnum.XS))}}function K(oe,Ce){if(1&oe&&(l.TgZ(0,"div",48),l.TgZ(1,"div",53),l.TgZ(2,"span",54),l.YNc(3,Re,1,3,"span",55),l.YNc(4,ze,1,3,"span",56),l.YNc(5,Oe,1,3,"span",57),l._uU(6),l.qZA(),l.TgZ(7,"span",58),l._uU(8),l.ALo(9,"number"),l.qZA(),l.qZA(),l._UZ(10,"mat-divider",22),l.qZA()),2&oe){const Ue=Ce.$implicit,lt=l.oxw(3);l.xp6(3),l.Q6J("ngIf","SETTLED"===Ue.state),l.xp6(1),l.Q6J("ngIf","ACCEPTED"===Ue.state),l.xp6(1),l.Q6J("ngIf","CANCELED"===Ue.state),l.xp6(1),l.hij(" ",Ue.chan_id," "),l.xp6(2),l.Oqu(l.xi3(9,6,+Ue.amt_msat/1e3||0,lt.getDecimalFormat(Ue))),l.xp6(2),l.Q6J("inset",!0)}}function Me(oe,Ce){if(1&oe){const Ue=l.EpF();l.TgZ(0,"div",17),l.TgZ(1,"mat-expansion-panel",46),l.NdJ("opened",function(){return l.CHM(Ue),l.oxw(2).flgOpened=!0})("closed",function(){return l.CHM(Ue),l.oxw(2).onExpansionClosed()}),l.TgZ(2,"mat-expansion-panel-header"),l.TgZ(3,"mat-panel-title"),l.TgZ(4,"h4",47),l._uU(5,"HTLCs"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(6,"div",48),l.TgZ(7,"div",49),l.TgZ(8,"span",50),l._uU(9,"Channel ID"),l.qZA(),l.TgZ(10,"span",51),l._uU(11,"Amount (Sats)"),l.qZA(),l.qZA(),l._UZ(12,"mat-divider",22),l.YNc(13,K,11,9,"div",52),l.qZA(),l.qZA(),l.qZA()}if(2&oe){const Ue=l.oxw(2);l.xp6(12),l.Q6J("inset",!0),l.xp6(1),l.Q6J("ngForOf",null==Ue.invoice?null:Ue.invoice.htlcs)}}function we(oe,Ce){1&oe&&l._UZ(0,"mat-divider",22),2&oe&&l.Q6J("inset",!0)}function z(oe,Ce){if(1&oe&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",22),l.TgZ(2,"div",17),l.TgZ(3,"div",23),l.TgZ(4,"h4",19),l._uU(5,"Preimage"),l.qZA(),l.TgZ(6,"span",24),l._uU(7),l.qZA(),l.qZA(),l.qZA(),l._UZ(8,"mat-divider",22),l.TgZ(9,"div",17),l.TgZ(10,"div",43),l.TgZ(11,"h4",19),l._uU(12,"State"),l.qZA(),l.TgZ(13,"span",24),l._uU(14),l.qZA(),l.qZA(),l.TgZ(15,"div",44),l.TgZ(16,"h4",19),l._uU(17,"Expiry"),l.qZA(),l.TgZ(18,"span",24),l._uU(19),l.qZA(),l.qZA(),l.TgZ(20,"div",44),l.TgZ(21,"h4",19),l._uU(22,"Private Routing Hints"),l.qZA(),l.TgZ(23,"span",24),l._uU(24),l.qZA(),l.qZA(),l.qZA(),l._UZ(25,"mat-divider",22),l.YNc(26,Me,14,2,"div",45),l.YNc(27,we,1,1,"mat-divider",14),l.qZA()),2&oe){const Ue=l.oxw();l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==Ue.invoice?null:Ue.invoice.r_preimage)||"-"),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu(null==Ue.invoice?null:Ue.invoice.state),l.xp6(5),l.Oqu(null==Ue.invoice?null:Ue.invoice.expiry),l.xp6(5),l.Oqu(null!=Ue.invoice&&Ue.invoice.private?"Yes":"No"),l.xp6(1),l.Q6J("inset",!0),l.xp6(1),l.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0),l.xp6(1),l.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0)}}function Ze(oe,Ce){if(1&oe){const Ue=l.EpF();l.TgZ(0,"div",62),l.TgZ(1,"button",63),l.NdJ("click",function(){return l.CHM(Ue),l.oxw().onScrollDown()}),l.TgZ(2,"mat-icon",64),l._uU(3,"arrow_downward"),l.qZA(),l.qZA(),l.qZA()}}function vt(oe,Ce){1&oe&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function Fe(oe,Ce){1&oe&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function Ne(oe,Ce){if(1&oe){const Ue=l.EpF();l.TgZ(0,"button",65),l.NdJ("copied",function(nt){return l.CHM(Ue),l.oxw().onCopyPayment(nt)}),l._uU(1),l.qZA()}if(2&oe){const Ue=l.oxw();l.Q6J("payload",null==Ue.invoice?null:Ue.invoice.payment_request),l.xp6(1),l.Oqu(Ue.screenSize===Ue.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function ce(oe,Ce){if(1&oe){const Ue=l.EpF();l.TgZ(0,"button",66),l.NdJ("click",function(){return l.CHM(Ue),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const Le=function(oe){return{"display-none":oe}},Pe=function(oe){return{"xs-scroll-y":oe}},q=function(oe){return{"h-50":oe}};let $=(()=>{class oe{constructor(Ue,lt,nt,ft,it,rt){this.dialogRef=Ue,this.data=lt,this.logger=nt,this.commonService=ft,this.snackBar=it,this.store=rt,this.faReceipt=t.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}set container(Ue){Ue&&(this.scrollContainer=Ue)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.Q5).pipe((0,C.R)(this.unSubs[0])).subscribe(lt=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(lt.version,"0.11.0")});const Ue=JSON.parse(JSON.stringify(this.invoice));this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(lt=>{const nt=this.invoice.state,it=(lt.listInvoices.invoices||[]).find(rt=>rt.r_hash===Ue.r_hash);this.invoice=it,nt!==this.invoice.state&&"SETTLED"===this.invoice.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(lt)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(Ue){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+Ue)}getDecimalFormat(Ue){return Ue.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(Ue=>{Ue.next(null),Ue.complete()})}}return oe.\u0275fac=function(Ue){return new(Ue||oe)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(I.yh))},oe.\u0275cmp=l.Xpm({type:oe,selectors:[["rtl-invoice-information"]],viewQuery:function(Ue,lt){if(1&Ue&&l.Gf(v,5),2&Ue){let nt;l.iGM(nt=l.CRH())&&(lt.container=nt.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(Ue,lt){if(1&Ue&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,i,1,3,"qr-code",2),l.YNc(3,a,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return lt.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,p,1,3,"qr-code",2),l.YNc(16,u,2,0,"span",13),l.qZA(),l.YNc(17,_,1,1,"mat-divider",14),l.TgZ(18,"div",15,16),l.TgZ(20,"div",17),l.TgZ(21,"div",18),l.TgZ(22,"h4",19),l._uU(23),l.qZA(),l.TgZ(24,"span",20),l._uU(25),l.ALo(26,"number"),l.YNc(27,D,2,0,"ng-container",21),l.qZA(),l.qZA(),l.TgZ(28,"div",18),l.TgZ(29,"h4",19),l._uU(30,"Amount Settled"),l.qZA(),l.TgZ(31,"span",20),l.YNc(32,Z,3,2,"ng-container",21),l.YNc(33,ve,3,2,"ng-container",21),l.qZA(),l.qZA(),l.qZA(),l._UZ(34,"mat-divider",22),l.TgZ(35,"div",17),l.TgZ(36,"div",18),l.TgZ(37,"h4",19),l._uU(38,"Date Created"),l.qZA(),l.TgZ(39,"span",20),l._uU(40),l.ALo(41,"date"),l.qZA(),l.qZA(),l.TgZ(42,"div",18),l.TgZ(43,"h4",19),l._uU(44,"Date Settled"),l.qZA(),l.TgZ(45,"span",20),l._uU(46),l.ALo(47,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(48,"mat-divider",22),l.TgZ(49,"div",17),l.TgZ(50,"div",23),l.TgZ(51,"h4",19),l._uU(52,"Memo"),l.qZA(),l.TgZ(53,"span",20),l._uU(54),l.qZA(),l.qZA(),l.qZA(),l._UZ(55,"mat-divider",22),l.TgZ(56,"div",17),l.TgZ(57,"div",23),l.TgZ(58,"h4",19),l._uU(59,"Payment Request"),l.qZA(),l.TgZ(60,"span",24),l._uU(61),l.qZA(),l.qZA(),l.qZA(),l._UZ(62,"mat-divider",22),l.TgZ(63,"div",17),l.TgZ(64,"div",23),l.TgZ(65,"h4",19),l._uU(66,"Payment Hash"),l.qZA(),l.TgZ(67,"span",24),l._uU(68),l.qZA(),l.qZA(),l.qZA(),l.YNc(69,z,28,9,"div",21),l.qZA(),l.qZA(),l.qZA(),l.YNc(70,Ze,4,0,"div",25),l.TgZ(71,"div",26),l.TgZ(72,"button",27),l.NdJ("click",function(){return lt.onShowAdvanced()}),l.YNc(73,vt,2,0,"p",28),l.YNc(74,Fe,2,0,"ng-template",null,29,l.W1O),l.qZA(),l.YNc(76,Ne,2,2,"button",30),l.YNc(77,ce,2,0,"button",31),l.qZA(),l.qZA(),l.qZA()),2&Ue){const nt=l.MAs(75);l.xp6(1),l.Q6J("fxLayoutAlign",null!=lt.invoice&<.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",l.VKq(41,Le,lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(4),l.Q6J("icon",lt.faReceipt),l.xp6(2),l.Oqu(lt.screenSize===lt.screenSizeEnum.XS?lt.newlyAdded?"Created":"Invoice":lt.newlyAdded?"Invoice Created":"Invoice Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(43,Pe,lt.screenSize===lt.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=lt.invoice&<.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",l.VKq(45,Le,lt.screenSize!==lt.screenSizeEnum.XS&<.screenSize!==lt.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM),l.xp6(1),l.Q6J("ngClass",l.VKq(47,q,(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&<.showAdvanced)),l.xp6(5),l.Oqu(lt.screenSize===lt.screenSizeEnum.XS?"Amount":"Amount Requested"),l.xp6(2),l.hij("",l.lcZ(26,33,(null==lt.invoice?null:lt.invoice.value)||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.value)||"0"===(null==lt.invoice?null:lt.invoice.value)),l.xp6(5),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.amt_paid_sat)&&"OPEN"!==(null==lt.invoice?null:lt.invoice.state)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.amt_paid_sat)||"0"===(null==lt.invoice?null:lt.invoice.amt_paid_sat)),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu(l.xi3(41,35,1e3*(null==lt.invoice?null:lt.invoice.creation_date),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(0!=+(null==lt.invoice?null:lt.invoice.settle_date)?l.xi3(47,38,1e3*+(null==lt.invoice?null:lt.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),l.xp6(2),l.Q6J("inset",!0),l.xp6(6),l.Oqu(null==lt.invoice?null:lt.invoice.memo),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==lt.invoice?null:lt.invoice.payment_request)||"N/A"),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==lt.invoice?null:lt.invoice.r_hash)||""),l.xp6(1),l.Q6J("ngIf",lt.showAdvanced),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&<.showAdvanced&<.flgOpened),l.xp6(3),l.Q6J("ngIf",!lt.showAdvanced)("ngIfElse",nt),l.xp6(3),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request))}},directives:[A.xw,A.Wh,A.yH,E.mk,P.oO,E.O5,w.dk,V.BN,j.lW,w.dn,W.$V,te.d,ee.uU,E.sg,ge.$g,le.ib,le.yz,le.yK,re.gM,de.Hw,se.h,ye.y],pipes:[E.JJ,E.uU],styles:[""]}),oe})()},7772:(Ge,Q,m)=>{"use strict";m.d(Q,{_:()=>t,J:()=>y});var e=m(1777);const t=[(0,e.X$)("opacityAnimation",[(0,e.eR)(":enter",[(0,e.oB)({opacity:0}),(0,e.jt)("1000ms ease-in",(0,e.oB)({opacity:1}))]),(0,e.eR)(":leave",[(0,e.jt)("0ms",(0,e.oB)({opacity:0}))])])],y=[(0,e.X$)("fadeIn",[(0,e.eR)("void => *",[]),(0,e.eR)("* => void",[]),(0,e.eR)("* => *",[(0,e.jt)(800,(0,e.F4)([(0,e.oB)({opacity:0,transform:"translateY(100%)"}),(0,e.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Ge,Q,m)=>{"use strict";m.d(Q,{g:()=>t});var e=m(1777);const t=(0,e.X$)("routeAnimation",[(0,e.eR)("* => *",[(0,e.IO)(":enter, :leave",(0,e.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Ge,Q,m)=>{"use strict";m.d(Q,{l:()=>t});var e=m(1777);const t=[(0,e.X$)("sliderAnimation",[(0,e.SB)("*",(0,e.oB)({transform:"translateX(0)"})),(0,e.eR)("void => backward",[(0,e.oB)({transform:"translateX(-100%"}),(0,e.jt)("800ms")]),(0,e.eR)("backward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(100%)"}))]),(0,e.eR)("void => forward",[(0,e.oB)({transform:"translateX(100%"}),(0,e.jt)("800ms")]),(0,e.eR)("forward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(-100%)"}))])])]},1786:(Ge,Q,m)=>{"use strict";m.d(Q,{H:()=>I});var e=m(8966),t=m(5e3),y=m(5043),C=m(7093),o=m(9224),M=m(7423),l=m(9808),R=m(4834),s=m(3390);function L(A,E){if(1&A&&(t.TgZ(0,"p",14),t._uU(1),t.qZA()),2&A){const P=t.oxw();t.xp6(1),t.Oqu(P.data.titleMessage)}}let I=(()=>{class A{constructor(P,w,V){this.dialogRef=P,this.data=w,this.logger=V,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 A.\u0275fac=function(P){return new(P||A)(t.Y36(e.so),t.Y36(e.WI),t.Y36(y.mQ))},A.\u0275cmp=t.Xpm({type:A,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(P,w){1&P&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return w.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.YNc(10,L,2,1,"p",8),t.TgZ(11,"h4",9),t._uU(12,"Error Code"),t.qZA(),t.TgZ(13,"span"),t._uU(14),t.qZA(),t._UZ(15,"mat-divider",10),t.TgZ(16,"h4",9),t._uU(17,"Error Message"),t.qZA(),t.TgZ(18,"span",11),t._uU(19),t.qZA(),t._UZ(20,"mat-divider",10),t.TgZ(21,"h4",9),t._uU(22,"API URL"),t.qZA(),t.TgZ(23,"span",11),t._uU(24),t.qZA(),t._UZ(25,"mat-divider",10),t.TgZ(26,"div",12),t.TgZ(27,"button",13),t._uU(28,"OK"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&P&&(t.xp6(5),t.Oqu(w.data.alertTitle||"ERROR"),t.xp6(5),t.Q6J("ngIf",w.data.titleMessage),t.xp6(4),t.Oqu(w.data.message.code),t.xp6(5),t.Oqu(w.errorMessage),t.xp6(5),t.Oqu(w.data.message.URL),t.xp6(3),t.Q6J("mat-dialog-close",!1))},directives:[C.xw,C.yH,o.dk,C.Wh,M.lW,o.dn,l.O5,R.d,s.h,e.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),A})()},9442:(Ge,Q,m)=>{"use strict";m.d(Q,{w:()=>R});var e=m(801),t=m(5e3),y=m(1402),C=m(7093),o=m(9444),M=m(9224),l=m(7423);let R=(()=>{class s{constructor(I){this.router=I,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}}return s.\u0275fac=function(I){return new(I||s)(t.Y36(y.F0))},s.\u0275cmp=t.Xpm({type:s,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(I,A){1&I&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Page Not Found"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"div",5),t.TgZ(8,"div",6),t._uU(9,"This page does not exist!"),t.qZA(),t.TgZ(10,"span",7),t.TgZ(11,"button",8),t.NdJ("click",function(){return A.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&I&&(t.xp6(1),t.Q6J("icon",A.faTimes))},directives:[C.xw,C.Wh,o.BN,M.a8,M.dn,C.yH,l.lW],encapsulation:2}),s})()},8213:(Ge,Q,m)=>{"use strict";m.d(Q,{a:()=>Xi});var e=m(3075),t=m(7579),y=m(2722),C=m(8966),o=m(801),M=m(7772),l=m(7731),R=m(6529),s=m(5e3),L=m(5620),I=m(9107),A=m(9808),E=m(5043),P=m(1402),w=m(62),V=m(7093),j=m(9224),W=m(7423),te=m(5615),ee=m(1125),ge=m(3322),le=m(5245),re=m(7238),de=m(4834);function se(Ke,_t){1&Ke&&s.GkF(0)}function ye(Ke,_t){1&Ke&&s.GkF(0)}const v=function(Ke){return{"h-5":Ke}};function i(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-expansion-panel",3),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"span",4),s._uU(4),s.ALo(5,"number"),s.qZA(),s.qZA(),s.qZA(),s.YNc(6,ye,1,0,"ng-container",0),s.qZA()),2&Ke){const _e=s.oxw(),qe=s.MAs(4);s.Q6J("expanded",_e.panelExpanded)("ngClass",s.VKq(7,v,!_e.flgShowPanel)),s.xp6(4),s.AsE("Quote for ",_e.termCaption," amount (",s.lcZ(5,5,_e.quote.amount)," Sats)"),s.xp6(2),s.Q6J("ngTemplateOutlet",qe)}}function a(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",19),s.TgZ(1,"h4",8),s._uU(2," Prepay Amount (Sats) "),s.TgZ(3,"mat-icon",20),s._uU(4,"info_outline"),s.qZA(),s.qZA(),s.TgZ(5,"span",10),s._uU(6),s.ALo(7,"number"),s.qZA(),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(6),s.Oqu(s.lcZ(7,1,null==_e.quote?null:_e.quote.prepay_amt_sat))}}function p(Ke,_t){1&Ke&&s._UZ(0,"mat-divider",13)}function u(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",6),s.TgZ(1,"div",21),s.TgZ(2,"h4",8),s._uU(3," Swap Server Node Pubkey "),s.TgZ(4,"mat-icon",22),s._uU(5,"info_outline"),s.qZA(),s.qZA(),s.TgZ(6,"span",10),s._uU(7),s.qZA(),s.qZA(),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(7),s.Oqu(null==_e.quote?null:_e.quote.swap_payment_dest)}}function _(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",5),s.TgZ(1,"div",6),s.TgZ(2,"div",7),s.TgZ(3,"h4",8),s._uU(4," Swap Fee (Sats) "),s.TgZ(5,"mat-icon",9),s._uU(6,"info_outline"),s.qZA(),s.qZA(),s.TgZ(7,"span",10),s._uU(8),s.ALo(9,"number"),s.qZA(),s.qZA(),s.TgZ(10,"div",7),s.TgZ(11,"h4",8),s._uU(12),s.TgZ(13,"mat-icon",11),s._uU(14,"info_outline"),s.qZA(),s.qZA(),s.TgZ(15,"span",10),s._uU(16),s.ALo(17,"number"),s.qZA(),s.qZA(),s.YNc(18,a,8,3,"div",12),s.qZA(),s._UZ(19,"mat-divider",13),s.TgZ(20,"div",6),s.TgZ(21,"div",14),s.TgZ(22,"h4",8),s._uU(23," Max Off-chain Swap Routing Fee (Sats) "),s.TgZ(24,"mat-icon",15),s._uU(25,"info_outline"),s.qZA(),s.qZA(),s.TgZ(26,"span",10),s._uU(27),s.ALo(28,"number"),s.qZA(),s.qZA(),s.TgZ(29,"div",14),s.TgZ(30,"h4",8),s._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),s.TgZ(32,"mat-icon",16),s._uU(33,"info_outline"),s.qZA(),s.qZA(),s.TgZ(34,"span",10),s._uU(35,"36"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,p,1,0,"mat-divider",17),s.YNc(37,u,8,1,"div",18),s.qZA()),2&Ke){const _e=s.oxw();s.xp6(2),s.Q6J("fxFlex",null!=_e.quote&&_e.quote.prepay_amt_sat?"30":"50"),s.xp6(6),s.Oqu(s.lcZ(9,9,null==_e.quote?null:_e.quote.swap_fee_sat)),s.xp6(2),s.Q6J("fxFlex",null!=_e.quote&&_e.quote.prepay_amt_sat?"35":"50"),s.xp6(2),s.hij(" ",null!=_e.quote&&_e.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=_e.quote&&_e.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),s.xp6(4),s.Oqu(s.lcZ(17,11,null!=_e.quote&&_e.quote.htlc_sweep_fee_sat?_e.quote.htlc_sweep_fee_sat:null!=_e.quote&&_e.quote.htlc_publish_fee_sat?_e.quote.htlc_publish_fee_sat:0)),s.xp6(2),s.Q6J("ngIf",null==_e.quote?null:_e.quote.prepay_amt_sat),s.xp6(9),s.Oqu(s.lcZ(28,13,(null==_e.quote?null:_e.quote.amount)*((null!=_e.quote&&_e.quote.off_chain_swap_routing_fee_percentage?null==_e.quote?null:_e.quote.off_chain_swap_routing_fee_percentage:2)/100))),s.xp6(9),s.Q6J("ngIf",""!==(null==_e.quote?null:_e.quote.swap_payment_dest)),s.xp6(1),s.Q6J("ngIf",""!==(null==_e.quote?null:_e.quote.swap_payment_dest))}}let D=(()=>{class Ke{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],[3,"fxFlex"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50"],["matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(_e,qe){if(1&_e&&(s.YNc(0,se,1,0,"ng-container",0),s.YNc(1,i,7,9,"ng-template",null,1,s.W1O),s.YNc(3,_,38,15,"ng-template",null,2,s.W1O)),2&_e){const yt=s.MAs(2),ue=s.MAs(4);s.Q6J("ngTemplateOutlet",qe.showPanel?yt:ue)}},directives:[A.tP,ee.ib,V.yH,A.mk,ge.oO,ee.yz,ee.yK,V.Wh,V.xw,le.Hw,re.gM,A.O5,de.d],pipes:[A.JJ],styles:[""]}),Ke})();var O=m(7322),x=m(7531),r=m(3390),b=m(2368),Z=m(9814),N=m(5899);function U(Ke,_t){1&Ke&&s.GkF(0)}function ve(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",3),s.TgZ(1,"span",4),s._uU(2),s.qZA(),s.qZA()),2&Ke){const _e=s.oxw();s.xp6(2),s.Oqu(null!=_e.loopStatus&&_e.loopStatus.error?null==_e.loopStatus?null:_e.loopStatus.error:"Unknown Error.")}}function be(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",3),s.TgZ(1,"div",5),s.TgZ(2,"div",6),s.TgZ(3,"h4",7),s._uU(4,"ID"),s.qZA(),s.TgZ(5,"span",4),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s._UZ(7,"mat-divider",8),s.TgZ(8,"div",5),s.TgZ(9,"div",6),s.TgZ(10,"h4",7),s._uU(11,"HTLC Address"),s.qZA(),s.TgZ(12,"span",4),s._uU(13),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&Ke){const _e=s.oxw();s.xp6(6),s.Oqu(null==_e.loopStatus?null:_e.loopStatus.id_bytes),s.xp6(7),s.Oqu(null==_e.loopStatus?null:_e.loopStatus.htlc_address)}}let Re=(()=>{class Ke{constructor(){}}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(_e,qe){if(1&_e&&(s.YNc(0,U,1,0,"ng-container",0),s.YNc(1,ve,3,1,"ng-template",null,1,s.W1O),s.YNc(3,be,14,2,"ng-template",null,2,s.W1O)),2&_e){const yt=s.MAs(2),ue=s.MAs(4);s.Q6J("ngTemplateOutlet",null!=qe.loopStatus&&qe.loopStatus.error?yt:ue)}},directives:[A.tP,V.xw,V.yH,V.Wh,de.d],styles:[""]}),Ke})();var ze=m(113);function Oe(Ke,_t){1&Ke&&s.GkF(0)}const K=function(Ke,_t){return{"small-svg":Ke,"large-svg":_t}};function Me(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",7),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",9),s.TgZ(6,"g",10),s.TgZ(7,"g",11),s._UZ(8,"circle",12),s._UZ(9,"path",13),s.qZA(),s.TgZ(10,"g",14),s._UZ(11,"ellipse",15),s._UZ(12,"ellipse",16),s._UZ(13,"rect",17),s._UZ(14,"rect",18),s._UZ(15,"rect",19),s._UZ(16,"rect",20),s._UZ(17,"rect",21),s._UZ(18,"rect",22),s._UZ(19,"rect",23),s._UZ(20,"rect",24),s._UZ(21,"rect",25),s._UZ(22,"rect",26),s._UZ(23,"rect",27),s._UZ(24,"rect",28),s._UZ(25,"rect",29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(26,"div",30),s.TgZ(27,"mat-card-title"),s._uU(28,"Loop Out explained."),s.qZA(),s.qZA(),s.TgZ(29,"div",31),s.TgZ(30,"mat-card-subtitle",32),s._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function we(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",33),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",38),s.TgZ(11,"g",39),s.TgZ(12,"g",40),s.TgZ(13,"g",41),s.TgZ(14,"g",42),s._UZ(15,"rect",43),s._UZ(16,"rect",44),s._UZ(17,"rect",45),s._UZ(18,"circle",46),s._UZ(19,"rect",47),s._UZ(20,"rect",48),s._UZ(21,"circle",49),s._UZ(22,"rect",50),s._UZ(23,"rect",51),s._UZ(24,"rect",52),s._UZ(25,"rect",53),s._UZ(26,"circle",54),s._UZ(27,"circle",55),s.qZA(),s.TgZ(28,"g",56),s._UZ(29,"path",57),s._UZ(30,"rect",58),s._UZ(31,"polygon",59),s._UZ(32,"circle",60),s._UZ(33,"path",61),s._UZ(34,"rect",62),s._UZ(35,"rect",63),s._UZ(36,"rect",64),s._UZ(37,"rect",65),s._UZ(38,"rect",66),s._UZ(39,"rect",67),s._UZ(40,"rect",68),s._UZ(41,"path",69),s._UZ(42,"path",70),s.qZA(),s._UZ(43,"path",71),s.qZA(),s.qZA(),s._UZ(44,"circle",72),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(45,"div",30),s.TgZ(46,"mat-card-title"),s._uU(47,"Step 1: Deciding to Loop Out"),s.qZA(),s.qZA(),s.TgZ(48,"div",31),s.TgZ(49,"mat-card-subtitle",32),s._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function z(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",73),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",74),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",75),s.TgZ(11,"g",76),s._UZ(12,"circle",77),s._UZ(13,"path",78),s.TgZ(14,"g",79),s._UZ(15,"polygon",80),s._UZ(16,"polygon",81),s._UZ(17,"path",82),s.qZA(),s.TgZ(18,"g",83),s._UZ(19,"polygon",84),s._UZ(20,"path",85),s._UZ(21,"rect",86),s._UZ(22,"path",87),s._UZ(23,"rect",88),s._UZ(24,"rect",89),s._UZ(25,"rect",90),s._UZ(26,"rect",91),s._UZ(27,"circle",92),s._UZ(28,"path",93),s.TgZ(29,"g",94),s.TgZ(30,"g",95),s._UZ(31,"g",96),s.qZA(),s._UZ(32,"g",97),s.qZA(),s._UZ(33,"path",98),s.qZA(),s.TgZ(34,"g",99),s.TgZ(35,"g",41),s.TgZ(36,"g",42),s._UZ(37,"rect",43),s._UZ(38,"rect",44),s._UZ(39,"rect",45),s._UZ(40,"circle",46),s._UZ(41,"rect",47),s._UZ(42,"rect",48),s._UZ(43,"circle",49),s._UZ(44,"rect",50),s._UZ(45,"rect",51),s._UZ(46,"rect",52),s._UZ(47,"rect",53),s._UZ(48,"circle",100),s._UZ(49,"circle",54),s._UZ(50,"circle",55),s._UZ(51,"circle",101),s.qZA(),s.TgZ(52,"g",56),s._UZ(53,"path",57),s._UZ(54,"rect",102),s._UZ(55,"polygon",103),s._UZ(56,"circle",104),s._UZ(57,"path",61),s._UZ(58,"rect",105),s._UZ(59,"rect",106),s._UZ(60,"rect",107),s._UZ(61,"rect",108),s._UZ(62,"rect",109),s._UZ(63,"rect",110),s._UZ(64,"rect",68),s._UZ(65,"path",69),s._UZ(66,"path",70),s.qZA(),s._UZ(67,"path",111),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(68,"div",30),s.TgZ(69,"mat-card-title"),s._uU(70,"Step 2: Send lightning payment"),s.qZA(),s.qZA(),s.TgZ(71,"div",31),s.TgZ(72,"mat-card-subtitle",32),s._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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Ze(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",112),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",113),s.TgZ(6,"g",114),s.TgZ(7,"g",115),s.TgZ(8,"g",116),s._UZ(9,"circle",12),s._UZ(10,"path",117),s.qZA(),s.TgZ(11,"g",14),s._UZ(12,"ellipse",118),s._UZ(13,"ellipse",16),s._UZ(14,"rect",17),s._UZ(15,"rect",18),s._UZ(16,"rect",19),s._UZ(17,"rect",20),s._UZ(18,"rect",21),s._UZ(19,"rect",22),s._UZ(20,"rect",23),s._UZ(21,"rect",24),s._UZ(22,"rect",25),s._UZ(23,"rect",26),s._UZ(24,"rect",27),s._UZ(25,"rect",28),s._UZ(26,"rect",29),s.qZA(),s.qZA(),s.TgZ(27,"g",119),s._UZ(28,"polygon",80),s._UZ(29,"polygon",120),s._UZ(30,"path",82),s.qZA(),s.TgZ(31,"g",121),s._UZ(32,"polygon",84),s._UZ(33,"path",85),s._UZ(34,"rect",86),s._UZ(35,"path",87),s._UZ(36,"rect",88),s._UZ(37,"rect",89),s._UZ(38,"rect",90),s._UZ(39,"rect",91),s._UZ(40,"circle",122),s._UZ(41,"path",93),s.TgZ(42,"g",94),s.TgZ(43,"g",95),s._UZ(44,"g",96),s.qZA(),s._UZ(45,"g",97),s.qZA(),s._UZ(46,"path",123),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(47,"div",30),s.TgZ(48,"mat-card-title"),s._uU(49,"Step 3: Receive funds back"),s.qZA(),s.qZA(),s.TgZ(50,"div",31),s.TgZ(51,"mat-card-subtitle",32),s._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function vt(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",124),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",125),s.TgZ(11,"g",126),s.TgZ(12,"g",42),s._UZ(13,"rect",127),s._UZ(14,"rect",128),s._UZ(15,"rect",129),s._UZ(16,"circle",130),s._UZ(17,"rect",131),s._UZ(18,"rect",132),s._UZ(19,"circle",133),s._UZ(20,"rect",134),s._UZ(21,"rect",135),s._UZ(22,"rect",136),s._UZ(23,"rect",137),s._UZ(24,"rect",138),s._UZ(25,"circle",139),s._UZ(26,"circle",140),s._UZ(27,"circle",141),s.qZA(),s.TgZ(28,"g",142),s.TgZ(29,"g",143),s.TgZ(30,"g",144),s._UZ(31,"path",145),s._UZ(32,"rect",146),s._UZ(33,"polygon",147),s.TgZ(34,"g",148),s._UZ(35,"path",149),s.qZA(),s._UZ(36,"rect",150),s._UZ(37,"rect",151),s._UZ(38,"rect",152),s._UZ(39,"rect",153),s._UZ(40,"rect",154),s._UZ(41,"rect",155),s._UZ(42,"rect",156),s._UZ(43,"path",157),s._UZ(44,"path",158),s.qZA(),s.TgZ(45,"g",159),s._UZ(46,"path",160),s._UZ(47,"path",161),s._UZ(48,"path",162),s._UZ(49,"path",163),s._UZ(50,"path",164),s._UZ(51,"path",165),s._UZ(52,"path",166),s._UZ(53,"path",167),s._UZ(54,"path",168),s._UZ(55,"path",169),s._UZ(56,"path",170),s._UZ(57,"circle",171),s._UZ(58,"circle",172),s.qZA(),s._UZ(59,"path",173),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(60,"div",30),s.TgZ(61,"mat-card-title"),s._uU(62,"Done!"),s.qZA(),s.qZA(),s.TgZ(63,"div",31),s.TgZ(64,"mat-card-subtitle",32),s._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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}let Fe=(()=>{class Ke{constructor(_e){this.commonService=_e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new s.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(_e){2===_e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===_e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(_e,qe){if(1&_e&&(s.YNc(0,Oe,1,0,"ng-container",0),s.YNc(1,Me,32,5,"ng-template",null,1,s.W1O),s.YNc(3,we,51,5,"ng-template",null,2,s.W1O),s.YNc(5,z,74,5,"ng-template",null,3,s.W1O),s.YNc(7,Ze,53,5,"ng-template",null,4,s.W1O),s.YNc(9,vt,66,5,"ng-template",null,5,s.W1O)),2&_e){const yt=s.MAs(2),ue=s.MAs(4),Je=s.MAs(6),St=s.MAs(8),kt=s.MAs(10);s.Q6J("ngTemplateOutlet",1===qe.stepNumber?yt:2===qe.stepNumber?ue:3===qe.stepNumber?Je:4===qe.stepNumber?St:kt)}},directives:[A.tP,V.xw,V.yH,V.Wh,A.mk,ge.oO,j.n5,j.$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:[ze.l]}}),Ke})();function Ne(Ke,_t){1&Ke&&s.GkF(0)}const ce=function(Ke,_t){return{"small-svg":Ke,"large-svg":_t}};function Le(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",7),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",9),s.TgZ(6,"g",10),s.TgZ(7,"g",11),s._UZ(8,"circle",12),s._UZ(9,"path",13),s.qZA(),s.TgZ(10,"g",14),s._UZ(11,"ellipse",15),s._UZ(12,"ellipse",16),s._UZ(13,"rect",17),s._UZ(14,"rect",18),s._UZ(15,"rect",19),s._UZ(16,"rect",20),s._UZ(17,"rect",21),s._UZ(18,"rect",22),s._UZ(19,"rect",23),s._UZ(20,"rect",24),s._UZ(21,"rect",25),s._UZ(22,"rect",26),s._UZ(23,"rect",27),s._UZ(24,"rect",28),s._UZ(25,"rect",29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(26,"div",30),s.TgZ(27,"mat-card-title"),s._uU(28,"Loop In explained."),s.qZA(),s.qZA(),s.TgZ(29,"div",31),s.TgZ(30,"mat-card-subtitle",32),s._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ce,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function Pe(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",33),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",38),s.TgZ(11,"g",39),s.TgZ(12,"g",40),s._UZ(13,"rect",41),s._UZ(14,"rect",42),s._UZ(15,"rect",43),s._UZ(16,"circle",44),s._UZ(17,"rect",45),s._UZ(18,"rect",46),s._UZ(19,"circle",47),s._UZ(20,"rect",48),s._UZ(21,"rect",49),s._UZ(22,"rect",50),s._UZ(23,"rect",51),s._UZ(24,"rect",52),s._UZ(25,"circle",53),s._UZ(26,"circle",54),s._UZ(27,"circle",55),s.qZA(),s.TgZ(28,"g",56),s.TgZ(29,"g",57),s.TgZ(30,"g",58),s._UZ(31,"path",59),s._UZ(32,"rect",60),s._UZ(33,"polygon",61),s.TgZ(34,"g",62),s._UZ(35,"path",63),s.qZA(),s._UZ(36,"rect",64),s._UZ(37,"rect",65),s._UZ(38,"rect",66),s._UZ(39,"rect",67),s._UZ(40,"rect",68),s._UZ(41,"rect",69),s._UZ(42,"rect",70),s._UZ(43,"path",71),s._UZ(44,"path",72),s.qZA(),s.TgZ(45,"g",73),s._UZ(46,"path",74),s._UZ(47,"path",75),s._UZ(48,"path",76),s._UZ(49,"path",77),s._UZ(50,"path",78),s._UZ(51,"path",79),s._UZ(52,"path",80),s._UZ(53,"path",81),s._UZ(54,"path",82),s._UZ(55,"path",83),s._UZ(56,"path",84),s._UZ(57,"circle",85),s._UZ(58,"circle",86),s.qZA(),s._UZ(59,"path",87),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(60,"div",30),s.TgZ(61,"mat-card-title"),s._uU(62,"Step 1: Deciding to Loop In"),s.qZA(),s.qZA(),s.TgZ(63,"div",31),s.TgZ(64,"mat-card-subtitle",32),s._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ce,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function q(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",88),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",89),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",90),s.TgZ(10,"g",91),s.TgZ(11,"g",92),s.TgZ(12,"g",93),s.TgZ(13,"g",94),s._UZ(14,"circle",95),s._UZ(15,"path",96),s.TgZ(16,"g",97),s._UZ(17,"polygon",98),s._UZ(18,"polygon",99),s._UZ(19,"path",100),s.qZA(),s.TgZ(20,"g",101),s._UZ(21,"polygon",102),s._UZ(22,"path",103),s._UZ(23,"rect",104),s._UZ(24,"path",105),s._UZ(25,"rect",106),s._UZ(26,"rect",107),s._UZ(27,"rect",108),s._UZ(28,"rect",109),s._UZ(29,"circle",110),s._UZ(30,"path",111),s.TgZ(31,"g",112),s.TgZ(32,"g",113),s._UZ(33,"g",114),s.qZA(),s._UZ(34,"g",115),s.qZA(),s.qZA(),s.qZA(),s.TgZ(35,"g",116),s.TgZ(36,"g",40),s._UZ(37,"rect",117),s._UZ(38,"rect",42),s._UZ(39,"rect",43),s._UZ(40,"circle",118),s._UZ(41,"rect",45),s._UZ(42,"rect",46),s._UZ(43,"circle",119),s._UZ(44,"rect",48),s._UZ(45,"rect",49),s._UZ(46,"rect",50),s._UZ(47,"rect",51),s._UZ(48,"rect",52),s._UZ(49,"circle",120),s._UZ(50,"circle",54),s._UZ(51,"circle",55),s._UZ(52,"circle",121),s.qZA(),s.TgZ(53,"g",56),s.TgZ(54,"g",57),s.TgZ(55,"g",58),s._UZ(56,"path",59),s._UZ(57,"rect",60),s._UZ(58,"polygon",61),s.TgZ(59,"g",122),s._UZ(60,"path",63),s.qZA(),s._UZ(61,"rect",123),s._UZ(62,"rect",124),s._UZ(63,"rect",125),s._UZ(64,"rect",126),s._UZ(65,"rect",127),s._UZ(66,"rect",128),s._UZ(67,"rect",129),s._UZ(68,"path",130),s._UZ(69,"path",72),s.qZA(),s.TgZ(70,"g",73),s._UZ(71,"path",131),s._UZ(72,"path",132),s._UZ(73,"path",133),s._UZ(74,"path",134),s._UZ(75,"path",135),s._UZ(76,"path",136),s._UZ(77,"path",80),s._UZ(78,"path",81),s._UZ(79,"path",137),s._UZ(80,"path",83),s._UZ(81,"path",138),s._UZ(82,"circle",85),s._UZ(83,"circle",86),s.qZA(),s._UZ(84,"path",139),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s._UZ(85,"path",140),s._UZ(86,"path",141),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(87,"div",30),s.TgZ(88,"mat-card-title"),s._uU(89,"Step 2: Send payment out"),s.qZA(),s.qZA(),s.TgZ(90,"div",31),s.TgZ(91,"mat-card-subtitle",32),s._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ce,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function $(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",142),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",90),s.TgZ(5,"g",143),s.TgZ(6,"g",144),s.TgZ(7,"g"),s.TgZ(8,"g",145),s.TgZ(9,"g",146),s._UZ(10,"circle",12),s._UZ(11,"path",147),s.qZA(),s.TgZ(12,"g",14),s._UZ(13,"ellipse",148),s._UZ(14,"ellipse",16),s._UZ(15,"rect",17),s._UZ(16,"rect",18),s._UZ(17,"rect",19),s._UZ(18,"rect",20),s._UZ(19,"rect",21),s._UZ(20,"rect",22),s._UZ(21,"rect",23),s._UZ(22,"rect",24),s._UZ(23,"rect",25),s._UZ(24,"rect",26),s._UZ(25,"rect",27),s._UZ(26,"rect",28),s._UZ(27,"rect",29),s.qZA(),s.qZA(),s.TgZ(28,"g",149),s._UZ(29,"polygon",150),s._UZ(30,"polygon",99),s._UZ(31,"path",151),s.qZA(),s.TgZ(32,"g",152),s._UZ(33,"polygon",102),s._UZ(34,"path",103),s._UZ(35,"rect",104),s._UZ(36,"path",105),s._UZ(37,"rect",106),s._UZ(38,"rect",107),s._UZ(39,"rect",108),s._UZ(40,"rect",109),s._UZ(41,"circle",110),s._UZ(42,"path",111),s.TgZ(43,"g",112),s.TgZ(44,"g",113),s._UZ(45,"g",114),s.qZA(),s._UZ(46,"g",115),s.qZA(),s.qZA(),s.qZA(),s._UZ(47,"path",153),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(48,"div",30),s.TgZ(49,"mat-card-title"),s._uU(50,"Step 3: Recieve Funds Off-chain"),s.qZA(),s.qZA(),s.TgZ(51,"div",31),s.TgZ(52,"mat-card-subtitle",32),s._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ce,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}function oe(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(_e),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",154),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",90),s.TgZ(10,"g",155),s.TgZ(11,"g",156),s.TgZ(12,"g",157),s.TgZ(13,"g",158),s.TgZ(14,"g",40),s._UZ(15,"rect",159),s._UZ(16,"rect",160),s._UZ(17,"rect",161),s._UZ(18,"circle",162),s._UZ(19,"rect",163),s._UZ(20,"rect",164),s._UZ(21,"circle",165),s._UZ(22,"rect",166),s._UZ(23,"rect",167),s._UZ(24,"rect",168),s._UZ(25,"rect",169),s._UZ(26,"circle",170),s._UZ(27,"circle",171),s.qZA(),s.TgZ(28,"g",172),s._UZ(29,"path",173),s._UZ(30,"rect",174),s._UZ(31,"polygon",175),s._UZ(32,"circle",176),s._UZ(33,"path",177),s._UZ(34,"rect",178),s._UZ(35,"rect",179),s._UZ(36,"rect",180),s._UZ(37,"rect",181),s._UZ(38,"rect",182),s._UZ(39,"rect",183),s._UZ(40,"rect",184),s._UZ(41,"path",185),s._UZ(42,"path",186),s.qZA(),s._UZ(43,"path",187),s.qZA(),s.qZA(),s._UZ(44,"circle",188),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(45,"div",30),s.TgZ(46,"mat-card-title"),s._uU(47,"Done!"),s.qZA(),s.qZA(),s.TgZ(48,"div",31),s.TgZ(49,"mat-card-subtitle",32),s._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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@sliderAnimation",_e.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ce,_e.screenSize===_e.screenSizeEnum.XS,_e.screenSize!==_e.screenSizeEnum.XS))}}let Ce=(()=>{class Ke{constructor(_e){this.commonService=_e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new s.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(_e){2===_e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===_e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(_e,qe){if(1&_e&&(s.YNc(0,Ne,1,0,"ng-container",0),s.YNc(1,Le,32,5,"ng-template",null,1,s.W1O),s.YNc(3,Pe,66,5,"ng-template",null,2,s.W1O),s.YNc(5,q,93,5,"ng-template",null,3,s.W1O),s.YNc(7,$,54,5,"ng-template",null,4,s.W1O),s.YNc(9,oe,51,5,"ng-template",null,5,s.W1O)),2&_e){const yt=s.MAs(2),ue=s.MAs(4),Je=s.MAs(6),St=s.MAs(8),kt=s.MAs(10);s.Q6J("ngTemplateOutlet",1===qe.stepNumber?yt:2===qe.stepNumber?ue:3===qe.stepNumber?Je:4===qe.stepNumber?St:kt)}},directives:[A.tP,V.xw,V.yH,V.Wh,A.mk,ge.oO,j.n5,j.$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:[ze.l]}}),Ke})();const Ue=["stepper"];function lt(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",48),s.TgZ(1,"p",49),s.TgZ(2,"strong"),s._uU(3,"Channel Peer:\xa0"),s.qZA(),s._uU(4),s.ALo(5,"titlecase"),s.qZA(),s.TgZ(6,"p",50),s.TgZ(7,"strong"),s._uU(8,"Channel ID:\xa0"),s.qZA(),s._uU(9),s.qZA(),s._UZ(10,"p",50),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(4),s.Oqu(s.lcZ(5,2,_e.channel.remote_alias)),s.xp6(5),s.Oqu(_e.channel.chan_id)}}function nt(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const _e=s.oxw(2);s.Oqu(_e.inputFormLabel)}}function ft(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Amount is required."),s.qZA())}function it(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"number"),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(1),s.hij("Amount must be greater than or equal to ",s.lcZ(2,1,_e.minQuote.amount),".")}}function rt(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"number"),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(1),s.hij("Amount must be less than or equal to ",s.lcZ(2,1,_e.maxQuote.amount),".")}}function Mt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Confirmation target is required."),s.qZA())}function Zt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Confirmation target must be a positive number."),s.qZA())}function Ft(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Percentage is required."),s.qZA())}function Vt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Percentage must be a positive number."),s.qZA())}function Ii(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-form-field",50),s._UZ(1,"input",51),s.YNc(2,Ft,2,0,"mat-error",25),s.YNc(3,Vt,2,0,"mat-error",25),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(1),s.Q6J("step",1),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.routingFeePercent.errors?null:_e.inputFormGroup.controls.routingFeePercent.errors.required),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.routingFeePercent.errors?null:_e.inputFormGroup.controls.routingFeePercent.errors.min)}}function jt(Ke,_t){1&Ke&&(s.TgZ(0,"div",52),s.TgZ(1,"mat-slide-toggle",53),s._uU(2,"Fast"),s.qZA(),s.TgZ(3,"mat-icon",54),s._uU(4,"info_outline"),s.qZA(),s.qZA())}function ei(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const _e=s.oxw(2);s.Oqu(_e.quoteFormLabel)}}function ki(Ke,_t){1&Ke&&(s.TgZ(0,"p",55),s.TgZ(1,"mat-icon",56),s._uU(2,"close"),s.qZA(),s._uU(3,"Local balance amount is insufficient for swap."),s.qZA())}function ai(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",57),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onValidateAmount()}),s._uU(1,"Next"),s.qZA()}}function hi(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",58),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onLoop()}),s._uU(1),s.qZA()}if(2&Ke){const _e=s.oxw(2);s.xp6(1),s.hij("Initiate ",_e.loopDirectionCaption,"")}}function Ve(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const _e=s.oxw(3);s.Oqu(_e.addressFormLabel)}}function Ee(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Address is required."),s.qZA())}function Y(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"mat-step",16),s.TgZ(1,"form",17),s.YNc(2,Ve,1,1,"ng-template",18),s.TgZ(3,"div",59),s.TgZ(4,"mat-radio-group",60),s.NdJ("change",function(yt){return s.CHM(_e),s.oxw(2).onAddressTypeChange(yt)}),s.TgZ(5,"mat-radio-button",61),s._uU(6,"Node Local Address"),s.qZA(),s.TgZ(7,"mat-radio-button",62),s._uU(8,"External Address"),s.qZA(),s.qZA(),s.TgZ(9,"mat-form-field",63),s._UZ(10,"input",64),s.YNc(11,Ee,2,0,"mat-error",25),s.qZA(),s.qZA(),s.TgZ(12,"div",29),s.TgZ(13,"button",65),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onLoop()}),s._uU(14),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw(2);s.Q6J("stepControl",_e.addressFormGroup)("editable",_e.flgEditable),s.xp6(1),s.Q6J("formGroup",_e.addressFormGroup),s.xp6(9),s.Q6J("required","external"===_e.addressFormGroup.controls.addressType.value),s.xp6(1),s.Q6J("ngIf",null==_e.addressFormGroup.controls.address.errors?null:_e.addressFormGroup.controls.address.errors.required),s.xp6(3),s.hij("Initiate ",_e.loopDirectionCaption,"")}}function pe(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const _e=s.oxw(2);s.hij("",_e.loopDirectionCaption," Status")}}function De(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-icon",66),s._uU(1),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(1),s.Oqu(_e.loopStatus&&null!=_e.loopStatus&&_e.loopStatus.id_bytes?"check":"close")}}function et(Ke,_t){1&Ke&&s._UZ(0,"div")}function $t(Ke,_t){1&Ke&&s._UZ(0,"mat-progress-bar",67)}function Nt(Ke,_t){if(1&Ke&&(s.TgZ(0,"h4",68),s._uU(1),s.qZA()),2&Ke){const _e=s.oxw(2);s.xp6(1),s.Oqu(_e.loopStatus&&_e.loopStatus.error?_e.loopDirectionCaption+" failed.":_e.loopStatus&&_e.loopStatus.id_bytes&&_e.channel?_e.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":_e.loopDirectionCaption+" request placed successfully.")}}function Jt(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",69),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).goToLoop()}),s._uU(1,"Check Status"),s.qZA()}}function ct(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",70),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onRestart()}),s._uU(1,"Start Again"),s.qZA()}}function ke(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",3),s.TgZ(1,"div",4),s.TgZ(2,"mat-card-header",5),s.TgZ(3,"div",6),s.TgZ(4,"span",7),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"div",8),s.TgZ(7,"button",9),s.NdJ("click",function(){return s.CHM(_e),s.oxw().showInfo()}),s._uU(8,"?"),s.qZA(),s.TgZ(9,"button",10),s.NdJ("click",function(){return s.CHM(_e),s.oxw().onClose()}),s._uU(10,"X"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"mat-card-content",11),s.TgZ(12,"div",12),s.YNc(13,lt,11,4,"div",13),s.TgZ(14,"mat-vertical-stepper",14,15),s.NdJ("selectionChange",function(yt){return s.CHM(_e),s.oxw().stepSelectionChanged(yt)}),s.TgZ(16,"mat-step",16),s.TgZ(17,"form",17),s.YNc(18,nt,1,1,"ng-template",18),s.TgZ(19,"div",19),s._UZ(20,"rtl-loop-quote",20),s._UZ(21,"rtl-loop-quote",20),s.qZA(),s.TgZ(22,"div",21),s.TgZ(23,"mat-form-field",22),s._UZ(24,"input",23),s.TgZ(25,"mat-hint"),s._uU(26),s.ALo(27,"number"),s.ALo(28,"number"),s.qZA(),s.TgZ(29,"span",24),s._uU(30,"Sats"),s.qZA(),s.YNc(31,ft,2,0,"mat-error",25),s.YNc(32,it,3,3,"mat-error",25),s.YNc(33,rt,3,3,"mat-error",25),s.qZA(),s.TgZ(34,"mat-form-field",22),s._UZ(35,"input",26),s.YNc(36,Mt,2,0,"mat-error",25),s.YNc(37,Zt,2,0,"mat-error",25),s.qZA(),s.YNc(38,Ii,4,3,"mat-form-field",27),s.qZA(),s.YNc(39,jt,5,0,"div",28),s.TgZ(40,"div",29),s.TgZ(41,"button",30),s.NdJ("click",function(){return s.CHM(_e),s.oxw().onEstimateQuote()}),s._uU(42,"Estimate Quote"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(43,"mat-step",16),s.TgZ(44,"form",17),s.YNc(45,ei,1,1,"ng-template",18),s._UZ(46,"rtl-loop-quote",31),s.YNc(47,ki,4,0,"p",32),s.TgZ(48,"div",29),s.YNc(49,ai,2,0,"button",33),s.YNc(50,hi,2,1,"button",34),s.qZA(),s.qZA(),s.qZA(),s.YNc(51,Y,15,6,"mat-step",35),s.TgZ(52,"mat-step",36),s.TgZ(53,"form",17),s.YNc(54,pe,1,1,"ng-template",18),s.TgZ(55,"div",37),s.TgZ(56,"mat-expansion-panel",38),s.TgZ(57,"mat-expansion-panel-header"),s.TgZ(58,"mat-panel-title"),s.TgZ(59,"span",39),s._uU(60),s.YNc(61,De,2,1,"mat-icon",40),s.qZA(),s.qZA(),s.qZA(),s.YNc(62,et,1,0,"div",41),s.qZA(),s.YNc(63,$t,1,0,"mat-progress-bar",42),s.qZA(),s.YNc(64,Nt,2,1,"h4",43),s.TgZ(65,"div",29),s.YNc(66,Jt,2,0,"button",44),s.YNc(67,ct,2,0,"button",45),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(68,"div",46),s.TgZ(69,"button",47),s._uU(70,"Close"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw(),qe=s.MAs(2);s.Q6J("@opacityAnimation",void 0),s.xp6(3),s.Q6J("fxFlex",_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM?"83":"91"),s.xp6(2),s.Oqu(_e.channel?"Channel "+_e.loopDirectionCaption:_e.loopDirectionCaption),s.xp6(1),s.Q6J("fxFlex",_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM?"17":"9"),s.xp6(7),s.Q6J("ngIf",_e.channel),s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("stepControl",_e.inputFormGroup)("editable",_e.flgEditable),s.xp6(1),s.Q6J("formGroup",_e.inputFormGroup),s.xp6(3),s.Q6J("quote",_e.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),s.xp6(1),s.Q6J("quote",_e.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),s.xp6(2),s.Q6J("fxFlex",_e.direction===_e.LoopTypeEnum.LOOP_OUT?"35":"48"),s.xp6(1),s.Q6J("step",1e3),s.xp6(2),s.AsE("Range: ",s.lcZ(27,51,_e.minQuote.amount),"-",s.lcZ(28,53,_e.maxQuote.amount),""),s.xp6(5),s.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.required),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.min),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.amount.errors?null:_e.inputFormGroup.controls.amount.errors.max),s.xp6(1),s.Q6J("fxFlex",_e.direction===_e.LoopTypeEnum.LOOP_OUT?"30":"48"),s.xp6(1),s.Q6J("step",1),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.sweepConfTarget.errors?null:_e.inputFormGroup.controls.sweepConfTarget.errors.required),s.xp6(1),s.Q6J("ngIf",null==_e.inputFormGroup.controls.sweepConfTarget.errors?null:_e.inputFormGroup.controls.sweepConfTarget.errors.min),s.xp6(1),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),s.xp6(4),s.Q6J("stepControl",_e.quoteFormGroup)("editable",_e.flgEditable),s.xp6(1),s.Q6J("formGroup",_e.quoteFormGroup),s.xp6(2),s.Q6J("quote",_e.quote)("showPanel",!1),s.xp6(1),s.Q6J("ngIf",_e.inputFormGroup.controls.amount.value>_e.localBalanceToCompare),s.xp6(2),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_IN),s.xp6(1),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("stepControl",_e.statusFormGroup),s.xp6(1),s.Q6J("formGroup",_e.statusFormGroup),s.xp6(3),s.Q6J("expanded",!!_e.loopStatus),s.xp6(4),s.Oqu(_e.loopStatus?_e.loopStatus.id_bytes?_e.loopDirectionCaption+" request details":_e.loopDirectionCaption+" error details":"Waiting for "+_e.loopDirectionCaption+" request..."),s.xp6(1),s.Q6J("ngIf",_e.loopStatus),s.xp6(1),s.Q6J("ngIf",!_e.loopStatus)("ngIfElse",qe),s.xp6(1),s.Q6J("ngIf",!_e.loopStatus),s.xp6(1),s.Q6J("ngIf",_e.loopStatus),s.xp6(2),s.Q6J("ngIf",_e.loopStatus&&_e.loopStatus.id_bytes&&_e.channel),s.xp6(1),s.Q6J("ngIf",_e.loopStatus&&(_e.loopStatus.error||!_e.loopStatus.id_bytes)),s.xp6(2),s.Q6J("mat-dialog-close",!1)}}function Be(Ke,_t){if(1&Ke&&s._UZ(0,"rtl-loop-status",71),2&Ke){const _e=s.oxw();s.Q6J("loopStatus",_e.loopStatus)}}function at(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"rtl-loop-out-info-graphics",88),s.NdJ("stepNumberChange",function(yt){return s.CHM(_e),s.oxw(2).stepNumber=yt}),s.qZA()}if(2&Ke){const _e=s.oxw(2);s.Q6J("stepNumber",_e.stepNumber)("animationDirection",_e.animationDirection)}}function st(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"rtl-loop-in-info-graphics",88),s.NdJ("stepNumberChange",function(yt){return s.CHM(_e),s.oxw(2).stepNumber=yt}),s.qZA()}if(2&Ke){const _e=s.oxw(2);s.Q6J("stepNumber",_e.stepNumber)("animationDirection",_e.animationDirection)}}const At=function(Ke,_t){return{"dot-primary":Ke,"dot-primary-lighter":_t}};function li(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"span",89),s.NdJ("click",function(){const ue=s.CHM(_e).$implicit;return s.oxw(2).onStepChanged(ue)}),s._UZ(1,"p",90),s.qZA()}if(2&Ke){const _e=_t.$implicit,qe=s.oxw(2);s.xp6(1),s.Q6J("ngClass",s.WLB(1,At,qe.stepNumber===_e,qe.stepNumber!==_e))}}function Bt(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",91),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onReadMore()}),s._uU(1,"Read More"),s.qZA()}}function Rt(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",92),s.NdJ("click",function(){return s.CHM(_e),s.oxw(2).onStepChanged(4)}),s._uU(1,"Back"),s.qZA()}}function Li(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",93),s.NdJ("click",function(){s.CHM(_e);const yt=s.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(1,"Close"),s.qZA()}}function si(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",94),s.NdJ("click",function(){s.CHM(_e);const yt=s.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(1,"Close"),s.qZA()}}function ci(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",95),s.NdJ("click",function(){s.CHM(_e);const yt=s.oxw(2);return yt.onStepChanged(yt.stepNumber-1)}),s._uU(1,"Back"),s.qZA()}}function sn(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"button",96),s.NdJ("click",function(){s.CHM(_e);const yt=s.oxw(2);return yt.onStepChanged(yt.stepNumber+1)}),s._uU(1,"Next"),s.qZA()}}const Ui=function(){return[1,2,3,4,5]};function Di(Ke,_t){if(1&Ke){const _e=s.EpF();s.TgZ(0,"div",72),s.TgZ(1,"div",19),s.TgZ(2,"mat-card-header",73),s.TgZ(3,"div",74),s._UZ(4,"span",7),s.qZA(),s.TgZ(5,"div",75),s.TgZ(6,"button",76),s.NdJ("click",function(){s.CHM(_e);const yt=s.oxw();return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(7,"X"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(8,"mat-card-content",77),s.YNc(9,at,1,2,"rtl-loop-out-info-graphics",78),s.YNc(10,st,1,2,"rtl-loop-in-info-graphics",78),s.qZA(),s.TgZ(11,"div",79),s.YNc(12,li,2,4,"span",80),s.qZA(),s.TgZ(13,"div",81),s.YNc(14,Bt,2,0,"button",82),s.YNc(15,Rt,2,0,"button",83),s.YNc(16,Li,2,0,"button",84),s.YNc(17,si,2,0,"button",85),s.YNc(18,ci,2,0,"button",86),s.YNc(19,sn,2,0,"button",87),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const _e=s.oxw();s.Q6J("@opacityAnimation",void 0),s.xp6(9),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",_e.direction===_e.LoopTypeEnum.LOOP_IN),s.xp6(2),s.Q6J("ngForOf",s.DdM(10,Ui)),s.xp6(2),s.Q6J("ngIf",5===_e.stepNumber),s.xp6(1),s.Q6J("ngIf",5===_e.stepNumber),s.xp6(1),s.Q6J("ngIf",5===_e.stepNumber),s.xp6(1),s.Q6J("ngIf",_e.stepNumber<5),s.xp6(1),s.Q6J("ngIf",_e.stepNumber>1&&_e.stepNumber<5),s.xp6(1),s.Q6J("ngIf",_e.stepNumber<5)}}let Xi=(()=>{class Ke{constructor(_e,qe,yt,ue,Je,St,kt,yi,Ni){this.dialogRef=_e,this.data=qe,this.store=yt,this.loopService=ue,this.formBuilder=Je,this.decimalPipe=St,this.logger=kt,this.router=yi,this.commonService=Ni,this.faInfoCircle=o.sqG,this.LoopTypeEnum=l.$I,this.direction=l.$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=l.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.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===l.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[e.kI.required,e.kI.min(this.minQuote.amount),e.kI.max(this.maxQuote.amount)]],sweepConfTarget:[6,[e.kI.required,e.kI.min(1)]],routingFeePercent:[2,[e.kI.required,e.kI.min(0)]],fast:[!1,[e.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[e.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(R.ZW).pipe((0,y.R)(this.unSubs[6])).subscribe(_e=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+_e.lightningBalance.local})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===l.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[4])).subscribe(_e=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===l.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[5])).subscribe(_e=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(_e){"external"===_e.value?(this.addressFormGroup.controls.address.setValidators([e.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===l.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===l.$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===l.$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,y.R)(this.unSubs[0])).subscribe({next:_e=>{this.loopStatus=_e,this.loopService.listSwaps(),this.flgEditable=!0},error:_e=>{this.loopStatus={error:_e},this.flgEditable=!0,this.logger.error(_e)}});else{const _e=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),qe="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",yt=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,_e,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,yt,qe).pipe((0,y.R)(this.unSubs[1])).subscribe({next:ue=>{this.loopStatus=ue,this.loopService.listSwaps(),this.flgEditable=!0},error:ue=>{this.loopStatus={error:ue},this.flgEditable=!0,this.logger.error(ue)}})}}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 _e=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===l.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,_e).pipe((0,y.R)(this.unSubs[2])).subscribe(qe=>{this.quote=qe,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,_e).pipe((0,y.R)(this.unSubs[3])).subscribe(qe=>{this.quote=qe,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(_e){switch(_e.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===l.$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===l.$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===l.$I.LOOP_OUT&&1!==_e.selectedIndex&&_e.selectedIndex<_e.previouslySelectedIndex||this.direction===l.$I.LOOP_IN&&_e.selectedIndex<_e.previouslySelectedIndex)&&_e.selectedStep.stepControl.setErrors({Invalid:!0})}goToLoop(){this.dialogRef.close(!0),this.router.navigateByUrl("/services/loop")}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===l.$I.LOOP_IN?window.open("https://blog.lightning.engineering/announcement/2019/06/25/loop-in.html","_blank"):window.open("https://blog.lightning.engineering/technical/posts/2019/04/15/loop-out-in-depth.html","_blank"),this.onClose()}onStepChanged(_e){this.animationDirection=_e{_e.next(null),_e.complete()})}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(s.Y36(C.so),s.Y36(C.WI),s.Y36(L.yh),s.Y36(I.W),s.Y36(e.qu),s.Y36(A.JJ),s.Y36(E.mQ),s.Y36(P.F0),s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-modal"]],viewQuery:function(_e,qe){if(1&_e&&s.Gf(Ue,5),2&_e){let yt;s.iGM(yt=s.CRH())&&(qe.stepper=yt.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(_e,qe){1&_e&&(s.YNc(0,ke,71,55,"div",0),s.YNc(1,Be,1,1,"ng-template",null,1,s.W1O),s.YNc(3,Di,20,11,"div",2)),2&_e&&(s.Q6J("ngIf",!qe.flgShowInfo),s.xp6(3),s.Q6J("ngIf",qe.flgShowInfo))},directives:[A.O5,V.xw,V.yH,V.Wh,j.dk,W.lW,j.dn,te.Vq,te.C0,e._Y,e.JL,e.sg,te.VY,D,O.KE,x.Nt,e.wV,e.Fj,r.h,e.JJ,e.u,e.Q7,O.bx,O.R9,ee.ib,ee.yz,ee.yK,C.ZT,O.TO,b.Rr,le.Hw,re.gM,Z.VQ,Z.U0,N.pW,Re,A.sg,Fe,Ce,A.mk,ge.oO],pipes:[A.JJ,A.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[M._]}}),Ke})()},3390:(Ge,Q,m)=>{"use strict";m.d(Q,{h:()=>t});var e=m(5e3);let t=(()=>{class y{constructor(o){this.el=o}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return y.\u0275fac=function(o){return new(o||y)(e.Y36(e.SBq))},y.\u0275dir=e.lG2({type:y,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),y})()},6895:(Ge,Q,m)=>{"use strict";m.d(Q,{y:()=>t});var e=m(5e3);let t=(()=>{class y{constructor(){this.copied=new e.vpe}onClick(o){o.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},M=>{this.copied.emit("Error could not copy text: "+JSON.stringify(M))})}}return y.\u0275fac=function(o){return new(o||y)},y.\u0275dir=e.lG2({type:y,selectors:[["","rtlClipboard",""]],hostBindings:function(o,M){1&o&&e.NdJ("click",function(R){return M.onClick(R)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),y})()},9843:(Ge,Q,m)=>{"use strict";m.d(Q,{F:()=>y});var e=m(3075),t=m(5e3);let y=(()=>{class C{validate(M){return this.max?e.kI.max(+this.max)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","max",""]],inputs:{max:"max"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},6534:(Ge,Q,m)=>{"use strict";m.d(Q,{q:()=>y});var e=m(3075),t=m(5e3);let y=(()=>{class C{validate(M){return this.min?e.kI.min(+this.min)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","min",""]],inputs:{min:"min"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},1643:(Ge,Q,m)=>{"use strict";m.d(Q,{a1:()=>o,QM:()=>M,eQ:()=>l,fY:()=>R});var e=m(4004),t=m(5e3),y=m(1402),C=m(5986);let o=(()=>{class s{constructor(I,A){this.router=I,this.sessionService=A}canActivate(I){return!(!this.sessionService.getItem("token")||"settings"!==I.url[0].path&&"auth"!==I.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return s.\u0275fac=function(I){return new(I||s)(t.LFG(y.F0),t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),M=(()=>{class s{constructor(I){this.sessionService=I}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(I=>I.lndUnlocked))}}return s.\u0275fac=function(I){return new(I||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),l=(()=>{class s{constructor(I){this.sessionService=I}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(I=>I.clUnlocked))}}return s.\u0275fac=function(I){return new(I||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),R=(()=>{class s{constructor(I){this.sessionService=I}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(I=>I.eclUnlocked))}}return s.\u0275fac=function(I){return new(I||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})()},62:(Ge,Q,m)=>{"use strict";m.d(Q,{v:()=>I});var e=m(1135),t=m(9646),y=m(2843),C=m(5698),o=m(4004),M=m(262),l=m(7731),R=m(5e3),s=m(8104),L=m(5043);let I=(()=>{class A{constructor(P,w){this.dataService=P,this.logger=w,this.currencyUnits=[],this.CurrencyUnitEnum=l.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=l.Bn.UN_INITIATED,this.screenSize=l.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new e.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(P){this.screenSize=P}getContainerSize(){return this.containerSize}setContainerSize(P,w){this.containerSize={width:P,height:w},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(P,w,V,j="asc"){return P.sort("number"===V?"desc"===j?(W,te)=>+W[w]>+te[w]?-1:1:(W,te)=>+W[w]>+te[w]?1:-1:"desc"===j?(W,te)=>W[w]>te[w]?-1:1:(W,te)=>W[w]>te[w]?1:-1)}sortDescByKey(P,w){return P.sort((V,j)=>{const W=+V[w],te=+j[w];return W>te?-1:W{const W=+V[w],te=+j[w];return Wte?1:0})}camelCase(P){return P.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,V)=>w.toUpperCase()).replace(/\s+/g,"").replace(/-/g," ")}titleCase(P,w,V){return w&&V&&""!==w&&""!==V&&(P=P.replace(new RegExp(w,"g"),V)),P.indexOf("!\n")>0||P.indexOf(".\n")>0?P.split("\n").reduce((j,W)=>j+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+"\n",""):P.indexOf(" ")>0?P.split(" ").reduce((j,W)=>j+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+" ",""):P.charAt(0).toUpperCase()+P.substring(1).toLowerCase()}convertCurrency(P,w,V,j,W){const te=(new Date).valueOf();return W&&j&&this.ratesAPIStatus!==l.Bn.INITIATED&&(w===l.NT.OTHER||V===l.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&te(this.ratesAPIStatus=l.Bn.COMPLETED,this.conversionData.data=ee&&"object"==typeof ee?ee:ee&&"string"==typeof ee?JSON.parse(ee):{},this.conversionData.last_fetched=te,this.convertWithFiat(P,w,j))),(0,M.K)(ee=>(this.ratesAPIStatus=l.Bn.ERROR,(0,y._)(()=>this.extractErrorMessage(ee,"Currency Conversion Error.")))))):(0,t.of)(this.convertWithoutFiat(P,w))}convertWithoutFiat(P,w){const V={};switch(V[l.NT.SATS]=0,V[l.NT.BTC]=0,w){case l.NT.SATS:V[l.NT.SATS]=P,V[l.NT.BTC]=1e-8*P;break;case l.NT.BTC:V[l.NT.SATS]=1e8*P,V[l.NT.BTC]=P}return V}convertWithFiat(P,w,V){const j={unit:V,symbol:this.conversionData.data[V].symbol};switch(j[l.NT.SATS]=0,j[l.NT.BTC]=0,j[l.NT.OTHER]=0,w){case l.NT.SATS:j[l.NT.SATS]=P,j[l.NT.BTC]=1e-8*P,j[l.NT.OTHER]=1e-8*P*this.conversionData.data[V].last;break;case l.NT.BTC:j[l.NT.SATS]=1e8*P,j[l.NT.BTC]=P,j[l.NT.OTHER]=P*this.conversionData.data[V].last;break;case l.NT.OTHER:j[l.NT.SATS]=P/this.conversionData.data[V].last*1e8,j[l.NT.BTC]=P/this.conversionData.data[V].last,j[l.NT.OTHER]=P}return j}convertTime(P,w,V){switch(w){case l.Qk.SECS:switch(V){case l.Qk.MINS:P/=60;break;case l.Qk.HOURS:P/=3600;break;case l.Qk.DAYS:P/=86400}break;case l.Qk.MINS:switch(V){case l.Qk.SECS:P*=60;break;case l.Qk.HOURS:P/=60;break;case l.Qk.DAYS:P/=1440}break;case l.Qk.HOURS:switch(V){case l.Qk.SECS:P*=3600;break;case l.Qk.MINS:P*=60;break;case l.Qk.DAYS:P/=24}break;case l.Qk.DAYS:switch(V){case l.Qk.SECS:P=3600*P*24;break;case l.Qk.MINS:P=60*P*24;break;case l.Qk.HOURS:P*=24}}return P}downloadFile(P,w,V=".json",j=".csv"){let W=new Blob;W=".json"===V?new Blob(["\ufeff"+this.convertToCSV(P)],{type:"text/csv;charset=utf-8;"}):new Blob([P.toString()],{type:"text/plain;charset=utf-8"});const te=document.createElement("a"),ee=URL.createObjectURL(W);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&te.setAttribute("target","_blank"),te.setAttribute("href",ee),te.setAttribute("download",w+j),te.style.visibility="hidden",document.body.appendChild(te),te.click(),document.body.removeChild(te)}convertToCSV(P){const w=[];let V="",j="",W="";return"object"!=typeof P&&(P=JSON.parse(P)),P.forEach((ee,ge)=>{for(const le in ee)w.findIndex(re=>re===le)<0&&w.push(le)}),W=w.join(",")+"\r\n",P.forEach(ee=>{V="",w.forEach(ge=>{ee.hasOwnProperty(ge)?Array.isArray(ee[ge])?(j="",ee[ge].forEach((le,re)=>{j+="object"==typeof le?"("+JSON.stringify(le).replace(/\,/g,";")+")":"("+le+")"}),V+=j+","):V+="object"==typeof ee[ge]?JSON.stringify(ee[ge]).replace(/\,/g,";")+",":ee[ge]+",":V+=","}),W+=V.slice(0,-1)+"\r\n"}),W}isVersionCompatible(P,w){if(P){const V=P.trim().replace("v","").split("-")[0].split(".")||[],j=w.split(".");return+V[0]>+j[0]||+V[0]==+j[0]&&+V[1]>+j[1]||+V[0]==+j[0]&&+V[1]==+j[1]&&+V[2]>=+j[2]}return!1}extractErrorMessage(P,w="Unknown Error."){const V=this.titleCase(P.error.text&&"string"==typeof P.error.text&&P.error.text.includes('')?"API Route Does Not Exist.":P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&P.error.error.error.error.error&&"string"==typeof P.error.error.error.error.error?P.error.error.error.error.error:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&"string"==typeof P.error.error.error.error?P.error.error.error.error:P.error&&P.error.error&&P.error.error.error&&"string"==typeof P.error.error.error?P.error.error.error:P.error&&P.error.error&&"string"==typeof P.error.error?P.error.error:P.error&&"string"==typeof P.error?P.error:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&P.error.error.error.error.message&&"string"==typeof P.error.error.error.error.message?P.error.error.error.error.message:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.message&&"string"==typeof P.error.error.error.message?P.error.error.error.message:P.error&&P.error.error&&P.error.error.message&&"string"==typeof P.error.error.message?P.error.error.message:P.error&&P.error.message&&"string"==typeof P.error.message?P.error.message:P.message&&"string"==typeof P.message?P.message:w);return this.logger.info("Error Message: "+V),V}extractErrorCode(P,w=500){const V=P.error&&P.error.error&&P.error.error.message&&P.error.error.message.code?P.error.error.message.code:P.error&&P.error.error&&P.error.error.code?P.error.error.code:P.error&&P.error.code?P.error.code:P.code?P.code:P.status?P.status:w;return this.logger.info("Error Code: "+V),V}extractErrorNumber(P,w=500){const V=P.error&&P.error.error&&P.error.error.errno?P.error.error.errno:P.error&&P.error.errno?P.error.errno:P.errno?P.errno:P.status?P.status:w;return this.logger.info("Error Number: "+V),V}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return A.\u0275fac=function(P){return new(P||A)(R.LFG(s.D),R.LFG(L.mQ))},A.\u0275prov=R.Yz7({token:A,factory:A.\u0275fac}),A})()},7731:(Ge,Q,m)=>{"use strict";m.d(Q,{pt:()=>t,uA:()=>y,Xz:()=>C,Er:()=>o,LO:()=>M,IV:()=>l,TJ:()=>R,_t:()=>s,Dr:()=>L,Vc:()=>I,vn:()=>A,wZ:()=>E,$v:()=>P,nM:()=>w,g8:()=>V,ol:()=>j,n_:()=>W,OJ:()=>te,Qk:()=>ee,NT:()=>ge,Gi:()=>le,cu:()=>re,HW:()=>de,x$:()=>se,p7:()=>ye,Zs:()=>v,Fq:()=>i,$I:()=>a,hc:()=>p,Qw:()=>u,gg:()=>_,op:()=>D,JX:()=>O,kO:()=>x,Bn:()=>r,m6:()=>b,IX:()=>Z,Xr:()=>N,pg:()=>U,uR:()=>ve,AB:()=>be,lr:()=>Re,Df:()=>ze,H_:()=>Oe,hZ:()=>K,gB:()=>Me,OO:()=>we});var e=m(6087);function t(z){const Ze=new e.ye;return Ze.itemsPerPageLabel=z+" per page:",Ze}const y=["Sats","BTC"],C={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},o=[{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"}],M=["SECS","MINS","HOURS","DAYS"],l=10,R=[5,10,25,100],s=[{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)"}],L=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],I=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],A=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],E={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var P=(()=>{return(z=P||(P={})).PAYMENT_RECEIVED="payment-received",z.PAYMENT_RELAYED="payment-relayed",z.PAYMENT_SENT="payment-sent",z.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",z.PAYMENT_FAILED="payment-failed",z.CHANNEL_OPENED="channel-opened",z.CHANNEL_STATE_CHANGED="channel-state-changed",z.CHANNEL_CLOSED="channel-closed",P;var z})(),w=(()=>{return(z=w||(w={})).INVOICE="invoice",z.BLOCK_HEIGHT="block-height",z.SEND_PAYMENT="send-payment",w;var z})(),V=(()=>((V||(V={})).INVOICE="invoice",V))(),j=(()=>{return(z=j||(j={})).OPERATOR="OPERATOR",z.MERCHANT="MERCHANT",z.ALL="ALL",j;var z})(),W=(()=>{return(z=W||(W={})).INFORMATION="Information",z.WARNING="Warning",z.ERROR="Error",z.SUCCESS="Success",z.CONFIRM="Confirm",W;var z})(),te=(()=>{return(z=te||(te={})).JWT="JWT",z.PASSWORD="PASSWORD",te;var z})(),ee=(()=>{return(z=ee||(ee={})).SECS="SECS",z.MINS="MINS",z.HOURS="HOURS",z.DAYS="DAYS",ee;var z})(),ge=(()=>{return(z=ge||(ge={})).SATS="Sats",z.BTC="BTC",z.OTHER="OTHER",ge;var z})(),le=(()=>{return(z=le||(le={})).ARRAY="ARRAY",z.NUMBER="NUMBER",z.STRING="STRING",z.BOOLEAN="BOOLEAN",z.PASSWORD="PASSWORD",z.DATE="DATE",z.DATE_TIME="DATE_TIME",le;var z})(),re=(()=>{return(z=re||(re={})).XS="XS",z.SM="SM",z.MD="MD",z.LG="LG",z.XL="XL",re;var z})();const de={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"}},se={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 ye=(()=>{return(z=ye||(ye={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",z.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",z.WIRE_INVALID_ONION_KEY="Invalid Onion Key",z.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",z.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",z.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",z.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",z.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",z.WIRE_FEE_INSUFFICIENT="Insufficient Fee",z.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",z.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",z.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",z.WIRE_CHANNEL_DISABLED="Channel Disabled",z.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",z.WIRE_INVALID_REALM="Invalid Realm",z.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",z.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",z.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",z.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",z.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",z.WIRE_MPP_TIMEOUT="MPP Timeout",z.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",z.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",ye;var z})(),v=(()=>{return(z=v||(v={})).CHANNELD_NORMAL="Active",z.OPENINGD="Opening",z.CHANNELD_AWAITING_LOCKIN="Pending Open",z.CHANNELD_SHUTTING_DOWN="Shutting Down",z.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",z.CLOSINGD_COMPLETE="Closed",z.AWAITING_UNILATERAL="Awaiting Unilateral Close",z.FUNDING_SPEND_SEEN="Funding Spend Seen",z.ONCHAIN="Onchain",z.DUALOPEND_OPEN_INIT="Dual Open Initialized",z.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",v;var z})(),i=(()=>{return(z=i||(i={})).INITIATED="Initiated",z.PREIMAGE_REVEALED="Preimage Revealed",z.HTLC_PUBLISHED="HTLC Published",z.SUCCESS="Successful",z.FAILED="Failed",z.INVOICE_SETTLED="Invoice Settled",i;var z})(),a=(()=>{return(z=a||(a={})).LOOP_OUT="LOOP_OUT",z.LOOP_IN="LOOP_IN",a;var z})(),p=(()=>{return(z=p||(p={})).SWAP_OUT="SWAP_OUT",z.SWAP_IN="SWAP_IN",p;var z})(),u=(()=>{return(z=u||(u={}))["swap.created"]="Swap Created",z["swap.expired"]="Swap Expired",z["invoice.set"]="Invoice Set",z["invoice.paid"]="Invoice Paid",z["invoice.pending"]="Invoice Pending",z["invoice.settled"]="Invoice Settled",z["invoice.failedToPay"]="Invoice Failed To Pay",z["channel.created"]="Channel Created",z["transaction.failed"]="Transaction Failed",z["transaction.mempool"]="Transaction Mempool",z["transaction.claimed"]="Transaction Claimed",z["transaction.refunded"]="Transaction Refunded",z["transaction.confirmed"]="Transaction Confirmed",z["swap.refunded"]="Swap Refunded",z["swap.abandoned"]="Swap Abandoned",u;var z})();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}],D=["MONTHLY","YEARLY"];var O=(()=>{return(z=O||(O={})).LOOP="LOOP",z.BOLTZ="BOLTZ",z.OFFERS="OFFERS",O;var z})();const x=["password","changeme","moneyprintergobrrr"];var r=(()=>{return(z=r||(r={})).UN_INITIATED="UN_INITIATED",z.INITIATED="INITIATED",z.COMPLETED="COMPLETED",z.ERROR="ERROR",r;var z})();const b={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 Z=(()=>{return(z=Z||(Z={})).INVOICE="INVOICE",z.OFFER="OFFER",z.KEYSEND="KEYSEND",Z;var z})(),N=(()=>{return(z=N||(N={})).FEES="FEES",z.EVENTS="EVENTS",N;var z})(),U=(()=>{return(z=U||(U={})).VOID="VOID",z.SET_API_URL_ECL="SET_API_URL_ECL",z.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",z.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",z.RESET_ROOT_STORE="RESET_ROOT_STORE",z.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",z.OPEN_SNACK_BAR="OPEN_SNACKBAR",z.OPEN_SPINNER="OPEN_SPINNER",z.CLOSE_SPINNER="CLOSE_SPINNER",z.OPEN_ALERT="OPEN_ALERT",z.CLOSE_ALERT="CLOSE_ALERT",z.OPEN_CONFIRMATION="OPEN_CONFIRMATION",z.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",z.SHOW_PUBKEY="SHOW_PUBKEY",z.FETCH_CONFIG="FETCH_CONFIG",z.SHOW_CONFIG="SHOW_CONFIG",z.FETCH_STORE="FETCH_STORE",z.SET_STORE="SET_STORE",z.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",z.SET_RTL_CONFIG="SET_RTL_CONFIG",z.SAVE_SSO="SAVE_SSO",z.SAVE_SETTINGS="SAVE_SETTINGS",z.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",z.SET_SELECTED_NODE="SET_SELECTED_NODE",z.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",z.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",z.SET_NODE_DATA="SET_NODE_DATA",z.IS_AUTHORIZED="IS_AUTHORIZED",z.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",z.LOGIN="LOGIN",z.VERIFY_TWO_FA="VERIFY_TWO_FA",z.LOGOUT="LOGOUT",z.RESET_PASSWORD="RESET_PASSWORD",z.RESET_PASSWORD_RES="RESET_PASSWORD_RES",z.FETCH_FILE="FETCH_FILE",z.SHOW_FILE="SHOW_FILE",U;var z})(),ve=(()=>{return(z=ve||(ve={})).RESET_LND_STORE="RESET_LND_STORE",z.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",z.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",z.FETCH_INFO_LND="FETCH_INFO_LND",z.SET_INFO_LND="SET_INFO_LND",z.FETCH_PEERS_LND="FETCH_PEERS_LND",z.SET_PEERS_LND="SET_PEERS_LND",z.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",z.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",z.DETACH_PEER_LND="DETACH_PEER_LND",z.REMOVE_PEER_LND="REMOVE_PEER_LND",z.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",z.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",z.ADD_INVOICE_LND="ADD_INVOICE_LND",z.FETCH_FEES_LND="FETCH_FEES_LND",z.SET_FEES_LND="SET_FEES_LND",z.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",z.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",z.FETCH_NETWORK_LND="FETCH_NETWORK_LND",z.SET_NETWORK_LND="SET_NETWORK_LND",z.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",z.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",z.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",z.SET_CHANNELS_LND="SET_CHANNELS_LND",z.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",z.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",z.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",z.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",z.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",z.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",z.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",z.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",z.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",z.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",z.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",z.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",z.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",z.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",z.FETCH_INVOICES_LND="FETCH_INVOICES_LND",z.SET_INVOICES_LND="SET_INVOICES_LND",z.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",z.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",z.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",z.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",z.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",z.FETCH_UTXOS_LND="FETCH_UTXOS_LND",z.SET_UTXOS_LND="SET_UTXOS_LND",z.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",z.SET_PAYMENTS_LND="SET_PAYMENTS_LND",z.SEND_PAYMENT_LND="SEND_PAYMENT_LND",z.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",z.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",z.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",z.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",z.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",z.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",z.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",z.GEN_SEED_LND="GEN_SEED_LND",z.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",z.INIT_WALLET_LND="INIT_WALLET_LND",z.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",z.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",z.PEER_LOOKUP_LND="PEER_LOOKUP_LND",z.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",z.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",z.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",z.SET_LOOKUP_LND="SET_LOOKUP_LND",z.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",z.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",z.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",z.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",z.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",z.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",ve;var z})(),be=(()=>{return(z=be||(be={})).RESET_CLN_STORE="RESET_CLN_STORE",z.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",z.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",z.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",z.SET_INFO_CLN="SET_INFO_CLN",z.FETCH_FEES_CLN="FETCH_FEES_CLN",z.SET_FEES_CLN="SET_FEES_CLN",z.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",z.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",z.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",z.SET_BALANCE_CLN="SET_BALANCE_CLN",z.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",z.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",z.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",z.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",z.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",z.SET_UTXOS_CLN="SET_UTXOS_CLN",z.FETCH_PEERS_CLN="FETCH_PEERS_CLN",z.SET_PEERS_CLN="SET_PEERS_CLN",z.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",z.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",z.ADD_PEER_CLN="ADD_PEER_CLN",z.DETACH_PEER_CLN="DETACH_PEER_CLN",z.REMOVE_PEER_CLN="REMOVE_PEER_CLN",z.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",z.SET_CHANNELS_CLN="SET_CHANNELS_CLN",z.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",z.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",z.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",z.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",z.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",z.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",z.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",z.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",z.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",z.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",z.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",z.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",z.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",z.SET_LOOKUP_CLN="SET_LOOKUP_CLN",z.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",z.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",z.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",z.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",z.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",z.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",z.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",z.SET_INVOICES_CLN="SET_INVOICES_CLN",z.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",z.ADD_INVOICE_CLN="ADD_INVOICE_CLN",z.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",z.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",z.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",z.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",z.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",z.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",z.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",z.SET_OFFERS_CLN="SET_OFFERS_CLN",z.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",z.ADD_OFFER_CLN="ADD_OFFER_CLN",z.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",z.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",z.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",z.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",z.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",z.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",z.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",be;var z})(),Re=(()=>{return(z=Re||(Re={})).RESET_ECL_STORE="RESET_ECL_STORE",z.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",z.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",z.FETCH_INFO_ECL="FETCH_INFO_ECL",z.SET_INFO_ECL="SET_INFO_ECL",z.FETCH_FEES_ECL="FETCH_FEES_ECL",z.SET_FEES_ECL="SET_FEES_ECL",z.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",z.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",z.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",z.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",z.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",z.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",z.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",z.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",z.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",z.FETCH_PEERS_ECL="FETCH_PEERS_ECL",z.SET_PEERS_ECL="SET_PEERS_ECL",z.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",z.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",z.ADD_PEER_ECL="ADD_PEER_ECL",z.DETACH_PEER_ECL="DETACH_PEER_ECL",z.REMOVE_PEER_ECL="REMOVE_PEER_ECL",z.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",z.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",z.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",z.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",z.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",z.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",z.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",z.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",z.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",z.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",z.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",z.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",z.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",z.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",z.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",z.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",z.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",z.SET_INVOICES_ECL="SET_INVOICES_ECL",z.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",z.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",z.ADD_INVOICE_ECL="ADD_INVOICE_ECL",z.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",z.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",z.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",z.SET_LOOKUP_ECL="SET_LOOKUP_ECL",z.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",z.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Re;var z})();const ze=[{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 Oe=(()=>{return(z=Oe||(Oe={})).gossip_queries_ex="Gossip queries including additional information",z.option_anchor_outputs="Anchor outputs",z.option_data_loss_protect="Extra channel re-establish fields",z.var_onion_optin="Variable-length routing onion payloads",z.option_static_remotekey="Static key for remote output",z.option_support_large_channel="Create large channels",z.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",z.payment_secret="Payment secret field",z.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",z.basic_mpp="Basic multi-part payments",z.gossip_queries="More sophisticated gossip control",z.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",z.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",z.amp="AMP",Oe;var z})(),K=(()=>{return(z=K||(K={}))["data-loss-protect"]="Extra channel re-establish fields",z["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",z["gossip-queries"]="More sophisticated gossip control",z["tlv-onion"]="Variable-length routing onion payloads",z["ext-gossip-queries"]="Gossip queries can include additional information",z["static-remote-key"]="Static key for remote output",z["payment-addr"]="Payment secret field",z["multi-path-payments"]="Basic multi-part payments",z["wumbo-channels"]="Wumbo Channels",z.anchors="Anchor outputs",z["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",z.amp="AMP",K;var z})();const Me=[{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 we=(()=>{return(z=we||(we={})).OFFERED="offered",z.SETTLED="settled",z.FAILED="failed",z.LOCAL_FAILED="local_failed",we;var z})()},8104:(Ge,Q,m)=>{"use strict";m.d(Q,{D:()=>de});var e=m(8138),t=m(1135),y=m(7579),C=m(2843),o=m(9646),M=m(590),l=m(5577),R=m(2722),s=m(4004),L=m(262),I=m(1365),A=m(2340),E=m(7731),P=m(1786),w=m(7861),V=m(6523),j=m(6529),W=m(9828),te=m(5e3),ee=m(5620),ge=m(5043),le=m(7261),re=m(9808);let de=(()=>{class se{constructor(v,i,a,p,u){this.httpClient=v,this.store=i,this.logger=a,this.snackBar=p,this.titleCasePipe=u,this.APIUrl=A.T5,this.lnImplementation="",this.lnImplementationUpdated=new t.X(null),this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x],this.mapAliases=(_,D)=>(_&&_.length>0?_.forEach((O,x)=>{if(D&&D.length>0)for(let r=0;rnull!==a),(0,l.z)(a=>{let p=this.APIUrl+"/"+a+A.NZ.PAYMENTS_API+"/decode/"+v;return"cln"===a&&(p=this.APIUrl+"/"+a+A.NZ.UTILITY_API+"/decode/"+v),this.store.dispatch((0,w.ac)({payload:E.m6.DECODE_PAYMENT})),this.httpClient.get(p).pipe((0,R.R)(this.unSubs[0]),(0,s.U)(u=>(this.store.dispatch((0,w.uO)({payload:E.m6.DECODE_PAYMENT})),u)),(0,L.K)(u=>(i?this.handleErrorWithoutAlert("Decode Payment",E.m6.DECODE_PAYMENT,u):this.handleErrorWithAlert("decodePaymentData",E.m6.DECODE_PAYMENT,"Decode Payment Failed",p,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}decodePayments(v){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{let a="",p="";return"ecl"===i?(a=this.APIUrl+"/"+i+A.NZ.PAYMENTS_API+"/getsentinfos",p=E.m6.GET_SENT_PAYMENTS):"cln"===i?(a=this.APIUrl+"/"+i+A.NZ.UTILITY_API,p=E.m6.DECODE_PAYMENTS):(a=this.APIUrl+"/"+i+A.NZ.PAYMENTS_API,p=E.m6.DECODE_PAYMENTS),this.store.dispatch((0,w.ac)({payload:p})),this.httpClient.post(a,{payments:v}).pipe((0,R.R)(this.unSubs[1]),(0,s.U)(u=>(this.store.dispatch((0,w.uO)({payload:p})),u)),(0,L.K)(u=>(this.handleErrorWithAlert("decodePaymentsData",p,p+" Failed",a,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}getAliasesFromPubkeys(v,i){return this.lnImplementationUpdated.pipe((0,M.P)(a=>null!==a),(0,l.z)(a=>{if(i){const p=(new e.LE).set("pubkeys",v);return this.httpClient.get(this.APIUrl+"/"+a+A.NZ.NETWORK_API+"/nodes",{params:p})}return this.httpClient.get(this.APIUrl+"/"+a+A.NZ.NETWORK_API+"/node/"+v)}))}signMessage(v){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{let a=this.APIUrl+"/"+i+A.NZ.MESSAGE_API+"/sign";return"cln"===i&&(a=this.APIUrl+"/"+i+A.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,w.ac)({payload:E.m6.SIGN_MESSAGE})),this.httpClient.post(a,{message:v}).pipe((0,R.R)(this.unSubs[2]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:E.m6.SIGN_MESSAGE})),p)),(0,L.K)(p=>(this.handleErrorWithAlert("signMessageData",E.m6.SIGN_MESSAGE,"Sign Message Failed",a,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}verifyMessage(v,i){return this.lnImplementationUpdated.pipe((0,M.P)(a=>null!==a),(0,l.z)(a=>{let p=this.APIUrl+"/"+a+A.NZ.MESSAGE_API+"/verify";return"cln"===a&&(p=this.APIUrl+"/"+a+A.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,w.ac)({payload:E.m6.VERIFY_MESSAGE})),this.httpClient.post(p,{message:v,signature:i}).pipe((0,R.R)(this.unSubs[3]),(0,s.U)(u=>(this.store.dispatch((0,w.uO)({payload:E.m6.VERIFY_MESSAGE})),u)),(0,L.K)(u=>(this.handleErrorWithAlert("verifyMessageData",E.m6.VERIFY_MESSAGE,"Verify Message Failed",p,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}bumpFee(v,i,a,p){return this.lnImplementationUpdated.pipe((0,M.P)(u=>null!==u),(0,l.z)(u=>{const _={txid:v,outputIndex:i};return a&&(_.targetConf=a),p&&(_.satPerByte=p),this.store.dispatch((0,w.ac)({payload:E.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+u+A.NZ.WALLET_API+"/bumpfee",_).pipe((0,R.R)(this.unSubs[4]),(0,s.U)(D=>(this.store.dispatch((0,w.uO)({payload:E.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),D)),(0,L.K)(D=>(this.handleErrorWithoutAlert("Bump Fee",E.m6.BUMP_FEE,D),(0,C._)(()=>new Error(this.extractErrorMessage(D))))))}))}labelUTXO(v,i,a=!0){return this.lnImplementationUpdated.pipe((0,M.P)(p=>null!==p),(0,l.z)(p=>{const u={txid:v,label:i,overwrite:a};return this.store.dispatch((0,w.ac)({payload:E.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+p+A.NZ.WALLET_API+"/label",u).pipe((0,R.R)(this.unSubs[5]),(0,s.U)(_=>(this.store.dispatch((0,w.uO)({payload:E.m6.LABEL_UTXO})),_)),(0,L.K)(_=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LABEL_UTXO,_),(0,C._)(()=>new Error(this.extractErrorMessage(_))))))}))}leaseUTXO(v,i){return this.lnImplementationUpdated.pipe((0,M.P)(a=>null!==a),(0,l.z)(a=>{const p={txid:v,outputIndex:i};return this.store.dispatch((0,w.ac)({payload:E.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+a+A.NZ.WALLET_API+"/lease",p).pipe((0,R.R)(this.unSubs[6]),(0,s.U)(u=>{this.store.dispatch((0,w.uO)({payload:E.m6.LEASE_UTXO})),this.store.dispatch((0,V.mC)()),this.store.dispatch((0,V.Ly)());const _=new Date(1e3*u.expiration),D=Math.round(_.getTime())-60*_.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(D).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,L.K)(u=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LEASE_UTXO,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}getForwardingHistory(v,i,a,p){if("LND"===v){const u={end_time:a,start_time:i};return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+A.NZ.SWITCH_API,u).pipe((0,R.R)(this.unSubs[7]),(0,I.M)(this.store.select(j._f)),(0,l.z)(([_,D])=>{if(_.forwarding_events){const O=[...D.channels,...D.closedChannels];_.forwarding_events.forEach(x=>{if(O&&O.length>0)for(let r=0;r(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+A.NZ.SWITCH_API,_),(0,C._)(()=>new Error(this.extractErrorMessage(_))))))}return"CLN"===v?(this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+A.NZ.CHANNELS_API+"/listForwards?status="+p).pipe((0,R.R)(this.unSubs[8]),(0,I.M)(this.store.select(W.ZW)),(0,l.z)(([u,_])=>{const D=this.mapAliases(u,[..._.activeChannels,..._.pendingChannels,..._.inactiveChannels]);return this.store.dispatch((0,w.uO)({payload:E.m6.GET_FORWARDING_HISTORY})),(0,o.of)(D)}),(0,L.K)(u=>(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+A.NZ.CHANNELS_API+"/listForwards?status="+p+"&start="+i+"&end="+a,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))):(0,o.of)({})}listNetworkNodes(v=""){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>(this.store.dispatch((0,w.ac)({payload:E.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+A.NZ.NETWORK_API+"/listNodes"+v).pipe((0,R.R)(this.unSubs[9]),(0,l.z)(a=>(this.store.dispatch((0,w.uO)({payload:E.m6.LIST_NETWORK_NODES})),(0,o.of)(a))),(0,L.K)(a=>(this.handleErrorWithoutAlert("List Network Nodes",E.m6.LIST_NETWORK_NODES,a),(0,C._)(()=>this.extractErrorMessage(a))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,M.P)(v=>null!==v),(0,l.z)(v=>(this.store.dispatch((0,w.ac)({payload:E.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+v+A.NZ.UTILITY_API+"/listConfigs").pipe((0,R.R)(this.unSubs[10]),(0,l.z)(i=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_LIST_CONFIGS})),(0,o.of)(i))),(0,L.K)(i=>(this.handleErrorWithoutAlert("List Configurations",E.m6.GET_LIST_CONFIGS,i),(0,C._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(v,i,a,p,u,_){return this.lnImplementationUpdated.pipe((0,M.P)(D=>null!==D),(0,l.z)(D=>{const O=v?{policy:v,policy_mod:i,lease_fee_base_msat:a,lease_fee_basis:p,channel_fee_max_base_msat:u,channel_fee_max_proportional_thousandths:_}:null;return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+D+A.NZ.CHANNELS_API+"/funderUpdate",O).pipe((0,R.R)(this.unSubs[11]),(0,s.U)(x=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_FUNDER_POLICY})),O&&this.store.dispatch((0,w.jW)({payload:"Funder Policy Updated Successfully!"})),x)),(0,L.K)(x=>(this.handleErrorWithoutAlert("Funder Policy",E.m6.GET_FUNDER_POLICY,x),(0,C._)(()=>new Error(this.extractErrorMessage(x))))))}))}extractErrorMessage(v,i="Unknown Error."){return this.titleCasePipe.transform(v.error.text&&"string"==typeof v.error.text&&v.error.text.includes('')?"API Route Does Not Exist.":v.error&&v.error.error&&v.error.error.error&&v.error.error.error.error&&v.error.error.error.error.error&&"string"==typeof v.error.error.error.error.error?v.error.error.error.error.error:v.error&&v.error.error&&v.error.error.error&&v.error.error.error.error&&"string"==typeof v.error.error.error.error?v.error.error.error.error:v.error&&v.error.error&&v.error.error.error&&"string"==typeof v.error.error.error?v.error.error.error:v.error&&v.error.error&&"string"==typeof v.error.error?v.error.error:v.error&&"string"==typeof v.error?v.error:v.error&&v.error.error&&v.error.error.error&&v.error.error.error.error&&v.error.error.error.error.message&&"string"==typeof v.error.error.error.error.message?v.error.error.error.error.message:v.error&&v.error.error&&v.error.error.error&&v.error.error.error.message&&"string"==typeof v.error.error.error.message?v.error.error.error.message:v.error&&v.error.error&&v.error.error.message&&"string"==typeof v.error.error.message?v.error.error.message:v.error&&v.error.message&&"string"==typeof v.error.message?v.error.message:v.message&&"string"==typeof v.message?v.message:i)}handleErrorWithoutAlert(v,i,a){a.error.text&&"string"==typeof a.error.text&&a.error.text.includes('')&&(a={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+v+"\n"+JSON.stringify(a)),401===a.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,w.qi)({payload:{action:v,status:E.Bn.ERROR,statusCode:a.status.toString(),message:this.extractErrorMessage(a)}})))}handleErrorWithAlert(v,i,a,p,u){if(this.logger.error(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."}));else{this.store.dispatch((0,w.uO)({payload:i}));const _=this.extractErrorMessage(u);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:u.status?u.status:"Unknown Error",message:_,URL:p},component:P.H}}})),this.store.dispatch((0,w.qi)({payload:{action:v,status:E.Bn.ERROR,statusCode:u.status.toString(),message:_,URL:p}}))}}ngOnDestroy(){this.unSubs.forEach(v=>{v.next(null),v.complete()})}}return se.\u0275fac=function(v){return new(v||se)(te.LFG(e.eN),te.LFG(ee.yh),te.LFG(ge.mQ),te.LFG(le.ux),te.LFG(re.rS))},se.\u0275prov=te.Yz7({token:se,factory:se.\u0275fac}),se})()},5043:(Ge,Q,m)=>{"use strict";m.d(Q,{mQ:()=>M,LG:()=>l});var e=m(2340),t=m(5e3);const{isDebugMode:y}=e.NZ,C=()=>null;let M=(()=>{class R{invokeConsoleMethod(L,I){}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})(),l=(()=>{class R{get info(){return y?console.log.bind(console):C}get warn(){return y?console.warn.bind(console):C}get error(){return y?console.error.bind(console):C}invokeConsoleMethod(L,I){(console[L]||console.log||C).apply(console,[I])}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})()},9107:(Ge,Q,m)=>{"use strict";m.d(Q,{W:()=>j});var e=m(8138),t=m(1135),y=m(7579),C=m(9646),o=m(2843),M=m(2722),l=m(262),R=m(4004),s=m(2340),L=m(7731),I=m(1786),A=m(7861),E=m(5e3),P=m(5043),w=m(5620),V=m(62);let j=(()=>{class W{constructor(ee,ge,le,re){this.httpClient=ee,this.logger=ge,this.store=le,this.commonService=re,this.loopUrl="",this.swaps=[],this.swapsChanged=new t.X([]),this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,A.ac)({payload:L.m6.GET_LOOP_SWAPS})),this.loopUrl=s.T5+s.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,M.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,A.uO)({payload:L.m6.GET_LOOP_SWAPS})),this.swaps=ee,this.swapsChanged.next(this.swaps)},error:ee=>this.swapsChanged.error(this.handleErrorWithAlert(L.m6.GET_LOOP_SWAPS,this.loopUrl,ee))})}loopOut(ee,ge,le,re,de,se,ye,v,i,a){const p={amount:ee,targetConf:le,swapRoutingFee:re,minerFee:de,prepayRoutingFee:se,prepayAmt:ye,swapFee:v,swapPublicationDeadline:i,destAddress:a};return""!==ge&&(p.chanId=ge),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,p).pipe((0,l.K)(u=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ge,L.m6.NO_SPINNER,u)))}getLoopOutTerms(){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",L.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,ge,le){let re=new e.LE;return re=re.append("targetConf",ge.toString()),re=re.append("swapPublicationDeadline",le.toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,A.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,M.R)(this.unSubs[1]),(0,R.U)(de=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_QUOTE})),de)),(0,l.K)(de=>this.handleErrorWithoutAlert("Loop Out Quote",L.m6.GET_QUOTE,de)))}getLoopOutTermsAndQuotes(ee){let ge=new e.LE;return ge=ge.append("targetConf",ee.toString()),ge=ge.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ge}).pipe((0,M.R)(this.unSubs[2]),(0,R.U)(le=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_TERMS_QUOTES})),le)),(0,l.K)(le=>(0,C.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,le))))}loopIn(ee,ge,le,re,de){const se={amount:ee,swapFee:ge,minerFee:le,lastHop:re,externalHtlc:de};return this.loopUrl=s.T5+s.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,se).pipe((0,l.K)(ye=>this.handleErrorWithoutAlert("Loop In",L.m6.NO_SPINNER,ye)))}getLoopInTerms(){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",L.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,ge,le){let re=new e.LE;return re=re.append("targetConf",ge.toString()),re=re.append("swapPublicationDeadline",le.toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,A.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,M.R)(this.unSubs[3]),(0,R.U)(de=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_QUOTE})),de)),(0,l.K)(de=>this.handleErrorWithoutAlert("Loop In Qoute",L.m6.GET_QUOTE,de)))}getLoopInTermsAndQuotes(ee){let ge=new e.LE;return ge=ge.append("targetConf",ee.toString()),ge=ge.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ge}).pipe((0,M.R)(this.unSubs[4]),(0,R.U)(le=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_TERMS_QUOTES})),le)),(0,l.K)(le=>(0,C.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,le))))}getSwap(ee){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,l.K)(ge=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,L.m6.NO_SPINNER,ge)))}handleErrorWithoutAlert(ee,ge,le){let re="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(le)),this.store.dispatch((0,A.uO)({payload:ge})),401===le.status?(re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)())):503===le.status?(re="Unable to Connect to Loop Server.",this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:le.status,message:"Unable to Connect to Loop Server",URL:ee},component:I.H}}}))):re=this.commonService.extractErrorMessage(le),(0,o._)(()=>new Error(re))}handleErrorWithAlert(ee,ge,le){let re="";if(this.logger.error(le),this.store.dispatch((0,A.uO)({payload:ee})),401===le.status)re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)());else if(503===le.status)re="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:le.status,message:"Unable to Connect to Loop Server",URL:ge},component:I.H}}}))},100);else{re=this.commonService.extractErrorMessage(le);const de=le.error&&le.error.error&&le.error.error.code?le.error.error.code:le.error&&le.error.code?le.error.code:le.code?le.code:le.status;setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:L.n_.ERROR,alertTitle:"ERROR",message:{code:de,message:re,URL:ge},component:I.H}}}))},100)}return{message:re}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return W.\u0275fac=function(ee){return new(ee||W)(E.LFG(e.eN),E.LFG(P.mQ),E.LFG(w.yh),E.LFG(V.v))},W.\u0275prov=E.Yz7({token:W,factory:W.\u0275fac}),W})()},5986:(Ge,Q,m)=>{"use strict";m.d(Q,{m:()=>y});var e=m(7579),t=m(5e3);let y=(()=>{class C{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(M){return sessionStorage.getItem(M)}getAllItems(){return sessionStorage}setItem(M,l){sessionStorage.setItem(M,l),this.sessionSub.next(sessionStorage)}removeItem(M){sessionStorage.removeItem(M),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275prov=t.Yz7({token:C,factory:C.\u0275fac}),C})()},7998:(Ge,Q,m)=>{"use strict";m.d(Q,{d:()=>P});var e=m(1135),t=m(7579),y=m(2722),C=m(930),o=m(8306),M=m(727),l=m(4707);const R={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class L extends t.u{constructor(V,j){if(super(),this._socket=null,V instanceof o.y)this.destination=j,this.source=V;else{const W=this._config=Object.assign({},R);if(this._output=new t.x,"string"==typeof V)W.url=V;else for(const te in V)V.hasOwnProperty(te)&&(W[te]=V[te]);if(!W.WebSocketCtor&&WebSocket)W.WebSocketCtor=WebSocket;else if(!W.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new l.t}}lift(V){const j=new L(this._config,this.destination);return j.operator=V,j.source=this,j}_resetState(){this._socket=null,this.source||(this.destination=new l.t),this._output=new t.x}multiplex(V,j,W){const te=this;return new o.y(ee=>{try{te.next(V())}catch(le){ee.error(le)}const ge=te.subscribe(le=>{try{W(le)&&ee.next(le)}catch(re){ee.error(re)}},le=>ee.error(le),()=>ee.complete());return()=>{try{te.next(j())}catch(le){ee.error(le)}ge.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:V,protocol:j,url:W,binaryType:te}=this._config,ee=this._output;let ge=null;try{ge=j?new V(W,j):new V(W),this._socket=ge,te&&(this._socket.binaryType=te)}catch(re){return void ee.error(re)}const le=new M.w0(()=>{this._socket=null,ge&&1===ge.readyState&&ge.close()});ge.onopen=re=>{const{_socket:de}=this;if(!de)return ge.close(),void this._resetState();const{openObserver:se}=this._config;se&&se.next(re);const ye=this.destination;this.destination=C.Lv.create(v=>{if(1===ge.readyState)try{const{serializer:i}=this._config;ge.send(i(v))}catch(i){this.destination.error(i)}},v=>{const{closingObserver:i}=this._config;i&&i.next(void 0),v&&v.code?ge.close(v.code,v.reason):ee.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:v}=this._config;v&&v.next(void 0),ge.close(),this._resetState()}),ye&&ye instanceof l.t&&le.add(ye.subscribe(this.destination))},ge.onerror=re=>{this._resetState(),ee.error(re)},ge.onclose=re=>{this._resetState();const{closeObserver:de}=this._config;de&&de.next(re),re.wasClean?ee.complete():ee.error(re)},ge.onmessage=re=>{try{const{deserializer:de}=this._config;ee.next(de(re))}catch(de){ee.error(de)}}}_subscribe(V){const{source:j}=this;return j?j.subscribe(V):(this._socket||this._connectSocket(),this._output.subscribe(V),V.add(()=>{const{_socket:W}=this;0===this._output.observers.length&&(W&&(1===W.readyState||0===W.readyState)&&W.close(),this._resetState())}),V)}unsubscribe(){const{_socket:V}=this;V&&(1===V.readyState||0===V.readyState)&&V.close(),this._resetState(),super.unsubscribe()}}var I=m(5e3),A=m(5043),E=m(5986);let P=(()=>{class w{constructor(j,W){this.logger=j,this.sessionService=W,this.clWSMessages=new e.X(null),this.eclWSMessages=new e.X(null),this.lndWSMessages=new e.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}connectWebSocket(j,W){(!this.socket||this.socket.closed)&&(this.wsUrl=j,this.nodeIndex=W,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new L({url:j,protocol:[this.sessionService.getItem("token"),W]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){this.socket.pipe((0,y.R)(this.unSubs[1])).subscribe({next:j=>{if((j="string"==typeof j?JSON.parse(j):j).error)this.handleError(j.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(j)),j.source){case"LND":this.lndWSMessages.next(j);break;case"CLN":this.clWSMessages.next(j);break;case"ECL":this.eclWSMessages.next(j)}},error:j=>this.handleError(j),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(j){this.logger.error(j),this.clWSMessages.error(j),this.eclWSMessages.error(j),this.lndWSMessages.error(j),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}}return w.\u0275fac=function(j){return new(j||w)(I.LFG(A.mQ),I.LFG(E.m))},w.\u0275prov=I.Yz7({token:w,factory:w.\u0275fac}),w})()},8750:(Ge,Q,m)=>{"use strict";m.d(Q,{m:()=>mi});var e=m(9808),t=m(1402),y=m(3075),C=m(8138),o=m(9444),M=m(5e3),l=m(3270),R=m(3322),s=m(7093);m(3191);let qe=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[l.IR]]}),Ct})(),ue=(()=>{class Ct{constructor(bt,Yt){(0,e.PM)(Yt)&&!bt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(bt,Yt=[]){return{ngModule:Ct,providers:bt.serverLoaded?[{provide:l.WU,useValue:Object.assign(Object.assign({},l.g5),bt)},{provide:l.Bs,useValue:Yt,multi:!0},{provide:l.wY,useValue:!0}]:[{provide:l.WU,useValue:Object.assign(Object.assign({},l.g5),bt)},{provide:l.Bs,useValue:Yt,multi:!0}]}}}return Ct.\u0275fac=function(bt){return new(bt||Ct)(M.LFG(l.wY),M.LFG(M.Lbi))},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[s.ae,R.aT,qe],s.ae,R.aT,qe]}),Ct})();var Je=m(5113),St=m(508),kt=m(8966),yi=m(1079),Ni=m(7544),Si=m(7423);m(449),m(5664);let kn=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[St.BQ,St.si],St.BQ]}),Ct})();var dr=m(9224),wi=m(7446),Fi=m(6856),dn=m(1125),Lr=m(3954),La=m(5245),Gn=m(7531),Or=m(4623),Ra=m(2181),Ma=m(6087),Fa=m(5899),xr=m(773),hs=m(9814),ur=m(4107),pa=m(2638),ma=m(2368);m(1159),m(6360),m(925),m(727),m(226);let Aa=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[e.ez,St.BQ],St.BQ]}),Ct})();var Vr=m(7261),ha=m(4847),pr=m(5615),Sr=m(2075),is=m(3251),Oa=m(4594),ra=m(7238),Gr=m(149),Ha=m(6046),Zn=m(159),ns=m(644),ja=m(9776);let Xe=(()=>{class Ct extends ja.Xj{_createContainer(){const bt=document.createElement("div");bt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(bt),this._containerElement=bt}}return Ct.\u0275fac=function(){let ti;return function(Yt){return(ti||(ti=M.n5z(Ct)))(Yt||Ct)}}(),Ct.\u0275prov=M.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();var me=m(5043),J=m(7731);const ne={suppressScrollX:!1,suppressScrollY:!1};let Qe=(()=>{class Ct extends St.LF{format(bt,Yt){if("input"===Yt){let xi=bt.getDate().toString();return xi=+xi<10?"0"+xi:xi,xi+"/"+J.gg[bt.getMonth()].name.toUpperCase()+"/"+bt.getFullYear()}return J.gg[bt.getMonth()].name.toUpperCase()+" "+bt.getFullYear()}}return Ct.\u0275fac=function(){let ti;return function(Yt){return(ti||(ti=M.n5z(Ct)))(Yt||Ct)}}(),Ct.\u0275prov=M.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Wt={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 mi=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({providers:[{provide:me.mQ,useClass:me.LG},{provide:ns.op,useValue:ne},{provide:Vr.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:kt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:St._A,useClass:Qe},{provide:St.sG,useValue:Wt},{provide:ja.Xj,useClass:Xe},e.JJ,e.rS,e.uU],imports:[[e.ez,y.u5,y.UX,o.uH,ue,Je.xu,kt.Is,Si.ot,kn,dr.QW,wi.p9,dn.To,Lr.N6,Fi.FA,St.XK,La.Ps,Gn.c,Or.ie,Ra.Tx,Fa.Cv,xr.Cq,hs.Fk,Gr.dp,ur.LD,pa.SJ,ma.rP,ha.JX,Sr.p0,Oa.g0,ra.AV,Ni.g,Ma.TU,pr.T5,Aa,is.Nh,Vr.ZX,yi.Bb,Ha.a4,Zn.OF,t.Bz,C.JF,ns.Xd],y.u5,y.UX,o.uH,ue,Je.xu,kt.Is,Si.ot,kn,dr.QW,wi.p9,dn.To,Lr.N6,Fi.FA,St.XK,La.Ps,Gn.c,Or.ie,Ra.Tx,Fa.Cv,xr.Cq,hs.Fk,Gr.dp,ur.LD,pa.SJ,ma.rP,ha.JX,Sr.p0,Oa.g0,ra.AV,Ni.g,Ma.TU,pr.T5,Aa,is.Nh,Vr.ZX,yi.Bb,Ha.a4,Zn.OF,ns.Xd]}),Ct})()},7861:(Ge,Q,m)=>{"use strict";m.d(Q,{lC:()=>C,qi:()=>o,ts:()=>M,jW:()=>l,ac:()=>R,uO:()=>s,qR:()=>L,M6:()=>I,c1:()=>A,yb:()=>E,tj:()=>P,Q2:()=>w,tw:()=>j,vI:()=>W,ey:()=>te,XT:()=>ee,zQ:()=>ge,Uy:()=>le,fk:()=>re,Tm:()=>de,jS:()=>se,_V:()=>ye,kS:()=>i,c0:()=>a,QO:()=>u,x4:()=>D,dc:()=>x});var e=m(5620),t=m(7731);(0,e.PH)(t.pg.VOID);const C=(0,e.PH)(t.pg.SET_API_URL_ECL,(0,e.Ky)()),o=(0,e.PH)(t.pg.UPDATE_API_CALL_STATUS_ROOT,(0,e.Ky)()),M=(0,e.PH)(t.pg.CLOSE_ALL_DIALOGS),l=(0,e.PH)(t.pg.OPEN_SNACK_BAR,(0,e.Ky)()),R=(0,e.PH)(t.pg.OPEN_SPINNER,(0,e.Ky)()),s=(0,e.PH)(t.pg.CLOSE_SPINNER,(0,e.Ky)()),L=(0,e.PH)(t.pg.OPEN_ALERT,(0,e.Ky)()),I=(0,e.PH)(t.pg.CLOSE_ALERT,(0,e.Ky)()),A=(0,e.PH)(t.pg.OPEN_CONFIRMATION,(0,e.Ky)()),E=(0,e.PH)(t.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),P=(0,e.PH)(t.pg.SHOW_PUBKEY),w=(0,e.PH)(t.pg.FETCH_CONFIG,(0,e.Ky)()),j=((0,e.PH)(t.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(t.pg.UPDATE_SELECTED_NODE_OPTIONS)),W=(0,e.PH)(t.pg.RESET_ROOT_STORE,(0,e.Ky)()),te=(0,e.PH)(t.pg.FETCH_RTL_CONFIG),ee=(0,e.PH)(t.pg.SET_RTL_CONFIG,(0,e.Ky)()),ge=(0,e.PH)(t.pg.SAVE_SETTINGS,(0,e.Ky)()),le=(0,e.PH)(t.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),re=(0,e.PH)(t.pg.SET_SELECTED_NODE,(0,e.Ky)()),de=(0,e.PH)(t.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),se=(0,e.PH)(t.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),ye=(0,e.PH)(t.pg.SET_NODE_DATA,(0,e.Ky)()),i=((0,e.PH)(t.pg.SAVE_SSO,(0,e.Ky)()),(0,e.PH)(t.pg.LOGOUT)),a=(0,e.PH)(t.pg.RESET_PASSWORD,(0,e.Ky)()),u=((0,e.PH)(t.pg.RESET_PASSWORD_RES,(0,e.Ky)()),(0,e.PH)(t.pg.IS_AUTHORIZED,(0,e.Ky)())),D=((0,e.PH)(t.pg.IS_AUTHORIZED_RES,(0,e.Ky)()),(0,e.PH)(t.pg.LOGIN,(0,e.Ky)())),x=((0,e.PH)(t.pg.VERIFY_TWO_FA,(0,e.Ky)()),(0,e.PH)(t.pg.FETCH_FILE,(0,e.Ky)()));(0,e.PH)(t.pg.SHOW_FILE,(0,e.Ky)())},3093:(Ge,Q,m)=>{"use strict";m.d(Q,{V:()=>qi});var e=m(6642),t=m(7579),y=m(9646),C=m(8306),o=m(4128),M=m(4004),l=m(5698),R=m(1365),s=m(5577),L=m(262),I=m(2722),A=m(2340),E=m(7731),P=m(8966),w=m(5e3),V=m(7093),j=m(773);let W=(()=>{class ot{constructor(gt,Lt){this.dialogRef=gt,this.data=Lt}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"mat-spinner"),w.TgZ(3,"h1"),w._uU(4),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(4),w.Oqu(Lt.data.titleMessage))},directives:[V.xw,V.Wh,j.$g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),ot})();var te=m(5043),ee=m(7261),ge=m(62),le=m(9808),re=m(3322),de=m(9224),se=m(7423),ye=m(159),v=m(644),i=m(5245),a=m(3390),p=m(6895),u=m(4834);const _=["scrollContainer"];function D(ot,Kt){if(1&ot&&w._UZ(0,"qr-code",15),2&ot){const gt=w.oxw();w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function O(ot,Kt){1&ot&&w.GkF(0)}const x=function(ot){return{"h-40":ot}};function r(ot,Kt){if(1&ot&&(w.ynx(0),w.TgZ(1,"mat-card-content",16,17),w.YNc(3,O,1,0,"ng-container",18),w.qZA(),w.BQk()),2&ot){const gt=w.oxw(),Lt=w.MAs(20);w.xp6(1),w.Q6J("ngClass",w.VKq(2,x,gt.data.scrollable)),w.xp6(2),w.Q6J("ngTemplateOutlet",Lt)}}function b(ot,Kt){1&ot&&w.GkF(0)}function Z(ot,Kt){if(1&ot&&(w.ynx(0),w.TgZ(1,"mat-card-content",19),w.YNc(2,b,1,0,"ng-container",18),w.qZA(),w.BQk()),2&ot){w.oxw();const gt=w.MAs(20);w.xp6(2),w.Q6J("ngTemplateOutlet",gt)}}function N(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function U(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function ve(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"div",20),w.TgZ(1,"button",21),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onScroll()}),w.YNc(2,N,2,0,"mat-icon",22),w.YNc(3,U,2,0,"mat-icon",22),w.qZA(),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(2),w.Q6J("ngIf","DOWN"===gt.scrollDirection),w.xp6(1),w.Q6J("ngIf","UP"===gt.scrollDirection)}}function be(ot,Kt){1&ot&&(w.TgZ(0,"button",24),w._uU(1,"OK"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function Re(ot,Kt){1&ot&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function ze(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.Q6J("payload",gt.showCopyField),w.xp6(1),w.hij("Copy ",gt.showCopyName,"")}}function Oe(ot,Kt){1&ot&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function K(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.Q6J("payload",gt.showQRField),w.xp6(1),w.hij("Copy ",gt.showQRName,"")}}function Me(ot,Kt){if(1&ot&&w._UZ(0,"qr-code",15),2&ot){const gt=w.oxw(2);w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function we(ot,Kt){if(1&ot&&(w.TgZ(0,"p",32),w._uU(1),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function z(ot,Kt){1&ot&&w._UZ(0,"span",46),2&ot&&w.Q6J("innerHTML",Kt.$implicit,w.oJD)}function Ze(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,z,1,1,"span",45),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function vt(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function Fe(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,gt.digitsInfo?gt.digitsInfo:"1.0-3"))}}function Ne(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value?"True":"False")}}function ce(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const Le=function(ot){return{"failed-status":ot}};function Pe(ot,Kt){if(1&ot&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,ce,2,0,"mat-icon",50),w.qZA()),2&ot){const gt=w.oxw(3).$implicit,Lt=w.oxw(4);w.Q6J("ngClass",w.VKq(3,Le,gt.value===Lt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",gt.value," "),w.xp6(1),w.Q6J("ngIf",gt.value===Lt.LoopStateEnum.FAILED)}}function q(ot,Kt){if(1&ot&&w._uU(0),2&ot){const gt=w.oxw(3).$implicit;w.Oqu(gt.value)}}function $(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,Pe,3,5,"p",47),w.YNc(2,q,1,1,"ng-template",null,48,w.W1O),w.BQk()),2&ot){const gt=w.MAs(3),Lt=w.oxw(2).$implicit,ui=w.oxw(4);w.xp6(1),w.Q6J("ngIf","SWAP"===ui.data.openedBy&&"state"===Lt.key)("ngIfElse",gt)}}function oe(ot,Kt){if(1&ot&&(w.TgZ(0,"span"),w.TgZ(1,"span",42),w.YNc(2,Ze,2,1,"ng-container",43),w.YNc(3,vt,3,4,"ng-container",43),w.YNc(4,Fe,3,4,"ng-container",43),w.YNc(5,Ne,2,1,"ng-container",43),w.YNc(6,$,4,2,"ng-container",44),w.qZA(),w.qZA()),2&ot){const gt=w.oxw().$implicit,Lt=w.oxw(4);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function Ce(ot,Kt){1&ot&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function Ue(ot,Kt){if(1&ot&&(w.TgZ(0,"div",37),w.TgZ(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,oe,7,5,"span",39),w.YNc(4,Ce,2,0,"ng-template",null,40,w.W1O),w._UZ(6,"mat-divider",41),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function lt(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.TgZ(1,"div",35),w.YNc(2,Ue,7,4,"div",36),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function nt(ot,Kt){if(1&ot&&(w.TgZ(0,"div",33),w.YNc(1,lt,3,1,"div",34),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}const ft=function(ot){return{"display-none":ot}};function it(ot,Kt){if(1&ot&&(w.TgZ(0,"div",27),w.TgZ(1,"div",28),w.YNc(2,Me,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,we,2,1,"p",30),w.YNc(5,nt,2,1,"div",31),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngClass",w.VKq(4,ft,""===gt.showQRField||gt.screenSize!==gt.screenSizeEnum.XS&>.screenSize!==gt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==gt.showQRField),w.xp6(2),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(1),w.Q6J("ngIf",(null==gt.messageObjs?null:gt.messageObjs.length)>0)}}let rt=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Yi,this.renderer=$i,this.LoopStateEnum=E.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.screenSize="",this.screenSizeEnum=E.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(gt){gt&&(this.scrollContainer=gt,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Lt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Lt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message,this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(gt){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+gt)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(te.mQ),w.Y36(ee.ux),w.Y36(ge.v),w.Y36(w.Qsj))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-alert-message"]],viewQuery:function(gt,Lt){if(1>&&w.Gf(_,5),2>){let ui;w.iGM(ui=w.CRH())&&(Lt.container=ui.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(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.YNc(2,D,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w.TgZ(6,"span",6),w._uU(7),w.qZA(),w.qZA(),w.TgZ(8,"button",7),w.NdJ("click",function(){return Lt.onClose()}),w._uU(9,"X"),w.qZA(),w.qZA(),w.YNc(10,r,4,4,"ng-container",8),w.YNc(11,Z,3,1,"ng-container",8),w.YNc(12,ve,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,be,2,1,"button",11),w.YNc(15,Re,2,1,"button",12),w.YNc(16,ze,2,2,"button",13),w.YNc(17,Oe,2,1,"button",12),w.YNc(18,K,2,2,"button",13),w.qZA(),w.qZA(),w.qZA(),w.YNc(19,it,6,6,"ng-template",null,14,w.W1O)),2>&&(w.xp6(1),w.Q6J("ngClass",w.VKq(12,ft,""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("fxFlex",""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM?"100":"70"),w.xp6(4),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(3),w.Q6J("ngIf",Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",!Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",Lt.data.scrollable&&Lt.shouldScroll),w.xp6(2),w.Q6J("ngIf",(!Lt.showQRField||""===Lt.showQRField)&&""===Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField))},directives:[V.xw,V.Wh,V.yH,le.mk,re.oO,le.O5,de.dk,se.lW,ye.uU,de.dn,v.$V,le.tP,i.Hw,a.h,P.ZT,p.y,le.sg,u.d,le.RF,le.n9,le.ED],pipes:[le.uU,le.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),ot})();var Mt=m(801),Zt=m(7861),Ft=m(5620),Vt=m(3075),Ii=m(9444),jt=m(7322),ei=m(7531),ki=m(6534);function ai(ot,Kt){if(1&ot&&(w.TgZ(0,"div",17),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faExclamationTriangle),w.xp6(2),w.Oqu(gt.warningMessage)}}function hi(ot,Kt){if(1&ot&&(w.TgZ(0,"div",19),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faInfoCircle),w.xp6(2),w.Oqu(gt.informationMessage)}}function Ve(ot,Kt){if(1&ot&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.data.titleMessage)}}function Ee(ot,Kt){1&ot&&w._UZ(0,"span",33),2&ot&&w.Q6J("innerHTML",Kt.$implicit,w.oJD)}function Y(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,Ee,1,1,"span",32),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function pe(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function De(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,"1.0-3"))}}function et(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(!0===gt.value?"True":"False")}}function $t(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value)}}function Nt(ot,Kt){if(1&ot&&(w.TgZ(0,"span"),w.TgZ(1,"span",29),w.YNc(2,Y,2,1,"ng-container",30),w.YNc(3,pe,3,4,"ng-container",30),w.YNc(4,De,3,4,"ng-container",30),w.YNc(5,et,2,1,"ng-container",30),w.YNc(6,$t,2,1,"ng-container",31),w.qZA(),w.qZA()),2&ot){const gt=w.oxw().$implicit,Lt=w.oxw(3);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function Jt(ot,Kt){1&ot&&(w.TgZ(0,"span",34),w._uU(1,"\xa0"),w.qZA())}function ct(ot,Kt){if(1&ot&&(w.TgZ(0,"div",24),w.TgZ(1,"h4",25),w._uU(2),w.qZA(),w.YNc(3,Nt,7,5,"span",26),w.YNc(4,Jt,2,0,"ng-template",null,27,w.W1O),w._UZ(6,"mat-divider",28),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function ke(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.TgZ(1,"div",22),w.YNc(2,ct,7,4,"div",23),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function Be(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.YNc(1,ke,3,1,"div",21),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}function at(ot,Kt){if(1&ot&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function st(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"input",41),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&ot){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function At(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"input",42),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&ot){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function li(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&ot){const gt=w.oxw().$implicit;w.xp6(1),w.hij("",gt.placeholder," is required.")}}function Bt(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-form-field",38),w.YNc(1,st,2,9,"input",39),w.YNc(2,At,2,9,"input",40),w.YNc(3,li,2,1,"mat-error",11),w.TgZ(4,"mat-hint"),w._uU(5),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=Kt.index;w.Q6J("fxFlex",gt.width),w.xp6(1),w.Q6J("ngIf",0===Lt),w.xp6(1),w.Q6J("ngIf",0!==Lt),w.xp6(1),w.Q6J("ngIf",!gt.inputValue),w.xp6(2),w.Oqu(gt.hintFunction?gt.hintFunction(gt.inputValue):gt.hintText)}}function Rt(ot,Kt){if(1&ot&&(w.TgZ(0,"div",35),w.YNc(1,at,2,1,"p",10),w.TgZ(2,"div",36),w.YNc(3,Bt,6,5,"mat-form-field",37),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(2),w.Q6J("ngForOf",gt.getInputs)}}function Li(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){w.CHM(gt);const ui=w.oxw();return ui.onClose(ui.getInputs)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}function si(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",44),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onClose(!0)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}let ci=(()=>{class ot{constructor(gt,Lt,ui,Ci){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.store=Ci,this.faInfoCircle=Mt.sqG,this.faExclamationTriangle=Mt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=E.n_,this.dataTypeEnum=E.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===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(gt){if(gt&&this.getInputs&&this.getInputs.some(Lt=>void 0===Lt.inputValue))return!0;this.store.dispatch((0,Zt.yb)({payload:gt}))}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(te.mQ),w.Y36(Ft.yh))},ot.\u0275cmp=w.Xpm({type:ot,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(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.TgZ(2,"mat-card-header",2),w.TgZ(3,"div",3),w.TgZ(4,"span",4),w._uU(5),w.qZA(),w.qZA(),w.TgZ(6,"button",5),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(7,"X"),w.qZA(),w.qZA(),w.TgZ(8,"mat-card-content",6),w.TgZ(9,"form",7),w.YNc(10,ai,4,2,"div",8),w.YNc(11,hi,4,2,"div",9),w.YNc(12,Ve,2,1,"p",10),w.YNc(13,Be,2,1,"div",11),w.YNc(14,Rt,4,2,"div",12),w.TgZ(15,"div",13),w.TgZ(16,"button",14),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(17),w.qZA(),w.YNc(18,Li,2,1,"button",15),w.YNc(19,si,2,1,"button",16),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(5),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(5),w.Q6J("ngIf",Lt.warningMessage&&""!==Lt.warningMessage),w.xp6(1),w.Q6J("ngIf",Lt.informationMessage&&""!==Lt.informationMessage),w.xp6(1),w.Q6J("ngIf",Lt.data.titleMessage&&!Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",(null==Lt.messageObjs?null:Lt.messageObjs.length)>0),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(3),w.Oqu(Lt.noBtnText),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",!Lt.flgShowInput))},directives:[V.xw,V.yH,de.dk,V.Wh,se.lW,de.dn,Vt._Y,Vt.JL,Vt.F,le.O5,Ii.BN,le.sg,u.d,le.RF,le.n9,le.ED,jt.KE,jt.bx,ei.Nt,ki.q,Vt.Fj,a.h,Vt.Q7,Vt.JJ,Vt.On,jt.TO],pipes:[le.uU,le.JJ,le.i8],styles:[""]}),ot})();var sn=m(1786),Ui=m(4107),Di=m(508);function Xi(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-option",23),w._uU(1),w.qZA()),2&ot){const gt=Kt.$implicit;w.Q6J("value",gt),w.xp6(1),w.hij(" ",gt.infoName," ")}}function Ke(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"div",13),w.TgZ(1,"mat-form-field",20),w.TgZ(2,"mat-select",21),w.NdJ("valueChange",function(ui){return w.CHM(gt),w.oxw().selInfoType=ui}),w.YNc(3,Xi,2,2,"mat-option",22),w.qZA(),w.qZA(),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(2),w.Q6J("value",gt.selInfoType),w.xp6(1),w.Q6J("ngForOf",gt.infoTypes)}}const _t=function(ot){return{"display-none":ot}};let _e=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Yi,this.faReceipt=Mt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=E.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((gt,Lt)=>{this.infoTypes.push({infoID:Lt+1,infoKey:"node URI "+(Lt+1),infoName:"Node URI "+(Lt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(gt){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+gt)}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(te.mQ),w.Y36(ee.ux),w.Y36(ge.v))},ot.\u0275cmp=w.Xpm({type:ot,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(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w._UZ(6,"fa-icon",6),w.TgZ(7,"span",7),w._uU(8),w.qZA(),w.qZA(),w.TgZ(9,"button",8),w.NdJ("click",function(){return Lt.onClose()}),w._uU(10,"X"),w.qZA(),w.qZA(),w.TgZ(11,"mat-card-content",9),w.TgZ(12,"div",10),w.TgZ(13,"div",11),w._UZ(14,"qr-code",2),w.qZA(),w.YNc(15,Ke,4,2,"div",12),w.TgZ(16,"div",13),w.TgZ(17,"div",14),w.TgZ(18,"h4",15),w._uU(19),w.qZA(),w.TgZ(20,"span",16),w._uU(21),w.qZA(),w.qZA(),w.qZA(),w._UZ(22,"mat-divider",17),w.TgZ(23,"div",18),w.TgZ(24,"button",19),w.NdJ("copied",function(Ci){return Lt.onCopyPubkey(Ci)}),w._uU(25),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(1),w.Q6J("ngClass",w.VKq(15,_t,Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(4),w.Q6J("icon",Lt.faReceipt),w.xp6(2),w.Oqu(Lt.selInfoType.infoName),w.xp6(5),w.Q6J("ngClass",w.VKq(17,_t,Lt.screenSize!==Lt.screenSizeEnum.XS&&Lt.screenSize!==Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(1),w.Q6J("ngIf",Lt.information.uris&&Lt.information.uris.length>0),w.xp6(4),w.Oqu(Lt.selInfoType.infoName),w.xp6(2),w.Oqu(0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(3),w.s9C("payload",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(1),w.hij("Copy ",Lt.selInfoType.infoKey,""))},directives:[V.xw,V.Wh,V.yH,le.mk,re.oO,ye.uU,de.dk,Ii.BN,se.lW,de.dn,le.O5,u.d,a.h,p.y,jt.KE,Ui.gD,le.sg,Di.ey],styles:[""]}),ot})();var qe=m(6523),yt=m(429),ue=m(2994),Je=m(8377),St=m(8138),kt=m(7998),yi=m(5986),Ni=m(8104),Si=m(1402);let qi=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i,Cn,Ln,_n,kn,dr){this.actions=gt,this.httpClient=Lt,this.store=ui,this.logger=Ci,this.wsService=Yi,this.sessionService=$i,this.commonService=Cn,this.dataService=Ln,this.dialog=_n,this.snackBar=kn,this.router=dr,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new t.x,new t.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALL_DIALOGS),(0,M.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SNACK_BAR),(0,M.U)(wi=>{"string"==typeof wi.payload?this.snackBar.open(wi.payload):this.snackBar.open(wi.payload.message,"","ERROR"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SPINNER),(0,M.U)(wi=>{wi.payload!==E.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(W,{data:{titleMessage:wi.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_SPINNER),(0,M.U)(wi=>{if(wi.payload!==E.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===wi.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Fi=>{Fi.componentInstance&&Fi.componentInstance.data&&Fi.componentInstance.data.titleMessage&&Fi.componentInstance.data.titleMessage===wi.payload&&Fi.close()})}catch(Fi){this.logger.error(Fi)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_ALERT),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.alertWidth),this.dialogRef=this.dialog.open(wi.payload.data.component?wi.payload.data.component:rt,Fi)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALERT),(0,M.U)(wi=>(this.dialogRef&&this.dialogRef.close(),wi.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_CONFIRMATION),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.confirmWidth),this.dialogRef=this.dialog.open(ci,Fi)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_CONFIRMATION),(0,l.q)(1),(0,M.U)(wi=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(wi.payload),wi.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_PUBKEY),(0,R.M)(this.store.select(Je.R4)),(0,s.z)(([wi,Fi])=>(this.sessionService.getItem("token")&&Fi.identity_pubkey?this.store.dispatch((0,Zt.qR)({payload:{data:{information:Fi,component:_e}}})):this.snackBar.open("Node Pubkey does not exist."),(0,y.of)({type:E.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_RTL_CONFIG),(0,s.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===E.cu.XS||this.screenSize===E.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===E.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,Zt.ac)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(A.NZ.CONF_API+"/rtlconf"):this.httpClient.get(A.NZ.CONF_API+"/rtlconfinit"))),(0,M.U)(wi=>{let Fi;return this.logger.info(wi),this.store.dispatch((0,Zt.uO)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.COMPLETED}})),wi.nodes.forEach(dn=>{dn.settings.currencyUnits=[...E.uA,dn.settings.currencyUnit],+dn.index===wi.selectedNodeIndex&&(Fi=dn)}),Fi?(this.store.dispatch((0,Zt.fk)({payload:{uiMessage:E.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Fi,isInitialSetup:!0}})),{type:E.pg.SET_RTL_CONFIG,payload:wi}):{type:E.pg.VOID}}),(0,L.K)(wi=>(this.handleErrorWithAlert("FetchRTLConfig",E.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",A.NZ.CONF_API,wi),(0,y.of)({type:E.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SAVE_SETTINGS),(0,s.z)(wi=>{this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSettings",status:E.Bn.INITIATED}}));let Fi=new C.y;if(wi.payload.settings&&wi.payload.defaultNodeIndex){const dn=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}),Lr=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex});Fi=(0,o.D)([dn,Lr])}else wi.payload.settings&&!wi.payload.defaultNodeIndex?Fi=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}):!wi.payload.settings&&wi.payload.defaultNodeIndex&&(Fi=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex}));return Fi.pipe((0,M.U)(dn=>(this.logger.info(dn),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),{type:E.pg.OPEN_SNACK_BAR,payload:dn.length?dn[0].message+".":dn.message+"."})),(0,L.K)(dn=>(this.handleErrorWithAlert("UpdateSettings",wi.payload.uiMessage,"Update Settings Failed!",A.NZ.CONF_API,dn.length?dn[0]:dn),(0,y.of)({type:E.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.UPDATE_SERVICE_SETTINGS),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateServiceSettings",wi.payload).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.Tm)({payload:wi.payload})),{type:E.pg.OPEN_SNACK_BAR,payload:Fi.message+"."})),(0,L.K)(Fi=>(this.handleErrorWithAlert("UpdateServiceSettings",wi.payload.uiMessage,"Update Service Settings Failed!",A.NZ.CONF_API,Fi),(0,y.of)({type:E.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.TWO_FA_SAVE_SETTINGS),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Zt.qi)({payload:{action:"Update2FASettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/update2FA",{secret2fa:wi.payload.secret2fa}))),(0,R.M)(this.store.select(Je.Yj)),(0,M.U)(([wi,Fi])=>{this.logger.info(wi),Fi.enable2FA=!Fi.enable2FA,this.store.dispatch((0,Zt.qi)({payload:{action:"Update2FASettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Zt.XT)({payload:Fi}))}),(0,L.K)(wi=>(this.handleErrorWithAlert("Update2FASettings",E.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",A.NZ.CONF_API,wi),(0,y.of)({type:E.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_CONFIG),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Zt.qi)({payload:{action:"fetchConfig",status:E.Bn.INITIATED}})),this.httpClient.get(A.NZ.CONF_API+"/config/"+wi.payload).pipe((0,M.U)(Fi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"fetchConfig",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.OPEN_CONFIG_FILE})),{type:E.pg.SHOW_CONFIG,payload:Fi})),(0,L.K)(Fi=>(this.handleErrorWithAlert("fetchConfig",E.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",A.NZ.CONF_API+"/config/"+wi.payload,Fi),(0,y.of)({type:E.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_CONFIG),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED),(0,s.z)(wi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"IsAuthorized",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload&&""!==wi.payload.trim()?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload&&""!==wi.payload.trim()?wi.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"IsAuthorized",status:E.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:E.pg.IS_AUTHORIZED_RES,payload:Fi})),(0,L.K)(Fi=>(this.handleErrorWithAlert("IsAuthorized",E.m6.NO_SPINNER,"Authorization Failed",A.NZ.AUTHENTICATE_API,Fi),(0,y.of)({type:E.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED_RES),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGIN),(0,R.M)(this.store.select(Je.Yj)),(0,s.z)(([wi,Fi])=>(this.store.dispatch((0,qe.Ll)({payload:null})),this.store.dispatch((0,yt.xH)({payload:null})),this.store.dispatch((0,ue.Fd)({payload:null})),this.store.dispatch((0,Zt.qi)({payload:{action:"Login",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload.password?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload.password?wi.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:wi.payload.twoFAToken?wi.payload.twoFAToken:""}).pipe((0,M.U)(dn=>{this.logger.info(dn),this.store.dispatch((0,Zt.qi)({payload:{action:"Login",status:E.Bn.COMPLETED}})),this.setLoggedInDetails(wi.payload.defaultPassword,dn)}),(0,L.K)(dn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",E.m6.NO_SPINNER,dn),+Fi.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:dn.error&&dn.error.error?dn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,y.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.VERIFY_TWO_FA),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Zt.qi)({payload:{action:"VerifyToken",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/token",{authentication2FA:wi.payload.token}).pipe((0,M.U)(Fi=>{this.logger.info(Fi),this.store.dispatch((0,Zt.uO)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Zt.qi)({payload:{action:"VerifyToken",status:E.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,wi.payload.authResponse)}),(0,L.K)(Fi=>(this.handleErrorWithAlert("VerifyToken",E.m6.VERIFY_TOKEN,"Authorization Failed!",A.NZ.AUTHENTICATE_API+"/token",Fi),(0,y.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGOUT),(0,R.M)(this.store.select(Je.Yj)),(0,s.z)(([wi,Fi])=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.LOG_OUT})),this.httpClient.get(A.NZ.AUTHENTICATE_API+"/logout").pipe((0,M.U)(dn=>{this.logger.info(dn),this.store.dispatch((0,Zt.uO)({payload:E.m6.LOG_OUT})),+Fi.sso.rtlSSO?window.location.href=Fi.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,Zt._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,I.R)(this.unSubs[1]),(0,e.l4)(E.pg.RESET_PASSWORD),(0,s.z)(wi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"ResetPassword",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/reset",{currPassword:wi.payload.currPassword,newPassword:wi.payload.newPassword}).pipe((0,I.R)(this.unSubs[0]),(0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"ResetPassword",status:E.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Zt.jW)({payload:"Password Reset Successful!"})),this.SetToken(Fi.token),{type:E.pg.RESET_PASSWORD_RES,payload:Fi.token})),(0,L.K)(Fi=>(this.handleErrorWithAlert("ResetPassword",E.m6.NO_SPINNER,"Password Reset Failed!",A.NZ.AUTHENTICATE_API+"/reset",Fi),(0,y.of)({type:E.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SET_SELECTED_NODE),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateSelNode",{prevNodeIndex:wi.payload.prevLnNodeIndex,currNodeIndex:wi.payload.currentLnNode.index}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),this.initializeNode(wi.payload.currentLnNode,wi.payload.isInitialSetup),{type:E.pg.VOID})),(0,L.K)(Fi=>(this.handleErrorWithAlert("UpdateSelNode",wi.payload.uiMessage,"Update Selected Node Failed!",A.NZ.CONF_API+"/updateSelNode",Fi),(0,y.of)({type:E.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_FILE),(0,s.z)(wi=>{this.store.dispatch((0,Zt.ac)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchFile",status:E.Bn.INITIATED}}));const Fi="?channel="+wi.payload.channelPoint+(wi.payload.path?"&path="+wi.payload.path:"");return this.httpClient.get(A.NZ.CONF_API+"/file"+Fi).pipe((0,M.U)(dn=>(this.store.dispatch((0,Zt.qi)({payload:{action:"FetchFile",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),{type:E.pg.SHOW_FILE,payload:dn})),(0,L.K)(dn=>(this.handleErrorWithAlert("fetchFile",E.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",A.NZ.CONF_API+"/file"+Fi,{status:this.commonService.extractErrorNumber(dn),error:{error:this.commonService.extractErrorCode(dn)}}),(0,y.of)({type:E.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_FILE),(0,M.U)(wi=>wi.payload)),{dispatch:!1})}initializeNode(gt,Lt){this.logger.info("Initializing node from RTL Effects.");const ui=Lt?"":"HOME";let Ci={};if(Ci=gt.settings.fiatConversion&>.settings.currencyUnit?{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:[...E.uA,gt.settings.currencyUnit],fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers}:{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:E.uA,fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,Zt.vI)({payload:gt})),this.store.dispatch((0,qe.Ll)({payload:Ci})),this.store.dispatch((0,yt.xH)({payload:Ci})),this.store.dispatch((0,ue.Fd)({payload:Ci})),this.sessionService.getItem("token")){const Yi=gt.lnImplementation?gt.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Yi);const $i=A.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":A.T5;switch(this.wsService.connectWebSocket($i.replace(/^http/,"ws")+A.NZ.Web_SOCKET_API,gt.index.toString()),Yi){case"CLN":this.store.dispatch((0,yt.CN)({payload:{loadPage:ui}}));break;case"ECL":this.store.dispatch((0,ue.iz)({payload:{loadPage:ui}}));break;default:this.store.dispatch((0,qe.sQ)({payload:{loadPage:ui}}))}}}SetToken(gt){gt?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",gt)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(gt,Lt){this.logger.info("Successfully Authorized!"),this.SetToken(Lt.token),this.sessionService.setItem("defaultPassword",gt),gt?(this.store.dispatch((0,Zt.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Zt.ey)())}handleErrorWithoutAlert(gt,Lt,ui){this.logger.error("ERROR IN: "+gt+"\n"+JSON.stringify(ui)),401===ui.status&&"Login"!==gt?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Zt.ts)()),this.store.dispatch((0,Zt.kS)()),this.store.dispatch((0,Zt.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,Zt.uO)({payload:Lt})),this.store.dispatch((0,Zt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:ui.status?ui.status.toString():"",message:this.commonService.extractErrorMessage(ui)}})))}handleErrorWithAlert(gt,Lt,ui,Ci,Yi){if(this.logger.error(Yi),0===Yi.status&&Yi.statusText&&"Unknown Error"===Yi.statusText&&(Yi={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Yi.status&&"Login"!==gt)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Zt.ts)()),this.store.dispatch((0,Zt.kS)()),this.store.dispatch((0,Zt.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,Zt.uO)({payload:Lt}));const $i=this.commonService.extractErrorMessage(Yi);this.store.dispatch((0,Zt.qR)({payload:{data:{type:"ERROR",alertTitle:ui,message:{code:Yi.status?Yi.status:"Unknown Error",message:$i,URL:Ci},component:sn.H}}})),this.store.dispatch((0,Zt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:Yi.status?Yi.status.toString():"",message:$i,URL:Ci}}))}}ngOnDestroy(){this.unSubs.forEach(gt=>{gt.next(null),gt.complete()})}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.LFG(e.eX),w.LFG(St.eN),w.LFG(Ft.yh),w.LFG(te.mQ),w.LFG(kt.d),w.LFG(yi.m),w.LFG(ge.v),w.LFG(Ni.D),w.LFG(P.uw),w.LFG(ee.ux),w.LFG(Si.F0))},ot.\u0275prov=w.Yz7({token:ot,factory:ot.\u0275fac}),ot})()},8377:(Ge,Q,m)=>{"use strict";m.d(Q,{dT:()=>C,Yj:()=>o,R4:()=>M,ul:()=>l,Sr:()=>R,gW:()=>s});var e=m(5620);const t=(0,e.ZF)("root"),C=((0,e.P1)(t,L=>L.apiURL),(0,e.P1)(t,L=>L.selNode)),o=(0,e.P1)(t,L=>L.appConfig),M=(0,e.P1)(t,L=>L.nodeData),l=(0,e.P1)(t,L=>L.apisCallStatus.Login),R=(0,e.P1)(t,L=>L.apisCallStatus.IsAuthorized),s=(0,e.P1)(t,L=>({nodeDate:L.nodeData,selNode:L.selNode}))},2340:(Ge,Q,m)=>{"use strict";m.d(Q,{T5:()=>e,NZ:()=>t,q4:()=>y});const e="./api",t={production:!0,isDebugMode:!1,AUTHENTICATE_API:e+"/authenticate",CONF_API:e+"/conf",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},y="0.12.4-beta"},8864:(Ge,Q,m)=>{"use strict";var e=m(2313),t=m(5e3),y=m(6360),C=m(8138),o=m(5113),M=m(5620),l=m(6642),R=m(9565),s=m(7579),L=m(6451),I=m(4968),A=m(457),E=m(4986),P=m(2805);function w(X=0,He=E.z){return X<0&&(X=0),(0,P.H)(X,X,He)}var V=m(9646),j=m(727),W=m(4482),te=m(5403),ee=m(8737),ge=m(3269),le=m(9672),de=m(9300),se=m(8505),ye=m(3900),v=m(2722),i=m(8746),a=m(1884),p=m(4004);class u{}class _{constructor(He,B){this._ngZone=B,this.timerStart$=new s.x,this.idleDetected$=new s.x,this.timeout$=new s.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,He&&this.setConfig(He)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,L.T)((0,I.R)(window,"mousemove"),(0,I.R)(window,"resize"),(0,I.R)(document,"keydown"))),this.idle$=(0,A.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function re(X,...He){var B,Ae;const pt=null!==(B=(0,ge.yG)(He))&&void 0!==B?B:E.z,fi=null!==(Ae=He[0])&&void 0!==Ae?Ae:null,In=He[1]||1/0;return(0,W.e)((tr,Fn)=>{let Br=[],ya=!1;const sr=fo=>{const{buffer:xc,subs:jo}=fo;jo.unsubscribe(),(0,ee.P)(Br,fo),Fn.next(xc),ya&&Na()},Na=()=>{if(Br){const fo=new j.w0;Fn.add(fo);const jo={buffer:[],subs:fo};Br.push(jo),(0,le.f)(fo,pt,()=>sr(jo),X)}};null!==fi&&fi>=0?(0,le.f)(Fn,pt,Na,fi,!0):ya=!0,Na();const Wo=new te.Q(Fn,fo=>{const xc=Br.slice();for(const jo of xc){const{buffer:w0}=jo;w0.push(fo),In<=w0.length&&sr(jo)}},()=>{for(;null==Br?void 0:Br.length;)Fn.next(Br.shift().buffer);null==Wo||Wo.unsubscribe(),Fn.complete(),Fn.unsubscribe()},void 0,()=>Br=null);tr.subscribe(Wo)})}(this.idleSensitivityMillisec),(0,de.h)(He=>!He.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,se.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,ye.w)(()=>this._ngZone.runOutsideAngular(()=>w(1e3).pipe((0,v.R)((0,L.T)(this.activityEvents$,(0,P.H)(this.idleMillisec).pipe((0,se.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,a.x)(),(0,ye.w)(He=>He?this.timer$:(0,V.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,de.h)(He=>!!He),(0,se.b)(()=>this.isTimeout=!0),(0,p.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(He){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(He):console.error("Call stopWatching() before set config values")}setConfig(He){He.idle&&(this.idleMillisec=1e3*He.idle),He.ping&&(this.pingMillisec=1e3*He.ping),He.idleSensitivity&&(this.idleSensitivityMillisec=1e3*He.idleSensitivity),He.timeout&&(this.timeout=He.timeout)}setCustomActivityEvents(He){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=He:console.error("Call stopWatching() before set custom activity events")}setupTimer(He){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,V.of)(()=>new Date).pipe((0,p.U)(B=>B()),(0,ye.w)(B=>w(1e3).pipe((0,p.U)(()=>Math.round(((new Date).valueOf()-B.valueOf())/1e3)),(0,se.b)(Ae=>{Ae>=He&&this.timeout$.next(!0)}))))})}setupPing(He){this.ping$=w(He).pipe((0,de.h)(()=>!this.isTimeout))}}_.\u0275fac=function(He){return new(He||_)(t.LFG(u,8),t.LFG(t.R0b))},_.\u0275prov=t.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_.ngInjectableDef=(0,t.Ez6)({factory:function(){return new _((0,t.f3M)(u,8),(0,t.f3M)(t.R0b))},token:_,providedIn:"root"});let D=(()=>{class X{static forRoot(B){return{ngModule:X,providers:[{provide:u,useValue:B}]}}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275mod=t.oAB({type:X}),X.\u0275inj=t.cJS({imports:[[]]}),X})();var O=m(1402),x=m(801),r=m(8377),b=m(7093),Z=m(9444),N=m(9224),U=m(3251),ve=m(9808);const be=function(){return{initial:!1}};function Re(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[1].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[1].link),t.Q6J("active",B.activeLink===B.links[1].link)("state",t.DdM(4,be)),t.xp6(1),t.Oqu(B.links[1].name)}}function ze(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[2].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[2].link),t.Q6J("active",B.activeLink===B.links[2].link),t.xp6(1),t.Oqu(B.links[2].name)}}let Oe=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faUserCog=x.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[1])).subscribe(Ae=>{this.appConfig=Ae}),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[2])).subscribe(Ae=>{this.showBitcoind=!1,this.selNode=Ae,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Settings"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,Re,2,5,"div",7),t.YNc(11,ze,2,3,"div",8),t.qZA(),t.TgZ(12,"div",9),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faUserCog),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.Q6J("ngIf",!+Ae.appConfig.sso.rtlSSO),t.xp6(1),t.Q6J("ngIf",Ae.showBitcoind))},directives:[b.xw,b.Wh,Z.BN,N.a8,N.dn,U.BU,U.Nj,O.rH,ve.O5,b.yH,O.lC],styles:[""]}),X})();var K=m(7731),Me=m(7861),we=m(5043),z=m(644),Ze=m(3075),vt=m(7322),Fe=m(4107),Ne=m(3390),ce=m(7423),Le=m(508);function Pe(X,He){if(1&X&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.index),t.xp6(1),t.AsE(" ",B.lnNode," (",B.lnImplementation,") ")}}function q(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",2,3),t.TgZ(2,"div",4),t._UZ(3,"fa-icon",5),t.TgZ(4,"span",6),t._uU(5,"Default Node"),t.qZA(),t.qZA(),t.TgZ(6,"div",7),t.TgZ(7,"div",8),t._UZ(8,"fa-icon",9),t.TgZ(9,"span"),t._uU(10,"The setting will apply after RTL server restarts."),t.qZA(),t.qZA(),t.TgZ(11,"div",10),t.TgZ(12,"mat-form-field",10),t.TgZ(13,"mat-select",11),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().appConfig.defaultNodeIndex=pt}),t.YNc(14,Pe,2,3,"mat-option",12),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",13),t.TgZ(16,"div",10),t.TgZ(17,"button",14),t.NdJ("click",function(){return t.CHM(B),t.oxw().onResetSettings()}),t._uU(18,"Reset"),t.qZA(),t.TgZ(19,"button",15),t.NdJ("click",function(){return t.CHM(B),t.oxw().onUpdateSettings()}),t._uU(20,"Update"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(3),t.Q6J("icon",B.faWindowRestore),t.xp6(5),t.Q6J("icon",B.faInfoCircle),t.xp6(5),t.Q6J("ngModel",B.appConfig.defaultNodeIndex),t.xp6(1),t.Q6J("ngForOf",B.appConfig.nodes)}}let $=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.faWindowRestore=x.wyP,this.faPlus=x.r8p,this.previousDefaultNode=0,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{this.appConfig=B,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(B)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Me.zQ)({payload:{uiMessage:K.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(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.YNc(1,q,21,4,"form",1),t.qZA()),2&B&&(t.xp6(1),t.Q6J("ngIf",Ae.appConfig.nodes&&Ae.appConfig.nodes.length&&Ae.appConfig.nodes.length>0))},directives:[b.xw,b.yH,z.$V,ve.O5,Ze._Y,Ze.JL,Ze.F,b.Wh,Z.BN,vt.KE,Fe.gD,Ne.h,Ze.JJ,Ze.On,ve.sg,ce.lW,Le.ey],styles:[""]}),X})();var oe=m(8012),Ce=m(5698),Ue=m(8966),lt=m(5768),nt=m(3093),ft=m(7261),it=m(5615),rt=m(7531),Mt=m(6895),Zt=m(159);const Ft=["stepper"];function Vt(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw();t.Oqu(B.passwordFormLabel)}}function Ii(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function jt(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.secretFormLabel)}}function ei(X,He){if(1&X&&t._UZ(0,"qr-code",32),2&X){const B=t.oxw(2);t.Q6J("value",B.otpauth)("size",180)("errorCorrectionLevel","L")}}function ki(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Secret Code is required."),t.qZA())}function ai(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-step",10),t.TgZ(1,"form",21),t.YNc(2,jt,1,1,"ng-template",22),t.TgZ(3,"div",23),t.YNc(4,ei,1,3,"qr-code",24),t.qZA(),t.TgZ(5,"div",25),t._UZ(6,"fa-icon",26),t.TgZ(7,"span"),t._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),t.qZA(),t.qZA(),t.TgZ(9,"div",27),t.TgZ(10,"mat-form-field",1),t._UZ(11,"input",28),t.TgZ(12,"fa-icon",29),t.NdJ("copied",function(pt){return t.CHM(B),t.oxw().onCopySecret(pt)}),t.qZA(),t.YNc(13,ki,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(14,"div",30),t.TgZ(15,"button",31),t._uU(16,"Next"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("stepControl",B.secretFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.secretFormGroup),t.xp6(3),t.Q6J("ngIf",B.otpauth),t.xp6(2),t.Q6J("icon",B.faInfoCircle),t.xp6(6),t.Q6J("icon",B.faCopy)("payload",null==B.secretFormGroup||null==B.secretFormGroup.controls||null==B.secretFormGroup.controls.secret?null:B.secretFormGroup.controls.secret.value),t.xp6(1),t.Q6J("ngIf",null==B.secretFormGroup||null==B.secretFormGroup.controls||null==B.secretFormGroup.controls.secret||null==B.secretFormGroup.controls.secret.errors?null:B.secretFormGroup.controls.secret.errors.required)}}function hi(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.tokenFormLabel)}}function Ve(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}function Ee(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is invalid."),t.qZA())}function Y(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",27),t.TgZ(2,"mat-form-field",1),t._UZ(3,"input",36),t.YNc(4,Ve,2,0,"mat-error",14),t.YNc(5,Ee,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(6,"div",30),t.TgZ(7,"button",37),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onVerifyToken()}),t._uU(8),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(4),t.Q6J("ngIf",null==B.tokenFormGroup||null==B.tokenFormGroup.controls||null==B.tokenFormGroup.controls.token||null==B.tokenFormGroup.controls.token.errors?null:B.tokenFormGroup.controls.token.errors.required),t.xp6(1),t.Q6J("ngIf",null==B.tokenFormGroup||null==B.tokenFormGroup.controls||null==B.tokenFormGroup.controls.token||null==B.tokenFormGroup.controls.token.errors?null:B.tokenFormGroup.controls.token.errors.notValid),t.xp6(3),t.Oqu(null!=B.tokenFormGroup&&null!=B.tokenFormGroup.controls&&null!=B.tokenFormGroup.controls.token&&null!=B.tokenFormGroup.controls.token.errors&&B.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function pe(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Success! You are all set."),t.qZA(),t.qZA())}function De(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,hi,1,1,"ng-template",12),t.YNc(3,Y,9,3,"div",35),t.YNc(4,pe,3,0,"div",14),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.Q6J("stepControl",B.tokenFormGroup),t.xp6(1),t.Q6J("formGroup",B.tokenFormGroup),t.xp6(2),t.Q6J("ngIf",!B.flgValidated||!B.isTokenValid),t.xp6(1),t.Q6J("ngIf",B.flgValidated&&B.isTokenValid)}}function et(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.disableFormLabel)}}function $t(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",38),t._UZ(2,"fa-icon",26),t.TgZ(3,"span"),t._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),t.qZA(),t.qZA(),t.TgZ(5,"div",30),t.TgZ(6,"button",37),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onVerifyToken()}),t._uU(7,"Disable"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(2),t.Q6J("icon",B.faExclamationTriangle)}}function Nt(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Two factor authentication removed from RTL."),t.qZA(),t.qZA())}function Jt(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,et,1,1,"ng-template",12),t.YNc(3,$t,8,1,"div",35),t.YNc(4,Nt,3,0,"div",14),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.Q6J("stepControl",B.disableFormGroup),t.xp6(1),t.Q6J("formGroup",B.disableFormGroup),t.xp6(2),t.Q6J("ngIf",!B.flgValidated||!B.isTokenValid),t.xp6(1),t.Q6J("ngIf",B.flgValidated&&B.isTokenValid)}}let ct=(()=>{class X{constructor(B,Ae,pt,fi,In,tr){this.dialogRef=B,this.data=Ae,this.store=pt,this.formBuilder=fi,this.rtlEffects=In,this.snackBar=tr,this.faExclamationTriangle=x.eHv,this.faCopy=x.kZ_,this.faInfoCircle=x.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:["",[Ze.kI.required]],password:["",[Ze.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Ze.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Ze.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new s.x,new s.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},Ze.kI.required]})}generateSecret(){const B=lt.authenticator.generateSecret();return this.otpauth=lt.authenticator.keyuri("","Ride The Lightning (RTL)",B),B}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Me.QO)({payload:oe(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Ce.q)(1)).subscribe(B=>{"ERROR"!==B?(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(B){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch((0,Me.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=lt.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch((0,Me.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(B){switch(B.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}B.selectedIndex{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Ze.qu),t.Y36(nt.V),t.Y36(ft.ux))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-two-factor-auth"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(Ft,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Setup Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.TgZ(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(fi){return Ae.stepSelectionChanged(fi)}),t.TgZ(12,"mat-step",10),t.TgZ(13,"form",11),t.YNc(14,Vt,1,1,"ng-template",12),t.TgZ(15,"div",0),t.TgZ(16,"mat-form-field",1),t._UZ(17,"input",13),t.YNc(18,Ii,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(19,"div",15),t.TgZ(20,"button",16),t.NdJ("click",function(){return Ae.onAuthenticate()}),t._uU(21,"Confirm"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(22,ai,17,8,"mat-step",17),t.YNc(23,De,5,4,"mat-step",18),t.YNc(24,Jt,5,4,"mat-step",18),t.qZA(),t.TgZ(25,"div",19),t.TgZ(26,"button",20),t._uU(27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(4),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",Ae.passwordFormGroup)("editable",Ae.flgEditable),t.xp6(1),t.Q6J("formGroup",Ae.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==Ae.passwordFormGroup||null==Ae.passwordFormGroup.controls||null==Ae.passwordFormGroup.controls.password||null==Ae.passwordFormGroup.controls.password.errors?null:Ae.passwordFormGroup.controls.password.errors.required),t.xp6(4),t.Q6J("ngIf",!Ae.showDisableStepper),t.xp6(1),t.Q6J("ngIf",!Ae.showDisableStepper),t.xp6(1),t.Q6J("ngIf",Ae.showDisableStepper),t.xp6(2),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(Ae.flgValidated&&Ae.isTokenValid?"Close":"Cancel"))},directives:[b.xw,b.yH,N.dk,b.Wh,ce.lW,Ue.ZT,N.dn,it.Vq,it.C0,Ze._Y,Ze.JL,Ze.sg,it.VY,vt.KE,rt.Nt,Ze.Fj,Ne.h,Ze.JJ,Ze.u,Ze.Q7,ve.O5,vt.TO,Z.BN,vt.R9,Mt.y,it.Ic,Zt.uU],styles:[""]}),X})();var ke=m(5986),Be=m(4834);const at=["authForm"];function st(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Current password is required."),t.qZA())}function At(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.errorMsg)}}function li(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.errorConfirmMsg)}}function Bt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",10,11),t.TgZ(2,"div",12),t._UZ(3,"fa-icon",4),t.TgZ(4,"span",5),t._uU(5,"Password"),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field"),t.TgZ(7,"input",13),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().currPassword=pt}),t.qZA(),t.YNc(8,st,2,0,"mat-error",14),t.qZA(),t.TgZ(9,"mat-form-field"),t.TgZ(10,"input",15),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().newPassword=pt}),t.qZA(),t.YNc(11,At,2,1,"mat-error",14),t.qZA(),t.TgZ(12,"mat-form-field"),t.TgZ(13,"input",16),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().confirmPassword=pt}),t.qZA(),t.YNc(14,li,2,1,"mat-error",14),t.qZA(),t.TgZ(15,"div",17),t.TgZ(16,"button",18),t.NdJ("click",function(){return t.CHM(B),t.oxw().onResetPassword()}),t._uU(17,"Reset"),t.qZA(),t.TgZ(18,"button",19),t.NdJ("click",function(){return t.CHM(B),t.oxw().onChangePassword()}),t._uU(19,"Change Password"),t.qZA(),t.qZA(),t.TgZ(20,"div",20),t._UZ(21,"mat-divider",21),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(3),t.Q6J("icon",B.faLock),t.xp6(4),t.Q6J("ngModel",B.currPassword),t.xp6(1),t.Q6J("ngIf",!B.currPassword),t.xp6(2),t.Q6J("ngModel",B.newPassword),t.xp6(1),t.Q6J("ngIf",B.matchOldAndNewPasswords()),t.xp6(2),t.Q6J("ngModel",B.confirmPassword),t.xp6(1),t.Q6J("ngIf",B.matchNewPasswords()),t.xp6(7),t.Q6J("inset",!0)}}let Rt=(()=>{class X{constructor(B,Ae,pt,fi,In){this.logger=B,this.store=Ae,this.actions=pt,this.router=fi,this.sessionService=In,this.faInfoCircle=x.sqG,this.faUserLock=x.FJU,this.faUserClock=x.hnx,this.faLock=x.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{this.appConfig=B,this.logger.info(this.appConfig)}),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B}),this.actions.pipe((0,v.R)(this.unSubs[2]),(0,de.h)(B=>B.type===K.pg.RESET_PASSWORD_RES)).subscribe(B=>{if(K.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||K.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Me.c0)({payload:{currPassword:oe(this.currPassword).toString(),newPassword:oe(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let B=!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.",B=!0):K.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=K.kO.reduce((Ae,pt,fi)=>fi{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(l.eX),t.Y36(O.F0),t.Y36(ke.m))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-auth-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(at,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.YNc(1,Bt,22,8,"form",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span"),t._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),t.qZA(),t.qZA(),t.TgZ(11,"div",8),t.TgZ(12,"button",9),t.NdJ("click",function(){return Ae.on2FAuth()}),t._uU(13),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("ngIf",null==Ae.appConfig?null:Ae.appConfig.allowPasswordUpdate),t.xp6(3),t.Q6J("icon",Ae.faUserClock),t.xp6(4),t.Q6J("icon",Ae.faInfoCircle),t.xp6(5),t.Oqu(Ae.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[b.xw,b.yH,b.Wh,ve.O5,Z.BN,ce.lW,Ze._Y,Ze.JL,Ze.F,vt.KE,rt.Nt,Ze.Fj,Ne.h,Ze.Q7,Ze.JJ,Ze.On,Be.d,vt.TO],styles:[""]}),X})();var Li=m(4623);function si(X,He){1&X&&t._UZ(0,"mat-divider",7)}function ci(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,si,1,0,"mat-divider",6),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,B.configData)),t.xp6(2),t.Q6J("ngIf",""!==B.configData)}}function sn(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Ui(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Di(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function Xi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,sn,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ui,2,1,"h4",12),t.qZA(),t.YNc(5,Di,1,1,"mat-divider",13),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Q6J("ngIf",B.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",B.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",B.indexOf("[")<0)}}function Ke(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,Xi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Q6J("ngForOf",B.configData)}}let _t=(()=>{class X{constructor(B,Ae,pt){this.store=B,this.rtlEffects=Ae,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(B=>B instanceof O.Av)).subscribe({next:B=>{this.selectedNodeType=B.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Me.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{const Ae=B.data;this.fileFormat=B.format,this.configData=""===Ae||!Ae||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ae&&Ae&&"JSON"===this.fileFormat?Ae:"":Ae.split("\n")})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(nt.V),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,ci,5,4,"div",2),t.YNc(3,Ke,3,1,"div",3),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("ngIf",""!==Ae.configData&&"JSON"===Ae.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Ae.configData&&("INI"===Ae.fileFormat||"HOCON"===Ae.fileFormat)))},directives:[b.xw,b.yH,b.Wh,ve.O5,Be.d,Li.i$,ve.sg,Li.Tg,N.$j],pipes:[ve.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const _e=function(){return{initial:!1}};function qe(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[1].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[1].link),t.Q6J("active",B.activeLink===B.links[1].link)("state",t.DdM(4,_e)),t.xp6(1),t.Oqu(B.links[1].name)}}function yt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[2].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[2].link),t.Q6J("active",B.activeLink===B.links[2].link),t.xp6(1),t.Oqu(B.links[2].name)}}function ue(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[3].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[3].link),t.Q6J("active",B.activeLink===B.links[3].link),t.xp6(1),t.Oqu(B.links[3].name)}}let Je=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faTools=x.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 s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[1])).subscribe(Ae=>{switch(this.showLnConfig=!1,this.selNode=Ae,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(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Node Config"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,qe,2,5,"div",7),t.YNc(11,yt,2,3,"div",8),t.YNc(12,ue,2,3,"div",8),t.qZA(),t.TgZ(13,"div",9),t._UZ(14,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faTools),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.Q6J("ngIf","LND"===(null==Ae.selNode||null==Ae.selNode.lnImplementation?null:Ae.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf","CLN"===(null==Ae.selNode||null==Ae.selNode.lnImplementation?null:Ae.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf",Ae.showLnConfig))},directives:[b.xw,b.Wh,Z.BN,N.a8,N.dn,U.BU,U.Nj,O.rH,ve.O5,b.yH,O.lC],styles:[""]}),X})();function St(X,He){1&X&&t._UZ(0,"mat-divider",7)}function kt(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,St,1,0,"mat-divider",6),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,B.configData)),t.xp6(2),t.Q6J("ngIf",""!==B.configData)}}function yi(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Ni(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Si(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function qi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,yi,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ni,2,1,"h4",12),t.qZA(),t.YNc(5,Si,1,1,"mat-divider",13),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Q6J("ngIf",B.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",B.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",B.indexOf("[")<0)}}function ot(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,qi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Q6J("ngForOf",B.configData)}}let Kt=(()=>{class X{constructor(B,Ae,pt){this.store=B,this.rtlEffects=Ae,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(B=>B instanceof O.Av)).subscribe({next:B=>{this.selectedNodeType=B.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Me.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{const Ae=B.data;this.fileFormat=B.format,this.configData=""===Ae||!Ae||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ae&&Ae&&"JSON"===this.fileFormat?Ae:"":Ae.split("\n")})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(nt.V),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,kt,5,4,"div",2),t.YNc(3,ot,3,1,"div",3),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("ngIf",""!==Ae.configData&&"JSON"===Ae.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Ae.configData&&("INI"===Ae.fileFormat||"HOCON"===Ae.fileFormat)))},directives:[b.xw,b.yH,b.Wh,ve.O5,Be.d,Li.i$,ve.sg,Li.Tg,N.$j],pipes:[ve.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();var gt=m(2994),Lt=m(429),ui=m(6523),Ci=m(62),Yi=m(2368),$i=m(9814),Cn=m(3322);function Ln(X,He){if(1&X&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.id),t.xp6(1),t.hij(" ",B.id," ")}}function _n(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Currency unit is required."),t.qZA())}function kn(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("value",B)("checked",Ae.selNode.settings.userPersona===B),t.xp6(1),t.hij(" ",t.lcZ(2,3,B)," ")}}const dr=function(X){return{"mr-4":X}};function wi(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",37),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("value",B)("ngClass",t.VKq(3,dr,Ae.screenSize===Ae.screenSizeEnum.XS||Ae.screenSize===Ae.screenSizeEnum.SM)),t.xp6(1),t.hij("",B.name," ")}}const Fi=function(X){return{skin:!0,"selected-color":X}};function dn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"span",38),t.TgZ(1,"div",39),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().changeThemeColor(fi.id)}),t.ALo(2,"lowercase"),t.qZA(),t._uU(3),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Tol(t.lcZ(2,4,B.id)),t.Q6J("ngClass",t.VKq(6,Fi,Ae.selectedThemeColor===B.id)),t.xp6(2),t.hij(" ",B.name," ")}}let Lr=(()=>{class X{constructor(B,Ae,pt){this.logger=B,this.commonService=Ae,this.store=pt,this.faExclamationTriangle=x.eHv,this.faMoneyBillAlt=x.co4,this.faPaintBrush=x.XsY,this.faInfoCircle=x.sqG,this.userPersonas=[K.ol.OPERATOR,K.ol.MERCHANT],this.currencyUnits=K.Er,this.themeModes=K.wZ.modes,this.themeColors=K.wZ.themes,this.selectedThemeMode=K.wZ.modes[0],this.selectedThemeColor=K.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(r.dT).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.selectedThemeMode=this.themeModes.find(Ae=>this.selNode.settings.themeMode===Ae.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(B)})}onCurrencyChange(B){this.selNode.settings.currencyUnits=[...K.uA,B.value],this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.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,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.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,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.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(B,Ae){this.selNode.settings[B]=!this.selNode.settings[B]}changeThemeColor(B){this.selectedThemeColor=B,this.selNode.settings.themeColor=B}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,Me.zQ)({payload:{uiMessage:K.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,ui.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,Lt.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,gt.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 B=this.selNode.index;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(Ae=>Ae.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Me.fk)({payload:{uiMessage:K.m6.NO_SPINNER,prevLnNodeIndex:+B,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"form",1,2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Balance Display"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.TgZ(8,"div",7),t._UZ(9,"fa-icon",8),t.TgZ(10,"span"),t._uU(11,"Fiat conversion calls "),t.TgZ(12,"strong"),t.TgZ(13,"a",9),t._uU(14,"Blockchain.com"),t.qZA(),t.qZA(),t._uU(15," API to get conversion rates."),t.qZA(),t.qZA(),t.TgZ(16,"div",10),t.TgZ(17,"mat-slide-toggle",11),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.fiatConversion=fi})("change",function(fi){return Ae.selNode.settings.currencyUnit=fi.checked?Ae.selNode.settings.currencyUnit:null}),t._uU(18,"Enable Fiat Conversion"),t.qZA(),t.TgZ(19,"mat-form-field"),t.TgZ(20,"mat-select",12,13),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.currencyUnit=fi})("selectionChange",function(fi){return Ae.onCurrencyChange(fi)}),t.YNc(22,Ln,2,2,"mat-option",14),t.qZA(),t.YNc(23,_n,2,0,"mat-error",15),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"div",16),t.TgZ(25,"div",17),t.TgZ(26,"div",18),t._UZ(27,"fa-icon",4),t.TgZ(28,"span",5),t._uU(29,"Customization"),t.qZA(),t.qZA(),t.TgZ(30,"div",6),t.TgZ(31,"div",19),t.TgZ(32,"div",20),t._UZ(33,"fa-icon",8),t.TgZ(34,"span"),t._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),t.qZA(),t.qZA(),t.TgZ(36,"div",21),t.TgZ(37,"h4"),t._uU(38,"Dashboard Layout"),t.qZA(),t.TgZ(39,"mat-radio-group",22),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.userPersona=fi}),t.YNc(40,kn,3,5,"mat-radio-button",23),t.qZA(),t.qZA(),t.qZA(),t._UZ(41,"mat-divider",24),t.TgZ(42,"div",25),t.TgZ(43,"div",26),t.TgZ(44,"h4"),t._uU(45,"Mode"),t.qZA(),t.TgZ(46,"mat-radio-group",27),t.NdJ("ngModelChange",function(fi){return Ae.selectedThemeMode=fi})("change",function(){return Ae.chooseThemeMode()}),t.YNc(47,wi,2,5,"mat-radio-button",28),t.qZA(),t.qZA(),t.qZA(),t._UZ(48,"mat-divider",24),t.TgZ(49,"div",25),t.TgZ(50,"div",29),t.TgZ(51,"h4"),t._uU(52,"Themes"),t.qZA(),t.TgZ(53,"div",30),t.YNc(54,dn,4,8,"span",31),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(55,"div",32),t.TgZ(56,"button",33),t.NdJ("click",function(){return Ae.onResetSettings()}),t._uU(57,"Reset"),t.qZA(),t.TgZ(58,"button",34),t.NdJ("click",function(){return Ae.onUpdateSettings()}),t._uU(59,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(4),t.Q6J("icon",Ae.faMoneyBillAlt),t.xp6(5),t.Q6J("icon",Ae.faExclamationTriangle),t.xp6(8),t.Q6J("ngModel",Ae.selNode.settings.fiatConversion),t.xp6(3),t.Q6J("ngModel",Ae.selNode.settings.currencyUnit)("disabled",!Ae.selNode.settings.fiatConversion)("required",Ae.selNode.settings.fiatConversion),t.xp6(2),t.Q6J("ngForOf",Ae.currencyUnits),t.xp6(1),t.Q6J("ngIf",Ae.selNode.settings.fiatConversion&&!Ae.selNode.settings.currencyUnit),t.xp6(4),t.Q6J("icon",Ae.faPaintBrush),t.xp6(6),t.Q6J("icon",Ae.faInfoCircle),t.xp6(6),t.Q6J("ngModel",Ae.selNode.settings.userPersona),t.xp6(1),t.Q6J("ngForOf",Ae.userPersonas),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("ngModel",Ae.selectedThemeMode),t.xp6(1),t.Q6J("ngForOf",Ae.themeModes),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Q6J("ngForOf",Ae.themeColors))},directives:[b.xw,b.yH,z.$V,Ze._Y,Ze.JL,Ze.F,b.Wh,Z.BN,Yi.Rr,Ze.JJ,Ze.On,vt.KE,Fe.gD,Ne.h,Ze.Q7,ve.sg,ve.O5,$i.VQ,Be.d,ce.lW,Le.ey,vt.TO,$i.U0,ve.mk,Cn.oO],pipes:[ve.rS,ve.i8],styles:[""]}),X})();const La=function(){return{initial:!1}};let Gn=(()=>{class X{constructor(B){this.router=B,this.faLayerGroup=x.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Services"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.TgZ(10,"div",7),t.NdJ("click",function(){return Ae.activeLink=Ae.links[1].link}),t._uU(11),t.qZA(),t.qZA(),t.TgZ(12,"div",8),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faLayerGroup),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.s9C("routerLink",Ae.links[1].link),t.Q6J("active",Ae.activeLink===Ae.links[1].link)("state",t.DdM(8,La)),t.xp6(1),t.Oqu(Ae.links[1].name))},directives:[b.xw,b.Wh,Z.BN,N.a8,N.dn,U.BU,U.Nj,O.rH,b.yH,O.lC],styles:[""]}),X})();const Or=["form"];function Ra(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop server URL is required."),t.qZA())}function Ma(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the loop server url with 'https://'."),t.qZA())}function Fa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop macaroon path is required."),t.qZA())}let xr=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.enableLoop=!1,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.dT).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.enableLoop=B.settings.swapServerUrl&&""!==B.settings.swapServerUrl.trim(),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(B)})}onEnableServiceChanged(B){this.enableLoop=B.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,Me.jS)({payload:{uiMessage:K.m6.UPDATE_LOOP_SETTINGS,service:K.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,ui.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,Lt.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,gt.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(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-loop-service-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(Or,7),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){if(1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"loopd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(fi){return Ae.enableLoop=fi})("change",function(fi){return Ae.onEnableServiceChanged(fi)}),t._uU(16,"Enable Loop Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.swapServerUrl=fi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),t.qZA(),t.YNc(22,Ra,2,0,"mat-error",11),t.YNc(23,Ma,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(fi){return Ae.selNode.authentication.swapMacaroonPath=fi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),t.qZA(),t.YNc(28,Fa,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return Ae.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Ae.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B){const pt=t.MAs(19);t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Ae.enableLoop),t.xp6(3),t.Q6J("ngModel",Ae.selNode.settings.swapServerUrl)("required",Ae.enableLoop)("disabled",!Ae.enableLoop),t.xp6(4),t.Q6J("ngIf",!Ae.selNode.settings.swapServerUrl&&Ae.enableLoop),t.xp6(1),t.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&Ae.enableLoop),t.xp6(2),t.Q6J("ngModel",Ae.selNode.authentication.swapMacaroonPath)("required",Ae.enableLoop)("disabled",!Ae.enableLoop),t.xp6(3),t.Q6J("ngIf",!Ae.selNode.authentication.swapMacaroonPath&&Ae.enableLoop)}},directives:[b.xw,b.yH,z.$V,Z.BN,Ze._Y,Ze.JL,Ze.F,b.Wh,Yi.Rr,Ne.h,Ze.JJ,Ze.On,vt.KE,rt.Nt,Ze.Fj,Ze.Q7,vt.bx,ve.O5,ce.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const hs=["form"];function ur(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz server URL is required."),t.qZA())}function pa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the boltz server url with 'https://'."),t.qZA())}function ma(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz macaroon path is required."),t.qZA())}let Ir=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.dT).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.enableBoltz=B.settings.boltzServerUrl&&""!==B.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(B)})}onEnableServiceChanged(B){this.enableBoltz=B.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,Me.jS)({payload:{uiMessage:K.m6.UPDATE_BOLTZ_SETTINGS,service:K.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,ui.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,Lt.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,gt.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(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(hs,7),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){if(1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"boltzd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(fi){return Ae.enableBoltz=fi})("change",function(fi){return Ae.onEnableServiceChanged(fi)}),t._uU(16,"Enable Boltz Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(fi){return Ae.serverUrl=fi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),t.qZA(),t.YNc(22,ur,2,0,"mat-error",11),t.YNc(23,pa,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(fi){return Ae.macaroonPath=fi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),t.qZA(),t.YNc(28,ma,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return Ae.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Ae.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B){const pt=t.MAs(19);t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Ae.enableBoltz),t.xp6(3),t.Q6J("ngModel",Ae.serverUrl)("required",Ae.enableBoltz)("disabled",!Ae.enableBoltz),t.xp6(4),t.Q6J("ngIf",(!Ae.serverUrl||""===Ae.serverUrl.trim())&&Ae.enableBoltz),t.xp6(1),t.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&Ae.enableBoltz),t.xp6(2),t.Q6J("ngModel",Ae.macaroonPath)("required",Ae.enableBoltz)("disabled",!Ae.enableBoltz),t.xp6(3),t.Q6J("ngIf",!Ae.macaroonPath&&Ae.enableBoltz)}},directives:[b.xw,b.yH,z.$V,Z.BN,Ze._Y,Ze.JL,Ze.F,b.Wh,Yi.Rr,Ne.h,Ze.JJ,Ze.On,vt.KE,rt.Nt,Ze.Fj,Ze.Q7,vt.bx,ve.O5,ce.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),Ga=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faLayerGroup=x.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 s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[1])).subscribe(Ae=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.selNode=Ae,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(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-services"]],decls:1,vars:0,template:function(B,Ae){1&B&&t._UZ(0,"router-outlet")},directives:[O.lC],styles:[""]}),X})();var Ya=m(8213),Zr=m(9107),Pr=m(6087),Kn=m(4847),vn=m(2075),Qn=m(5899);function Tr(X,He){1&X&&t._UZ(0,"mat-progress-bar",34)}function Ba(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Initiation Time "),t.qZA())}function Wa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,B.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function kr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Last Update Time "),t.qZA())}function la(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,B.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Jr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID "),t.qZA())}function ga(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id)}}function $n(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID (Bytes) "),t.qZA())}function wa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id_bytes)}}function Nr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," State "),t.qZA())}function ca(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Oqu(Ae.LoopStateEnum[B.state])}}function Aa(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," HTLC Address "),t.qZA())}function Vr(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.htlc_address)}}function ha(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function pr(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.amt))}}function Sr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Server (Sats) "),t.qZA())}function is(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.cost_server))}}function Oa(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Offchain (Sats) "),t.qZA())}function ra(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.cost_offchain))}}function Gr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Onchain (Sats) "),t.qZA())}function Ha(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==B?null:B.cost_onchain)," ")}}function Zn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"th",39),t.TgZ(1,"div",40),t.TgZ(2,"mat-select",41),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",42),t.NdJ("click",function(){return t.CHM(B),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function ns(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"td",43),t.TgZ(1,"button",44),t.NdJ("click",function(pt){const In=t.CHM(B).$implicit;return t.oxw().onSwapClick(In,pt)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function ja(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.emptyTableMessage)}}function Xe(X,He){if(1&X&&(t.TgZ(0,"td",45),t.YNc(1,ja,2,1,"p",46),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=B.listSwaps&&B.listSwaps.data)||(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)<1)}}const me=function(X){return{"display-none":X}};function J(X,He){if(1&X&&t._UZ(0,"tr",47),2&X){const B=t.oxw();t.Q6J("ngClass",t.VKq(1,me,(null==B.listSwaps?null:B.listSwaps.data)&&(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)>0))}}function ne(X,He){1&X&&t._UZ(0,"tr",48)}function Qe(X,He){1&X&&t._UZ(0,"tr",49)}const Wt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},mi=function(){return["no_swap"]};let Ct=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.commonService=Ae,this.store=pt,this.loopService=fi,this.selectedSwapType=K.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=K.Fq,this.faHistory=x.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=K.IV,this.pageSizeOptions=K.TJ,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x,new s.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===K.cu.XS||this.screenSize===K.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===K.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(B){this.swapCaption=this.selectedSwapType===K.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(B,Ae){this.loopService.getSwap(B.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,v.R)(this.unSubs[2])).subscribe(pt=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:K.Fq[pt.state],title:"Status",width:50,type:K.Gi.STRING},{key:"amt",value:pt.amt,title:"Amount (Sats)",width:50,type:K.Gi.NUMBER}],[{key:"initiation_time",value:pt.initiation_time/1e9,title:"Initiation Time",width:50,type:K.Gi.DATE_TIME},{key:"last_update_time",value:pt.last_update_time/1e9,title:"Last Update Time",width:50,type:K.Gi.DATE_TIME}],[{key:"cost_server",value:pt.cost_server,title:"Server Cost (Sats)",width:33,type:K.Gi.NUMBER},{key:"cost_offchain",value:pt.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:K.Gi.NUMBER},{key:"cost_onchain",value:pt.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:K.Gi.NUMBER}],[{key:"id_bytes",value:pt.id_bytes,title:"ID",width:100,type:K.Gi.STRING}],[{key:"htlc_address",value:pt.htlc_address,title:"HTLC Address",width:100,type:K.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(B){this.listSwaps=new vn.by([...B]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ae,pt)=>Ae[pt]&&isNaN(Ae[pt])?Ae[pt].toLocaleLowerCase():Ae[pt]?+Ae[pt]:null,this.listSwaps.filterPredicate=(Ae,pt)=>JSON.stringify(Ae).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===K.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Zr.W))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-swaps"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Kn.YE,5),t.Gf(Pr.NW,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sort=pt.first),t.iGM(pt=t.CRH())&&(Ae.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Pr.ye,useValue:(0,K.pt)("Swaps")}]),t.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return Ae.applyFilter()})("ngModelChange",function(fi){return Ae.selFilter=fi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,Tr,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,Ba,2,0,"th",13),t.YNc(15,Wa,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,kr,2,0,"th",13),t.YNc(18,la,3,4,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,Jr,2,0,"th",13),t.YNc(21,ga,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,$n,2,0,"th",13),t.YNc(24,wa,2,1,"td",14),t.BQk(),t.ynx(25,18),t.YNc(26,Nr,2,0,"th",13),t.YNc(27,ca,2,1,"td",14),t.BQk(),t.ynx(28,19),t.YNc(29,Aa,2,0,"th",13),t.YNc(30,Vr,2,1,"td",14),t.BQk(),t.ynx(31,20),t.YNc(32,ha,2,0,"th",21),t.YNc(33,pr,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Sr,2,0,"th",21),t.YNc(36,is,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,Oa,2,0,"th",21),t.YNc(39,ra,4,3,"td",14),t.BQk(),t.ynx(40,24),t.YNc(41,Gr,2,0,"th",21),t.YNc(42,Ha,4,3,"td",14),t.BQk(),t.ynx(43,25),t.YNc(44,Zn,6,0,"th",26),t.YNc(45,ns,3,0,"td",27),t.BQk(),t.ynx(46,28),t.YNc(47,Xe,2,1,"td",29),t.BQk(),t.YNc(48,J,1,3,"tr",30),t.YNc(49,ne,1,0,"tr",31),t.YNc(50,Qe,1,0,"tr",32),t.qZA(),t._UZ(51,"mat-paginator",33),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(3),t.Q6J("icon",Ae.faHistory),t.xp6(2),t.AsE("",Ae.swapCaption," History, ",Ae.flgLoading,""),t.xp6(2),t.Q6J("ngModel",Ae.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Ae.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Ae.listSwaps)("ngClass",t.VKq(14,Wt,"error"===Ae.flgLoading[0])),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(16,mi)),t.xp6(1),t.Q6J("matHeaderRowDef",Ae.displayedColumns)("matHeaderRowDefSticky",Ae.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Ae.displayedColumns),t.xp6(1),t.Q6J("pageSize",Ae.pageSize)("pageSizeOptions",Ae.pageSizeOptions)("showFirstLastButtons",Ae.screenSize!==Ae.screenSizeEnum.XS))},directives:[b.xw,b.yH,b.Wh,Z.BN,vt.KE,rt.Nt,Ze.Fj,Ze.JJ,Ze.On,z.$V,ve.O5,vn.BZ,Kn.YE,ve.mk,Cn.oO,vn.w1,vn.fO,vn.Dz,vn.mD,vn.Ke,vn.as,vn.nj,Pr.NW,Qn.pW,vn.ge,Kn.nU,vn.ev,Fe.gD,Fe.$L,Le.ey,ce.lW,vn.yh,vn.Q2,vn.XQ,vn.Gk],pipes:[ve.uU,ve.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ti=function(X){return["../",X]};function bt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onSelectedIndexChange(fi)}),t._uU(1),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("active",Ae.activeTab.link===B.link)("routerLink",t.VKq(3,ti,B.link)),t.xp6(1),t.Oqu(B.name)}}let Yt=(()=>{class X{constructor(B,Ae,pt){this.router=B,this.loopService=Ae,this.store=pt,this.faInfinity=x.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=K.$I,this.selectedSwapType=K.$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 s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.loopService.listSwaps();const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeTab=B||this.links[0],this.selectedSwapType=B&&"loopin"===B.link?K.$I.LOOP_IN:K.$I.LOOP_OUT,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"loopin"===pt.link?K.$I.LOOP_IN:K.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,v.R)(this.unSubs[1])).subscribe({next:Ae=>{this.flgLoading[0]=!1,this.storedSwaps=Ae,this.filteredSwaps=this.storedSwaps.filter(pt=>pt.type===this.selectedSwapType)},error:Ae=>{this.flgLoading[0]="error",this.emptyTableMessage=Ae.message?Ae.message:"No loop "+(this.selectedSwapType===K.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(B){this.selectedSwapType="loopin"===B.link?K.$I.LOOP_IN:K.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(Ae=>Ae.type===this.selectedSwapType)}onLoop(B){B===K.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,v.R)(this.unSubs[2])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{minQuote:Ae[0],maxQuote:Ae[1],direction:B,component:Ya.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,v.R)(this.unSubs[3])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{minQuote:Ae[0],maxQuote:Ae[1],direction:B,component:Ya.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(O.F0),t.Y36(Zr.W),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Loop"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.YNc(8,bt,2,5,"div",6),t.qZA(),t.TgZ(9,"div",7),t.TgZ(10,"button",8),t.NdJ("click",function(){return Ae.onLoop(Ae.selectedSwapType)}),t._uU(11),t.qZA(),t.qZA(),t._UZ(12,"rtl-swaps",9),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faInfinity),t.xp6(7),t.Q6J("ngForOf",Ae.links),t.xp6(3),t.hij("Start ",Ae.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Ae.selectedSwapType)("swapsData",Ae.filteredSwaps)("flgLoading",Ae.flgLoading)("emptyTableMessage",Ae.emptyTableMessage))},directives:[b.xw,b.Wh,Z.BN,N.a8,N.dn,U.BU,ve.sg,ce.lW,Ct,b.yH,U.Nj,O.rH],styles:[""]}),X})();var xi=m(7772),Bi=m(1135),yn=m(2843),An=m(262),Wi=m(2340),Cr=m(1786);let Un=(()=>{class X{constructor(B,Ae,pt,fi){this.httpClient=B,this.logger=Ae,this.store=pt,this.commonService=fi,this.swapUrl="",this.swaps={},this.swapsChanged=new Bi.X({}),this.unSubs=[new s.x,new s.x,new s.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Me.ac)({payload:K.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,v.R)(this.unSubs[0])).subscribe({next:B=>{this.store.dispatch((0,Me.uO)({payload:K.m6.GET_BOLTZ_SWAPS})),this.swaps=B,this.swapsChanged.next(this.swaps)},error:B=>this.swapsChanged.error(this.handleErrorWithAlert(K.m6.GET_BOLTZ_SWAPS,this.swapUrl,B))})}swapInfo(B){return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/swapInfo/"+B,this.httpClient.get(this.swapUrl).pipe((0,An.K)(Ae=>(0,V.of)(this.handleErrorWithAlert(K.m6.NO_SPINNER,this.swapUrl,Ae))))}serviceInfo(){return this.store.dispatch((0,Me.ac)({payload:K.m6.GET_SERVICE_INFO})),this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,v.R)(this.unSubs[1]),(0,p.U)(B=>(this.store.dispatch((0,Me.uO)({payload:K.m6.GET_SERVICE_INFO})),B)),(0,An.K)(B=>(0,V.of)(this.handleErrorWithAlert(K.m6.GET_SERVICE_INFO,this.swapUrl,B))))}swapOut(B,Ae){const pt={amount:B,address:Ae};return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,pt).pipe((0,An.K)(fi=>this.handleErrorWithoutAlert("Swap Out for Address: "+Ae,K.m6.NO_SPINNER,fi)))}swapIn(B){const Ae={amount:B};return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,Ae).pipe((0,An.K)(pt=>this.handleErrorWithoutAlert("Swap In for Amount: "+B,K.m6.NO_SPINNER,pt)))}handleErrorWithoutAlert(B,Ae,pt){let fi="";return this.logger.error("ERROR IN: "+B+"\n"+JSON.stringify(pt)),this.store.dispatch((0,Me.uO)({payload:Ae})),401===pt.status?(fi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())):503===pt.status?(fi="Unable to Connect to Boltz Server.",this.store.dispatch((0,Me.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:B},component:Cr.H}}}))):fi=this.commonService.extractErrorMessage(pt),(0,yn._)(()=>new Error(fi))}handleErrorWithAlert(B,Ae,pt){let fi="";if(401===pt.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())),this.logger.error(pt),this.store.dispatch((0,Me.uO)({payload:B})),401===pt.status)fi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)());else if(503===pt.status)fi="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:Ae},component:Cr.H}}}))},100);else{fi=this.commonService.extractErrorMessage(pt);const In=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,Me.qR)({payload:{data:{type:K.n_.ERROR,alertTitle:"ERROR",message:{code:In,message:fi,URL:Ae},component:Cr.H}}}))},100)}return{message:fi}}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.LFG(C.eN),t.LFG(we.mQ),t.LFG(M.yh),t.LFG(Ci.v))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var Rn=m(1125);let _a=(()=>{class X{constructor(){this.serviceInfo={},this.direction=K.hc.SWAP_OUT,this.swapTypeEnum=K.hc}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"mat-expansion-panel",0),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t.TgZ(3,"span",1),t._uU(4,"Service Information"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(5,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"div",4),t.TgZ(8,"h4",5),t._uU(9,"Minimum Amount (Sats)"),t.qZA(),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.TgZ(13,"div",4),t.TgZ(14,"h4",5),t._uU(15,"Maximum Amount (Sats)"),t.qZA(),t.TgZ(16,"span",6),t._uU(17),t.ALo(18,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(19,"mat-divider",7),t.TgZ(20,"div",3),t.TgZ(21,"div",4),t.TgZ(22,"h4",5),t._uU(23,"Fee Percentage"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA(),t.qZA(),t.TgZ(27,"div",4),t.TgZ(28,"h4",5),t._uU(29,"Miner Fee (Sats)"),t.qZA(),t.TgZ(30,"span",6),t._uU(31),t.ALo(32,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.Q6J("expanded",!0),t.xp6(11),t.Oqu(t.lcZ(12,5,null==Ae.serviceInfo||null==Ae.serviceInfo.limits?null:Ae.serviceInfo.limits.minimal)),t.xp6(6),t.Oqu(t.lcZ(18,7,null==Ae.serviceInfo||null==Ae.serviceInfo.limits?null:Ae.serviceInfo.limits.maximal)),t.xp6(8),t.Oqu(t.lcZ(26,9,null==Ae.serviceInfo||null==Ae.serviceInfo.fees?null:Ae.serviceInfo.fees.percentage)),t.xp6(6),t.Oqu(t.lcZ(32,11,Ae.direction===Ae.swapTypeEnum.SWAP_OUT?null==Ae.serviceInfo||null==Ae.serviceInfo.fees||null==Ae.serviceInfo.fees.miner?null:Ae.serviceInfo.fees.miner.reverse:null==Ae.serviceInfo||null==Ae.serviceInfo.fees||null==Ae.serviceInfo.fees.miner?null:Ae.serviceInfo.fees.miner.normal)))},directives:[Rn.ib,b.yH,Rn.yz,Rn.yK,b.Wh,b.xw,Be.d],pipes:[ve.JJ],styles:[""]}),X})();var Mr=m(5245);function ds(X,He){1&X&&t.GkF(0)}function vs(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"span",5),t._uU(2),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(null!=B.swapStatus&&B.swapStatus.error?null==B.swapStatus?null:B.swapStatus.error:"Unknown Error.")}}function Pi(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Routing Fee (mSats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",7),t.TgZ(16,"h4",8),t._uU(17,"Claim Transaction ID"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.TgZ(20,"div",7),t.TgZ(21,"h4",8),t._uU(22,"Lockup Address"),t.qZA(),t.TgZ(23,"span",5),t._uU(24),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(6),t.Oqu(null==B.swapStatus?null:B.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==B.swapStatus?null:B.swapStatus.routingFeeMilliSat)),t.xp6(8),t.Oqu(null==B.swapStatus?null:B.swapStatus.claimTransactionId),t.xp6(5),t.Oqu(null==B.swapStatus?null:B.swapStatus.lockupAddress)}}function Nn(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Expected Amount (Sats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",10),t.TgZ(16,"h4",8),t._uU(17,"Address"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.qZA(),t._UZ(20,"mat-divider",9),t.TgZ(21,"div",6),t.TgZ(22,"div",10),t.TgZ(23,"h4",8),t._uU(24,"BIP 21"),t.qZA(),t.TgZ(25,"span",5),t._uU(26),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(6),t.Oqu(null==B.swapStatus?null:B.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==B.swapStatus?null:B.swapStatus.expectedAmount)),t.xp6(8),t.Oqu(null==B.swapStatus?null:B.swapStatus.address),t.xp6(7),t.Oqu(null==B.swapStatus?null:B.swapStatus.bip21)}}let zs=(()=>{class X{constructor(){this.swapStatus=null,this.direction=K.hc.SWAP_OUT,this.swapTypeEnum=K.hc}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){if(1&B&&(t.YNc(0,ds,1,0,"ng-container",0),t.YNc(1,vs,3,1,"ng-template",null,1,t.W1O),t.YNc(3,Pi,25,6,"ng-template",null,2,t.W1O),t.YNc(5,Nn,27,6,"ng-template",null,3,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6);t.Q6J("ngTemplateOutlet",null!=Ae.swapStatus&&Ae.swapStatus.error?pt:Ae.direction===Ae.swapTypeEnum.SWAP_OUT?fi:In)}},directives:[ve.tP,b.xw,b.yH,b.Wh,Be.d],pipes:[ve.JJ],styles:[""]}),X})();var fr=m(113);function Us(X,He){1&X&&t.GkF(0)}const rs=function(X,He){return{"small-svg":X,"large-svg":He}};function xt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Reverse Submarine Swap explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function ie(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",21),t.TgZ(2,"g",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t._UZ(9,"path",29),t.TgZ(10,"defs"),t.TgZ(11,"clipPath",30),t._UZ(12,"rect",31),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function he(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",32),t._UZ(2,"path",33),t._UZ(3,"path",34),t._UZ(4,"path",35),t._UZ(5,"path",36),t._UZ(6,"path",37),t._UZ(7,"circle",38),t._UZ(8,"rect",39),t.TgZ(9,"defs"),t.TgZ(10,"pattern",40),t._UZ(11,"use",41),t.qZA(),t._UZ(12,"image",42),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Paying the Lightning Invoice"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function je(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",43),t.TgZ(2,"g",22),t._UZ(3,"path",44),t._UZ(4,"path",45),t._UZ(5,"path",46),t._UZ(6,"path",47),t._UZ(7,"path",48),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",30),t._UZ(10,"rect",49),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on-chain"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function wt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51),t._UZ(3,"path",52),t._UZ(4,"path",53),t._UZ(5,"path",54),t._UZ(6,"path",55),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}let Pt=(()=>{class X{constructor(B){this.commonService=B,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=K.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(B){2===B.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===B.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){if(1&B&&(t.YNc(0,Us,1,0,"ng-container",0),t.YNc(1,xt,18,5,"ng-template",null,1,t.W1O),t.YNc(3,ie,19,5,"ng-template",null,2,t.W1O),t.YNc(5,he,19,5,"ng-template",null,3,t.W1O),t.YNc(7,je,17,5,"ng-template",null,4,t.W1O),t.YNc(9,wt,13,5,"ng-template",null,5,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6),tr=t.MAs(8),Fn=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Ae.stepNumber?pt:2===Ae.stepNumber?fi:3===Ae.stepNumber?In:4===Ae.stepNumber?tr:Fn)}},directives:[ve.tP,b.xw,b.yH,b.Wh,ve.mk,Cn.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:[fr.l]}}),X})();function Qt(X,He){1&X&&t.GkF(0)}const Xt=function(X,He){return{"small-svg":X,"large-svg":He}};function pi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Submarine Swaps explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Ti(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",21),t._UZ(2,"path",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t.kcU(),t.TgZ(9,"div",18),t.TgZ(10,"mat-card-title"),t._uU(11,"Step 1: Deciding to Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(12,"div",19),t.TgZ(13,"mat-card-subtitle",20),t._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Zi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",29),t._UZ(2,"path",30),t._UZ(3,"path",31),t._UZ(4,"path",32),t._UZ(5,"path",33),t._UZ(6,"path",34),t._UZ(7,"circle",35),t._UZ(8,"rect",36),t.TgZ(9,"defs"),t.TgZ(10,"pattern",37),t._UZ(11,"use",38),t.qZA(),t._UZ(12,"image",39),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Sending the on-chain funds"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function tn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",40),t.TgZ(2,"g",41),t._UZ(3,"path",42),t._UZ(4,"path",43),t._UZ(5,"path",44),t._UZ(6,"path",45),t._UZ(7,"path",46),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",47),t._UZ(10,"rect",48),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on Lightning"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Mn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",49),t._UZ(2,"path",50),t._UZ(3,"path",51),t._UZ(4,"path",52),t._UZ(5,"path",53),t._UZ(6,"path",54),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}let On=(()=>{class X{constructor(B){this.commonService=B,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=K.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(B){2===B.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===B.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){if(1&B&&(t.YNc(0,Qt,1,0,"ng-container",0),t.YNc(1,pi,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Ti,15,5,"ng-template",null,2,t.W1O),t.YNc(5,Zi,19,5,"ng-template",null,3,t.W1O),t.YNc(7,tn,17,5,"ng-template",null,4,t.W1O),t.YNc(9,Mn,13,5,"ng-template",null,5,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6),tr=t.MAs(8),Fn=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Ae.stepNumber?pt:2===Ae.stepNumber?fi:3===Ae.stepNumber?In:4===Ae.stepNumber?tr:Fn)}},directives:[ve.tP,b.xw,b.yH,b.Wh,ve.mk,Cn.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:[fr.l]}}),X})();const tt=["stepper"];function Et(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.inputFormLabel)}}function It(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function zt(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.minimal),".")}}function ri(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.maximal),".")}}function vi(X,He){1&X&&(t.TgZ(0,"button",40),t._uU(1,"Next"),t.qZA())}function Mi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onSwap()}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(1),t.hij("Initiate ",B.swapDirectionCaption,"")}}function Ai(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(3);t.Oqu(B.addressFormLabel)}}function Ki(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function un(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-step",15),t.TgZ(1,"form",16),t.YNc(2,Ai,1,1,"ng-template",17),t.TgZ(3,"div",42),t.TgZ(4,"mat-radio-group",43),t.NdJ("change",function(pt){return t.CHM(B),t.oxw(2).onAddressTypeChange(pt)}),t.TgZ(5,"mat-radio-button",44),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",45),t._uU(8,"External Address"),t.qZA(),t.qZA(),t.TgZ(9,"mat-form-field",46),t._UZ(10,"input",47),t.YNc(11,Ki,2,0,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(12,"div",25),t.TgZ(13,"button",48),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onSwap()}),t._uU(14),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepControl",B.addressFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.addressFormGroup),t.xp6(9),t.Q6J("required","external"===B.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==B.addressFormGroup.controls.address.errors?null:B.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",B.swapDirectionCaption,"")}}function gn(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.hij("",B.swapDirectionCaption," Status")}}function En(X,He){if(1&X&&(t.TgZ(0,"mat-icon",49),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.swapStatus&&null!=B.swapStatus&&B.swapStatus.id?"check":"close")}}function zn(X,He){1&X&&t._UZ(0,"div")}function Rr(X,He){1&X&&t._UZ(0,"mat-progress-bar",50)}function Fr(X,He){if(1&X&&(t.TgZ(0,"h4",51),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.swapStatus&&B.swapStatus.error?B.swapDirectionCaption+" failed.":B.swapStatus&&B.swapStatus.id?B.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":B.swapDirectionCaption+" request placed successfully.")}}function wr(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function Vn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",3),t.TgZ(1,"div",4),t.TgZ(2,"mat-card-header",5),t.TgZ(3,"div",6),t.TgZ(4,"span",7),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"div",8),t.TgZ(7,"button",9),t.NdJ("click",function(){return t.CHM(B),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){return t.CHM(B),t.oxw().onClose()}),t._uU(10,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",11),t.TgZ(12,"div",12),t.TgZ(13,"mat-vertical-stepper",13,14),t.NdJ("selectionChange",function(pt){return t.CHM(B),t.oxw().stepSelectionChanged(pt)}),t.TgZ(15,"mat-step",15),t.TgZ(16,"form",16),t.YNc(17,Et,1,1,"ng-template",17),t.TgZ(18,"div",18),t._UZ(19,"rtl-boltz-service-info",19),t.qZA(),t.TgZ(20,"div",20),t.TgZ(21,"mat-form-field",21),t._UZ(22,"input",22),t.TgZ(23,"mat-hint"),t._uU(24),t.ALo(25,"number"),t.ALo(26,"number"),t.qZA(),t.TgZ(27,"span",23),t._uU(28,"Sats"),t.qZA(),t.YNc(29,It,2,0,"mat-error",24),t.YNc(30,zt,3,3,"mat-error",24),t.YNc(31,ri,3,3,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(32,"div",25),t.YNc(33,vi,2,0,"button",26),t.YNc(34,Mi,2,1,"button",27),t.qZA(),t.qZA(),t.qZA(),t.YNc(35,un,15,6,"mat-step",28),t.TgZ(36,"mat-step",29),t.TgZ(37,"form",16),t.YNc(38,gn,1,1,"ng-template",17),t.TgZ(39,"div",30),t.TgZ(40,"mat-expansion-panel",31),t.TgZ(41,"mat-expansion-panel-header"),t.TgZ(42,"mat-panel-title"),t.TgZ(43,"span",32),t._uU(44),t.YNc(45,En,2,1,"mat-icon",33),t.qZA(),t.qZA(),t.qZA(),t.YNc(46,zn,1,0,"div",34),t.qZA(),t.YNc(47,Rr,1,0,"mat-progress-bar",35),t.qZA(),t.YNc(48,Fr,2,1,"h4",36),t.TgZ(49,"div",25),t.YNc(50,wr,2,0,"button",37),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"div",38),t.TgZ(52,"button",39),t._uU(53,"Close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(),Ae=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(B.swapDirectionCaption),t.xp6(1),t.Q6J("fxFlex",B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",B.inputFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.inputFormGroup),t.xp6(3),t.Q6J("serviceInfo",B.serviceInfo)("direction",B.direction),t.xp6(3),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(25,30,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.minimal),"-",t.lcZ(26,32,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.maximal),""),t.xp6(5),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.max),t.xp6(2),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_IN),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("stepControl",B.statusFormGroup),t.xp6(1),t.Q6J("formGroup",B.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!B.swapStatus),t.xp6(4),t.Oqu(B.swapStatus?B.swapStatus.id?B.swapDirectionCaption+" request details":B.swapDirectionCaption+" error details":"Waiting for "+B.swapDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",B.swapStatus),t.xp6(1),t.Q6J("ngIf",!B.swapStatus)("ngIfElse",Ae),t.xp6(1),t.Q6J("ngIf",!B.swapStatus),t.xp6(1),t.Q6J("ngIf",B.swapStatus),t.xp6(2),t.Q6J("ngIf",B.swapStatus&&(B.swapStatus.error||!B.swapStatus.id)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function mr(X,He){if(1&X&&t._UZ(0,"rtl-boltz-swap-status",53),2&X){const B=t.oxw();t.Q6J("swapStatus",B.swapStatus)("direction",B.direction)}}function Hi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"rtl-boltz-swapout-info-graphics",70),t.NdJ("stepNumberChange",function(pt){return t.CHM(B),t.oxw(2).stepNumber=pt}),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepNumber",B.stepNumber)("animationDirection",B.animationDirection)}}function on(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"rtl-boltz-swapin-info-graphics",70),t.NdJ("stepNumberChange",function(pt){return t.CHM(B),t.oxw(2).stepNumber=pt}),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepNumber",B.stepNumber)("animationDirection",B.animationDirection)}}const nn=function(X,He){return{"dot-primary":X,"dot-primary-lighter":He}};function Pn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"span",71),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onStepChanged(fi)}),t._UZ(1,"p",72),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,nn,Ae.stepNumber===B,Ae.stepNumber!==B))}}function jn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onReadMore()}),t._uU(1,"Read More"),t.qZA()}}function da(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",74),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function Xr(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",75),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function $r(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",76),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Yn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",77),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.onStepChanged(pt.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function io(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",78),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.onStepChanged(pt.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const Ia=function(){return[1,2,3,4,5]};function Ps(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",54),t.TgZ(1,"div",18),t.TgZ(2,"mat-card-header",55),t.TgZ(3,"div",56),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",57),t.TgZ(6,"button",58),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(7,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",59),t.YNc(9,Hi,1,2,"rtl-boltz-swapout-info-graphics",60),t.YNc(10,on,1,2,"rtl-boltz-swapin-info-graphics",60),t.qZA(),t.TgZ(11,"div",61),t.YNc(12,Pn,2,4,"span",62),t.qZA(),t.TgZ(13,"div",63),t.YNc(14,jn,2,0,"button",64),t.YNc(15,da,2,0,"button",65),t.YNc(16,Xr,2,0,"button",66),t.YNc(17,$r,2,0,"button",67),t.YNc(18,Yn,2,0,"button",68),t.YNc(19,io,2,0,"button",69),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,Ia)),t.xp6(2),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",B.stepNumber<5),t.xp6(1),t.Q6J("ngIf",B.stepNumber>1&&B.stepNumber<5),t.xp6(1),t.Q6J("ngIf",B.stepNumber<5)}}let Zs=(()=>{class X{constructor(B,Ae,pt,fi,In,tr,Fn,Br,ya){this.dialogRef=B,this.data=Ae,this.store=pt,this.boltzService=fi,this.formBuilder=In,this.decimalPipe=tr,this.logger=Fn,this.router=Br,this.commonService=ya,this.faInfoCircle=x.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=K.hc,this.direction=K.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=K.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction,this.swapDirectionCaption=this.direction===K.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits.minimal,[Ze.kI.required,Ze.kI.min(this.serviceInfo.limits.minimal),Ze.kI.max(this.serviceInfo.limits.maximal)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[Ze.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===K.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===K.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,v.R)(this.unSubs[2])).subscribe(B=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(B){"external"===B.value?(this.addressFormGroup.controls.address.setValidators([Ze.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===K.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===K.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,v.R)(this.unSubs[3])).subscribe({next:B=>{this.swapStatus=B,this.boltzService.listSwaps(),this.flgEditable=!0},error:B=>{this.swapStatus={error:B},this.flgEditable=!0,this.logger.error(B)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,v.R)(this.unSubs[4])).subscribe({next:Ae=>{this.swapStatus=Ae,this.boltzService.listSwaps(),this.flgEditable=!0},error:Ae=>{this.swapStatus={error:Ae},this.flgEditable=!0,this.logger.error(Ae)}})}stepSelectionChanged(B){switch(B.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"}B.selectedIndex{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Un),t.Y36(Ze.qu),t.Y36(ve.JJ),t.Y36(we.mQ),t.Y36(O.F0),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(tt,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){1&B&&(t.YNc(0,Vn,54,34,"div",0),t.YNc(1,mr,1,2,"ng-template",null,1,t.W1O),t.YNc(3,Ps,20,11,"div",2)),2&B&&(t.Q6J("ngIf",!Ae.flgShowInfo),t.xp6(3),t.Q6J("ngIf",Ae.flgShowInfo))},directives:[ve.O5,b.xw,b.yH,b.Wh,N.dk,ce.lW,N.dn,it.Vq,it.C0,Ze._Y,Ze.JL,Ze.sg,it.VY,_a,vt.KE,rt.Nt,Ze.wV,Ze.Fj,Ne.h,Ze.JJ,Ze.u,Ze.Q7,vt.bx,vt.R9,Rn.ib,Rn.yz,Rn.yK,Ue.ZT,vt.TO,it.Ic,$i.VQ,$i.U0,Mr.Hw,Qn.pW,zs,ve.sg,Pt,On,ve.mk,Cn.oO],pipes:[ve.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[xi._]}}),X})();function va(X,He){1&X&&t._UZ(0,"mat-progress-bar",32)}function us(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Status "),t.qZA())}function Jc(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Oqu(Ae.swapStateEnum[B.status])}}function Vs(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Swap ID "),t.qZA())}function no(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id)}}function tl(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Claim Address "),t.qZA())}function cc(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.claimAddress)}}function hc(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Onchain Amount (Sats) "),t.qZA())}function Xc(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.onchainAmount))}}function $c(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Lockup Address "),t.qZA())}function Lo(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.lockupAddress)}}function il(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Expected Amount (Sats) "),t.qZA())}function nl(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.expectedAmount))}}function Oo(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Timeout Block Height "),t.qZA())}function Ll(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.timeoutBlockHeight))}}function Io(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Amount (Sats) "),t.qZA())}function ro(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.amt))}}function dc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"th",37),t.TgZ(1,"div",38),t.TgZ(2,"mat-select",39),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",40),t.NdJ("click",function(){return t.CHM(B),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function Gs(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"td",41),t.TgZ(1,"button",42),t.NdJ("click",function(pt){const In=t.CHM(B).$implicit;return t.oxw().onSwapClick(In,pt)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function rl(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.emptyTableMessage)}}function al(X,He){if(1&X&&(t.TgZ(0,"td",43),t.YNc(1,rl,2,1,"p",44),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=B.listSwaps&&B.listSwaps.data)||(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)<1)}}const Ye=function(X){return{"display-none":X}};function Te(X,He){if(1&X&&t._UZ(0,"tr",45),2&X){const B=t.oxw();t.Q6J("ngClass",t.VKq(1,Ye,(null==B.listSwaps?null:B.listSwaps.data)&&(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)>0))}}function xe(X,He){1&X&&t._UZ(0,"tr",46)}function $e(X,He){1&X&&t._UZ(0,"tr",47)}const dt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},Ot=function(){return["no_swap"]};let qt=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.commonService=Ae,this.store=pt,this.boltzService=fi,this.selectedSwapType=K.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=K.Qw,this.faHistory=x.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=K.IV,this.pageSizeOptions=K.TJ,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x,new s.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(B){B.selectedSwapType&&!B.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===K.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===K.cu.XS||this.screenSize===K.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===K.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===K.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(B,Ae){this.boltzService.swapInfo(B.id).pipe((0,v.R)(this.unSubs[1])).subscribe(pt=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:K.Qw[(pt=this.selectedSwapType===K.hc.SWAP_IN?pt.swap:pt.reverseSwap).status],title:"Status",width:50,type:K.Gi.STRING},{key:"id",value:pt.id,title:"ID",width:50,type:K.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:K.Gi.NUMBER},{key:"timeoutBlockHeight",value:pt.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:K.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:K.Gi.STRING}],[{key:"invoice",value:pt.invoice,title:"Invoice",width:100,type:K.Gi.STRING}],[{key:"privateKey",value:pt.privateKey,title:"Private Key",width:100,type:K.Gi.STRING}],[{key:"preimage",value:pt.preimage,title:"Preimage",width:100,type:K.Gi.STRING}],[{key:"redeemScript",value:pt.redeemScript,title:"Redeem Script",width:100,type:K.Gi.STRING}],[{key:"lockupTransactionId",value:pt.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:K.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:K.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(B){this.listSwaps=new vn.by(B?[...B]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ae,pt)=>Ae[pt]&&isNaN(Ae[pt])?Ae[pt].toLocaleLowerCase():Ae[pt]?+Ae[pt]:null,this.listSwaps.filterPredicate=(Ae,pt)=>JSON.stringify(Ae).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===K.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Un))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swaps"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Kn.YE,5),t.Gf(Pr.NW,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sort=pt.first),t.iGM(pt=t.CRH())&&(Ae.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Pr.ye,useValue:(0,K.pt)("Swaps")}]),t.TTD],decls:46,vars:16,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return Ae.applyFilter()})("ngModelChange",function(fi){return Ae.selFilter=fi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,va,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,us,2,0,"th",13),t.YNc(15,Jc,2,1,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Vs,2,0,"th",13),t.YNc(18,no,2,1,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,tl,2,0,"th",13),t.YNc(21,cc,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,hc,2,0,"th",18),t.YNc(24,Xc,4,3,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,$c,2,0,"th",13),t.YNc(27,Lo,2,1,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,il,2,0,"th",18),t.YNc(30,nl,4,3,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,Oo,2,0,"th",18),t.YNc(33,Ll,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Io,2,0,"th",18),t.YNc(36,ro,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,dc,6,0,"th",24),t.YNc(39,Gs,3,0,"td",25),t.BQk(),t.ynx(40,26),t.YNc(41,al,2,1,"td",27),t.BQk(),t.YNc(42,Te,1,3,"tr",28),t.YNc(43,xe,1,0,"tr",29),t.YNc(44,$e,1,0,"tr",30),t.qZA(),t._UZ(45,"mat-paginator",31),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(3),t.Q6J("icon",Ae.faHistory),t.xp6(2),t.hij("",Ae.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",Ae.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Ae.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Ae.listSwaps)("ngClass",t.VKq(13,dt,"error"===Ae.flgLoading[0])),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(15,Ot)),t.xp6(1),t.Q6J("matHeaderRowDef",Ae.displayedColumns)("matHeaderRowDefSticky",Ae.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Ae.displayedColumns),t.xp6(1),t.Q6J("pageSize",Ae.pageSize)("pageSizeOptions",Ae.pageSizeOptions)("showFirstLastButtons",Ae.screenSize!==Ae.screenSizeEnum.XS))},directives:[b.xw,b.yH,b.Wh,Z.BN,vt.KE,rt.Nt,Ze.Fj,Ze.JJ,Ze.On,z.$V,ve.O5,vn.BZ,Kn.YE,ve.mk,Cn.oO,vn.w1,vn.fO,vn.Dz,vn.mD,vn.Ke,vn.as,vn.nj,Pr.NW,Qn.pW,vn.ge,Kn.nU,vn.ev,Fe.gD,Fe.$L,Le.ey,ce.lW,vn.yh,vn.Q2,vn.XQ,vn.Gk],pipes:[ve.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ii=function(X){return["../",X]};function Ei(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",15),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onSelectedIndexChange(fi)}),t._uU(1),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("active",Ae.activeTab.link===B.link)("routerLink",t.VKq(3,ii,B.link)),t.xp6(1),t.Oqu(B.name)}}let an=(()=>{class X{constructor(B,Ae,pt){this.router=B,this.store=Ae,this.boltzService=pt,this.swapTypeEnum=K.hc,this.selectedSwapType=K.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 s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.boltzService.listSwaps();const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeTab=B||this.links[0],this.selectedSwapType=B&&"swapin"===B.link?K.hc.SWAP_IN:K.hc.SWAP_OUT,this.router.events.pipe((0,v.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof O.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"swapin"===pt.link?K.hc.SWAP_IN:K.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,v.R)(this.unSubs[1])).subscribe({next:Ae=>{this.swaps=Ae,this.swapsData=this.selectedSwapType===K.hc.SWAP_IN?Ae.swaps:Ae.reverseSwaps,this.flgLoading[0]=!1},error:Ae=>{this.flgLoading[0]="error",this.emptyTableMessage=Ae.message?Ae.message:"No swap "+(this.selectedSwapType===K.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(B){"swapin"===B.link?(this.selectedSwapType=K.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=K.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(B){this.boltzService.serviceInfo().pipe((0,v.R)(this.unSubs[2])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{serviceInfo:Ae,direction:B,component:Zs}}}))}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(O.F0),t.Y36(M.yh),t.Y36(Un))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.TgZ(2,"g",2),t.TgZ(3,"g",3),t._UZ(4,"circle",4),t._UZ(5,"path",5),t._UZ(6,"path",6),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(7,"span",7),t._uU(8,"Boltz"),t.qZA(),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"mat-card"),t.TgZ(11,"mat-card-content",9),t.TgZ(12,"nav",10),t.YNc(13,Ei,2,5,"div",11),t.qZA(),t.TgZ(14,"div",12),t.TgZ(15,"button",13),t.NdJ("click",function(){return Ae.onSwap(Ae.selectedSwapType)}),t._uU(16),t.qZA(),t.qZA(),t._UZ(17,"rtl-boltz-swaps",14),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(13),t.Q6J("ngForOf",Ae.links),t.xp6(3),t.hij("Start ",Ae.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Ae.selectedSwapType)("swapsData",Ae.swapsData)("flgLoading",Ae.flgLoading)("emptyTableMessage",Ae.emptyTableMessage))},directives:[b.xw,b.Wh,N.a8,N.dn,b.yH,U.BU,ve.sg,ce.lW,qt,U.Nj,O.rH],styles:[""]}),X})();class ea{constructor(He){this.help=He}}function ys(X,He){if(1&X&&(t.TgZ(0,"mat-expansion-panel",8),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"mat-panel-description",9),t._UZ(5,"span",10),t.TgZ(6,"a",11),t._uU(7),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw().$implicit,Ae=t.oxw();t.xp6(3),t.Oqu(B.help.question),t.xp6(2),t.Q6J("innerHTML",B.help.answer,t.oJD),t.xp6(1),t.Q6J("routerLink",Ae.flgLoggedIn?Ae.LNPLink+B.help.link:"/login"),t.xp6(1),t.Oqu(Ae.flgLoggedIn?B.help.linkCaption:"Login to go to the page")}}function fs(X,He){if(1&X&&(t.TgZ(0,"div",6),t.YNc(1,ys,8,4,"mat-expansion-panel",7),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Q6J("ngIf","ALL"===B.help.lnImplementation||B.help.lnImplementation===Ae.selNode.lnImplementation)}}let ks=(()=>{class X{constructor(B,Ae){this.store=B,this.sessionService=Ae,this.helpTopics=[],this.faQuestion=x.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new s.x,new s.x,new s.x,new s.x],this.helpTopics.push(new ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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 ea({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(r.dT).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{switch(this.selNode=B,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,v.R)(this.unSubs[1])).subscribe(B=>{this.flgLoggedIn=!!B.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(ke.m))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Help"),t.qZA(),t.qZA(),t.TgZ(5,"div",4),t.TgZ(6,"div",0),t.YNc(7,fs,2,1,"div",5),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("icon",Ae.faQuestion),t.xp6(5),t.Q6J("ngForOf",Ae.helpTopics))},directives:[b.xw,b.yH,b.Wh,Z.BN,ve.sg,ve.O5,Rn.ib,Rn.yz,Rn.yK,Rn.u4,O.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),X})();var bs=m(9841);function Ea(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}let Ol=(()=>{class X{constructor(B,Ae){this.dialogRef=B,this.store=Ae,this.faUserClock=x.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Me.M6)({payload:{twoFAToken:this.token}}))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Two Factor Token"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return Ae.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"form",7,8),t.NdJ("ngSubmit",function(){return Ae.onVerifyToken()}),t.TgZ(11,"mat-form-field"),t.TgZ(12,"input",9),t.NdJ("ngModelChange",function(fi){return Ae.token=fi}),t.qZA(),t.YNc(13,Ea,2,0,"mat-error",10),t.qZA(),t.TgZ(14,"div",11),t.TgZ(15,"button",12),t._uU(16,"Verify Token"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(12),t.Q6J("ngModel",Ae.token),t.xp6(1),t.Q6J("ngIf",!Ae.token))},directives:[b.xw,b.Wh,b.yH,N.dk,ce.lW,N.dn,Ze._Y,Ze.JL,Ze.F,vt.KE,rt.Nt,Ze.Fj,Ne.h,Ze.Q7,Ze.JJ,Ze.On,ve.O5,vt.TO],styles:[""]}),X})();function yo(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function so(X,He){if(1&X&&(t.TgZ(0,"p",21),t.TgZ(1,"mat-icon",22),t._uU(2,"close"),t.qZA(),t._uU(3),t.qZA()),2&X){const B=t.oxw();t.xp6(3),t.hij(" ",B.loginErrorMessage," ")}}const e1=function(X){return{"padding-gap-large":X}},t1=function(X,He){return{"font-size-200":X,"font-size-300":He}};let Po=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.store=Ae,this.rtlEffects=pt,this.commonService=fi,this.faUnlockAlt=x.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=K.cu,this.loginErrorMessage="",this.apiCallStatusEnum=K.Bn,this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,bs.a)([this.store.select(r.ul),this.store.select(r.Sr)]).pipe((0,v.R)(this.unSubs[0])).subscribe(([B,Ae])=>{this.loginErrorMessage="",B.status===K.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof B.message?JSON.stringify(B.message):B.message),this.logger.error(B.message)),Ae.status===K.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof Ae.message?JSON.stringify(Ae.message):Ae.message),this.logger.error(Ae.message))}),this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{this.appConfig=B,this.logger.info(B)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Me.qR)({payload:{maxWidth:"35rem",data:{component:Ol}}})),this.rtlEffects.closeAlert.pipe((0,Ce.q)(1)).subscribe(B=>{B&&this.store.dispatch((0,Me.x4)({payload:{password:oe(this.password),defaultPassword:K.kO.includes(this.password.toLowerCase()),twoFAToken:B.twoFAToken}}))})):this.store.dispatch((0,Me.x4)({payload:{password:oe(this.password),defaultPassword:K.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(nt.V),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._UZ(5,"img",5),t.qZA(),t.TgZ(6,"div",6),t.TgZ(7,"mat-card-header",7),t.TgZ(8,"mat-card-title",8),t.TgZ(9,"span",9),t._uU(10,"Welcome"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",10),t.TgZ(12,"form",11,12),t.TgZ(14,"mat-form-field",13),t.TgZ(15,"input",14),t.NdJ("ngModelChange",function(fi){return Ae.password=fi}),t.qZA(),t.TgZ(16,"mat-icon",15),t.NdJ("click",function(){return Ae.flgShow=!Ae.flgShow}),t._uU(17),t.qZA(),t.YNc(18,yo,2,0,"mat-error",16),t.qZA(),t.YNc(19,so,4,1,"p",17),t.TgZ(20,"div",18),t.TgZ(21,"button",19),t.NdJ("click",function(){return Ae.resetData()}),t._uU(22,"Clear"),t.qZA(),t.TgZ(23,"button",20),t.NdJ("click",function(){return Ae.onLogin()}),t._uU(24,"Login"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(6),t.Q6J("ngClass",t.VKq(7,e1,Ae.screenSize===Ae.screenSizeEnum.XS)),t.xp6(2),t.Q6J("ngClass",t.WLB(9,t1,Ae.screenSize===Ae.screenSizeEnum.XS,Ae.screenSize!==Ae.screenSizeEnum.XS)),t.xp6(7),t.Q6J("type",Ae.flgShow?"text":"password")("ngModel",Ae.password),t.xp6(2),t.Oqu(Ae.flgShow?"visibility_off":"visibility"),t.xp6(1),t.Q6J("ngIf",!Ae.password),t.xp6(1),t.Q6J("ngIf",""!==Ae.loginErrorMessage))},directives:[b.xw,b.yH,b.Wh,N.a8,ve.mk,Cn.oO,N.dk,N.n5,N.dn,Ze._Y,Ze.JL,Ze.F,vt.KE,rt.Nt,Ze.Fj,Ne.h,Ze.Q7,Ze.JJ,Ze.On,Mr.Hw,vt.R9,ve.O5,ce.lW,vt.TO],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}"]}),X})();var ko=m(9442);let No=(()=>{class X{constructor(B,Ae){this.activatedRoute=B,this.router=Ae,this.error={errorCode:"",errorMessage:""},this.faTimes=x.NBC,this.unsubs=[new s.x,new s.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,v.R)(this.unsubs[0])).subscribe(B=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(O.gz),t.Y36(O.F0))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"mat-card",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"mat-card-title",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"mat-card-content",6),t.TgZ(8,"div",7),t._uU(9),t.qZA(),t.TgZ(10,"span",8),t.TgZ(11,"button",9),t.NdJ("click",function(){return Ae.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(4),t.Q6J("icon",Ae.faTimes),t.xp6(2),t.hij("Error ",Ae.error.errorCode,""),t.xp6(3),t.Oqu(Ae.error.errorMessage))},directives:[b.xw,b.yH,b.Wh,N.a8,N.dk,N.n5,Z.BN,N.dn,ce.lW],encapsulation:2}),X})();var Pa=m(1643),uc=m(9828),bo=m(8104),n1=m(6534),d0=m(9843);function Yr(X,He){1&X&&t._UZ(0,"span",16)}function fc(X,He){1&X&&t._UZ(0,"span",17)}function u0(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",19),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._uU(5,"Please ensure that "),t.TgZ(6,"strong"),t._uU(7,"experimental-offers"),t.qZA(),t._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),t.TgZ(9,"strong"),t.TgZ(10,"a",20),t._uU(11,"here"),t.qZA(),t.qZA(),t._uU(12," to learn more about Core Lightning offers."),t.qZA(),t.qZA(),t.TgZ(13,"h4",21),t._uU(14,"Description"),t.qZA(),t.TgZ(15,"span"),t._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),t.qZA(),t.TgZ(17,"h4",21),t._uU(18,"Links"),t.qZA(),t.TgZ(19,"span"),t.TgZ(20,"a",22),t._uU(21,"Core lightning Bolt12"),t.qZA(),t.qZA(),t._UZ(22,"mat-divider",23),t.TgZ(23,"div",24),t._UZ(24,"fa-icon",2),t.TgZ(25,"span"),t._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),t.qZA(),t.qZA(),t.TgZ(27,"mat-slide-toggle",25),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).enableOffers=pt})("change",function(){return t.CHM(B),t.oxw(2).onUpdateFeature()}),t._uU(28),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(3),t.Q6J("icon",B.faInfoCircle),t.xp6(19),t.Q6J("inset",!0),t.xp6(2),t.Q6J("icon",B.faExclamationTriangle),t.xp6(3),t.Q6J("ngModel",B.enableOffers),t.xp6(1),t.hij("Enable Offers ",B.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function r1(X,He){if(1&X&&(t.TgZ(0,"mat-option",43),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B),t.xp6(1),t.hij(" ",t.lcZ(2,2,B.id)," ")}}function sl(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.hij("",B.selPolicyType.placeholder," is required.")}}function ol(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.AsE("",B.selPolicyType.placeholder," must be greater than or equal to ",B.selPolicyType.min,".")}}function a1(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.AsE("",B.selPolicyType.placeholder," must be less than or equal to ",B.selPolicyType.max,".")}}function qa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base fee is required."),t.qZA())}function aa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base basis is required."),t.qZA())}function f0(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing base fee is required."),t.qZA())}function sa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing fee rate is required."),t.qZA())}function Ro(X,He){if(1&X&&(t.TgZ(0,"h4",44),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.Oqu(B.updateMsg.error&&""!==B.updateMsg.error?"Error: "+B.updateMsg.error||0:B.updateMsg||"Successfully Updated the Funding Policy!")}}function oo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",26),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._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."),t.qZA(),t.qZA(),t.TgZ(6,"div",27),t.TgZ(7,"mat-form-field",28),t.TgZ(8,"mat-select",29),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).selPolicyType=pt})("selectionChange",function(){return t.CHM(B),t.oxw(2).policyMod=null}),t.YNc(9,r1,3,4,"mat-option",30),t.qZA(),t.qZA(),t.TgZ(10,"mat-form-field",31),t.TgZ(11,"input",32,33),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).policyMod=pt}),t.qZA(),t.TgZ(13,"mat-hint"),t._uU(14),t.qZA(),t.YNc(15,sl,2,1,"mat-error",34),t.YNc(16,ol,2,2,"mat-error",34),t.YNc(17,a1,2,2,"mat-error",34),t.qZA(),t.qZA(),t.TgZ(18,"div",27),t.TgZ(19,"mat-form-field",31),t.TgZ(20,"input",35),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).leaseFeeBaseSat=pt}),t.qZA(),t.YNc(21,qa,2,0,"mat-error",34),t.qZA(),t.TgZ(22,"mat-form-field",31),t.TgZ(23,"input",36),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).leaseFeeBasis=pt}),t.qZA(),t.YNc(24,aa,2,0,"mat-error",34),t.qZA(),t.qZA(),t.TgZ(25,"div",27),t.TgZ(26,"mat-form-field",31),t.TgZ(27,"input",37),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).channelFeeMaxBaseSat=pt}),t.qZA(),t.YNc(28,f0,2,0,"mat-error",34),t.qZA(),t.TgZ(29,"mat-form-field",31),t.TgZ(30,"input",38),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).channelFeeMaxProportional=pt}),t.qZA(),t.YNc(31,sa,2,0,"mat-error",34),t.qZA(),t.qZA(),t.YNc(32,Ro,2,1,"h4",39),t.TgZ(33,"div",40),t.TgZ(34,"button",41),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onResetPolicy()}),t._uU(35,"Reset"),t.qZA(),t.TgZ(36,"button",42),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onUpdateFundingPolicy()}),t._uU(37,"Update"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(3),t.Q6J("icon",B.faExclamationTriangle),t.xp6(5),t.Q6J("ngModel",B.selPolicyType),t.xp6(1),t.Q6J("ngForOf",B.policyTypes),t.xp6(2),t.Q6J("ngModel",B.policyMod)("placeholder",B.selPolicyType.placeholder)("step","fixed"===B.selPolicyType.id?1e3:10)("min",B.selPolicyType.min)("max",B.selPolicyType.max),t.xp6(3),t.lnq("",B.selPolicyType.placeholder," should be between ",B.selPolicyType.min," and ",B.selPolicyType.max,""),t.xp6(1),t.Q6J("ngIf",!B.policyMod),t.xp6(1),t.Q6J("ngIf",B.policyModB.selPolicyType.max),t.xp6(3),t.Q6J("ngModel",B.leaseFeeBaseSat),t.xp6(1),t.Q6J("ngIf",!B.leaseFeeBaseSat),t.xp6(2),t.Q6J("ngModel",B.leaseFeeBasis),t.xp6(1),t.Q6J("ngIf",!B.leaseFeeBasis),t.xp6(3),t.Q6J("ngModel",B.channelFeeMaxBaseSat),t.xp6(1),t.Q6J("ngIf",!B.channelFeeMaxBaseSat),t.xp6(2),t.Q6J("ngModel",B.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",!B.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",B.flgUpdateCalled)}}function uh(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-expansion-panel",9),t.NdJ("opened",function(){const fi=t.CHM(B).index;return t.oxw().onPanelExpanded(fi)}),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title",10),t.TgZ(3,"h4",11),t._uU(4),t.qZA(),t.TgZ(5,"h4",11),t.YNc(6,Yr,1,0,"span",12),t.YNc(7,fc,1,0,"span",13),t._uU(8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div",14),t.YNc(10,u0,29,5,"form",15),t.YNc(11,oo,38,23,"form",15),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit,Ae=He.index;t.Q6J("expanded",!1),t.xp6(4),t.Oqu(B.name),t.xp6(2),t.Q6J("ngIf",B.enabled),t.xp6(1),t.Q6J("ngIf",!B.enabled),t.xp6(1),t.hij(" ",B.enabled?"Enabled":"Disabled"," "),t.xp6(2),t.Q6J("ngIf",0===Ae),t.xp6(1),t.Q6J("ngIf",1===Ae)}}const xs=O.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e(893),m.e(636)]).then(m.bind(m,1636)).then(X=>X.LNDModule),canActivate:[Pa.a1]},{path:"cln",loadChildren:()=>Promise.all([m.e(893),m.e(564)]).then(m.bind(m,9564)).then(X=>X.CLNModule),canActivate:[Pa.a1]},{path:"ecl",loadChildren:()=>Promise.all([m.e(893),m.e(924)]).then(m.bind(m,7924)).then(X=>X.ECLModule),canActivate:[Pa.a1]},{path:"settings",component:Oe,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:$,canActivate:[Pa.a1]},{path:"auth",component:Rt,canActivate:[Pa.a1]},{path:"bconfig",component:_t,canActivate:[Pa.a1]}]},{path:"config",component:Je,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:Lr,canActivate:[Pa.a1]},{path:"services",component:Gn,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:xr,canActivate:[Pa.a1]},{path:"boltz",component:Ir,canActivate:[Pa.a1]}]},{path:"experimental",component:(()=>{class X{constructor(B,Ae,pt){this.logger=B,this.store=Ae,this.dataService=pt,this.faInfoCircle=x.sqG,this.faExclamationTriangle=x.eHv,this.faCode=x.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy=null,this.policyTypes=K.gB,this.selPolicyType=K.gB[0],this.flgUpdateCalled=!1,this.updateMsg="",this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,v.R)(this.unSubs[0])).subscribe({next:B=>{this.logger.info("Received List Configs: "+JSON.stringify(B)),this.features[1].enabled=!!B["experimental-dual-fund"]},error:B=>{this.logger.error("List Configs Error: "+JSON.stringify(B)),this.features[1].enabled=!1}}),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B,this.enableOffers=this.selNode.settings.enableOffers,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(uc.Rn).pipe((0,v.R)(this.unSubs[2])).subscribe(B=>{this.policyTypes[2].max=B.balance.totalBalance||1e3})}onPanelExpanded(B){1===B&&!this.fundingPolicy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,v.R)(this.unSubs[3])).subscribe(Ae=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(Ae)),this.fundingPolicy=Ae,this.fundingPolicy.policy&&(this.selPolicyType=K.gB.find(pt=>pt.id===this.fundingPolicy.policy)),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,Me.jS)({payload:{uiMessage:K.m6.UPDATE_SETTING,service:K.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,ui.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,Lt.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,gt.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=!1,this.updateMsg="",this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,this.leaseFeeBaseSat,this.leaseFeeBasis,1e3*this.channelFeeMaxBaseSat,this.channelFeeMaxProportional/1e3).pipe((0,v.R)(this.unSubs[4])).subscribe({next:B=>{this.logger.info(B),this.fundingPolicy=B,this.onResetPolicy(),this.updateMsg="Compact Lease: "+B.compact_lease},error:B=>{this.logger.error(B),this.updateMsg=JSON.stringify(B.error.error.message)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg="",this.selPolicyType=this.fundingPolicy.policy?K.gB.find(B=>B.id===this.fundingPolicy.policy):K.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(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(bo.D))},X.\u0275cmp=t.Xpm({type:X,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","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",1,"font-bold-500","mt-2"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._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."),t.qZA(),t.qZA(),t.TgZ(5,"form",3,4),t.TgZ(7,"div",5),t._UZ(8,"fa-icon",6),t.TgZ(9,"span",7),t._uU(10,"Features"),t.qZA(),t.qZA(),t.TgZ(11,"mat-accordion"),t.YNc(12,uh,12,7,"mat-expansion-panel",8),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(6),t.Q6J("icon",Ae.faCode),t.xp6(4),t.Q6J("ngForOf",Ae.features))},directives:[b.xw,b.yH,z.$V,Z.BN,Ze._Y,Ze.JL,Ze.F,b.Wh,Rn.pp,ve.sg,Rn.ib,Rn.yz,Rn.yK,ve.O5,Be.d,Yi.Rr,Ne.h,Ze.JJ,Ze.On,vt.KE,Fe.gD,rt.Nt,Ze.wV,Ze.qQ,Ze.Fd,Ze.Fj,n1.q,d0.F,Ze.Q7,vt.bx,ce.lW,Le.ey,vt.TO],pipes:[ve.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),canActivate:[Pa.a1]},{path:"lnconfig",component:Kt,canActivate:[Pa.a1]}]},{path:"services",component:Ga,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Yt},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:an}]},{path:"help",component:ks},{path:"login",component:Po},{path:"error",component:No},{path:"**",component:ko.w}]);var s1=m(8750),Il=m(8878),Ws=m(4594),Pl=m(2181);function p0(X,He){if(1&X&&(t.TgZ(0,"p",2),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faCode),t.xp6(2),t.hij("API Version: ",null==B.information?null:B.information.api_version,"")}}function m0(X,He){if(1&X&&(t.TgZ(0,"a",11),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",12),t._uU(3,"Settings"),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faUserCog)}}function o1(X,He){if(1&X&&(t.TgZ(0,"a",13),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",14),t._uU(3,"Help"),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faLifeRing)}}function fh(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"a",15),t.NdJ("click",function(){return t.CHM(B),t.oxw().onClick()}),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3,"Logout"),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faEject)}}let g0=(()=>{class X{constructor(B,Ae,pt,fi,In){this.logger=B,this.sessionService=Ae,this.store=pt,this.rtlEffects=fi,this.actions=In,this.faUserCog=x.gNZ,this.faCodeBranch=x.mh3,this.faCode=x.dT$,this.faCog=x.b7W,this.faLifeRing=x.uli,this.faEject=x.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new s.x,new s.x,new s.x,new s.x],this.version=Wi.q4}ngOnInit(){this.store.select(r.R4).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{if(this.information=B,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 Ae=this.information.chains[0];this.informationChain.chain=Ae.chain,this.informationChain.network=Ae.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(B)}),this.sessionService.watchSession().pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{this.showLogout=!!B.token,this.flgLoading=!!B.token}),this.actions.pipe((0,v.R)(this.unSubs[2]),(0,de.h)(B=>B.type===K.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Me.c1)({payload:{data:{type:K.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,v.R)(this.unSubs[3])).subscribe(B=>{B&&(this.showLogout=!1,this.store.dispatch((0,Me.kS)()))})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(ke.m),t.Y36(M.yh),t.Y36(nt.V),t.Y36(l.eX))},X.\u0275cmp=t.Xpm({type:X,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(B,Ae){if(1&B&&(t.TgZ(0,"mat-menu",0,1),t.TgZ(2,"p",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA(),t.YNc(6,p0,4,2,"p",4),t.YNc(7,m0,4,1,"a",5),t.YNc(8,o1,4,1,"a",6),t.YNc(9,fh,4,1,"a",7),t.qZA(),t.TgZ(10,"button",8),t._UZ(11,"img",9),t.TgZ(12,"mat-icon",10),t._uU(13,"arrow_drop_down"),t.qZA(),t.qZA()),2&B){const pt=t.MAs(1);t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("icon",Ae.faCodeBranch),t.xp6(2),t.hij("Version: ",Ae.version,""),t.xp6(1),t.Q6J("ngIf",null==Ae.information?null:Ae.information.api_version),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("matMenuTriggerFor",pt)}},directives:[Pl.VK,Pl.OP,Z.BN,ve.O5,ce.lW,Pl.p6,Mr.Hw,O.yS,O.rH],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}),X})();var Ka=m(2638),kl=m(8258),as=m(149);const js={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/lnd/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/lnd/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/lnd/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/lnd/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/lnd/transactions",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/lnd/routing",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/lnd/reports",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/lnd/graph",userPersona:K.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/lnd/messages",userPersona:K.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:x.q7m,link:"/lnd/channelbackup",userPersona:K.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:x.o4t,link:"/lnd/network",userPersona:K.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:x.xf3,link:"/lnd/network",userPersona:K.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:x.Krp,link:"/services/loop",userPersona:K.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:x.vqe,link:"/services/loop",userPersona:K.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:K.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/cln/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/cln/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/cln/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/cln/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:x.Acd,link:"/cln/liquidityads",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/cln/transactions",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/cln/routing",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/cln/reports",userPersona:K.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/cln/graph",userPersona:K.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/cln/messages",userPersona:K.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:x.USL,link:"/cln/rates",userPersona:K.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:x.xf3,link:"/cln/rates",userPersona:K.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/ecl/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/ecl/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/ecl/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/ecl/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/ecl/transactions",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/ecl/routing",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/ecl/reports",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/ecl/graph",userPersona:K.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}]};var l1=m(7238);function pc(X,He){if(1&X&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.index),t.xp6(1),t.AsE(" ",B.lnNode," (",B.lnImplementation,") ")}}function mc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-select",9),t.NdJ("selectionChange",function(pt){return t.CHM(B),t.oxw().onNodeSelectionChange(pt.value)}),t.YNc(1,pc,2,3,"mat-option",10),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("value",B.selConfigNodeIndex),t.xp6(1),t.Q6J("ngForOf",B.appConfig.nodes)}}function gc(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.oxw(2);const Ae=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet","boltzIconBlock"===B.icon?Ae:null)}}function c1(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const B=t.oxw().$implicit;t.Q6J("icon",B.icon)}}function Rl(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B.icon)}}function Fo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",15),t.TgZ(1,"div",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onChildNavClicked(fi)}),t.TgZ(2,"div",17),t.YNc(3,gc,2,1,"span",18),t.YNc(4,c1,1,1,"fa-icon",19),t.YNc(5,Rl,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.s9C("routerLink",B.link),t.xp6(3),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name)}}function lo(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function za(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const B=t.oxw().$implicit;t.Q6J("icon",B.icon)}}function Cs(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B.icon)}}function Ns(X,He){if(1&X&&(t.TgZ(0,"mat-nested-tree-node",25),t.TgZ(1,"div",26),t.TgZ(2,"div",27),t.YNc(3,lo,2,1,"span",28),t.YNc(4,za,1,1,"fa-icon",19),t.YNc(5,Cs,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.TgZ(8,"button",29),t.TgZ(9,"mat-icon",30),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"div",31),t.GkF(12,32),t.qZA(),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw(2);t.xp6(3),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name),t.xp6(1),t.uIk("aria-label","toggle "+B.name),t.xp6(2),t.Oqu(Ae.treeControlNested.isExpanded(B)?"arrow_drop_up":"arrow_drop_down"),t.xp6(1),t.ekj("tree-children-invisible",!Ae.treeControlNested.isExpanded(B))}}function _c(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5,12),t.YNc(2,Fo,8,5,"mat-tree-node",13),t.YNc(3,Ns,13,8,"mat-nested-tree-node",14),t.qZA()),2&X){const B=t.oxw();t.Q6J("dataSource",B.navMenus)("treeControl",B.treeControlNested),t.xp6(3),t.Q6J("matTreeNodeDefWhen",B.hasChild)}}function h1(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function vc(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.Q6J("icon",B.icon)}}function Fl(X,He){if(1&X&&(t.TgZ(0,"mat-icon",37),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.xp6(1),t.Oqu(B.icon)}}function yc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onShowData(fi)}),t.YNc(1,h1,2,1,"span",18),t.YNc(2,vc,1,2,"fa-icon",34),t.YNc(3,Fl,2,2,"mat-icon",35),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name)}}function ta(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function ll(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.Q6J("icon",B.icon)}}function v0(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onClick(fi)}),t.YNc(1,ta,2,1,"span",28),t.YNc(2,ll,1,2,"fa-icon",34),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(2),t.Oqu(B.name)}}function ka(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5),t.YNc(1,v0,5,3,"mat-tree-node",6),t.qZA()),2&X){const B=t.oxw();t.Q6J("dataSource",B.navMenusLogout)("treeControl",B.treeControlLogout)}}function bc(X,He){1&X&&(t.O4$(),t.TgZ(0,"svg",38),t.TgZ(1,"g",39),t.TgZ(2,"g",40),t._UZ(3,"circle",41),t._UZ(4,"path",42),t._UZ(5,"path",43),t.qZA(),t.qZA(),t.qZA())}let cl=(()=>{class X{constructor(B,Ae,pt,fi,In,tr){this.logger=B,this.commonService=Ae,this.sessionService=pt,this.store=fi,this.actions=In,this.rtlEffects=tr,this.ChildNavClicked=new t.vpe,this.faEject=x.KOR,this.faEye=x.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:x.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:x.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=K.ol,this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x,new s.x],this.treeControlNested=new kl.VY(Fn=>Fn.children),this.treeControlLogout=new kl.VY(Fn=>Fn.children),this.treeControlShowData=new kl.VY(Fn=>Fn.children),this.navMenus=new as.WX,this.navMenusLogout=new as.WX,this.navMenusShowData=new as.WX,this.hasChild=(Fn,Br)=>!!Br.children&&Br.children.length>0,this.version=Wi.q4,200===js.LNDChildren[js.LNDChildren.length-1].id&&js.LNDChildren.pop(),this.navMenus.data=js.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const B=this.sessionService.getItem("token");this.showLogout=!!B,this.flgLoading=!!B,this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[0])).subscribe(Ae=>{this.appConfig=Ae}),this.store.select(r.gW).pipe((0,v.R)(this.unSubs[1])).subscribe(Ae=>{if(this.information=Ae.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=Ae.selNode,this.settings=this.selNode.settings,this.selConfigNodeIndex=+Ae.selNode.index,this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(Ae)}),this.sessionService.watchSession().pipe((0,v.R)(this.unSubs[2])).subscribe(Ae=>{this.showLogout=!!Ae.token,this.flgLoading=!!Ae.token}),this.actions.pipe((0,v.R)(this.unSubs[3]),(0,de.h)(Ae=>Ae.type===K.pg.LOGOUT)).subscribe(Ae=>{this.showLogout=!1})}onClick(B){"Logout"===B.name&&(this.store.dispatch((0,Me.c1)({payload:{data:{type:K.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,v.R)(this.unSubs[4])).subscribe(Ae=>{Ae&&(this.showLogout=!1,this.store.dispatch((0,Me.kS)()))})),this.ChildNavClicked.emit(B)}onChildNavClicked(B){this.ChildNavClicked.emit(B)}filterSideMenuNodes(){switch(this.selNode.lnImplementation.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let B=[];B=JSON.parse(JSON.stringify(js.LNDChildren)),this.navMenus.data=B.filter(Ae=>Ae.children&&Ae.children.length?(Ae.children=Ae.children.filter(pt=>(pt.userPersona===K.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()),Ae.children.length>0):Ae.userPersona===K.ol.ALL||Ae.userPersona===this.settings.userPersona)}loadCLNMenu(){let B=[];B=JSON.parse(JSON.stringify(js.CLNChildren)),this.navMenus.data=B.filter(Ae=>(Ae.children&&Ae.children.length&&(Ae.children=Ae.children.filter(pt=>(pt.userPersona===K.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"))),Ae.userPersona===K.ol.ALL||Ae.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(js.ECLChildren))}onShowData(B){this.store.dispatch((0,Me.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(B){const Ae=this.selConfigNodeIndex;this.selConfigNodeIndex=B;const pt=this.appConfig.nodes.find(fi=>+fi.index===B);this.store.dispatch((0,Me.fk)({payload:{uiMessage:K.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+Ae,currentLnNode:pt,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(ke.m),t.Y36(M.yh),t.Y36(l.eX),t.Y36(nt.V))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-side-navigation"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(as.gi,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,mc,2,2,"mat-select",2),t._UZ(3,"mat-divider",3),t.YNc(4,_c,4,3,"mat-tree",4),t._UZ(5,"mat-divider",3),t.TgZ(6,"mat-tree",5),t.YNc(7,yc,6,4,"mat-tree-node",6),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.YNc(9,ka,2,2,"mat-tree",4),t.qZA(),t.qZA(),t.YNc(10,bc,6,0,"ng-template",null,8,t.W1O)),2&B&&(t.xp6(2),t.Q6J("ngIf",Ae.appConfig.nodes.length>1),t.xp6(2),t.Q6J("ngIf",null==Ae.settings?null:Ae.settings.lnServerUrl),t.xp6(2),t.Q6J("dataSource",Ae.navMenusShowData)("treeControl",Ae.treeControlShowData),t.xp6(3),t.Q6J("ngIf",Ae.showLogout))},directives:[b.xw,b.yH,b.Wh,z.$V,ve.O5,Be.d,as.gi,as.fQ,Fe.gD,ve.sg,Le.ey,as.uo,as.eu,O.Od,O.rH,ve.tP,Z.BN,Mr.Hw,as.GZ,ce.lW,as.Ar,l1.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),X})();var d1=m(773);const Bo=["sideNavigation"],u1=["sideNavContent"];function ph(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(B),t.oxw().sideNavToggle()}),t.TgZ(1,"mat-icon"),t._uU(2,"menu"),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("matTooltip",B.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",B.smallScreen)}}function f1(X,He){1&X&&(t.O4$(),t._UZ(0,"path",18))}function Ho(X,He){1&X&&(t.O4$(),t._UZ(0,"path",19))}function zo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.flgSidenavPinned=!pt.flgSidenavPinned}),t.O4$(),t.TgZ(1,"svg",15),t.YNc(2,f1,1,0,"path",16),t.YNc(3,Ho,1,0,"path",17),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("matTooltip",B.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),t.xp6(2),t.Q6J("ngIf",!B.flgSidenavPinned),t.xp6(1),t.Q6J("ngIf",B.flgSidenavPinned)}}function Bl(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Oqu(B.information.alias?"RTL - "+B.information.alias:"RTL")}}function qs(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Oqu(B.information.alias?"Ride The Lightning - "+B.information.alias:"Ride The Lightning")}}function mh(X,He){1&X&&(t.TgZ(0,"div",20),t._UZ(1,"mat-spinner",21),t.TgZ(2,"h4"),t._uU(3,"Loading RTL..."),t.qZA(),t.qZA())}const co=function(X,He){return[X,He]};let Uo=(()=>{class X{constructor(B,Ae,pt,fi,In,tr,Fn,Br,ya){this.logger=B,this.commonService=Ae,this.store=pt,this.actions=fi,this.userIdle=In,this.router=tr,this.sessionService=Fn,this.breakpointObserver=Br,this.renderer=ya,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 s.x,new s.x,new s.x,new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.router.events.subscribe(B=>{B instanceof O.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([o.u3.XSmall,o.u3.TabletPortrait,o.u3.Small,o.u3.Medium,o.u3.Large,o.u3.XLarge]).pipe((0,v.R)(this.unSubs[0])).subscribe(B=>{B.breakpoints[o.u3.XSmall]?(this.commonService.setScreenSize(K.cu.XS),this.smallScreen=!0):B.breakpoints[o.u3.TabletPortrait]?(this.commonService.setScreenSize(K.cu.SM),this.smallScreen=!0):B.breakpoints[o.u3.Small]||B.breakpoints[o.u3.Medium]?(this.commonService.setScreenSize(K.cu.MD),this.smallScreen=!1):B.breakpoints[o.u3.Large]?(this.commonService.setScreenSize(K.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(K.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Me.ey)()),this.accessKey=this.readAccessKey(),this.store.select(r.dT).pipe((0,v.R)(this.unSubs[1])).subscribe(B=>{this.settings=B.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(r.Yj).pipe((0,v.R)(this.unSubs[2])).subscribe(B=>{this.appConfig=B}),this.store.select(r.R4).pipe((0,v.R)(this.unSubs[3])).subscribe(B=>{this.information=B,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,v.R)(this.unSubs[4]),(0,de.h)(B=>B.type===K.pg.SET_RTL_CONFIG||B.type===K.pg.LOGIN||B.type===K.pg.LOGOUT)).subscribe(B=>{B.type===K.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+B.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,Me.x4)({payload:{password:oe(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),B.type===K.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)),B.type===K.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,v.R)(this.unSubs[5])).subscribe(B=>{this.logger.info("Counting Down: "+(11-B))}),this.userIdle.onTimeout().pipe((0,v.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,Me.ts)()),this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Me.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const B=window.location.href;return B.includes("access-key=")?B.substring(B.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(B){this.smallScreen&&this.sideNavigation.close()}copiedText(B){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+B)}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(l.eX),t.Y36(_),t.Y36(O.F0),t.Y36(ke.m),t.Y36(o.Yg),t.Y36(t.Qsj))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-app"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Bo,5),t.Gf(u1,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sideNavigation=pt.first),t.iGM(pt=t.CRH())&&(Ae.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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.ALo(1,"lowercase"),t.ALo(2,"lowercase"),t.TgZ(3,"mat-toolbar",1),t.TgZ(4,"div"),t.YNc(5,ph,3,2,"button",2),t.YNc(6,zo,4,3,"button",3),t.qZA(),t.TgZ(7,"div"),t.YNc(8,Bl,2,1,"span",4),t.YNc(9,qs,2,1,"span",4),t.qZA(),t.TgZ(10,"div"),t._UZ(11,"rtl-top-menu"),t.qZA(),t.qZA(),t.TgZ(12,"mat-sidenav-container"),t.TgZ(13,"mat-sidenav",5,6),t.TgZ(15,"rtl-side-navigation",7),t.NdJ("ChildNavClicked",function(fi){return Ae.onNavigationClicked(fi)}),t.qZA(),t.qZA(),t.TgZ(16,"mat-sidenav-content",8,9),t.TgZ(18,"div",10),t._UZ(19,"router-outlet",null,11),t.qZA(),t.qZA(),t._uU(21,"> "),t.qZA(),t.YNc(22,mh,4,0,"div",12),t.qZA()),2&B&&(t.Q6J("ngClass",t.WLB(12,co,t.lcZ(1,8,Ae.settings.themeColor),t.lcZ(2,10,Ae.settings.themeMode))),t.xp6(5),t.Q6J("ngIf",Ae.flgLoggedIn),t.xp6(1),t.Q6J("ngIf",!Ae.smallScreen&&Ae.flgLoggedIn),t.xp6(2),t.Q6J("ngIf",Ae.smallScreen),t.xp6(1),t.Q6J("ngIf",!Ae.smallScreen),t.xp6(4),t.Q6J("opened",Ae.flgSideNavOpened&&Ae.flgLoggedIn)("mode",Ae.flgSidenavPinned&&!Ae.smallScreen?"side":"over"),t.xp6(9),t.Q6J("ngIf",!Ae.settings.themeColor))},directives:[b.xw,ve.mk,Cn.oO,Ws.Ye,b.Wh,ve.O5,g0,Ka.TM,Ka.JX,z.$V,cl,b.yH,Ka.Rh,O.lC,ce.lW,l1.gM,Mr.Hw,d1.$g],pipes:[ve.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Il.g]}}),X})(),xo=(()=>{class X{constructor(B){this.sessionService=B}intercept(B,Ae){if(this.sessionService.getItem("token")){const pt=B.clone({headers:B.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return Ae.handle(pt)}return Ae.handle(B)}}return X.\u0275fac=function(B){return new(B||X)(t.LFG(ke.m))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var p1=m(7998),y0=m(711),Zo=m(4947),Vo=m(3289);const Go={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1},b0={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},gh={apiURL:"",apisCallStatus:{Login:{status:K.Bn.UN_INITIATED},IsAuthorized:{status:K.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Go,authentication:b0,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Go,authentication:b0}]},nodeData:{}},x0=(0,M.Lq)(gh,(0,M.on)(Me.qi,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(Me.vI,(X,{payload:He})=>Object.assign(Object.assign({},gh),{apisCallStatus:X.apisCallStatus,appConfig:X.appConfig,selNode:He})),(0,M.on)(Me.fk,(X,{payload:He})=>Object.assign(Object.assign({},X),{selNode:He.currentLnNode})),(0,M.on)(Me.Tm,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.selNode));switch(He.service){case K.JX.BOLTZ:B.settings.boltzServerUrl=He.settings.boltzServerUrl;break;case K.JX.LOOP:B.settings.swapServerUrl=He.settings.swapServerUrl;break;case K.JX.OFFERS:B.settings.enableOffers=He.settings.enableOffers}return Object.assign(Object.assign({},X),{selNode:B})}),(0,M.on)(Me._V,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeData:He})),(0,M.on)(Me.XT,(X,{payload:He})=>Object.assign(Object.assign({},X),{appConfig:He}))),C0={apisCallStatus:{FetchInfo:{status:K.Bn.UN_INITIATED},FetchFees:{status:K.Bn.UN_INITIATED},FetchPeers:{status:K.Bn.UN_INITIATED},FetchClosedChannels:{status:K.Bn.UN_INITIATED},FetchPendingChannels:{status:K.Bn.UN_INITIATED},FetchAllChannels:{status:K.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:K.Bn.UN_INITIATED},FetchInvoices:{status:K.Bn.UN_INITIATED},FetchPayments:{status:K.Bn.UN_INITIATED},FetchForwardingHistory:{status:K.Bn.UN_INITIATED},FetchUTXOs:{status:K.Bn.UN_INITIATED},FetchTransactions:{status:K.Bn.UN_INITIATED},FetchLightningTransactions:{status:K.Bn.UN_INITIATED},FetchNetwork:{status:K.Bn.UN_INITIATED}},nodeSettings:{userPersona:K.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 _h=!1,M0=!1;const vh=(0,M.Lq)(C0,(0,M.on)(ui.PC,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(ui.JT,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(ui.Ll,(X,{payload:He})=>Object.assign(Object.assign({},C0),{nodeSettings:He})),(0,M.on)(ui.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(ui.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(ui.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.pub_key===He.pubkey);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(ui.YP,(X,{payload:He})=>{const B=X.listInvoices;return B.invoices.unshift(He),Object.assign(Object.assign({},X),{listInvoices:B})}),(0,M.on)(ui.aL,(X,{payload:He})=>{const B=X.listInvoices;return B.invoices=B.invoices.map(Ae=>Ae.payment_request===He.payment_request?He:Ae),Object.assign(Object.assign({},X),{listInvoices:B})}),(0,M.on)(ui.qY,(X,{payload:He})=>{const B=X.listPayments;return B.payments=B.payments.map(Ae=>Ae.payment_hash===He.payment_hash?He:Ae),Object.assign(Object.assign({},X),{listPayments:B})}),(0,M.on)(ui.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(ui._L,(X,{payload:He})=>Object.assign(Object.assign({},X),{closedChannels:He})),(0,M.on)(ui.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He.pendingChannels,pendingChannelsSummary:He.pendingChannelsSummary})),(0,M.on)(ui.as,(X,{payload:He})=>{let B=0,Ae=0,pt=0,fi=0,In=0,tr=0;return He&&He.forEach(Fn=>{Fn.local_balance||(Fn.local_balance=0),!0===Fn.active?(In+=+Fn.local_balance,pt+=1,Fn.local_balance?B=+B+ +Fn.local_balance:Fn.local_balance=0,Fn.remote_balance?Ae=+Ae+ +Fn.remote_balance:Fn.remote_balance=0):(tr+=+Fn.local_balance,fi+=1)}),Object.assign(Object.assign({},X),{channels:He,channelsSummary:{active:{num_channels:pt,capacity:In},inactive:{num_channels:fi,capacity:tr}},lightningBalance:{local:B,remote:Ae}})}),(0,M.on)(ui.OG,(X,{payload:He})=>{const B=[...X.channels],Ae=X.channels.findIndex(pt=>pt.channel_point===He.channelPoint);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{channels:B})}),(0,M.on)(ui.Jl,(X,{payload:He})=>Object.assign(Object.assign({},X),{blockchainBalance:He})),(0,M.on)(ui.ks,(X,{payload:He})=>Object.assign(Object.assign({},X),{networkInfo:He})),(0,M.on)(ui.Nr,(X,{payload:He})=>(He.total_invoices||(He.total_invoices=X.listInvoices.total_invoices),Object.assign(Object.assign({},X),{listInvoices:He}))),(0,M.on)(ui.Lf,(X,{payload:He})=>{if(_h=!0,He.length&&M0){const B=[...X.utxos];return B.forEach(Ae=>{const pt=He.find(fi=>fi.tx_hash===Ae.outpoint.txid_str);Ae.label=pt&&pt.label?pt.label:""}),Object.assign(Object.assign({},X),{utxos:B,transactions:He})}return Object.assign(Object.assign({},X),{transactions:He})}),(0,M.on)(ui.UH,(X,{payload:He})=>{if(M0=!0,He.length&&_h){const B=[...X.transactions];He.forEach(Ae=>{const pt=B.find(fi=>fi.tx_hash===Ae.outpoint.txid_str);Ae.label=pt&&pt.label?pt.label:""})}return Object.assign(Object.assign({},X),{utxos:He})}),(0,M.on)(ui.HI,(X,{payload:He})=>{const B={listInvoicesAll:X.allLightningTransactions.listInvoicesAll,listPaymentsAll:He};return Object.assign(Object.assign({},X),{listPayments:He,allLightningTransactions:B})}),(0,M.on)(ui.Fr,(X,{payload:He})=>{const B={listInvoicesAll:He.listInvoicesAll,listPaymentsAll:X.listPayments};return Object.assign(Object.assign({},X),{allLightningTransactions:B})}),(0,M.on)(ui.QJ,(X,{payload:He})=>{const B=[...X.channels,...X.closedChannels];let Ae=He.forwarding_events?JSON.parse(JSON.stringify(He)):{};return Ae.forwarding_events&&(Ae=m1(Ae,B)),Object.assign(Object.assign({},X),{forwardingHistory:Ae})})),m1=(X,He)=>(X.forwarding_events.forEach(B=>{if(He&&He.length>0)for(let Ae=0;Ae{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(Lt.oo,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(Lt.xH,(X,{payload:He})=>Object.assign(Object.assign({},Yo),{nodeSettings:He})),(0,M.on)(Lt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(Lt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(Lt.I8,(X,{payload:He})=>He.perkb?Object.assign(Object.assign({},X),{feeRatesPerKB:He}):He.perkw?Object.assign(Object.assign({},X),{feeRatesPerKW:He}):Object.assign({},X)),(0,M.on)(Lt.Lu,(X,{payload:He})=>Object.assign(Object.assign({},X),{balance:He})),(0,M.on)(Lt.xS,(X,{payload:He})=>Object.assign(Object.assign({},X),{localRemoteBalance:He})),(0,M.on)(Lt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(Lt.X3,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:[...X.peers,He]})),(0,M.on)(Lt.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.id===He.id);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(Lt.as,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He.activeChannels,pendingChannels:He.pendingChannels,inactiveChannels:He.inactiveChannels})),(0,M.on)(Lt.OG,(X,{payload:He})=>{const B=[...X.peers];return B.forEach(Ae=>{Ae.id===He.id&&(Ae.connected=!1,delete Ae.netaddr)}),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(Lt.HI,(X,{payload:He})=>Object.assign(Object.assign({},X),{payments:He})),(0,M.on)(Lt.QJ,(X,{payload:He})=>{const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels],Ae=ho(He.listForwards,B);switch(He.listForwards=Ae,He.status){case K.OO.SETTLED:const pt=X.fees;return pt.totalTxCount=0|He.totalForwards,Object.assign(Object.assign({},X),{fees:pt,forwardingHistory:He});case K.OO.FAILED:return Object.assign(Object.assign({},X),{failedForwardingHistory:He});case K.OO.LOCAL_FAILED:return Object.assign(Object.assign({},X),{localFailedForwardingHistory:He});default:return Object.assign({},X)}}),(0,M.on)(Lt.YP,(X,{payload:He})=>{const B=X.invoices;return B.invoices.unshift(He),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(Lt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(Lt.aL,(X,{payload:He})=>{const B=X.invoices;return B.invoices=B.invoices.map(Ae=>Ae.label===He.label?He:Ae),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(Lt.UH,(X,{payload:He})=>Object.assign(Object.assign({},X),{utxos:He})),(0,M.on)(Lt.Zu,(X,{payload:He})=>Object.assign(Object.assign({},X),{offers:He})),(0,M.on)(Lt.ZH,(X,{payload:He})=>{const B=X.offers;return B.unshift(He),Object.assign(Object.assign({},X),{offers:B})}),(0,M.on)(Lt.JK,(X,{payload:He})=>{const B=[...X.offers],Ae=X.offers.findIndex(pt=>pt.offer_id===He.offer.offer_id);return Ae>-1&&B.splice(Ae,1,He.offer),Object.assign(Object.assign({},X),{offers:B})}),(0,M.on)(Lt.d7,(X,{payload:He})=>Object.assign(Object.assign({},X),{offersBookmarks:He})),(0,M.on)(Lt.e9,(X,{payload:He})=>{const B=[...X.offersBookmarks],Ae=B.findIndex(pt=>pt.bolt12===He.bolt12);if(Ae<0)B.unshift(He);else{const pt=Object.assign({},B[Ae]);pt.title=He.title,pt.amountmSat=He.amountmSat,pt.lastUpdatedAt=He.lastUpdatedAt,pt.description=He.description,pt.vendor=He.vendor,B.splice(Ae,1,pt)}return Object.assign(Object.assign({},X),{offersBookmarks:B})}),(0,M.on)(Lt.en,(X,{payload:He})=>{const B=[...X.offersBookmarks],Ae=X.offersBookmarks.findIndex(pt=>pt.bolt12===He.bolt12);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{offersBookmarks:B})})),ho=(X,He)=>(X&&X.length>0?X.forEach((B,Ae)=>{if(He&&He.length>0)for(let pt=0;pt{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(gt.Zr,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(gt.Fd,(X,{payload:He})=>Object.assign(Object.assign({},uo),{nodeSettings:He})),(0,M.on)(gt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(gt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(gt.eN,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He})),(0,M.on)(gt.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He})),(0,M.on)(gt.i,(X,{payload:He})=>Object.assign(Object.assign({},X),{inactiveChannels:He})),(0,M.on)(gt.HG,(X,{payload:He})=>Object.assign(Object.assign({},X),{channelsStatus:He})),(0,M.on)(gt.Bw,(X,{payload:He})=>Object.assign(Object.assign({},X),{onchainBalance:He})),(0,M.on)(gt.On,(X,{payload:He})=>Object.assign(Object.assign({},X),{lightningBalance:He})),(0,M.on)(gt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(gt.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.nodeId===He.nodeId);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(gt.OG,(X,{payload:He})=>{const B=[...X.activeChannels],Ae=X.activeChannels.findIndex(pt=>pt.channelId===He.channelId);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{activeChannels:B})}),(0,M.on)(gt.HI,(X,{payload:He})=>{if(He&&He.sent){const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.sent.map(Ae=>{const pt=X.peers.find(fi=>fi.nodeId===Ae.recipientNodeId);return Ae.recipientNodeAlias=pt?pt.alias:Ae.recipientNodeId,Ae.parts&&Ae.parts.map(fi=>{const In=B.find(tr=>tr.channelId===fi.toChannelId);return fi.toChannelAlias=In?In.alias:fi.toChannelId,Ae.parts}),He.sent})}if(He&&He.relayed){const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.relayed.forEach(Ae=>{Ae=_1(Ae,B)})}return Object.assign(Object.assign({},X),{payments:He})}),(0,M.on)(gt.Lf,(X,{payload:He})=>Object.assign(Object.assign({},X),{transactions:He})),(0,M.on)(gt.YP,(X,{payload:He})=>{const B=X.invoices;return B.unshift(He),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(gt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(gt.aL,(X,{payload:He})=>{let B=X.invoices;return B=B.map(Ae=>{if(Ae.paymentHash===He.paymentHash){if(He.hasOwnProperty("type")){const pt=JSON.parse(JSON.stringify(Ae));return pt.amountSettled=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].amount?He.parts[0].amount/1e3:0,pt.receivedAt=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].timestamp?Math.round(He.parts[0].timestamp/1e3):0,pt.status="received",pt}return He}return Ae}),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(gt.DJ,(X,{payload:He})=>{let B=X.pendingChannels;return B=B.map(Ae=>(Ae.channelId===He.channelId&&Ae.nodeId===He.remoteNodeId&&(He.currentState=He.currentState.replace(/_/g," "),Ae.state=He.currentState),Ae)),Object.assign(Object.assign({},X),{pendingChannels:B})}),(0,M.on)(gt.ti,(X,{payload:He})=>{const B=X.payments,Ae=_1(He,[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels]);Ae.amountIn=Math.round(He.amountIn/1e3),Ae.amountOut=Math.round(He.amountOut/1e3),B.relayed.unshift(Ae);const pt=He.amountIn-He.amountOut,fi={localBalance:X.lightningBalance.localBalance+pt,remoteBalance:X.lightningBalance.remoteBalance-pt},In=X.channelsStatus;In.active.capacity=X.channelsStatus.active.capacity+pt;const tr={daily_fee:X.fees.daily_fee+pt,daily_txs:X.fees.daily_txs+1,weekly_fee:X.fees.weekly_fee+pt,weekly_txs:X.fees.weekly_txs+1,monthly_fee:X.fees.monthly_fee+pt,monthly_txs:X.fees.monthly_txs+1},Fn=X.activeChannels;let Br=!1,ya=!1;for(const sr of Fn){if(sr.channelId===He.fromChannelId){Br=!0;const Na=sr.toLocal+sr.toRemote;sr.toLocal=sr.toLocal+Ae.amountIn,sr.toRemote=sr.toRemote-Ae.amountIn,sr.balancedness=0===Na?1:+(1-Math.abs((sr.toLocal-sr.toRemote)/Na)).toFixed(3)}if(sr.channelId===He.toChannelId){ya=!0;const Na=sr.toLocal+sr.toRemote;sr.toLocal=sr.toLocal-Ae.amountOut,sr.toRemote=sr.toRemote+Ae.amountOut,sr.balancedness=0===Na?1:+(1-Math.abs((sr.toLocal-sr.toRemote)/Na)).toFixed(3)}if(ya&&Br)break}return Object.assign(Object.assign({},X),{payments:B,lightningBalance:fi,channelStatus:In,fees:tr,activeChannels:Fn})})),_1=(X,He)=>{if("payment-relayed"===X.type)if(He&&He.length>0)for(let B=0;B0)for(let B=0;B{He[B].channelId.toString()===Ae.channelId&&(Ae.channelAlias=He[B].alias?He[B].alias:Ae.channelId,Ae.shortChannelId=He[B].shortChannelId?He[B].shortChannelId:"")}),X.outgoing.forEach(Ae=>{He[B].channelId.toString()===Ae.channelId&&(Ae.channelAlias=He[B].alias?He[B].alias:Ae.channelId,Ae.shortChannelId=He[B].shortChannelId?He[B].shortChannelId:"")}),B===He.length-1&&(X.incoming[0].channelAlias||X.incoming.forEach(Ae=>{Ae.channelAlias=Ae.channelId.substring(0,17)+"...",Ae.shortChannelId=""}),X.outgoing[0].channelAlias||X.outgoing.forEach(Ae=>{Ae.channelAlias=Ae.channelId.substring(0,17)+"...",Ae.shortChannelId=""}));else X.incoming.forEach(B=>{B.channelAlias=B.channelId.substring(0,17)+"...",B.shortChannelId=""}),X.outgoing.forEach(B=>{B.channelAlias=B.channelId.substring(0,17)+"...",B.shortChannelId=""});X.amountIn=X.incoming.reduce((B,Ae)=>B+Ae.amount,0),X.fromChannelId=X.incoming[0].channelId,X.fromChannelAlias=X.incoming[0].channelAlias,X.fromShortChannelId=X.incoming[0].shortChannelId,X.amountOut=X.outgoing.reduce((B,Ae)=>B+Ae.amount,0),X.toChannelId=X.outgoing[0].channelId,X.toChannelAlias=X.outgoing[0].channelAlias,X.toShortChannelId=X.outgoing[0].shortChannelId}return X};let Hl=(()=>{class X{}return X.\u0275fac=function(B){return new(B||X)},X.\u0275mod=t.oAB({type:X,bootstrap:[Uo]}),X.\u0275inj=t.cJS({providers:[{provide:C.TP,useClass:xo,multi:!0},Pa.a1,ke.m,bo.D,p1.d,Zr.W,Ci.v,Un],imports:[[y.PW,s1.m,xs,o.xu,e.t6,D.forRoot({idle:3590,timeout:10,ping:12e3}),M.Aw.forRoot({root:x0,lnd:vh,cln:g1,ecl:yh},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),l.sQ.forRoot([nt.V,y0.l,Zo.J,Vo.o]),Wi.NZ.production?[]:R.FT.instrument()]]}),X})();Wi.NZ.production&&(0,t.G48)(),e.q6().bootstrapModule(Hl).catch(X=>console.log(X))},7854:(Ge,Q)=>{"use strict";function m(K){return Object.keys(K).map(Me=>K[Me])}var K;Object.defineProperty(Q,"__esModule",{value:!0}),(K=Q.HashAlgorithms||(Q.HashAlgorithms={})).SHA1="sha1",K.SHA256="sha256",K.SHA512="sha512";const e=m(Q.HashAlgorithms);!function(K){K.ASCII="ascii",K.BASE64="base64",K.HEX="hex",K.LATIN1="latin1",K.UTF8="utf8"}(Q.KeyEncodings||(Q.KeyEncodings={}));const t=m(Q.KeyEncodings);!function(K){K.HOTP="hotp",K.TOTP="totp"}(Q.Strategy||(Q.Strategy={}));const y=m(Q.Strategy),C=()=>{throw new Error("Please provide an options.createDigest implementation.")};function o(K){return/^(\d+)$/.test(K)}function M(K,Me,we){return K.length>=Me?K:`${Array(Me+1).join(we)}${K}`.slice(-1*Me)}function l(K){const Me=`otpauth://${K.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,we=[];if(y.indexOf(K.type)<0)throw new Error(`Expecting options.type to be one of ${y.join(", ")}. Received ${K.type}.`);if("hotp"===K.type){if(null==K.counter||"number"!=typeof K.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');we.push(`&counter=${K.counter}`)}return"totp"===K.type&&K.step&&we.push(`&period=${K.step}`),K.digits&&we.push(`&digits=${K.digits}`),K.algorithm&&we.push(`&algorithm=${K.algorithm.toUpperCase()}`),K.issuer&&we.push(`&issuer=${encodeURIComponent(K.issuer)}`),Me.replace("{labelPrefix}",encodeURIComponent(K.issuer||K.accountName)).replace("{accountName}",encodeURIComponent(K.accountName)).replace("{secret}",K.secret).replace("{query}",we.join(""))}class R{constructor(Me={}){this._defaultOptions=Object.freeze(to({},Me)),this._options=Object.freeze({})}create(Me={}){return new R(Me)}clone(Me={}){const we=this.create(to(to({},this._defaultOptions),Me));return we.options=this._options,we}get options(){return Object.freeze(to(to({},this._defaultOptions),this._options))}set options(Me){this._options=Object.freeze(to(to({},this._options),Me))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function s(K){if("function"!=typeof K.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof K.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof K.digits)throw new Error("Expecting options.digits to be a number.");if(!K.algorithm||e.indexOf(K.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${K.algorithm}.`);if(!K.encoding||t.indexOf(K.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${t.join(", ")}. Received ${K.encoding}.`)}const L=(K,Me,we)=>Buffer.from(Me,we).toString("hex");function I(){return{algorithm:Q.HashAlgorithms.SHA1,createHmacKey:L,createDigest:C,digits:6,encoding:Q.KeyEncodings.ASCII}}function A(K){const Me=to(to({},I()),K);return s(Me),Object.freeze(Me)}function E(K){return M(K.toString(16),16,"0")}function P(K,Me){const we=Buffer.from(K,"hex"),z=15&we[we.length-1],vt=((127&we[z])<<24|(255&we[z+1])<<16|(255&we[z+2])<<8|255&we[z+3])%Math.pow(10,Me);return M(String(vt),Me,"0")}function V(K,Me,we){const z=we.digest||function w(K,Me,we){const z=E(Me),Ze=we.createHmacKey(we.algorithm,K,we.encoding);return we.createDigest(we.algorithm,Ze,z)}(K,Me,we);return P(z,we.digits)}function j(K,Me,we,z){return!!o(K)&&K===V(Me,we,z)}function W(K,Me,we,z,Ze){return l({algorithm:Ze.algorithm,digits:Ze.digits,type:Q.Strategy.HOTP,accountName:K,counter:z,issuer:Me,secret:we})}class te extends R{create(Me={}){return new te(Me)}allOptions(){return A(this.options)}generate(Me,we){return V(Me,we,this.allOptions())}check(Me,we,z){return j(Me,we,z,this.allOptions())}verify(Me){if("object"!=typeof Me)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Me.token,Me.secret,Me.counter)}keyuri(Me,we,z,Ze){return W(Me,we,z,Ze,this.allOptions())}}function ee(K){if("number"==typeof K)return[Math.abs(K),Math.abs(K)];if(Array.isArray(K)){const[Me,we]=K;if("number"==typeof Me&&"number"==typeof we)return[Math.abs(Me),Math.abs(we)]}throw new Error("Expecting options.window to be an number or [number, number].")}function ge(K){if(s(K),ee(K.window),"number"!=typeof K.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof K.step)throw new Error("Expecting options.step to be a number.")}const le=(K,Me,we)=>{const z=K.length,Ze=Buffer.from(K,Me).toString("hex");if(z{switch(K){case Q.HashAlgorithms.SHA1:return le(Me,we,20);case Q.HashAlgorithms.SHA256:return le(Me,we,32);case Q.HashAlgorithms.SHA512:return le(Me,we,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${K}.`)}};function de(){return{algorithm:Q.HashAlgorithms.SHA1,createDigest:C,createHmacKey:re,digits:6,encoding:Q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function se(K){const Me=to(to({},de()),K);return ge(Me),Object.freeze(Me)}function ye(K,Me){return Math.floor(K/Me/1e3)}function v(K,Me){return V(K,ye(Me.epoch,Me.step),Me)}function i(K,Me,we,z){const Ze=[];if(0===z)return Ze;for(let vt=1;vt<=z;vt++)Ze.push(K+Me*vt*we);return Ze}function a(K,Me,we){const z=ee(we),Ze=1e3*Me;return{current:K,past:i(K,-1,Ze,z[0]),future:i(K,1,Ze,z[1])}}function p(K,Me,we){return!!o(K)&&K===v(Me,we)}function u(K,Me,we,z){let Ze=null;return K.some((vt,Fe)=>!!p(Me,we,_8(to({},z),{epoch:vt}))&&(Ze=Fe+1,!0)),Ze}function _(K,Me,we){if(p(K,Me,we))return 0;const z=a(we.epoch,we.step,we.window),Ze=u(z.past,K,Me,we);return null!==Ze?-1*Ze:u(z.future,K,Me,we)}function D(K,Me){return Math.floor(K/1e3)%Me}function O(K,Me){return Me-D(K,Me)}function x(K,Me,we,z){return l({algorithm:z.algorithm,digits:z.digits,step:z.step,type:Q.Strategy.TOTP,accountName:K,issuer:Me,secret:we})}class r extends te{create(Me={}){return new r(Me)}allOptions(){return se(this.options)}generate(Me){return v(Me,this.allOptions())}checkDelta(Me,we){return _(Me,we,this.allOptions())}check(Me,we){return"number"==typeof this.checkDelta(Me,we)}verify(Me){if("object"!=typeof Me)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Me.token,Me.secret)}timeRemaining(){const Me=this.allOptions();return O(Me.epoch,Me.step)}timeUsed(){const Me=this.allOptions();return D(Me.epoch,Me.step)}keyuri(Me,we,z){return x(Me,we,z,this.allOptions())}}function b(K){if(ge(K),"function"!=typeof K.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(K.keyEncoder&&"function"!=typeof K.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function Z(){return{algorithm:Q.HashAlgorithms.SHA1,createDigest:C,createHmacKey:re,digits:6,encoding:Q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function N(K){const Me=to(to({},Z()),K);return b(Me),Object.freeze(Me)}function U(K,Me){return Me.keyEncoder(K,Me.encoding)}function ve(K,Me){return Me.keyDecoder(K,Me.encoding)}function be(K,Me){return U(Me.createRandomBytes(K,Me.encoding),Me)}function Re(K,Me){return v(ve(K,Me),Me)}function ze(K,Me,we){return _(K,ve(Me,we),we)}class Oe extends r{create(Me={}){return new Oe(Me)}allOptions(){return N(this.options)}generate(Me){return Re(Me,this.allOptions())}checkDelta(Me,we){return ze(Me,we,this.allOptions())}encode(Me){return U(Me,this.allOptions())}decode(Me){return ve(Me,this.allOptions())}generateSecret(Me=10){return be(Me,this.allOptions())}}Q.Authenticator=Oe,Q.HASH_ALGORITHMS=e,Q.HOTP=te,Q.KEY_ENCODINGS=t,Q.OTP=R,Q.STRATEGY=y,Q.TOTP=r,Q.authenticatorCheckWithWindow=ze,Q.authenticatorDecoder=ve,Q.authenticatorDefaultOptions=Z,Q.authenticatorEncoder=U,Q.authenticatorGenerateSecret=be,Q.authenticatorOptionValidator=b,Q.authenticatorOptions=N,Q.authenticatorToken=Re,Q.createDigestPlaceholder=C,Q.hotpCheck=j,Q.hotpCounter=E,Q.hotpCreateHmacKey=L,Q.hotpDefaultOptions=I,Q.hotpDigestToToken=P,Q.hotpKeyuri=W,Q.hotpOptions=A,Q.hotpOptionsValidator=s,Q.hotpToken=V,Q.isTokenValid=o,Q.keyuri=l,Q.objectValues=m,Q.padStart=M,Q.totpCheck=p,Q.totpCheckByEpoch=u,Q.totpCheckWithWindow=_,Q.totpCounter=ye,Q.totpCreateHmacKey=re,Q.totpDefaultOptions=de,Q.totpEpochAvailable=a,Q.totpKeyuri=x,Q.totpOptions=se,Q.totpOptionsValidator=ge,Q.totpPadSecret=le,Q.totpTimeRemaining=O,Q.totpTimeUsed=D,Q.totpToken=v},6098:(Ge,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var t=function e(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(m(1348));Q.createDigest=(o,M,l)=>t.createHmac(o,Buffer.from(M,"hex")).update(Buffer.from(l,"hex")).digest().toString("hex"),Q.createRandomBytes=(o,M)=>t.randomBytes(o).toString(M)},1415:(Ge,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var t=function e(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(m(2167));Q.keyDecoder=(o,M)=>t.decode(o).toString(M),Q.keyEncoder=(o,M)=>t.encode(Buffer.from(o,M).toString("ascii")).toString().replace(/=/g,"")},842:(Ge,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var e=m(6098),t=m(1415),y=m(7854);const C=new y.HOTP({createDigest:e.createDigest}),o=new y.TOTP({createDigest:e.createDigest}),M=new y.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:t.keyDecoder,keyEncoder:t.keyEncoder});Q.authenticator=M,Q.hotp=C,Q.totp=o},6046:(Ge,Q,m)=>{"use strict";m.d(Q,{H5:()=>_4,K$:()=>g4,a4:()=>lh});var e=m(5e3),t=m(9808),y=m(7429),C=m(655),o=m(4968),M=m(8372),l=m(1777);function R(){}function s(f){return null==f?R:function(){return this.querySelector(f)}}function I(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function A(){return[]}function E(f){return null==f?A:function(){return this.querySelectorAll(f)}}function V(f){return function(){return this.matches(f)}}function j(f){return function(T){return T.matches(f)}}var W=Array.prototype.find;function ee(){return this.firstElementChild}var le=Array.prototype.filter;function re(){return this.children}function v(f){return new Array(f.length)}function a(f,T){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=T}function p(f){return function(){return f}}function u(f,T,n,d,k,H){for(var Se,ae=0,ht=T.length,mt=H.length;aeT?1:f>=T?0:NaN}a.prototype={constructor:a,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,T){return this._parent.insertBefore(f,T)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var Me="http://www.w3.org/1999/xhtml";const we={svg:"http://www.w3.org/2000/svg",xhtml:Me,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function z(f){var T=f+="",n=T.indexOf(":");return n>=0&&"xmlns"!==(T=f.slice(0,n))&&(f=f.slice(n+1)),we.hasOwnProperty(T)?{space:we[T],local:f}:f}function Ze(f){return function(){this.removeAttribute(f)}}function vt(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Fe(f,T){return function(){this.setAttribute(f,T)}}function Ne(f,T){return function(){this.setAttributeNS(f.space,f.local,T)}}function ce(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttribute(f):this.setAttribute(f,n)}}function Le(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,n)}}function q(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function $(f){return function(){this.style.removeProperty(f)}}function oe(f,T,n){return function(){this.style.setProperty(f,T,n)}}function Ce(f,T,n){return function(){var d=T.apply(this,arguments);null==d?this.style.removeProperty(f):this.style.setProperty(f,d,n)}}function lt(f,T){return f.style.getPropertyValue(T)||q(f).getComputedStyle(f,null).getPropertyValue(T)}function nt(f){return function(){delete this[f]}}function ft(f,T){return function(){this[f]=T}}function it(f,T){return function(){var n=T.apply(this,arguments);null==n?delete this[f]:this[f]=n}}function Mt(f){return f.trim().split(/^|\s+/)}function Zt(f){return f.classList||new Ft(f)}function Ft(f){this._node=f,this._names=Mt(f.getAttribute("class")||"")}function Vt(f,T){for(var n=Zt(f),d=-1,k=T.length;++d=0&&(n=T.slice(d+1),T=T.slice(0,d)),{type:T,name:n}})}function Ke(f){return function(){var T=this.__on;if(T){for(var H,n=0,d=-1,k=T.length;n=0&&(this._names.splice(T,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var kt=[null];function yi(f,T){this._groups=f,this._parents=T}function Ni(){return new yi([[document.documentElement]],kt)}yi.prototype=Ni.prototype={constructor:yi,select:function L(f){"function"!=typeof f&&(f=s(f));for(var T=this._groups,n=T.length,d=new Array(n),k=0;k=Qi&&(Qi=Gi+1);!(fn=di[Qi])&&++Qi=0;)(ae=d[k])&&(H&&4^ae.compareDocumentPosition(H)&&H.parentNode.insertBefore(ae,H),H=ae);return this},sort:function N(f){function T(Ht,Ut){return Ht&&Ut?f(Ht.__data__,Ut.__data__):!Ht-!Ut}f||(f=U);for(var n=this._groups,d=n.length,k=new Array(d),H=0;H1?this.each((null==T?$:"function"==typeof T?Ce:oe)(f,T,null==n?"":n)):lt(this.node(),f)},property:function rt(f,T){return arguments.length>1?this.each((null==T?nt:"function"==typeof T?it:ft)(f,T)):this.node()[f]},classed:function ai(f,T){var n=Mt(f+"");if(arguments.length<2){for(var d=Zt(this.node()),k=-1,H=n.length;++k{}};function gt(){for(var d,f=0,T=arguments.length,n={};f=0&&(d=n.slice(k+1),n=n.slice(0,k)),n&&!T.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:d}})}function Ci(f,T){for(var k,n=0,d=f.length;n0)for(var k,H,n=new Array(k),d=0;d>8&15|T>>4&240,T>>4&15|240&T,(15&T)<<4|15&T,1):8===n?Kn(T>>24&255,T>>16&255,T>>8&255,(255&T)/255):4===n?Kn(T>>12&15|T>>8&240,T>>8&15|T>>4&240,T>>4&15|240&T,((15&T)<<4|15&T)/255):null):(T=Ma.exec(f))?new Tr(T[1],T[2],T[3],1):(T=Fa.exec(f))?new Tr(255*T[1]/100,255*T[2]/100,255*T[3]/100,1):(T=xr.exec(f))?Kn(T[1],T[2],T[3],T[4]):(T=hs.exec(f))?Kn(255*T[1]/100,255*T[2]/100,255*T[3]/100,T[4]):(T=ur.exec(f))?la(T[1],T[2]/100,T[3]/100,1):(T=pa.exec(f))?la(T[1],T[2]/100,T[3]/100,T[4]):ma.hasOwnProperty(f)?Pr(ma[f]):"transparent"===f?new Tr(NaN,NaN,NaN,0):null}function Pr(f){return new Tr(f>>16&255,f>>8&255,255&f,1)}function Kn(f,T,n,d){return d<=0&&(f=T=n=NaN),new Tr(f,T,n,d)}function vn(f){return f instanceof Fi||(f=Zr(f)),f?new Tr((f=f.rgb()).r,f.g,f.b,f.opacity):new Tr}function Qn(f,T,n,d){return 1===arguments.length?vn(f):new Tr(f,T,n,null==d?1:d)}function Tr(f,T,n,d){this.r=+f,this.g=+T,this.b=+n,this.opacity=+d}function Ba(){return"#"+kr(this.r)+kr(this.g)+kr(this.b)}function Wa(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===f?")":", "+f+")")}function kr(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function la(f,T,n,d){return d<=0?f=T=n=NaN:n<=0||n>=1?f=T=NaN:T<=0&&(f=NaN),new $n(f,T,n,d)}function Jr(f){if(f instanceof $n)return new $n(f.h,f.s,f.l,f.opacity);if(f instanceof Fi||(f=Zr(f)),!f)return new $n;if(f instanceof $n)return f;var T=(f=f.rgb()).r/255,n=f.g/255,d=f.b/255,k=Math.min(T,n,d),H=Math.max(T,n,d),ae=NaN,Se=H-k,ht=(H+k)/2;return Se?(ae=T===H?(n-d)/Se+6*(n0&&ht<1?0:ae,new $n(ae,Se,ht,f.opacity)}function $n(f,T,n,d){this.h=+f,this.s=+T,this.l=+n,this.opacity=+d}function wa(f,T,n){return 255*(f<60?T+(n-T)*f/60:f<180?n:f<240?T+(n-T)*(240-f)/60:T)}function Nr(f,T,n,d,k){var H=f*f,ae=H*f;return((1-3*f+3*H-ae)*T+(4-6*H+3*ae)*n+(1+3*f+3*H-3*ae)*d+ae*k)/6}dr(Fi,Zr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Ir,formatHex:Ir,formatHsl:function Ga(){return Jr(this).formatHsl()},formatRgb:Ya,toString:Ya}),dr(Tr,Qn,wi(Fi,{brighter:function(f){return f=null==f?Lr:Math.pow(Lr,f),new Tr(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Tr(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ba,formatHex:Ba,formatRgb:Wa,toString:Wa})),dr($n,function ga(f,T,n,d){return 1===arguments.length?Jr(f):new $n(f,T,n,null==d?1:d)},wi(Fi,{brighter:function(f){return f=null==f?Lr:Math.pow(Lr,f),new $n(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new $n(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),T=isNaN(f)||isNaN(this.s)?0:this.s,n=this.l,d=n+(n<.5?n:1-n)*T,k=2*n-d;return new Tr(wa(f>=240?f-240:f+120,k,d),wa(f,k,d),wa(f<120?f+240:f-120,k,d),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));const Vr=f=>()=>f;function Oa(f,T){var n=T-f;return n?function ha(f,T){return function(n){return f+n*T}}(f,n):Vr(isNaN(f)?T:f)}const ra=function f(T){var n=function is(f){return 1==(f=+f)?Oa:function(T,n){return n-T?function pr(f,T,n){return f=Math.pow(f,n),T=Math.pow(T,n)-f,n=1/n,function(d){return Math.pow(f+d*T,n)}}(T,n,f):Vr(isNaN(T)?n:T)}}(T);function d(k,H){var ae=n((k=Qn(k)).r,(H=Qn(H)).r),Se=n(k.g,H.g),ht=n(k.b,H.b),mt=Oa(k.opacity,H.opacity);return function(Dt){return k.r=ae(Dt),k.g=Se(Dt),k.b=ht(Dt),k.opacity=mt(Dt),k+""}}return d.gamma=f,d}(1);function Gr(f){return function(T){var ae,Se,n=T.length,d=new Array(n),k=new Array(n),H=new Array(n);for(ae=0;ae=1?(n=1,T-1):Math.floor(n*T),k=f[d],H=f[d+1];return Nr((n-d/T)*T,d>0?f[d-1]:2*k-H,k,H,dn&&(H=T.slice(n,H),Se[ae]?Se[ae]+=H:Se[++ae]=H),(d=d[0])===(k=k[0])?Se[ae]?Se[ae]+=k:Se[++ae]=k:(Se[++ae]=null,ht.push({i:ae,x:me(d,k)})),n=Qe.lastIndex;return n=0&&f._call.call(null,T),f=f._next;--yn}()}finally{yn=0,function he(){for(var f,n,T=Un,d=1/0;T;)T._call?(d>T._time&&(d=T._time),f=T,T=T._next):(n=T._next,T._next=null,T=f?f._next=n:Un=n);Rn=f,je(d)}(),Mr=0}}function ie(){var f=vs.now(),T=f-_a;T>1e3&&(ds-=T,_a=f)}function je(f){yn||(An&&(An=clearTimeout(An)),f-Mr>24?(f<1/0&&(An=setTimeout(xt,f-vs.now()-ds)),Wi&&(Wi=clearInterval(Wi))):(Wi||(_a=vs.now(),Wi=setInterval(ie,1e3)),yn=1,Pi(xt)))}function wt(f,T,n){var d=new fr;return d.restart(k=>{d.stop(),f(k+T)},T=null==T?0:+T,n),d}fr.prototype=Us.prototype={constructor:fr,restart:function(f,T,n){if("function"!=typeof f)throw new TypeError("callback is not a function");n=(null==n?Nn():+n)+(null==T?0:+T),!this._next&&Rn!==this&&(Rn?Rn._next=this:Un=this,Rn=this),this._call=f,this._time=n,je()},stop:function(){this._call&&(this._call=null,this._time=1/0,je())}};var Pt=$i("start","end","cancel","interrupt"),Qt=[];function tt(f,T,n,d,k,H){var ae=f.__transition;if(ae){if(n in ae)return}else f.__transition={};!function ri(f,T,n){var k,d=f.__transition;function ae(mt){var Dt,Ht,Ut,ni;if(1!==n.state)return ht();for(Dt in d)if((ni=d[Dt]).name===n.name){if(3===ni.state)return wt(ae);4===ni.state?(ni.state=6,ni.timer.stop(),ni.on.call("interrupt",f,f.__data__,ni.index,ni.group),delete d[Dt]):+Dt0)throw new Error("too late; already scheduled");return n}function It(f,T){var n=zt(f,T);if(n.state>3)throw new Error("too late; already running");return n}function zt(f,T){var n=f.__transition;if(!n||!(n=n[T]))throw new Error("transition not found");return n}var gn,Ai=180/Math.PI,Ki={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function un(f,T,n,d,k,H){var ae,Se,ht;return(ae=Math.sqrt(f*f+T*T))&&(f/=ae,T/=ae),(ht=f*n+T*d)&&(n-=f*ht,d-=T*ht),(Se=Math.sqrt(n*n+d*d))&&(n/=Se,d/=Se,ht/=Se),f*d180?Dt+=360:Dt-mt>180&&(mt+=360),Ut.push({i:Ht.push(k(Ht)+"rotate(",null,d)-2,x:me(mt,Dt)})):Dt&&Ht.push(k(Ht)+"rotate("+Dt+d)}(mt.rotate,Dt.rotate,Ht,Ut),function Se(mt,Dt,Ht,Ut){mt!==Dt?Ut.push({i:Ht.push(k(Ht)+"skewX(",null,d)-2,x:me(mt,Dt)}):Dt&&Ht.push(k(Ht)+"skewX("+Dt+d)}(mt.skewX,Dt.skewX,Ht,Ut),function ht(mt,Dt,Ht,Ut,ni,bi){if(mt!==Ht||Dt!==Ut){var zi=ni.push(k(ni)+"scale(",null,",",null,")");bi.push({i:zi-4,x:me(mt,Ht)},{i:zi-2,x:me(Dt,Ut)})}else(1!==Ht||1!==Ut)&&ni.push(k(ni)+"scale("+Ht+","+Ut+")")}(mt.scaleX,mt.scaleY,Dt.scaleX,Dt.scaleY,Ht,Ut),mt=Dt=null,function(ni){for(var di,bi=-1,zi=Ut.length;++bi=0&&(T=T.slice(0,n)),!T||"start"===T})}(T)?Et:It;return function(){var ae=H(this,f),Se=ae.on;Se!==d&&(k=(d=Se).copy()).on(T,n),ae.on=k}}var Ye=qi.prototype.constructor;function $e(f){return function(){this.style.removeProperty(f)}}function Ei(f,T,n){return function(d){this.style.setProperty(f,T.call(this,d),n)}}function an(f,T,n){var d,k;function H(){var ae=T.apply(this,arguments);return ae!==k&&(d=(k=ae)&&Ei(f,ae,n)),d}return H._value=T,H}function ao(f){return function(T){this.textContent=f.call(this,T)}}function ea(f){var T,n;function d(){var k=f.apply(this,arguments);return k!==n&&(T=(n=k)&&ao(k)),T}return d._value=f,d}var bs=0;function Ea(f,T,n,d){this._groups=f,this._parents=T,this._name=n,this._id=d}function yo(){return++bs}var so=qi.prototype;Ea.prototype=function Ol(f){return qi().transition(f)}.prototype={constructor:Ea,select:function rl(f){var T=this._name,n=this._id;"function"!=typeof f&&(f=s(f));for(var d=this._groups,k=d.length,H=new Array(k),ae=0;ae2&&d.state<5,d.state=6,d.timer.stop(),d.on.call(k?"interrupt":"cancel",f,f.__data__,d.index,d.group),delete n[ae]):H=!1;H&&delete f.__transition}}(this,f)})},qi.prototype.transition=function Pa(f){var T,n;f instanceof Ea?(T=f._id,f=f._name):(T=yo(),(n=ko).time=Nn(),f=null==f?null:f+"");for(var d=this._groups,k=d.length,H=0;HT?1:f>=T?0:NaN}function js(f){let T=f,n=f;function d(ae,Se,ht,mt){for(null==ht&&(ht=0),null==mt&&(mt=ae.length);ht>>1;n(ae[Dt],Se)<0?ht=Dt+1:mt=Dt}return ht}return 1===f.length&&(T=(ae,Se)=>f(ae)-Se,n=function l1(f){return(T,n)=>Nl(f(T),n)}(f)),{left:d,center:function H(ae,Se,ht,mt){null==ht&&(ht=0),null==mt&&(mt=ae.length);const Dt=d(ae,Se,ht,mt-1);return Dt>ht&&T(ae[Dt-1],Se)>-T(ae[Dt],Se)?Dt-1:Dt},right:function k(ae,Se,ht,mt){for(null==ht&&(ht=0),null==mt&&(mt=ae.length);ht>>1;n(ae[Dt],Se)>0?mt=Dt:ht=Dt+1}return ht}}}["w","e"].map(Ws),["n","s"].map(Ws),["n","w","e","s","nw","ne","sw","se"].map(Ws);var pc=Math.sqrt(50),mc=Math.sqrt(10),gc=Math.sqrt(2);function Rl(f,T,n){var d=(T-f)/Math.max(0,n),k=Math.floor(Math.log(d)/Math.LN10),H=d/Math.pow(10,k);return k>=0?(H>=pc?10:H>=mc?5:H>=gc?2:1)*Math.pow(10,k):-Math.pow(10,-k)/(H>=pc?10:H>=mc?5:H>=gc?2:1)}function Fo(f,T,n){var d=Math.abs(T-f)/Math.max(0,n),k=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),H=d/k;return H>=pc?k*=10:H>=mc?k*=5:H>=gc&&(k*=2),T0))return ht;do{ht.push(mt=new Date(+H)),T(H,Se),f(H)}while(mt=ae)for(;f(ae),!H(ae);)ae.setTime(ae-1)},function(ae,Se){if(ae>=ae)if(Se<0)for(;++Se<=0;)for(;T(ae,-1),!H(ae););else for(;--Se>=0;)for(;T(ae,1),!H(ae););})},n&&(k.count=function(H,ae){return Fl.setTime(+H),yc.setTime(+ae),f(Fl),f(yc),Math.floor(n(Fl,yc))},k.every=function(H){return H=Math.floor(H),isFinite(H)&&H>0?H>1?k.filter(d?function(ae){return d(ae)%H==0}:function(ae){return k.count(0,ae)%H==0}):k:null}),k}var ll=ta(function(){},function(f,T){f.setTime(+f+T)},function(f,T){return T-f});ll.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?ta(function(T){T.setTime(Math.floor(T/f)*f)},function(T,n){T.setTime(+T+n*f)},function(T,n){return(n-T)/f}):ll:null};const v0=ll;const cl=ta(function(f){f.setTime(f-f.getMilliseconds())},function(f,T){f.setTime(+f+T*lo)},function(f,T){return(T-f)/lo},function(f){return f.getUTCSeconds()});const u1=ta(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo)},function(f,T){f.setTime(+f+T*za)},function(f,T){return(T-f)/za},function(f){return f.getMinutes()});const Ho=ta(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo-f.getMinutes()*za)},function(f,T){f.setTime(+f+T*Cs)},function(f,T){return(T-f)/Cs},function(f){return f.getHours()});const qs=ta(f=>f.setHours(0,0,0,0),(f,T)=>f.setDate(f.getDate()+T),(f,T)=>(T-f-(T.getTimezoneOffset()-f.getTimezoneOffset())*za)/Ns,f=>f.getDate()-1);function co(f){return ta(function(T){T.setDate(T.getDate()-(T.getDay()+7-f)%7),T.setHours(0,0,0,0)},function(T,n){T.setDate(T.getDate()+7*n)},function(T,n){return(n-T-(n.getTimezoneOffset()-T.getTimezoneOffset())*za)/_c})}var Uo=co(0),xo=co(1),Zo=(co(2),co(3),co(4));const Yo=(co(5),co(6),ta(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,T){f.setMonth(f.getMonth()+T)},function(f,T){return T.getMonth()-f.getMonth()+12*(T.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var ho=ta(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,T){f.setFullYear(f.getFullYear()+T)},function(f,T){return T.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});ho.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ta(function(T){T.setFullYear(Math.floor(T.getFullYear()/f)*f),T.setMonth(0,1),T.setHours(0,0,0,0)},function(T,n){T.setFullYear(T.getFullYear()+n*f)}):null};const uo=ho;const Hl=ta(function(f){f.setUTCSeconds(0,0)},function(f,T){f.setTime(+f+T*za)},function(f,T){return(T-f)/za},function(f){return f.getUTCMinutes()});const B=ta(function(f){f.setUTCMinutes(0,0,0)},function(f,T){f.setTime(+f+T*Cs)},function(f,T){return(T-f)/Cs},function(f){return f.getUTCHours()});const fi=ta(function(f){f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCDate(f.getUTCDate()+T)},function(f,T){return(T-f)/Ns},function(f){return f.getUTCDate()-1});function tr(f){return ta(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-f)%7),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCDate(T.getUTCDate()+7*n)},function(T,n){return(n-T)/_c})}var Fn=tr(0),Br=tr(1),Na=(tr(2),tr(3),tr(4));const B4=(tr(5),tr(6),ta(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCMonth(f.getUTCMonth()+T)},function(f,T){return T.getUTCMonth()-f.getUTCMonth()+12*(T.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));var hl=ta(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCFullYear(f.getUTCFullYear()+T)},function(f,T){return T.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});hl.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ta(function(T){T.setUTCFullYear(Math.floor(T.getUTCFullYear()/f)*f),T.setUTCMonth(0,1),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCFullYear(T.getUTCFullYear()+n*f)}):null};const dl=hl;function zl(f,T,n,d,k,H){const ae=[[cl,1,lo],[cl,5,5e3],[cl,15,15e3],[cl,30,3e4],[H,1,za],[H,5,5*za],[H,15,15*za],[H,30,30*za],[k,1,Cs],[k,3,3*Cs],[k,6,6*Cs],[k,12,12*Cs],[d,1,Ns],[d,2,2*Ns],[n,1,_c],[T,1,h1],[T,3,3*h1],[f,1,vc]];function ht(mt,Dt,Ht){const Ut=Math.abs(Dt-mt)/Ht,ni=js(([,,di])=>di).right(ae,Ut);if(ni===ae.length)return f.every(Fo(mt/vc,Dt/vc,Ht));if(0===ni)return v0.every(Math.max(Fo(mt,Dt,Ht),1));const[bi,zi]=ae[Ut/ae[ni-1][2][T.toLowerCase(),n]))}function Ah(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.w=+d[0],n+d[0].length):-1}function y1(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.u=+d[0],n+d[0].length):-1}function Eh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.U=+d[0],n+d[0].length):-1}function E0(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.V=+d[0],n+d[0].length):-1}function af(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.W=+d[0],n+d[0].length):-1}function ua(f,T,n){var d=Qa.exec(T.slice(n,n+4));return d?(f.y=+d[0],n+d[0].length):-1}function T0(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.y=+d[0]+(+d[0]>68?1900:2e3),n+d[0].length):-1}function sf(f,T,n){var d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(T.slice(n,n+6));return d?(f.Z=d[1]?0:-(d[2]+(d[3]||"00")),n+d[0].length):-1}function S0(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.q=3*d[0]-3,n+d[0].length):-1}function Th(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.m=d[0]-1,n+d[0].length):-1}function Sh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.d=+d[0],n+d[0].length):-1}function lf(f,T,n){var d=Qa.exec(T.slice(n,n+3));return d?(f.m=0,f.d=+d[0],n+d[0].length):-1}function Dh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.H=+d[0],n+d[0].length):-1}function cf(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.M=+d[0],n+d[0].length):-1}function hf(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.S=+d[0],n+d[0].length):-1}function Z4(f,T,n){var d=Qa.exec(T.slice(n,n+3));return d?(f.L=+d[0],n+d[0].length):-1}function V4(f,T,n){var d=Qa.exec(T.slice(n,n+6));return d?(f.L=Math.floor(d[0]/1e3),n+d[0].length):-1}function wc(f,T,n){var d=U4.exec(T.slice(n,n+1));return d?n+d[0].length:-1}function ms(f,T,n){var d=Qa.exec(T.slice(n));return d?(f.Q=+d[0],n+d[0].length):-1}function D0(f,T,n){var d=Qa.exec(T.slice(n));return d?(f.s=+d[0],n+d[0].length):-1}function L0(f,T){return or(f.getDate(),T,2)}function Lh(f,T){return or(f.getHours(),T,2)}function ss(f,T){return or(f.getHours()%12||12,T,2)}function Ac(f,T){return or(1+qs.count(uo(f),f),T,3)}function b1(f,T){return or(f.getMilliseconds(),T,3)}function df(f,T){return b1(f,T)+"000"}function uf(f,T){return or(f.getMonth()+1,T,2)}function Oh(f,T){return or(f.getMinutes(),T,2)}function ff(f,T){return or(f.getSeconds(),T,2)}function Ih(f){var T=f.getDay();return 0===T?7:T}function Ph(f,T){return or(Uo.count(uo(f)-1,f),T,2)}function O0(f){var T=f.getDay();return T>=4||0===T?Zo(f):Zo.ceil(f)}function pf(f,T){return f=O0(f),or(Zo.count(uo(f),f)+(4===uo(f).getDay()),T,2)}function mf(f){return f.getDay()}function gf(f,T){return or(xo.count(uo(f)-1,f),T,2)}function I0(f,T){return or(f.getFullYear()%100,T,2)}function _f(f,T){return or((f=O0(f)).getFullYear()%100,T,2)}function vf(f,T){return or(f.getFullYear()%1e4,T,4)}function G4(f,T){var n=f.getDay();return or((f=n>=4||0===n?Zo(f):Zo.ceil(f)).getFullYear()%1e4,T,4)}function P0(f){var T=f.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+or(T/60|0,"0",2)+or(T%60,"0",2)}function kh(f,T){return or(f.getUTCDate(),T,2)}function yf(f,T){return or(f.getUTCHours(),T,2)}function Ec(f,T){return or(f.getUTCHours()%12||12,T,2)}function bf(f,T){return or(1+fi.count(dl(f),f),T,3)}function Nh(f,T){return or(f.getUTCMilliseconds(),T,3)}function xf(f,T){return Nh(f,T)+"000"}function Cf(f,T){return or(f.getUTCMonth()+1,T,2)}function Mf(f,T){return or(f.getUTCMinutes(),T,2)}function Rh(f,T){return or(f.getUTCSeconds(),T,2)}function wf(f){var T=f.getUTCDay();return 0===T?7:T}function Af(f,T){return or(Fn.count(dl(f)-1,f),T,2)}function Fh(f){var T=f.getUTCDay();return T>=4||0===T?Na(f):Na.ceil(f)}function Ef(f,T){return f=Fh(f),or(Na.count(dl(f),f)+(4===dl(f).getUTCDay()),T,2)}function Bh(f){return f.getUTCDay()}function Hh(f,T){return or(Br.count(dl(f)-1,f),T,2)}function Tf(f,T){return or(f.getUTCFullYear()%100,T,2)}function Sf(f,T){return or((f=Fh(f)).getUTCFullYear()%100,T,2)}function Ul(f,T){return or(f.getUTCFullYear()%1e4,T,4)}function po(f,T){var n=f.getUTCDay();return or((f=n>=4||0===n?Na(f):Na.ceil(f)).getUTCFullYear()%1e4,T,4)}function Y4(){return"+0000"}function Df(){return"%"}function k0(f){return+f}function Lf(f){return Math.floor(+f/1e3)}function N0(f){return null===f?NaN:+f}!function Tc(f){(function A0(f){var T=f.dateTime,n=f.date,d=f.time,k=f.periods,H=f.days,ae=f.shortDays,Se=f.months,ht=f.shortMonths,mt=Cc(k),Dt=Mc(k),Ht=Cc(H),Ut=Mc(H),ni=Cc(ae),bi=Mc(ae),zi=Cc(Se),di=Mc(Se),Vi=Cc(ht),Gi=Mc(ht),Qi={a:function _r(ln){return ae[ln.getDay()]},A:function Za(ln){return H[ln.getDay()]},b:function Xn(ln){return ht[ln.getMonth()]},B:function fa(ln){return Se[ln.getMonth()]},c:null,d:L0,e:L0,f:df,g:_f,G:G4,H:Lh,I:ss,j:Ac,L:b1,m:uf,M:Oh,p:function Qr(ln){return k[+(ln.getHours()>=12)]},q:function na(ln){return 1+~~(ln.getMonth()/3)},Q:k0,s:Lf,S:ff,u:Ih,U:Ph,V:pf,w:mf,W:gf,x:null,X:null,y:I0,Y:vf,Z:P0,"%":Df},cn={a:function Tl(ln){return ae[ln.getUTCDay()]},A:function _s(ln){return H[ln.getUTCDay()]},b:function el(ln){return ht[ln.getUTCMonth()]},B:function vo(ln){return Se[ln.getUTCMonth()]},c:null,d:kh,e:kh,f:xf,g:Sf,G:po,H:yf,I:Ec,j:bf,L:Nh,m:Cf,M:Mf,p:function Va(ln){return k[+(ln.getUTCHours()>=12)]},q:function Sl(ln){return 1+~~(ln.getUTCMonth()/3)},Q:k0,s:Lf,S:Rh,u:wf,U:Af,V:Ef,w:Bh,W:Hh,x:null,X:null,y:Tf,Y:Ul,Z:Y4,"%":Df},fn={a:function cr(ln,Bn,nr){var ji=ni.exec(Bn.slice(nr));return ji?(ln.w=bi.get(ji[0].toLowerCase()),nr+ji[0].length):-1},A:function hn(ln,Bn,nr){var ji=Ht.exec(Bn.slice(nr));return ji?(ln.w=Ut.get(ji[0].toLowerCase()),nr+ji[0].length):-1},b:function bn(ln,Bn,nr){var ji=Vi.exec(Bn.slice(nr));return ji?(ln.m=Gi.get(ji[0].toLowerCase()),nr+ji[0].length):-1},B:function mn(ln,Bn,nr){var ji=zi.exec(Bn.slice(nr));return ji?(ln.m=di.get(ji[0].toLowerCase()),nr+ji[0].length):-1},c:function hr(ln,Bn,nr){return qn(ln,T,Bn,nr)},d:Sh,e:Sh,f:V4,g:T0,G:ua,H:Dh,I:Dh,j:lf,L:Z4,m:Th,M:cf,p:function zr(ln,Bn,nr){var ji=mt.exec(Bn.slice(nr));return ji?(ln.p=Dt.get(ji[0].toLowerCase()),nr+ji[0].length):-1},q:S0,Q:ms,s:D0,S:hf,u:y1,U:Eh,V:E0,w:Ah,W:af,x:function Sa(ln,Bn,nr){return qn(ln,n,Bn,nr)},X:function br(ln,Bn,nr){return qn(ln,d,Bn,nr)},y:T0,Y:ua,Z:sf,"%":wc};function en(ln,Bn){return function(nr){var Is,Hn,Ca,ji=[],Da=-1,Dr=0,Os=ln.length;for(nr instanceof Date||(nr=new Date(+nr));++Da53)return null;"w"in ji||(ji.w=1),"Z"in ji?(Os=(Dr=Mh(ul(ji.y,0,1))).getUTCDay(),Dr=Os>4||0===Os?Br.ceil(Dr):Br(Dr),Dr=fi.offset(Dr,7*(ji.V-1)),ji.y=Dr.getUTCFullYear(),ji.m=Dr.getUTCMonth(),ji.d=Dr.getUTCDate()+(ji.w+6)%7):(Os=(Dr=Ch(ul(ji.y,0,1))).getDay(),Dr=Os>4||0===Os?xo.ceil(Dr):xo(Dr),Dr=qs.offset(Dr,7*(ji.V-1)),ji.y=Dr.getFullYear(),ji.m=Dr.getMonth(),ji.d=Dr.getDate()+(ji.w+6)%7)}else("W"in ji||"U"in ji)&&("w"in ji||(ji.w="u"in ji?ji.u%7:"W"in ji?1:0),Os="Z"in ji?Mh(ul(ji.y,0,1)).getUTCDay():Ch(ul(ji.y,0,1)).getDay(),ji.m=0,ji.d="W"in ji?(ji.w+6)%7+7*ji.W-(Os+5)%7:ji.w+7*ji.U-(Os+6)%7);return"Z"in ji?(ji.H+=ji.Z/100|0,ji.M+=ji.Z%100,Mh(ji)):Ch(ji)}}function qn(ln,Bn,nr,ji){for(var Is,Hn,Da=0,Dr=Bn.length,Os=nr.length;Da=Os)return-1;if(37===(Is=Bn.charCodeAt(Da++))){if(Is=Bn.charAt(Da++),!(Hn=fn[Is in v1?Bn.charAt(Da++):Is])||(ji=Hn(ln,nr,ji))<0)return-1}else if(Is!=nr.charCodeAt(ji++))return-1}return ji}return Qi.x=en(n,Qi),Qi.X=en(d,Qi),Qi.c=en(T,Qi),cn.x=en(n,cn),cn.X=en(d,cn),cn.c=en(T,cn),{format:function(ln){var Bn=en(ln+="",Qi);return Bn.toString=function(){return ln},Bn},parse:function(ln){var Bn=gr(ln+="",!1);return Bn.toString=function(){return ln},Bn},utcFormat:function(ln){var Bn=en(ln+="",cn);return Bn.toString=function(){return ln},Bn},utcParse:function(ln){var Bn=gr(ln+="",!0);return Bn.toString=function(){return ln},Bn}}})(f)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const R0=js(Nl).right,fl=(js(N0),R0);function F0(f,T){return f=+f,T=+T,function(n){return Math.round(f*(1-n)+T*n)}}function Pf(f){return+f}var w1=[0,1];function Zl(f){return f}function B0(f,T){return(T-=f=+f)?function(n){return(n-f)/T}:function Zh(f){return function(){return f}}(isNaN(T)?NaN:.5)}function Nf(f,T,n){var d=f[0],k=f[1],H=T[0],ae=T[1];return kT&&(n=f,f=T,T=n),function(d){return Math.max(f,Math.min(T,d))}}(f[0],f[Ut-1])),Se=Ut>2?Rf:Nf,ht=mt=null,Ht}function Ht(Ut){return null==Ut||isNaN(Ut=+Ut)?H:(ht||(ht=Se(f.map(d),T,n)))(d(ae(Ut)))}return Ht.invert=function(Ut){return ae(k((mt||(mt=Se(T,f.map(d),me)))(Ut)))},Ht.domain=function(Ut){return arguments.length?(f=Array.from(Ut,Pf),Dt()):f.slice()},Ht.range=function(Ut){return arguments.length?(T=Array.from(Ut),Dt()):T.slice()},Ht.rangeRound=function(Ut){return T=Array.from(Ut),n=F0,Dt()},Ht.clamp=function(Ut){return arguments.length?(ae=!!Ut||Zl,Dt()):ae!==Zl},Ht.interpolate=function(Ut){return arguments.length?(n=Ut,Dt()):n},Ht.unknown=function(Ut){return arguments.length?(H=Ut,Ht):H},function(Ut,ni){return d=Ut,k=ni,Dt()}}()(Zl,Zl)}function pl(f,T){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(T).domain(f)}return this}var Dc,z0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Sc(f){if(!(T=z0.exec(f)))throw new Error("invalid format: "+f);var T;return new E1({fill:T[1],align:T[2],sign:T[3],symbol:T[4],zero:T[5],width:T[6],comma:T[7],precision:T[8]&&T[8].slice(1),trim:T[9],type:T[10]})}function E1(f){this.fill=void 0===f.fill?" ":f.fill+"",this.align=void 0===f.align?">":f.align+"",this.sign=void 0===f.sign?"-":f.sign+"",this.symbol=void 0===f.symbol?"":f.symbol+"",this.zero=!!f.zero,this.width=void 0===f.width?void 0:+f.width,this.comma=!!f.comma,this.precision=void 0===f.precision?void 0:+f.precision,this.trim=!!f.trim,this.type=void 0===f.type?"":f.type+""}function S1(f,T){if((n=(f=T?f.toExponential(T-1):f.toExponential()).indexOf("e"))<0)return null;var n,d=f.slice(0,n);return[d.length>1?d[0]+d.slice(2):d,+f.slice(n+1)]}function ml(f){return(f=S1(Math.abs(f)))?f[1]:NaN}function V0(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],k=n[1];return k<0?"0."+new Array(-k).join("0")+d:d.length>k+1?d.slice(0,k+1)+"."+d.slice(k+1):d+new Array(k-d.length+2).join("0")}Sc.prototype=E1.prototype,E1.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 L1={"%":(f,T)=>(100*f).toFixed(T),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function T1(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,T)=>f.toExponential(T),f:(f,T)=>f.toFixed(T),g:(f,T)=>f.toPrecision(T),o:f=>Math.round(f).toString(8),p:(f,T)=>V0(100*f,T),r:V0,s:function D1(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],k=n[1],H=k-(Dc=3*Math.max(-8,Math.min(8,Math.floor(k/3))))+1,ae=d.length;return H===ae?d:H>ae?d+new Array(H-ae+1).join("0"):H>0?d.slice(0,H)+"."+d.slice(H):"0."+new Array(1-H).join("0")+S1(f,Math.max(0,T+H-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function G0(f){return f}var Lc,Y0,Kh,O1=Array.prototype.map,Vl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Xh(f){var T=f.domain;return f.ticks=function(n){var d=T();return function c1(f,T,n){var d,H,ae,Se,k=-1;if(n=+n,(f=+f)==(T=+T)&&n>0)return[f];if((d=T0){let ht=Math.round(f/Se),mt=Math.round(T/Se);for(ht*SeT&&--mt,ae=new Array(H=mt-ht+1);++kT&&--mt,ae=new Array(H=mt-ht+1);++k0;){if((mt=Rl(ae,Se,n))===ht)return d[k]=ae,d[H]=Se,T(d);if(mt>0)ae=Math.floor(ae/mt)*mt,Se=Math.ceil(Se/mt)*mt;else{if(!(mt<0))break;ae=Math.ceil(ae*mt)/mt,Se=Math.floor(Se*mt)/mt}ht=mt}return f},f}function Ar(){var f=A1();return f.copy=function(){return Vh(f,Ar())},pl.apply(f,arguments),Xh(f)}function j0(f,T,n){f=+f,T=+T,n=(k=arguments.length)<2?(T=f,f=0,1):k<3?1:+n;for(var d=-1,k=0|Math.max(0,Math.ceil((T-f)/n)),H=new Array(k);++d0&&Se>0&&(ht+Se+1>d&&(Se=Math.max(1,d-ht)),H.push(n.substring(k-=Se,k+Se)),!((ht+=Se+1)>d));)Se=f[ae=(ae+1)%f.length];return H.reverse().join(T)}}(O1.call(f.grouping,Number),f.thousands+""),n=void 0===f.currency?"":f.currency[0]+"",d=void 0===f.currency?"":f.currency[1]+"",k=void 0===f.decimal?".":f.decimal+"",H=void 0===f.numerals?G0:function U0(f){return function(T){return T.replace(/[0-9]/g,function(n){return f[+n]})}}(O1.call(f.numerals,String)),ae=void 0===f.percent?"%":f.percent+"",Se=void 0===f.minus?"\u2212":f.minus+"",ht=void 0===f.nan?"NaN":f.nan+"";function mt(Ht){var Ut=(Ht=Sc(Ht)).fill,ni=Ht.align,bi=Ht.sign,zi=Ht.symbol,di=Ht.zero,Vi=Ht.width,Gi=Ht.comma,Qi=Ht.precision,cn=Ht.trim,fn=Ht.type;"n"===fn?(Gi=!0,fn="g"):L1[fn]||(void 0===Qi&&(Qi=12),cn=!0,fn="g"),(di||"0"===Ut&&"="===ni)&&(di=!0,Ut="0",ni="=");var en="$"===zi?n:"#"===zi&&/[boxX]/.test(fn)?"0"+fn.toLowerCase():"",gr="$"===zi?d:/[%p]/.test(fn)?ae:"",qn=L1[fn],zr=/[defgprs%]/.test(fn);function cr(hn){var hr,Sa,br,bn=en,mn=gr;if("c"===fn)mn=qn(hn)+mn,hn="";else{var _r=(hn=+hn)<0||1/hn<0;if(hn=isNaN(hn)?ht:qn(Math.abs(hn),Qi),cn&&(hn=function Z0(f){e:for(var k,T=f.length,n=1,d=-1;n0&&(d=0)}return d>0?f.slice(0,d)+f.slice(k+1):f}(hn)),_r&&0==+hn&&"+"!==bi&&(_r=!1),bn=(_r?"("===bi?bi:Se:"-"===bi||"("===bi?"":bi)+bn,mn=("s"===fn?Vl[8+Dc/3]:"")+mn+(_r&&"("===bi?")":""),zr)for(hr=-1,Sa=hn.length;++hr(br=hn.charCodeAt(hr))||br>57){mn=(46===br?k+hn.slice(hr+1):hn.slice(hr))+mn,hn=hn.slice(0,hr);break}}Gi&&!di&&(hn=T(hn,1/0));var Za=bn.length+hn.length+mn.length,Xn=Za>1)+bn+hn+mn+Xn.slice(Za);break;default:hn=Xn+bn+hn+mn}return H(hn)}return Qi=void 0===Qi?6:/[gprs]/.test(fn)?Math.max(1,Math.min(21,Qi)):Math.max(0,Math.min(20,Qi)),cr.toString=function(){return Ht+""},cr}return{format:mt,formatPrefix:function Dt(Ht,Ut){var ni=mt(((Ht=Sc(Ht)).type="f",Ht)),bi=3*Math.max(-8,Math.min(8,Math.floor(ml(Ut)/3))),zi=Math.pow(10,-bi),di=Vl[8+bi/3];return function(Vi){return ni(zi*Vi)+di}}}}(f),Y0=Lc.format,Kh=Lc.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const $h=Symbol("implicit");function I1(){var f=new Map,T=[],n=[],d=$h;function k(H){var ae=H+"",Se=f.get(ae);if(!Se){if(d!==$h)return d;f.set(ae,Se=T.push(H))}return n[(Se-1)%n.length]}return k.domain=function(H){if(!arguments.length)return T.slice();T=[],f=new Map;for(const ae of H){const Se=ae+"";f.has(Se)||f.set(Se,T.push(ae))}return k},k.range=function(H){return arguments.length?(n=Array.from(H),k):n.slice()},k.unknown=function(H){return arguments.length?(d=H,k):d},k.copy=function(){return I1(T,n).unknown(d)},pl.apply(k,arguments),k}function Er(){var H,ae,f=I1().unknown(void 0),T=f.domain,n=f.range,d=0,k=1,Se=!1,ht=0,mt=0,Dt=.5;function Ht(){var Ut=T().length,ni=k=1)return+n(f[d-1],d-1,f);var d,k=(d-1)*T,H=Math.floor(k),ae=+n(f[H],H,f);return ae+(+n(f[H+1],H+1,f)-ae)*(k-H)}}function id(){var d,f=[],T=[],n=[];function k(){var ae=0,Se=Math.max(1,T.length);for(n=new Array(Se-1);++ae0?n[Se-1]:f[0],Se=0;)T+=n[d].value;else T=1;f.value=T}function vd(f,T){f instanceof Map?(f=[void 0,f],void 0===T&&(T=n3)):void 0===T&&(T=i3);for(var d,H,ae,Se,ht,n=new Bc(f),k=[n];d=k.pop();)if((ae=T(d.data))&&(ht=(ae=Array.from(ae)).length))for(d.children=ae,Se=ht-1;Se>=0;--Se)k.push(H=ae[Se]=new Bc(ae[Se])),H.parent=d,H.depth=d.depth+1;return n.eachBefore(e6)}function i3(f){return f.children}function n3(f){return Array.isArray(f)?f[1]:null}function yd(f){void 0!==f.data.value&&(f.value=f.data.value),f.data=f.data.data}function e6(f){var T=0;do{f.height=T}while((f=f.parent)&&f.height<++T)}function Bc(f){this.data=f,this.depth=this.height=0,this.parent=null}ws.prototype=function q0(){return new ws}.prototype={constructor:ws,moveTo:function(f,T){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(f,T){this._+="L"+(this._x1=+f)+","+(this._y1=+T)},quadraticCurveTo:function(f,T,n,d){this._+="Q"+ +f+","+ +T+","+(this._x1=+n)+","+(this._y1=+d)},bezierCurveTo:function(f,T,n,d,k,H){this._+="C"+ +f+","+ +T+","+ +n+","+ +d+","+(this._x1=+k)+","+(this._y1=+H)},arcTo:function(f,T,n,d,k){var H=this._x1,ae=this._y1,Se=(n=+n)-(f=+f),ht=(d=+d)-(T=+T),mt=H-f,Dt=ae-T,Ht=mt*mt+Dt*Dt;if((k=+k)<0)throw new Error("negative radius: "+k);if(null===this._x1)this._+="M"+(this._x1=f)+","+(this._y1=T);else if(Ht>Ko)if(Math.abs(Dt*Se-ht*mt)>Ko&&k){var Ut=n-H,ni=d-ae,bi=Se*Se+ht*ht,zi=Ut*Ut+ni*ni,di=Math.sqrt(bi),Vi=Math.sqrt(Ht),Gi=k*Math.tan((R1-Math.acos((bi+Ht-zi)/(2*di*Vi)))/2),Qi=Gi/Vi,cn=Gi/di;Math.abs(Qi-1)>Ko&&(this._+="L"+(f+Qi*mt)+","+(T+Qi*Dt)),this._+="A"+k+","+k+",0,0,"+ +(Dt*Ut>mt*ni)+","+(this._x1=f+cn*Se)+","+(this._y1=T+cn*ht)}else this._+="L"+(this._x1=f)+","+(this._y1=T)},arc:function(f,T,n,d,k,H){f=+f,T=+T,H=!!H;var ae=(n=+n)*Math.cos(d),Se=n*Math.sin(d),ht=f+ae,mt=T+Se,Dt=1^H,Ht=H?d-k:k-d;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+ht+","+mt:(Math.abs(this._x1-ht)>Ko||Math.abs(this._y1-mt)>Ko)&&(this._+="L"+ht+","+mt),n&&(Ht<0&&(Ht=Ht%F1+F1),Ht>B1?this._+="A"+n+","+n+",0,1,"+Dt+","+(f-ae)+","+(T-Se)+"A"+n+","+n+",0,1,"+Dt+","+(this._x1=ht)+","+(this._y1=mt):Ht>Ko&&(this._+="A"+n+","+n+",0,"+ +(Ht>=R1)+","+Dt+","+(this._x1=f+n*Math.cos(k))+","+(this._y1=T+n*Math.sin(k))))},rect:function(f,T,n,d){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)+"h"+ +n+"v"+ +d+"h"+-n+"Z"},toString:function(){return this._}},Ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Gl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,T):this._context.moveTo(f,T);break;case 1:this._point=2,this._x1=f,this._y1=T;break;case 2:this._point=3;default:Gl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new Ic(d,T)}return n.tension=function(d){return f(+d)},n}(0),Pc.prototype={areaStart:Uf,areaEnd:Uf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._x3=f,this._y3=T;break;case 1:this._point=2,this._context.moveTo(this._x4=f,this._y4=T);break;case 2:this._point=3,this._x5=f,this._y5=T;break;default:Gl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new Pc(d,T)}return n.tension=function(d){return f(+d)},n}(0),function sd(f){function T(n){return new ad(f(n))}return T._curve=f,T}(function Sn(f){return new nd(f)}),ad.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(f,T){this._curve.point(T*Math.sin(f),T*-Math.cos(f))}},Math,Math,Math,Math,Math,Math,Math,Math,Math,m(7293),function f(T){function n(d,k,H,ae,Se){!function Wl(f,T,n,d,k,H){for(var ht,mt,ni,bi,di,Vi,Gi,Qi,cn,fn,en,ae=[],Se=T.children,Dt=0,Ht=0,Ut=Se.length,zi=T.value;DtGi&&(Gi=mt),en=di*di*fn,(Qi=Math.max(Gi/en,en/Vi))>cn){di-=mt;break}cn=Qi}ae.push(ht={value:di,dice:ni1?d:1)},n}((1+Math.sqrt(5))/2),Bc.prototype=vd.prototype={constructor:Bc,count:function c2(){return this.eachAfter(ud)},each:function h2(f,T){let n=-1;for(const d of this)f.call(T,d,++n,this);return this},eachAfter:function Fc(f,T){for(var H,ae,Se,n=this,d=[n],k=[],ht=-1;n=d.pop();)if(k.push(n),H=n.children)for(ae=0,Se=H.length;ae=0;--H)d.push(k[H]);return this},find:function Kf(f,T){let n=-1;for(const d of this)if(f.call(T,d,++n,this))return d},sum:function pd(f){return this.eachAfter(function(T){for(var n=+f(T.data)||0,d=T.children,k=d&&d.length;--k>=0;)n+=d[k].value;T.value=n})},sort:function t3(f){return this.eachBefore(function(T){T.children&&T.children.sort(f)})},path:function md(f){for(var T=this,n=function gd(f,T){if(f===T)return f;var n=f.ancestors(),d=T.ancestors(),k=null;for(f=n.pop(),T=d.pop();f===T;)k=f,f=n.pop(),T=d.pop();return k}(T,f),d=[T];T!==n;)d.push(T=T.parent);for(var k=d.length;f!==n;)d.splice(k,0,f),f=f.parent;return d},ancestors:function Qf(){for(var f=this,T=[f];f=f.parent;)T.push(f);return T},descendants:function _d(){return Array.from(this)},leaves:function Jf(){var f=[];return this.eachBefore(function(T){T.children||f.push(T)}),f},links:function Xf(){var f=this,T=[];return f.each(function(n){n!==f&&T.push({source:n.parent,target:n})}),T},copy:function $f(){return vd(this).eachBefore(yd)},[Symbol.iterator]:function*As(){var T,d,k,H,f=this,n=[f];do{for(T=n.reverse(),n=[];f=T.pop();)if(yield f,d=f.children)for(k=0,H=d.length;k{class f{constructor(n,d,k){this.applicationRef=n,this.componentFactoryResolver=d,this.injector=k}static setGlobalRootViewContainer(n){f.globalRootViewContainer=n}getRootViewContainer(){if(this._container)return this._container;if(f.globalRootViewContainer)return f.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(n){this._container=n}getComponentRootNode(n){return function xu(f){return f.element}(n)?n.element.nativeElement:n.hostView&&n.hostView.rootNodes.length>0?n.hostView.rootNodes[0]:n.location.nativeElement}getRootViewContainerNode(n){return this.getComponentRootNode(n)}projectComponentBindings(n,d){if(d){if(void 0!==d.inputs){const k=Object.getOwnPropertyNames(d.inputs);for(const H of k)n.instance[H]=d.inputs[H]}if(void 0!==d.outputs){const k=Object.getOwnPropertyNames(d.outputs);for(const H of k)n.instance[H]=d.outputs[H]}}return n}appendComponent(n,d={},k){k||(k=this.getRootViewContainer());const H=this.getComponentRootNode(k),ae=new y.u0(H,this.componentFactoryResolver,this.applicationRef,this.injector),Se=new y.C5(n),ht=ae.attach(Se);return this.projectComponentBindings(ht,d),ht}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f.globalRootViewContainer=null,f})();function z2(f,T,n){n=n||{};let d,k,H,ae=null,Se=0;function ht(){Se=!1===n.leading?0:+new Date,ae=null,H=f.apply(d,k)}return function(){const mt=+new Date;!Se&&!1===n.leading&&(Se=mt);const Dt=T-(mt-Se);return d=this,k=arguments,Dt<=0?(clearTimeout(ae),ae=null,Se=mt,H=f.apply(d,k)):!ae&&!1!==n.trailing&&(ae=setTimeout(ht,Dt)),H}}function f4(f,T){return function(d,k,H){return{configurable:!0,enumerable:H.enumerable,get:function(){return Object.defineProperty(this,k,{configurable:!0,enumerable:H.enumerable,value:z2(H.value,f,T)}),this[k]}}}}var Dn=(()=>{return(f=Dn||(Dn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Dn;var f})();function $1(f,T,n){return n===Dn.Top?f.top-7:n===Dn.Bottom?f.top+f.height-T.height+7:n===Dn.Center?f.top+f.height/2-T.height/2:void 0}function U2(f,T,n){return n===Dn.Left?f.left-7:n===Dn.Right?f.left+f.width-T.width+7:n===Dn.Center?f.left+f.width/2-T.width/2:void 0}class Es{static calculateVerticalAlignment(T,n,d){let k=$1(T,n,d);return k+n.height>window.innerHeight&&(k=window.innerHeight-n.height),k}static calculateVerticalCaret(T,n,d,k){let H;k===Dn.Top&&(H=T.height/2-d.height/2+7),k===Dn.Bottom&&(H=n.height-T.height/2-d.height/2-7),k===Dn.Center&&(H=n.height/2-d.height/2);const ae=$1(T,n,k);return ae+n.height>window.innerHeight&&(H+=ae+n.height-window.innerHeight),H}static calculateHorizontalAlignment(T,n,d){let k=U2(T,n,d);return k+n.width>window.innerWidth&&(k=window.innerWidth-n.width),k}static calculateHorizontalCaret(T,n,d,k){let H;k===Dn.Left&&(H=T.width/2-d.width/2+7),k===Dn.Right&&(H=n.width-T.width/2-d.width/2-7),k===Dn.Center&&(H=n.width/2-d.width/2);const ae=U2(T,n,k);return ae+n.width>window.innerWidth&&(H+=ae+n.width-window.innerWidth),H}static shouldFlip(T,n,d,k){let H=!1;return d===Dn.Right&&T.left+T.width+n.width+k>window.innerWidth&&(H=!0),d===Dn.Left&&T.left-n.width-k<0&&(H=!0),d===Dn.Top&&T.top-n.height-k<0&&(H=!0),d===Dn.Bottom&&T.top+T.height+n.height+k>window.innerHeight&&(H=!0),H}static positionCaret(T,n,d,k,H){let ae=0,Se=0;return T===Dn.Right?(Se=-7,ae=Es.calculateVerticalCaret(d,n,k,H)):T===Dn.Left?(Se=n.width,ae=Es.calculateVerticalCaret(d,n,k,H)):T===Dn.Top?(ae=n.height,Se=Es.calculateHorizontalCaret(d,n,k,H)):T===Dn.Bottom&&(ae=-7,Se=Es.calculateHorizontalCaret(d,n,k,H)),{top:ae,left:Se}}static positionContent(T,n,d,k,H){let ae=0,Se=0;return T===Dn.Right?(Se=d.left+d.width+k,ae=Es.calculateVerticalAlignment(d,n,H)):T===Dn.Left?(Se=d.left-n.width-k,ae=Es.calculateVerticalAlignment(d,n,H)):T===Dn.Top?(ae=d.top-n.height-k,Se=Es.calculateHorizontalAlignment(d,n,H)):T===Dn.Bottom&&(ae=d.top+d.height+k,Se=Es.calculateHorizontalAlignment(d,n,H)),{top:ae,left:Se}}static determinePlacement(T,n,d,k){if(Es.shouldFlip(d,n,T,k)){if(T===Dn.Right)return Dn.Left;if(T===Dn.Left)return Dn.Right;if(T===Dn.Top)return Dn.Bottom;if(T===Dn.Bottom)return Dn.Top}return T}}let Cu=(()=>{class f{constructor(n,d,k){this.element=n,this.renderer=d,this.platformId=k}get cssClasses(){let n="ngx-charts-tooltip-content";return n+=` position-${this.placement}`,n+=` type-${this.type}`,n+=` ${this.cssClass}`,n}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,t.NF)(this.platformId))return;const n=this.element.nativeElement,d=this.host.nativeElement.getBoundingClientRect();if(!d.height&&!d.width)return;const k=n.getBoundingClientRect();this.checkFlip(d,k),this.positionContent(n,d,k),this.showCaret&&this.positionCaret(d,k),setTimeout(()=>this.renderer.addClass(n,"animate"),1)}positionContent(n,d,k){const{top:H,left:ae}=Es.positionContent(this.placement,k,d,this.spacing,this.alignment);this.renderer.setStyle(n,"top",`${H}px`),this.renderer.setStyle(n,"left",`${ae}px`)}positionCaret(n,d){const k=this.caretElm.nativeElement,H=k.getBoundingClientRect(),{top:ae,left:Se}=Es.positionCaret(this.placement,d,n,H,this.alignment);this.renderer.setStyle(k,"top",`${ae}px`),this.renderer.setStyle(k,"left",`${Se}px`)}checkFlip(n,d){this.placement=Es.determinePlacement(this.placement,d,n,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-tooltip-content"]],viewQuery:function(n,d){if(1&n&&e.Gf(xd,5),2&n){let k;e.iGM(k=e.CRH())&&(d.caretElm=k.first)}},hostVars:2,hostBindings:function(n,d){1&n&&e.NdJ("resize",function(){return d.onWindowResize()},!1,e.Jf7),2&n&&e.Tol(d.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(n,d){1&n&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,r6,2,4,"span",3),e.YNc(5,a6,1,1,"span",4),e.qZA(),e.qZA()),2&n&&(e.xp6(1),e.Gre("tooltip-caret position-",d.placement,""),e.Q6J("hidden",!d.showCaret),e.xp6(3),e.Q6J("ngIf",!d.title),e.xp6(1),e.Q6J("ngIf",d.title))},directives:[t.O5,t.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:normal;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,C.gn)([f4(100)],f.prototype,"onWindowResize",null),f})(),Vc=(()=>{class f extends class Mu{constructor(T){this.injectionService=T,this.defaults={},this.components=new Map}getByType(T=this.type){return this.components.get(T)}create(T){return this.createByType(this.type,T)}createByType(T,n){n=this.assignDefaults(n);const d=this.injectComponent(T,n);return this.register(T,d),d}destroy(T){const n=this.components.get(T.componentType);if(n&&n.length){const d=n.indexOf(T);d>-1&&(n[d].destroy(),n.splice(d,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(T){const n=this.components.get(T);if(n&&n.length){let d=n.length-1;for(;d>=0;)this.destroy(n[d--])}}injectComponent(T,n){return this.injectionService.appendComponent(T,n)}assignDefaults(T){const n=Object.assign({},this.defaults.inputs),d=Object.assign({},this.defaults.outputs);return!T.inputs&&!T.outputs&&(T={inputs:T}),n&&(T.inputs=Object.assign(Object.assign({},n),T.inputs)),d&&(T.outputs=Object.assign(Object.assign({},d),T.outputs)),T}register(T,n){this.components.has(T)||this.components.set(T,[]),this.components.get(T).push(n)}}{constructor(n){super(n),this.type=Cu}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(X1))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();var yr=(()=>{return(f=yr||(yr={})).Right="right",f.Below="below",yr;var f})(),Xo=(()=>{return(f=Xo||(Xo={})).ScaleLegend="scaleLegend",f.Legend="legend",Xo;var f})(),_i=(()=>{return(f=_i||(_i={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",_i;var f})();let Wr=(()=>{class f{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new e.vpe,this.legendLabelActivate=new e.vpe,this.legendLabelDeactivate=new e.vpe,this.LegendPosition=yr,this.LegendType=Xo}ngOnChanges(n){this.update()}update(){let n=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===yr.Right)&&(n=this.legendType===Xo.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-n)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==yr.Right?this.chartWidth:Math.floor(this.view[0]*n/12)}getLegendType(){return this.legendOptions.scaleType===_i.Linear?Xo.ScaleLegend:Xo.Legend}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[e._Bn([Vc]),e.TTD],ngContentSelectors:Ad,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(n,d){1&n&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,Md,1,5,"ngx-charts-scale-legend",2),e.YNc(4,wd,1,7,"ngx-charts-legend",3),e.qZA()),2&n&&(e.Udp("width",d.view[0],"px"),e.xp6(1),e.uIk("width",d.chartWidth)("height",d.view[1]),e.xp6(2),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.ScaleLegend),e.xp6(1),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.Legend))},directives:function(){return[t.O5,K2,q2]},encapsulation:2,changeDetection:0}),f})(),wu=(()=>{class f{constructor(n,d){this.element=n,this.zone=d,this.visible=new e.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const n=()=>{if(!this.element)return;const{offsetHeight:d,offsetWidth:k}=this.element.nativeElement;d&&k?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n())})}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b))},f.\u0275dir=e.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function Gc(f){return"[object Date]"===toString.call(f)}let jr=(()=>{class f{constructor(n,d,k,H){this.chartElement=n,this.zone=d,this.cd=k,this.platformId=H,this.scheme="cool",this.schemeType=_i.Ordinal,this.animations=!0,this.select=new e.vpe}ngOnInit(){(0,t.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new wu(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(n){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 n=this.getContainerDims();n&&(this.width=n.width,this.height=n.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 n,d;const k=this.chartElement.nativeElement;if((0,t.NF)(this.platformId)&&null!==k.parentNode){const H=k.parentNode.getBoundingClientRect();n=H.width,d=H.height}return n&&d?{width:n,height:d}:null}formatDates(){for(let n=0;n{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=d}cloneData(n){const d=[];for(const k of n){const H={name:k.name};if(void 0!==k.value&&(H.value=k.value),void 0!==k.series){H.series=[];for(const ae of k.series){const Se=Object.assign({},ae);H.series.push(Se)}}void 0!==k.extra&&(H.extra=JSON.parse(JSON.stringify(k.extra))),d.push(H)}return d}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(n,d){1&n&&e._UZ(0,"div")},encapsulation:2}),f})();var ba=(()=>{return(f=ba||(ba={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",ba;var f})();let Au=(()=>{class f{constructor(n){this.textHeight=25,this.margin=5,this.element=n.nativeElement}ngOnChanges(n){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case ba.Top:case ba.Bottom:this.y=this.offset,this.x=this.width/2;break;case ba.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case ba.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[e.TTD],attrs:go,decls:2,vars:6,template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&n&&(e.uIk("stroke-width",d.strokeWidth)("x",d.x)("y",d.y)("text-anchor",d.textAnchor)("transform",d.transform),e.xp6(1),e.hij(" ",d.label," "))},encapsulation:2,changeDetection:0}),f})();function $o(f,T=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=T?f:`${f.slice(0,T)}...`}function Eu(f,T){if(f.length>T){const n=[],d=Math.floor(f.length/T);for(let k=0;k{return(f=Xa||(Xa={})).Start="start",f.Middle="middle",f.End="end",Xa;var f})();let Tu=(()=>{class f{constructor(n){this.platformId=n,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Xa.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);n!==this.height&&(this.height=n,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const n=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()};const d=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(k){return this.scale(k)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",d&&0!==d?(this.textTransform=`rotate(${d})`,this.textAnchor=Xa.End,this.verticalSpacing=10):this.textAnchor=Xa.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(n){let d=0;this.maxTicksLength=0;for(let mt=0;mtthis.maxTicksLength&&(this.maxTicksLength=Ht)}const ae=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let Se=ae;const ht=Math.floor(this.width/n.length);for(;Se>ht&&d>-90;)d-=30,Se=Math.cos(d*(Math.PI/180))*ae;return this.approxHeight=Math.max(Math.abs(Math.sin(d*(Math.PI/180))*ae),10),d}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(100);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=Eu(n,d)),n}getMaxTicks(n){return Math.floor(this.width/n)}tickTransform(n){return"translate("+this.adjustedScale(n)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(n){return this.trimTicks?$o(n,this.maxTickLength):n}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:s6,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,o6,5,7,"g",1),e.qZA(),e.YNc(3,Ed,2,2,"g",2)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.ticks))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),ir=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=ba.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new e.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=ba}ngOnChanges(n){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:n}){const d=n+25+5;d!==this.labelOffset&&(this.labelOffset=d,setTimeout(()=>{this.dimensionsChanged.emit({height:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(Tu,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:l6,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,c6,1,12,"g",0),e.YNc(2,Td,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.xAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,Tu,Au],encapsulation:2,changeDetection:0}),f})();function Bs(f,T,n,d,k,[H,ae,Se,ht]){let mt="";return mt=`M${[f+k,T]}`,mt+="h"+((n=0===(n=Math.floor(n))?1:n)-2*k),mt+=ae?`a${[k,k]} 0 0 1 ${[k,k]}`:`h${k}v${k}`,mt+="v"+((d=0===(d=Math.floor(d))?1:d)-2*k),mt+=ht?`a${[k,k]} 0 0 1 ${[-k,k]}`:`v${k}h${-k}`,mt+="h"+(2*k-n),mt+=Se?`a${[k,k]} 0 0 1 ${[-k,-k]}`:`h${-k}v${-k}`,mt+="v"+(2*k-d),mt+=H?`a${[k,k]} 0 0 1 ${[k,-k]}`:`v${-k}h${k}`,mt+="z",mt}let Su=(()=>{class f{constructor(n){this.platformId=n,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new e.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Xa.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=ba}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);n!==this.width&&(this.width=n,this.dimensionsChanged.emit({width:n}),setTimeout(()=>this.updateDims()))}update(){let n;const d=this.orient===ba.Top||this.orient===ba.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,n=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()},this.adjustedScale=n.bandwidth?function(k){return n(k)+.5*n.bandwidth()}:n,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case ba.Top:case ba.Bottom:this.transform=function(k){return"translate("+this.adjustedScale(k)+",0)"},this.textAnchor=Xa.Middle,this.y2=this.innerTickSize*d,this.y1=this.tickSpacing*d,this.dy=d<0?"0em":".71em";break;case ba.Left:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.End,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em";break;case ba.Right:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.Start,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(n=>n.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(n=>n.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Bs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(50);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=Eu(n,d)),n}getMaxTicks(n){return Math.floor(this.height/n)}tickTransform(n){return`translate(${this.adjustedScale(n)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(n){return this.trimTicks?$o(n,this.maxTickLength):n}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(k=>this.tickTrim(this.tickFormat(k)).length))}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:f2,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,h6,5,9,"g",1),e.qZA(),e.YNc(3,d6,1,2,"path",2),e.YNc(4,p2,2,2,"g",3),e.YNc(5,f6,2,1,"g",3)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngIf",d.referenceLineLength>1&&d.refMax&&d.refMin&&d.showRefLines),e.xp6(1),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.referenceLines))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),$a=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=ba.Left,this.yAxisOffset=0,this.dimensionsChanged=new e.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(n){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===ba.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:n}){n!==this.labelOffset&&this.yOrient===ba.Right?(this.labelOffset=n+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(Su,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:p6,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(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,g2,1,14,"g",0),e.YNc(2,a3,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.yAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.yScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,Su,Au],encapsulation:2,changeDetection:0}),f})(),V2=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez]]}),f})();var cs=(()=>{return(f=cs||(cs={})).popover="popover",f.tooltip="tooltip",cs;var f})(),Ao=(()=>{return(f=Ao||(Ao={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",Ao;var f})();let Ts=(()=>{class f{constructor(n,d,k){this.tooltipService=n,this.viewContainerRef=d,this.renderer=k,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Dn.Top,this.tooltipAlignment=Dn.Center,this.tooltipType=cs.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Ao.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.focus}get listensForHover(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(n){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(n))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(n){if(this.component||this.tooltipDisabled)return;const d=n?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const k=this.createBoundOptions();this.component=this.tooltipService.create(k),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},d)}addHideListeners(n){this.mouseEnterContentEvent=this.renderer.listen(n,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(n,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",d=>{n.contains(d.target)||this.hideTooltip()}))}hideTooltip(n=!1){if(!this.component)return;const d=()=>{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),n?d():this.timeout=setTimeout(d,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(Vc),e.Y36(e.s_b),e.Y36(e.Qsj))},f.\u0275dir=e.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(n,d){1&n&&e.NdJ("focusin",function(){return d.onFocus()})("blur",function(){return d.onBlur()})("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(H){return d.onMouseLeave(H.target)})("click",function(){return d.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTitle:"tooltipTitle",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),f})(),Cl=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({providers:[X1,Vc],imports:[[t.ez]]}),f})();function Ua(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}const G2={};function es(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,G2[f]?es():(G2[f]=!0,f)}var lr=(()=>{return(f=lr||(lr={})).Vertical="vertical",f.Horizontal="horizontal",lr;var f})();let Xs=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:Id,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(n,d){1&n&&(e.O4$(),e._UZ(0,"rect",0)),2&n&&e.uIk("height",d.height)("width",d.width)("x",d.x)("y",d.y)},encapsulation:2,changeDetection:0}),f})();var ac=(()=>{return(f=ac||(ac={})).Odd="odd",f.Even="even",ac;var f})();let j2,e0=(()=>{class f{ngOnChanges(n){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(n=>{let d,k,H,ae,Se,ht=ac.Odd;if(this.orient===lr.Vertical){const mt=this.xScale(n.name);Number.parseInt((mt/this.xScale.step()).toString(),10)%2==1&&(ht=ac.Even),d=this.xScale.bandwidth()*this.xScale.paddingInner(),k=this.xScale.bandwidth()+d,H=this.dims.height,ae=this.xScale(n.name)-d/2,Se=0}else if(this.orient===lr.Horizontal){const mt=this.yScale(n.name);Number.parseInt((mt/this.yScale.step()).toString(),10)%2==1&&(ht=ac.Even),d=this.yScale.bandwidth()*this.yScale.paddingInner(),k=this.dims.width,H=this.yScale.bandwidth()+d,ae=0,Se=this.yScale(n.name)-d/2}return{name:n.name,class:ht,height:H,width:k,x:ae,y:Se}})}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[e.TTD],attrs:Mo,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(n,d){1&n&&e.YNc(0,W1,1,10,"g",0),2&n&&e.Q6J("ngForOf",d.gridPanels)},directives:[t.sg,Xs],encapsulation:2,changeDetection:0}),f})(),ts=(()=>{class f{constructor(){this.orientation=lr.Vertical}ngOnChanges(n){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===lr.Horizontal?this.x2="100%":this.orientation===lr.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[e.TTD],attrs:g6,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,_6,1,5,"stop",1),e.qZA()),2&n&&(e.Q6J("id",d.name),e.uIk("x1",d.x1)("y1",d.y1)("x2",d.x2)("y2",d.y2),e.xp6(1),e.Q6J("ngForOf",d.stops))},directives:[t.sg],encapsulation:2,changeDetection:0}),f})();"undefined"!=typeof window?j2=window:"undefined"!=typeof global&&(j2=global);let q2=(()=>{class f{constructor(n){this.cd=n,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}ngOnChanges(n){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const n=[];for(const d of this.data){const k=Ua(d);-1===n.findIndex(ae=>ae.label===k)&&n.push({label:d,formattedLabel:k,color:this.colors.getColor(d)})}return n}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.label===k.name)}activate(n){this.labelActivate.emit(n)}deactivate(n){this.labelDeactivate.emit(n)}trackBy(n,d){return d.label}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.sBO))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[e.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(n,d){1&n&&(e.TgZ(0,"div"),e.YNc(1,y6,3,1,"header",0),e.TgZ(2,"div",1),e.TgZ(3,"ul",2),e.YNc(4,C2,2,4,"li",3),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("width",d.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==d.title?null:d.title.length)>0),e.xp6(2),e.Udp("max-height",d.height-45,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(1),e.Q6J("ngForOf",d.legendEntries)("ngForTrackBy",d.trackBy))},directives:function(){return[t.O5,t.sg,Ou]},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:bold}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),f})(),Ou=(()=>{class f{constructor(){this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.toggle=new e.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},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(n,d){1&n&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return d.select.emit(d.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return d.toggle.emit(d.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA(),e.qZA()),2&n&&(e.ekj("active",d.isActive),e.Q6J("title",d.formattedLabel),e.xp6(1),e.Udp("background-color",d.color),e.xp6(2),e.hij(" ",d.trimmedLabel," "))},encapsulation:2,changeDetection:0}),f})(),K2=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(n){const d=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${d})`}gradientString(n,d){d.push(1);const k=[];return n.reverse().forEach((H,ae)=>{k.push(`${H} ${Math.round(100*d[ae])}%`)}),k.join(", ")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[e.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(n,d){1&n&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA(),e._UZ(4,"div",2),e.TgZ(5,"div",1),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("height",d.horizontal?void 0:d.height,"px")("width",d.width,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(3),e.Oqu(d.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",d.gradient),e.xp6(3),e.Oqu(d.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),f})(),Hs=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez,V2,Cl],t.ez,V2,Cl]}),f})();function qr({width:f,height:T,margins:n,showXAxis:d=!1,showYAxis:k=!1,xAxisHeight:H=0,yAxisWidth:ae=0,showXLabel:Se=!1,showYLabel:ht=!1,showLegend:mt=!1,legendType:Dt=_i.Ordinal,legendPosition:Ht=yr.Right,columns:Ut=12}){let ni=n[3],bi=f,zi=T-n[0]-n[2];return mt&&Ht===yr.Right&&(Ut-=Dt===_i.Ordinal?2:1),bi=bi*Ut/12,bi=bi-n[1]-n[3],d&&(zi-=5,zi-=H,Se&&(zi-=30)),k&&(bi-=5,bi-=ae,ni+=ae,ni+=10,ht&&(bi-=30,ni+=30)),bi=Math.max(0,bi),zi=Math.max(0,zi),{width:Math.floor(bi),height:Math.floor(zi),xOffset:Math.floor(ni)}}let X2=[{name:"vivid",selectable:!0,group:_i.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:_i.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:_i.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:_i.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:_i.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:_i.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:_i.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:_i.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:_i.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:_i.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:_i.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:_i.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:_i.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:_i.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:_i.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Kr{constructor(T,n,d,k){"string"==typeof T&&(T=X2.find(H=>H.name===T)),this.colorDomain=T.domain,this.scaleType=n,this.domain=d,this.customColors=k,this.scale=this.generateColorScheme(T,n,this.domain)}generateColorScheme(T,n,d){let k;switch("string"==typeof T&&(T=X2.find(H=>H.name===T)),n){case _i.Quantile:k=id().range(T.domain).domain(d);break;case _i.Ordinal:k=I1().range(T.domain).domain(d);break;case _i.Linear:{const H=[...T.domain];1===H.length&&(H.push(H[0]),this.colorDomain=H);const ae=j0(0,1,1/H.length);k=Ar().range(H).domain(ae)}}return k}getColor(T){if(null==T)throw new Error("Value can not be null");if(this.scaleType===_i.Linear){const n=Ar().domain(this.domain).range([0,1]);return this.scale(n(T))}{if("function"==typeof this.customColors)return this.customColors(T);const n=T.toString();let d;return this.customColors&&this.customColors.length>0&&(d=this.customColors.find(k=>k.name.toLowerCase()===n.toLowerCase())),d?d.value:this.scale(T)}}getLinearGradientStops(T,n){void 0===n&&(n=this.domain[0]);const d=Ar().domain(this.domain).range([0,1]),k=Er().domain(this.colorDomain).range([0,1]),H=this.getColor(T),ae=d(n),Se=this.getColor(n),ht=d(T);let mt=1,Dt=ae;const Ht=[];for(Ht.push({color:Se,offset:ae,originalOffset:ae,opacity:1});Dt=(ht-k.bandwidth()).toFixed(4))break;Ht.push({color:Ut,offset:ni,opacity:1}),Dt=ni,mt++}}if(Ht[Ht.length-1].offset<100&&Ht.push({color:H,offset:ht,opacity:1}),ht===ae)Ht[0].offset=0,Ht[1].offset=100;else if(100!==Ht[Ht.length-1].offset)for(const Ut of Ht)Ut.offset=(Ut.offset-ae)/(ht-ae)*100;return Ht}}let m4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),s0=(()=>{class f{constructor(n){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=n.nativeElement}ngOnChanges(n){n.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+es().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 n=function ot(f){return"string"==typeof f?new yi([[document.querySelector(f)]],[document.documentElement]):new yi([[f]],kt)}(this.element).select(".bar"),d=this.getPath();this.animations?n.transition().duration(500).attr("d",d):n.attr("d",d)}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 d,n=this.getRadius();return this.roundEdges?this.orientation===lr.Vertical?(n=Math.min(this.height,n),d=Bs(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===lr.Horizontal&&(n=Math.min(this.width,n),d=Bs(this.x,this.y,1,this.height,0,this.edges)):this.orientation===lr.Vertical?d=Bs(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===lr.Horizontal&&(d=Bs(this.x,this.y,1,this.height,0,this.edges)),d}getPath(){let d,n=this.getRadius();return this.roundEdges?this.orientation===lr.Vertical?(n=Math.min(this.height,n),d=Bs(this.x,this.y,this.width,this.height,n,this.edges)):this.orientation===lr.Horizontal&&(n=Math.min(this.width,n),d=Bs(this.x,this.y,this.width,this.height,n,this.edges)):d=Bs(this.x,this.y,this.width,this.height,n,this.edges),d}getRadius(){let n=0;return this.roundEdges&&this.height>5&&this.width>5&&(n=Math.floor(Math.min(5,this.height/2,this.width/2))),n}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let n=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===lr.Vertical?n=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===lr.Horizontal&&(n=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),n}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===lr.Vertical&&0===this.height||this.orientation===lr.Horizontal&&0===this.width)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:h3,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(n,d){1&n&&(e.YNc(0,Js,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return d.select.emit(d.data)}),e.qZA()),2&n&&(e.Q6J("ngIf",d.hasGradient),e.xp6(1),e.ekj("active",d.isActive)("hidden",d.hideBar),e.uIk("d",d.path)("aria-label",d.ariaLabel)("fill",d.hasGradient?d.gradientFill:d.fill))},directives:[t.O5,ts],encapsulation:2,changeDetection:0}),f})();var xa=(()=>{return(f=xa||(xa={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",xa;var f})();let g4=(()=>{class f extends jr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=qr({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 n=this.xDomain.length/(this.dims.width/this.barPadding+1);return Er().range([0,this.dims.width]).paddingInner(n).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const n=Ar().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?n.nice():n}getXDomain(){return this.results.map(n=>n.label)}getYDomain(){const n=this.results.map(H=>H.value);let d=this.yScaleMin?Math.min(this.yScaleMin,...n):Math.min(0,...n);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(d=Math.min(d,...this.yAxisTicks));let k=this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(k=Math.max(k,...this.yAxisTicks)),[d,k]}onClick(n){this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.xDomain:this.yDomain,this.colors=new Kr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.xDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.yDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onDataLabelMaxHeightChanged(n){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),n.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name),!(this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series)>-1)&&(this.activeEntries=[n,...this.activeEntries],this.activate.emit({value:n,entries:this.activeEntries}))}onDeactivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name);const k=this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series);this.activeEntries.splice(k,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:n,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,Hr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(H){return d.onClick(H)})("legendLabelActivate",function(H){return d.onActivate(H,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,N6,1,11,"g",2),e.YNc(3,R6,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(H){return d.onActivate(H)})("deactivate",function(H){return d.onDeactivate(H)})("select",function(H){return d.onClick(H)})("dataLabelHeightChanged",function(H){return d.onDataLabelMaxHeightChanged(H)}),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(22,vr,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("xScale",d.xScale)("yScale",d.yScale)("colors",d.colors)("series",d.results)("dims",d.dims)("gradient",d.gradient)("tooltipDisabled",d.tooltipDisabled)("tooltipTemplate",d.tooltipTemplate)("showDataLabel",d.showDataLabel)("dataLabelFormatting",d.dataLabelFormatting)("activeEntries",d.activeEntries)("roundEdges",d.roundEdges)("animations",d.animations)("noBarWhenZero",d.noBarWhenZero))},directives:function(){return[Wr,t.O5,qc,ir,$a]},styles:[oa],encapsulation:2,changeDetection:0}),f})(),_4=(()=>{class f extends jr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.Right,this.tooltipDisabled=!1,this.scaleType=_i.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.barOrientation=lr,this.trackBy=(n,d)=>d.name}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=qr({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(n,d){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),d===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const n=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Er().rangeRound([0,this.dims.width]).paddingInner(n).paddingOuter(n/2).domain(this.groupDomain)}getInnerScale(){const n=this.groupScale.bandwidth(),d=this.innerDomain.length/(n/this.barPadding+1);return Er().rangeRound([0,n]).paddingInner(d).domain(this.innerDomain)}getValueScale(){const n=Ar().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?n.nice():n}getGroupDomain(){const n=[];for(const d of this.results)n.includes(d.label)||n.push(d.label);return n}getInnerDomain(){const n=[];for(const d of this.results)for(const k of d.series)n.includes(k.label)||n.push(k.label);return n}getValueDomain(){const n=[];for(const H of this.results)for(const ae of H.series)n.includes(ae.value)||n.push(ae.value);return[Math.min(0,...n),this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n)]}groupTransform(n){return`translate(${this.groupScale(n.label)}, 0)`}onClick(n,d){d&&(n.series=d.name),this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Kr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.innerDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.valueDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onActivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name);const ae=this.results.map(Se=>Se.series).flat().filter(Se=>k?Se.label===H.name:Se.name===H.name&&Se.series===H.series);this.activeEntries=[...ae],this.activate.emit({value:H,entries:this.activeEntries})}onDeactivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name),this.activeEntries=this.activeEntries.filter(ae=>k?ae.label!==H.name:!(ae.name===H.name&&ae.series===H.series)),this.deactivate.emit({value:H,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,Hr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,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"],["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-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"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(H){return d.onActivate(H,void 0,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,void 0,!0)})("legendLabelClick",function(H){return d.onClick(H)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,F6,1,10,"g",3),e.YNc(4,B6,1,9,"g",4),e.YNc(5,H6,1,17,"g",5),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(15,vr,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("xScale",d.groupScale)("yScale",d.valueScale)("data",d.results)("dims",d.dims)("orient",d.barOrientation.Vertical),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("ngForOf",d.results)("ngForTrackBy",d.trackBy))},directives:function(){return[Wr,e0,t.O5,t.sg,ir,$a,qc]},styles:[oa],encapsulation:2,data:{animation:[(0,l.X$)("animationState",[(0,l.eR)(":leave",[(0,l.oB)({opacity:1,transform:"*"}),(0,l.jt)(500,(0,l.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})();var Ls=(()=>{return(f=Ls||(Ls={})).positive="positive",f.negative="negative",Ls;var f})();let qc=(()=>{class f{constructor(){this.type=xa.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelHeightChanged=new e.vpe,this.barsForDataLabels=[],this.barOrientation=lr}ngOnChanges(n){this.update()}update(){let n;this.updateTooltipSettings(),this.series.length&&(n=this.xScale.bandwidth()),n=Math.round(n);const d=Math.max(this.yScale.domain()[0],0),k={[Ls.positive]:0,[Ls.negative]:0};let ae,H=Ls.positive;this.type===xa.Normalized&&(ae=this.series.map(Se=>Se.value).reduce((Se,ht)=>Se+ht,0)),this.bars=this.series.map((Se,ht)=>{let mt=Se.value;const Dt=this.getLabel(Se),Ht=Ua(Dt);H=mt>0?Ls.positive:Ls.negative;const ni={value:mt,label:Dt,roundEdges:this.roundEdges,data:Se,width:n,formattedLabel:Ht,height:0,x:0,y:0};if(this.type===xa.Standard)ni.height=Math.abs(this.yScale(mt)-this.yScale(d)),ni.x=this.xScale(Dt),ni.y=this.yScale(mt<0?0:mt);else if(this.type===xa.Stacked){const zi=k[H],di=zi+mt;k[H]+=mt,ni.height=this.yScale(zi)-this.yScale(di),ni.x=0,ni.y=this.yScale(di),ni.offset0=zi,ni.offset1=di}else if(this.type===xa.Normalized){let zi=k[H],di=zi+mt;k[H]+=mt,ae>0?(zi=100*zi/ae,di=100*di/ae):(zi=0,di=0),ni.height=this.yScale(zi)-this.yScale(di),ni.x=0,ni.y=this.yScale(di),ni.offset0=zi,ni.offset1=di,mt=(di-zi).toFixed(2)+"%"}this.colors.scaleType===_i.Ordinal?ni.color=this.colors.getColor(Dt):this.type===xa.Standard?(ni.color=this.colors.getColor(mt),ni.gradientStops=this.colors.getLinearGradientStops(mt)):(ni.color=this.colors.getColor(ni.offset1),ni.gradientStops=this.colors.getLinearGradientStops(ni.offset1,ni.offset0));let bi=Ht;return ni.ariaLabel=Ht+" "+mt.toLocaleString(),null!=this.seriesName&&(bi=`${this.seriesName} \u2022 ${Ht}`,ni.data.series=this.seriesName,ni.ariaLabel=this.seriesName+" "+ni.ariaLabel),ni.tooltipText=this.tooltipDisabled?void 0:`\n ${function Ta(f){return f.toLocaleString().replace(/[&'`"<>]/g,T=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[T]))}(bi)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(mt):mt.toLocaleString()}\n `,ni}),this.updateDataLabels()}updateDataLabels(){if(this.type===xa.Stacked){this.barsForDataLabels=[];const n={};n.series=this.seriesName;const d=this.series.map(H=>H.value).reduce((H,ae)=>ae>0?H+ae:H,0),k=this.series.map(H=>H.value).reduce((H,ae)=>ae<0?H+ae:H,0);n.total=d+k,n.x=0,n.y=0,n.height=this.yScale(n.total>0?d:k),n.width=this.xScale.bandwidth(),this.barsForDataLabels.push(n)}else this.barsForDataLabels=this.series.map(n=>{var d;const k={};return k.series=null!==(d=this.seriesName)&&void 0!==d?d:n.label,k.total=n.value,k.x=this.xScale(n.label),k.y=this.yScale(0),k.height=this.yScale(k.total)-this.yScale(0),k.width=this.xScale.bandwidth(),k})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Dn.Top,this.tooltipType=this.tooltipDisabled?void 0:cs.tooltip}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.name===k.name&&n.value===k.value)}onClick(n){this.select.emit(n)}getLabel(n){return n.label?n.label:n.name}trackBy(n,d){return d.label}trackDataLabelBy(n,d){return n+"#"+d.series+"#"+d.total}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[e.TTD],attrs:ls,decls:2,vars:3,consts:[["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"],[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"],["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(n,d){1&n&&(e.YNc(0,bl,1,22,"g",0),e.YNc(1,Fs,2,2,"g",1)),2&n&&(e.Q6J("ngForOf",d.bars)("ngForTrackBy",d.trackBy),e.xp6(1),e.Q6J("ngIf",d.showDataLabel))},directives:function(){return[t.sg,t.O5,s0,Ts,ku]},encapsulation:2,data:{animation:[(0,l.X$)("animationState",[(0,l.eR)(":leave",[(0,l.oB)({opacity:1}),(0,l.jt)(500,(0,l.oB)({opacity:0}))])])]},changeDetection:0}),f})(),ku=(()=>{class f{constructor(n){this.dimensionsChanged=new e.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=n.nativeElement}ngOnChanges(n){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):Ua(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:S2,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&n&&(e.uIk("text-anchor",d.textAnchor)("transform",d.transform)("x",d.x)("y",d.y),e.xp6(1),e.hij(" ",d.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),f})(),Nu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),Bu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),zu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),El=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),y4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})();Math;let ia=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),I3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs,ia,y4]]}),f})(),w4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),E4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),J3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs,ia,Nu]]}),f})(),lh=(()=>{class f{constructor(){!function oh(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[Hs,m4,Nu,Bu,zu,El,y4,I3,w4,ia,E4,J3]}),f})()},7977:(Ge,Q,m)=>{"use strict";const e=Q;e.bignum=m(3854),e.define=m(9516).define,e.base=m(7813),e.constants=m(5459),e.decoders=m(196),e.encoders=m(1131)},9516:(Ge,Q,m)=>{"use strict";const e=m(1131),t=m(196),y=m(3894);function o(M,l){this.name=M,this.body=l,this.decoders={},this.encoders={}}Q.define=function(l,R){return new o(l,R)},o.prototype._createNamed=function(l){const R=this.name;function s(L){this._initNamed(L,R)}return y(s,l),s.prototype._initNamed=function(I,A){l.call(this,I,A)},new s(this)},o.prototype._getDecoder=function(l){return this.decoders.hasOwnProperty(l=l||"der")||(this.decoders[l]=this._createNamed(t[l])),this.decoders[l]},o.prototype.decode=function(l,R,s){return this._getDecoder(R).decode(l,s)},o.prototype._getEncoder=function(l){return this.encoders.hasOwnProperty(l=l||"der")||(this.encoders[l]=this._createNamed(e[l])),this.encoders[l]},o.prototype.encode=function(l,R,s){return this._getEncoder(R).encode(l,s)}},2769:(Ge,Q,m)=>{"use strict";const e=m(3894),t=m(4919).b,y=m(2038).Buffer;function C(M,l){t.call(this,l),y.isBuffer(M)?(this.base=M,this.offset=0,this.length=M.length):this.error("Input not Buffer")}function o(M,l){if(Array.isArray(M))this.length=0,this.value=M.map(function(R){return o.isEncoderBuffer(R)||(R=new o(R,l)),this.length+=R.length,R},this);else if("number"==typeof M){if(!(0<=M&&M<=255))return l.error("non-byte EncoderBuffer value");this.value=M,this.length=1}else if("string"==typeof M)this.value=M,this.length=y.byteLength(M);else{if(!y.isBuffer(M))return l.error("Unsupported type: "+typeof M);this.value=M,this.length=M.length}}e(C,t),Q.C=C,C.isDecoderBuffer=function(l){return l instanceof C||"object"==typeof l&&y.isBuffer(l.base)&&"DecoderBuffer"===l.constructor.name&&"number"==typeof l.offset&&"number"==typeof l.length&&"function"==typeof l.save&&"function"==typeof l.restore&&"function"==typeof l.isEmpty&&"function"==typeof l.readUInt8&&"function"==typeof l.skip&&"function"==typeof l.raw},C.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},C.prototype.restore=function(l){const R=new C(this.base);return R.offset=l.offset,R.length=this.offset,this.offset=l.offset,t.prototype.restore.call(this,l.reporter),R},C.prototype.isEmpty=function(){return this.offset===this.length},C.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},C.prototype.skip=function(l,R){if(!(this.offset+l<=this.length))return this.error(R||"DecoderBuffer overrun");const s=new C(this.base);return s._reporterState=this._reporterState,s.offset=this.offset,s.length=this.offset+l,this.offset+=l,s},C.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)},Q.R=o,o.isEncoderBuffer=function(l){return l instanceof o||"object"==typeof l&&"EncoderBuffer"===l.constructor.name&&"number"==typeof l.length&&"function"==typeof l.join},o.prototype.join=function(l,R){return l||(l=y.alloc(this.length)),R||(R=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(s){s.join(l,R),R+=s.length}):("number"==typeof this.value?l[R]=this.value:"string"==typeof this.value?l.write(this.value,R):y.isBuffer(this.value)&&this.value.copy(l,R),R+=this.length)),l}},7813:(Ge,Q,m)=>{"use strict";const e=Q;e.Reporter=m(4919).b,e.DecoderBuffer=m(2769).C,e.EncoderBuffer=m(2769).R,e.Node=m(1430)},1430:(Ge,Q,m)=>{"use strict";const e=m(4919).b,t=m(2769).R,y=m(2769).C,C=m(2391),o=["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"],M=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function R(L,I,A){const E={};this._baseState=E,E.name=A,E.enc=L,E.parent=I||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}Ge.exports=R;const s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];R.prototype.clone=function(){const I=this._baseState,A={};s.forEach(function(P){A[P]=I[P]});const E=new this.constructor(A.parent);return E._baseState=A,E},R.prototype._wrap=function(){const I=this._baseState;M.forEach(function(A){this[A]=function(){const P=new this.constructor(this);return I.children.push(P),P[A].apply(P,arguments)}},this)},R.prototype._init=function(I){const A=this._baseState;C(null===A.parent),I.call(this),A.children=A.children.filter(function(E){return E._baseState.parent===this},this),C.equal(A.children.length,1,"Root node can have only one child")},R.prototype._useArgs=function(I){const A=this._baseState,E=I.filter(function(P){return P instanceof this.constructor},this);I=I.filter(function(P){return!(P instanceof this.constructor)},this),0!==E.length&&(C(null===A.children),A.children=E,E.forEach(function(P){P._baseState.parent=this},this)),0!==I.length&&(C(null===A.args),A.args=I,A.reverseArgs=I.map(function(P){if("object"!=typeof P||P.constructor!==Object)return P;const w={};return Object.keys(P).forEach(function(V){V==(0|V)&&(V|=0),w[P[V]]=V}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(L){R.prototype[L]=function(){throw new Error(L+" not implemented for encoding: "+this._baseState.enc)}}),o.forEach(function(L){R.prototype[L]=function(){const A=this._baseState,E=Array.prototype.slice.call(arguments);return C(null===A.tag),A.tag=L,this._useArgs(E),this}}),R.prototype.use=function(I){C(I);const A=this._baseState;return C(null===A.use),A.use=I,this},R.prototype.optional=function(){return this._baseState.optional=!0,this},R.prototype.def=function(I){const A=this._baseState;return C(null===A.default),A.default=I,A.optional=!0,this},R.prototype.explicit=function(I){const A=this._baseState;return C(null===A.explicit&&null===A.implicit),A.explicit=I,this},R.prototype.implicit=function(I){const A=this._baseState;return C(null===A.explicit&&null===A.implicit),A.implicit=I,this},R.prototype.obj=function(){const I=this._baseState,A=Array.prototype.slice.call(arguments);return I.obj=!0,0!==A.length&&this._useArgs(A),this},R.prototype.key=function(I){const A=this._baseState;return C(null===A.key),A.key=I,this},R.prototype.any=function(){return this._baseState.any=!0,this},R.prototype.choice=function(I){const A=this._baseState;return C(null===A.choice),A.choice=I,this._useArgs(Object.keys(I).map(function(E){return I[E]})),this},R.prototype.contains=function(I){const A=this._baseState;return C(null===A.use),A.contains=I,this},R.prototype._decode=function(I,A){const E=this._baseState;if(null===E.parent)return I.wrapResult(E.children[0]._decode(I,A));let j,P=E.default,w=!0,V=null;if(null!==E.key&&(V=I.enterKey(E.key)),E.optional){let W=null;if(null!==E.explicit?W=E.explicit:null!==E.implicit?W=E.implicit:null!==E.tag&&(W=E.tag),null!==W||E.any){if(w=this._peekTag(I,W,E.any),I.isError(w))return w}else{const te=I.save();try{null===E.choice?this._decodeGeneric(E.tag,I,A):this._decodeChoice(I,A),w=!0}catch(ee){w=!1}I.restore(te)}}if(E.obj&&w&&(j=I.enterObject()),w){if(null!==E.explicit){const te=this._decodeTag(I,E.explicit);if(I.isError(te))return te;I=te}const W=I.offset;if(null===E.use&&null===E.choice){let te;E.any&&(te=I.save());const ee=this._decodeTag(I,null!==E.implicit?E.implicit:E.tag,E.any);if(I.isError(ee))return ee;E.any?P=I.raw(te):I=ee}if(A&&A.track&&null!==E.tag&&A.track(I.path(),W,I.length,"tagged"),A&&A.track&&null!==E.tag&&A.track(I.path(),I.offset,I.length,"content"),E.any||(P=null===E.choice?this._decodeGeneric(E.tag,I,A):this._decodeChoice(I,A)),I.isError(P))return P;if(!E.any&&null===E.choice&&null!==E.children&&E.children.forEach(function(ee){ee._decode(I,A)}),E.contains&&("octstr"===E.tag||"bitstr"===E.tag)){const te=new y(P);P=this._getUse(E.contains,I._reporterState.obj)._decode(te,A)}}return E.obj&&w&&(P=I.leaveObject(j)),null===E.key||null===P&&!0!==w?null!==V&&I.exitKey(V):I.leaveKey(V,E.key,P),P},R.prototype._decodeGeneric=function(I,A,E){const P=this._baseState;return"seq"===I||"set"===I?null:"seqof"===I||"setof"===I?this._decodeList(A,I,P.args[0],E):/str$/.test(I)?this._decodeStr(A,I,E):"objid"===I&&P.args?this._decodeObjid(A,P.args[0],P.args[1],E):"objid"===I?this._decodeObjid(A,null,null,E):"gentime"===I||"utctime"===I?this._decodeTime(A,I,E):"null_"===I?this._decodeNull(A,E):"bool"===I?this._decodeBool(A,E):"objDesc"===I?this._decodeStr(A,I,E):"int"===I||"enum"===I?this._decodeInt(A,P.args&&P.args[0],E):null!==P.use?this._getUse(P.use,A._reporterState.obj)._decode(A,E):A.error("unknown tag: "+I)},R.prototype._getUse=function(I,A){const E=this._baseState;return E.useDecoder=this._use(I,A),C(null===E.useDecoder._baseState.parent),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit&&(E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit),E.useDecoder},R.prototype._decodeChoice=function(I,A){const E=this._baseState;let P=null,w=!1;return Object.keys(E.choice).some(function(V){const j=I.save(),W=E.choice[V];try{const te=W._decode(I,A);if(I.isError(te))return!1;P={type:V,value:te},w=!0}catch(te){return I.restore(j),!1}return!0},this),w?P:I.error("Choice not matched")},R.prototype._createEncoderBuffer=function(I){return new t(I,this.reporter)},R.prototype._encode=function(I,A,E){const P=this._baseState;if(null!==P.default&&P.default===I)return;const w=this._encodeValue(I,A,E);return void 0===w||this._skipDefault(w,A,E)?void 0:w},R.prototype._encodeValue=function(I,A,E){const P=this._baseState;if(null===P.parent)return P.children[0]._encode(I,A||new e);let w=null;if(this.reporter=A,P.optional&&void 0===I){if(null===P.default)return;I=P.default}let V=null,j=!1;if(P.any)w=this._createEncoderBuffer(I);else if(P.choice)w=this._encodeChoice(I,A);else if(P.contains)V=this._getUse(P.contains,E)._encode(I,A),j=!0;else if(P.children)V=P.children.map(function(W){if("null_"===W._baseState.tag)return W._encode(null,A,I);if(null===W._baseState.key)return A.error("Child should have a key");const te=A.enterKey(W._baseState.key);if("object"!=typeof I)return A.error("Child expected, but input is not object");const ee=W._encode(I[W._baseState.key],A,I);return A.leaveKey(te),ee},this).filter(function(W){return W}),V=this._createEncoderBuffer(V);else if("seqof"===P.tag||"setof"===P.tag){if(!P.args||1!==P.args.length)return A.error("Too many args for : "+P.tag);if(!Array.isArray(I))return A.error("seqof/setof, but data is not Array");const W=this.clone();W._baseState.implicit=null,V=this._createEncoderBuffer(I.map(function(te){return this._getUse(this._baseState.args[0],I)._encode(te,A)},W))}else null!==P.use?w=this._getUse(P.use,E)._encode(I,A):(V=this._encodePrimitive(P.tag,I),j=!0);if(!P.any&&null===P.choice){const W=null!==P.implicit?P.implicit:P.tag,te=null===P.implicit?"universal":"context";null===W?null===P.use&&A.error("Tag could be omitted only for .use()"):null===P.use&&(w=this._encodeComposite(W,j,te,V))}return null!==P.explicit&&(w=this._encodeComposite(P.explicit,!1,"context",w)),w},R.prototype._encodeChoice=function(I,A){const E=this._baseState,P=E.choice[I.type];return P||C(!1,I.type+" not found in "+JSON.stringify(Object.keys(E.choice))),P._encode(I.value,A)},R.prototype._encodePrimitive=function(I,A){const E=this._baseState;if(/str$/.test(I))return this._encodeStr(A,I);if("objid"===I&&E.args)return this._encodeObjid(A,E.reverseArgs[0],E.args[1]);if("objid"===I)return this._encodeObjid(A,null,null);if("gentime"===I||"utctime"===I)return this._encodeTime(A,I);if("null_"===I)return this._encodeNull();if("int"===I||"enum"===I)return this._encodeInt(A,E.args&&E.reverseArgs[0]);if("bool"===I)return this._encodeBool(A);if("objDesc"===I)return this._encodeStr(A,I);throw new Error("Unsupported tag: "+I)},R.prototype._isNumstr=function(I){return/^[0-9 ]*$/.test(I)},R.prototype._isPrintstr=function(I){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(I)}},4919:(Ge,Q,m)=>{"use strict";const e=m(3894);function t(C){this._reporterState={obj:null,path:[],options:C||{},errors:[]}}function y(C,o){this.path=C,this.rethrow(o)}Q.b=t,t.prototype.isError=function(o){return o instanceof y},t.prototype.save=function(){const o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}},t.prototype.restore=function(o){const M=this._reporterState;M.obj=o.obj,M.path=M.path.slice(0,o.pathLen)},t.prototype.enterKey=function(o){return this._reporterState.path.push(o)},t.prototype.exitKey=function(o){const M=this._reporterState;M.path=M.path.slice(0,o-1)},t.prototype.leaveKey=function(o,M,l){const R=this._reporterState;this.exitKey(o),null!==R.obj&&(R.obj[M]=l)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){const o=this._reporterState,M=o.obj;return o.obj={},M},t.prototype.leaveObject=function(o){const M=this._reporterState,l=M.obj;return M.obj=o,l},t.prototype.error=function(o){let M;const l=this._reporterState,R=o instanceof y;if(M=R?o:new y(l.path.map(function(s){return"["+JSON.stringify(s)+"]"}).join(""),o.message||o,o.stack),!l.options.partial)throw M;return R||l.errors.push(M),M},t.prototype.wrapResult=function(o){const M=this._reporterState;return M.options.partial?{result:this.isError(o)?null:o,errors:M.errors}:o},e(y,Error),y.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,y),!this.stack)try{throw new Error(this.message)}catch(M){this.stack=M.stack}return this}},5496:(Ge,Q)=>{"use strict";function m(e){const t={};return Object.keys(e).forEach(function(y){(0|y)==y&&(y|=0),t[e[y]]=y}),t}Q.tagClass={0:"universal",1:"application",2:"context",3:"private"},Q.tagClassByName=m(Q.tagClass),Q.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"},Q.tagByName=m(Q.tag)},5459:(Ge,Q,m)=>{"use strict";const e=Q;e._reverse=function(y){const C={};return Object.keys(y).forEach(function(o){(0|o)==o&&(o|=0),C[y[o]]=o}),C},e.der=m(5496)},7127:(Ge,Q,m)=>{"use strict";const e=m(3894),t=m(3854),y=m(2769).C,C=m(1430),o=m(5496);function M(L){this.enc="der",this.name=L.name,this.entity=L,this.tree=new l,this.tree._init(L.body)}function l(L){C.call(this,"der",L)}function R(L,I){let A=L.readUInt8(I);if(L.isError(A))return A;const E=o.tagClass[A>>6],P=0==(32&A);if(31==(31&A)){let V=A;for(A=0;128==(128&V);){if(V=L.readUInt8(I),L.isError(V))return V;A<<=7,A|=127&V}}else A&=31;return{cls:E,primitive:P,tag:A,tagStr:o.tag[A]}}function s(L,I,A){let E=L.readUInt8(A);if(L.isError(E))return E;if(!I&&128===E)return null;if(0==(128&E))return E;const P=127&E;if(P>4)return L.error("length octect is too long");E=0;for(let w=0;w{"use strict";const e=Q;e.der=m(7127),e.pem=m(9617)},9617:(Ge,Q,m)=>{"use strict";const e=m(3894),t=m(2038).Buffer,y=m(7127);function C(o){y.call(this,o),this.enc="pem"}e(C,y),Ge.exports=C,C.prototype.decode=function(M,l){const R=M.toString().split(/[\r\n]+/g),s=l.label.toUpperCase(),L=/^-----(BEGIN|END) ([^-]+)-----$/;let I=-1,A=-1;for(let w=0;w{"use strict";const e=m(3894),t=m(2038).Buffer,y=m(1430),C=m(5496);function o(s){this.enc="der",this.name=s.name,this.entity=s,this.tree=new M,this.tree._init(s.body)}function M(s){y.call(this,"der",s)}function l(s){return s<10?"0"+s:s}Ge.exports=o,o.prototype.encode=function(L,I){return this.tree._encode(L,I).join()},e(M,y),M.prototype._encodeComposite=function(L,I,A,E){const P=function R(s,L,I,A){let E;if("seqof"===s?s="seq":"setof"===s&&(s="set"),C.tagByName.hasOwnProperty(s))E=C.tagByName[s];else{if("number"!=typeof s||(0|s)!==s)return A.error("Unknown tag: "+s);E=s}return E>=31?A.error("Multi-octet tag encoding unsupported"):(L||(E|=32),E|=C.tagClassByName[I||"universal"]<<6,E)}(L,I,A,this.reporter);if(E.length<128){const j=t.alloc(2);return j[0]=P,j[1]=E.length,this._createEncoderBuffer([j,E])}let w=1;for(let j=E.length;j>=256;j>>=8)w++;const V=t.alloc(2+w);V[0]=P,V[1]=128|w;for(let j=1+w,W=E.length;W>0;j--,W>>=8)V[j]=255&W;return this._createEncoderBuffer([V,E])},M.prototype._encodeStr=function(L,I){if("bitstr"===I)return this._createEncoderBuffer([0|L.unused,L.data]);if("bmpstr"===I){const A=t.alloc(2*L.length);for(let E=0;E=40)return this.reporter.error("Second objid identifier OOB");L.splice(0,2,40*L[0]+L[1])}let E=0;for(let V=0;V=128;j>>=7)E++}const P=t.alloc(E);let w=P.length-1;for(let V=L.length-1;V>=0;V--){let j=L[V];for(P[w--]=127&j;(j>>=7)>0;)P[w--]=128|127&j}return this._createEncoderBuffer(P)},M.prototype._encodeTime=function(L,I){let A;const E=new Date(L);return"gentime"===I?A=[l(E.getUTCFullYear()),l(E.getUTCMonth()+1),l(E.getUTCDate()),l(E.getUTCHours()),l(E.getUTCMinutes()),l(E.getUTCSeconds()),"Z"].join(""):"utctime"===I?A=[l(E.getUTCFullYear()%100),l(E.getUTCMonth()+1),l(E.getUTCDate()),l(E.getUTCHours()),l(E.getUTCMinutes()),l(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+I+" time is not supported yet"),this._encodeStr(A,"octstr")},M.prototype._encodeNull=function(){return this._createEncoderBuffer("")},M.prototype._encodeInt=function(L,I){if("string"==typeof L){if(!I)return this.reporter.error("String int or enum given, but no values map");if(!I.hasOwnProperty(L))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(L));L=I[L]}if("number"!=typeof L&&!t.isBuffer(L)){const P=L.toArray();!L.sign&&128&P[0]&&P.unshift(0),L=t.from(P)}if(t.isBuffer(L)){let P=L.length;0===L.length&&P++;const w=t.alloc(P);return L.copy(w),0===L.length&&(w[0]=0),this._createEncoderBuffer(w)}if(L<128)return this._createEncoderBuffer(L);if(L<256)return this._createEncoderBuffer([0,L]);let A=1;for(let P=L;P>=256;P>>=8)A++;const E=new Array(A);for(let P=E.length-1;P>=0;P--)E[P]=255&L,L>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(t.from(E))},M.prototype._encodeBool=function(L){return this._createEncoderBuffer(L?255:0)},M.prototype._use=function(L,I){return"function"==typeof L&&(L=L(I)),L._getEncoder("der").tree},M.prototype._skipDefault=function(L,I,A){const E=this._baseState;let P;if(null===E.default)return!1;const w=L.join();if(void 0===E.defaultBuffer&&(E.defaultBuffer=this._encodeValue(E.default,I,A).join()),w.length!==E.defaultBuffer.length)return!1;for(P=0;P{"use strict";const e=Q;e.der=m(6374),e.pem=m(3530)},3530:(Ge,Q,m)=>{"use strict";const e=m(3894),t=m(6374);function y(C){t.call(this,C),this.enc="pem"}e(y,t),Ge.exports=y,y.prototype.encode=function(o,M){const R=t.prototype.encode.call(this,o).toString("base64"),s=["-----BEGIN "+M.label+"-----"];for(let L=0;L=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},5343:(Ge,Q)=>{"use strict";Q.byteLength=function l(E){var P=M(E),V=P[1];return 3*(P[0]+V)/4-V},Q.toByteArray=function s(E){var P,ge,w=M(E),V=w[0],j=w[1],W=new t(function R(E,P,w){return 3*(P+w)/4-w}(0,V,j)),te=0,ee=j>0?V-4:V;for(ge=0;ge>16&255,W[te++]=P>>8&255,W[te++]=255&P;return 2===j&&(P=e[E.charCodeAt(ge)]<<2|e[E.charCodeAt(ge+1)]>>4,W[te++]=255&P),1===j&&(P=e[E.charCodeAt(ge)]<<10|e[E.charCodeAt(ge+1)]<<4|e[E.charCodeAt(ge+2)]>>2,W[te++]=P>>8&255,W[te++]=255&P),W},Q.fromByteArray=function A(E){for(var P,w=E.length,V=w%3,j=[],W=16383,te=0,ee=w-V;teee?ee:te+W));return 1===V?j.push(m[(P=E[w-1])>>2]+m[P<<4&63]+"=="):2===V&&j.push(m[(P=(E[w-2]<<8)+E[w-1])>>10]+m[P>>4&63]+m[P<<2&63]+"="),j.join("")};for(var m=[],e=[],t="undefined"!=typeof Uint8Array?Uint8Array:Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,o=y.length;C0)throw new Error("Invalid string. Length must be a multiple of 4");var w=E.indexOf("=");return-1===w&&(w=P),[w,w===P?0:4-w%4]}function L(E){return m[E>>18&63]+m[E>>12&63]+m[E>>6&63]+m[63&E]}function I(E,P,w){for(var j=[],W=P;W=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void y(!1,"Invalid character in "+p)}function R(p,u,_){var D=l(p,_);return _-1>=u&&(D|=l(p,_-1)<<4),D}function s(p,u,_,D){for(var O=0,x=0,r=Math.min(p.length,_),b=u;b=49?Z-49+10:Z>=17?Z-17+10:Z,y(Z>=0&&x0?u:_},o.min=function(u,_){return u.cmp(_)<0?u:_},o.prototype._init=function(u,_,D){if("number"==typeof u)return this._initNumber(u,_,D);if("object"==typeof u)return this._initArray(u,_,D);"hex"===_&&(_=16),y(_===(0|_)&&_>=2&&_<=36);var O=0;"-"===(u=u.toString().replace(/\s+/g,""))[0]&&(O++,this.negative=1),O=0;O-=3)this.words[x]|=(r=u[O]|u[O-1]<<8|u[O-2]<<16)<>>26-b&67108863,(b+=24)>=26&&(b-=26,x++);else if("le"===D)for(O=0,x=0;O>>26-b&67108863,(b+=24)>=26&&(b-=26,x++);return this._strip()},o.prototype._parseHex=function(u,_,D){this.length=Math.ceil((u.length-_)/6),this.words=new Array(this.length);for(var O=0;O=_;O-=2)b=R(u,_,O)<=18?(x-=18,this.words[r+=1]|=b>>>26):x+=8;else for(O=(u.length-_)%2==0?_+1:_;O=18?(x-=18,this.words[r+=1]|=b>>>26):x+=8;this._strip()},o.prototype._parseBase=function(u,_,D){this.words=[0],this.length=1;for(var O=0,x=1;x<=67108863;x*=_)O++;O--,x=x/_|0;for(var r=u.length-D,b=r%O,Z=Math.min(r,r-b)+D,N=0,U=D;U1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=I}catch(p){o.prototype.inspect=I}else o.prototype.inspect=I;function I(){return(this.red?""}var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[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 j(p,u,_){_.negative=u.negative^p.negative;var D=p.length+u.length|0;_.length=D,D=D-1|0;var O=0|p.words[0],x=0|u.words[0],r=O*x,Z=r/67108864|0;_.words[0]=67108863&r;for(var N=1;N>>26,ve=67108863&Z,be=Math.min(N,u.length-1),Re=Math.max(0,N-p.length+1);Re<=be;Re++)U+=(r=(O=0|p.words[N-Re|0])*(x=0|u.words[Re])+ve)/67108864|0,ve=67108863&r;_.words[N]=0|ve,Z=0|U}return 0!==Z?_.words[N]=0|Z:_.length--,_._strip()}o.prototype.toString=function(u,_){var D;if(_=0|_||1,16===(u=u||10)||"hex"===u){D="";for(var O=0,x=0,r=0;r>>24-O&16777215)||r!==this.length-1?A[6-Z.length]+Z+D:Z+D,(O+=2)>=26&&(O-=26,r--)}for(0!==x&&(D=x.toString(16)+D);D.length%_!=0;)D="0"+D;return 0!==this.negative&&(D="-"+D),D}if(u===(0|u)&&u>=2&&u<=36){var N=E[u],U=P[u];D="";var ve=this.clone();for(ve.negative=0;!ve.isZero();){var be=ve.modrn(U).toString(u);D=(ve=ve.idivn(U)).isZero()?be+D:A[N-be.length]+be+D}for(this.isZero()&&(D="0"+D);D.length%_!=0;)D="0"+D;return 0!==this.negative&&(D="-"+D),D}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var u=this.words[0];return 2===this.length?u+=67108864*this.words[1]:3===this.length&&1===this.words[2]?u+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-u:u},o.prototype.toJSON=function(){return this.toString(16,2)},M&&(o.prototype.toBuffer=function(u,_){return this.toArrayLike(M,u,_)}),o.prototype.toArray=function(u,_){return this.toArrayLike(Array,u,_)},o.prototype.toArrayLike=function(u,_,D){this._strip();var O=this.byteLength(),x=D||Math.max(1,O);y(O<=x,"byte array longer than desired length"),y(x>0,"Requested array length <= 0");var r=function(u,_){return u.allocUnsafe?u.allocUnsafe(_):new u(_)}(u,x);return this["_toArrayLike"+("le"===_?"LE":"BE")](r,O),r},o.prototype._toArrayLikeLE=function(u,_){for(var D=0,O=0,x=0,r=0;x>8&255),D>16&255),6===r?(D>24&255),O=0,r=0):(O=b>>>24,r+=2)}if(D=0&&(u[D--]=b>>8&255),D>=0&&(u[D--]=b>>16&255),6===r?(D>=0&&(u[D--]=b>>24&255),O=0,r=0):(O=b>>>24,r+=2)}if(D>=0)for(u[D--]=O;D>=0;)u[D--]=0},o.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var _=u,D=0;return _>=4096&&(D+=13,_>>>=13),_>=64&&(D+=7,_>>>=7),_>=8&&(D+=4,_>>>=4),_>=2&&(D+=2,_>>>=2),D+_},o.prototype._zeroBits=function(u){if(0===u)return 26;var _=u,D=0;return 0==(8191&_)&&(D+=13,_>>>=13),0==(127&_)&&(D+=7,_>>>=7),0==(15&_)&&(D+=4,_>>>=4),0==(3&_)&&(D+=2,_>>>=2),0==(1&_)&&D++,D},o.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,_=0;_u.length?this.clone().ior(u):u.clone().ior(this)},o.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},o.prototype.iuand=function(u){var _;_=this.length>u.length?u:this;for(var D=0;D<_.length;D++)this.words[D]=this.words[D]&u.words[D];return this.length=_.length,this._strip()},o.prototype.iand=function(u){return y(0==(this.negative|u.negative)),this.iuand(u)},o.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},o.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},o.prototype.iuxor=function(u){var _,D;this.length>u.length?(_=this,D=u):(_=u,D=this);for(var O=0;Ou.length?this.clone().ixor(u):u.clone().ixor(this)},o.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},o.prototype.inotn=function(u){y("number"==typeof u&&u>=0);var _=0|Math.ceil(u/26),D=u%26;this._expand(_),D>0&&_--;for(var O=0;O<_;O++)this.words[O]=67108863&~this.words[O];return D>0&&(this.words[O]=~this.words[O]&67108863>>26-D),this._strip()},o.prototype.notn=function(u){return this.clone().inotn(u)},o.prototype.setn=function(u,_){y("number"==typeof u&&u>=0);var D=u/26|0,O=u%26;return this._expand(D+1),this.words[D]=_?this.words[D]|1<u.length?(D=this,O=u):(D=u,O=this);for(var x=0,r=0;r>>26;for(;0!==x&&r>>26;if(this.length=D.length,0!==x)this.words[this.length]=x,this.length++;else if(D!==this)for(;ru.length?this.clone().iadd(u):u.clone().iadd(this)},o.prototype.isub=function(u){if(0!==u.negative){u.negative=0;var _=this.iadd(u);return u.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var O,x,D=this.cmp(u);if(0===D)return this.negative=0,this.length=1,this.words[0]=0,this;D>0?(O=this,x=u):(O=u,x=this);for(var r=0,b=0;b>26,this.words[b]=67108863&_;for(;0!==r&&b>26,this.words[b]=67108863&_;if(0===r&&b>>13,ze=0|O[1],Oe=8191&ze,K=ze>>>13,Me=0|O[2],we=8191&Me,z=Me>>>13,Ze=0|O[3],vt=8191&Ze,Fe=Ze>>>13,Ne=0|O[4],ce=8191&Ne,Le=Ne>>>13,Pe=0|O[5],q=8191&Pe,$=Pe>>>13,oe=0|O[6],Ce=8191&oe,Ue=oe>>>13,lt=0|O[7],nt=8191<,ft=lt>>>13,it=0|O[8],rt=8191&it,Mt=it>>>13,Zt=0|O[9],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|x[0],jt=8191&Ii,ei=Ii>>>13,ki=0|x[1],ai=8191&ki,hi=ki>>>13,Ve=0|x[2],Ee=8191&Ve,Y=Ve>>>13,pe=0|x[3],De=8191&pe,et=pe>>>13,$t=0|x[4],Nt=8191&$t,Jt=$t>>>13,ct=0|x[5],ke=8191&ct,Be=ct>>>13,at=0|x[6],st=8191&at,At=at>>>13,li=0|x[7],Bt=8191&li,Rt=li>>>13,Li=0|x[8],si=8191&Li,ci=Li>>>13,sn=0|x[9],Ui=8191&sn,Di=sn>>>13;D.negative=u.negative^_.negative,D.length=19;var Xi=(b+(Z=Math.imul(be,jt))|0)+((8191&(N=(N=Math.imul(be,ei))+Math.imul(Re,jt)|0))<<13)|0;b=((U=Math.imul(Re,ei))+(N>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,Z=Math.imul(Oe,jt),N=(N=Math.imul(Oe,ei))+Math.imul(K,jt)|0,U=Math.imul(K,ei);var Ke=(b+(Z=Z+Math.imul(be,ai)|0)|0)+((8191&(N=(N=N+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0))<<13)|0;b=((U=U+Math.imul(Re,hi)|0)+(N>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,Z=Math.imul(we,jt),N=(N=Math.imul(we,ei))+Math.imul(z,jt)|0,U=Math.imul(z,ei),Z=Z+Math.imul(Oe,ai)|0,N=(N=N+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,U=U+Math.imul(K,hi)|0;var _t=(b+(Z=Z+Math.imul(be,Ee)|0)|0)+((8191&(N=(N=N+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0))<<13)|0;b=((U=U+Math.imul(Re,Y)|0)+(N>>>13)|0)+(_t>>>26)|0,_t&=67108863,Z=Math.imul(vt,jt),N=(N=Math.imul(vt,ei))+Math.imul(Fe,jt)|0,U=Math.imul(Fe,ei),Z=Z+Math.imul(we,ai)|0,N=(N=N+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,U=U+Math.imul(z,hi)|0,Z=Z+Math.imul(Oe,Ee)|0,N=(N=N+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,U=U+Math.imul(K,Y)|0;var _e=(b+(Z=Z+Math.imul(be,De)|0)|0)+((8191&(N=(N=N+Math.imul(be,et)|0)+Math.imul(Re,De)|0))<<13)|0;b=((U=U+Math.imul(Re,et)|0)+(N>>>13)|0)+(_e>>>26)|0,_e&=67108863,Z=Math.imul(ce,jt),N=(N=Math.imul(ce,ei))+Math.imul(Le,jt)|0,U=Math.imul(Le,ei),Z=Z+Math.imul(vt,ai)|0,N=(N=N+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,U=U+Math.imul(Fe,hi)|0,Z=Z+Math.imul(we,Ee)|0,N=(N=N+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,U=U+Math.imul(z,Y)|0,Z=Z+Math.imul(Oe,De)|0,N=(N=N+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,U=U+Math.imul(K,et)|0;var qe=(b+(Z=Z+Math.imul(be,Nt)|0)|0)+((8191&(N=(N=N+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0))<<13)|0;b=((U=U+Math.imul(Re,Jt)|0)+(N>>>13)|0)+(qe>>>26)|0,qe&=67108863,Z=Math.imul(q,jt),N=(N=Math.imul(q,ei))+Math.imul($,jt)|0,U=Math.imul($,ei),Z=Z+Math.imul(ce,ai)|0,N=(N=N+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,U=U+Math.imul(Le,hi)|0,Z=Z+Math.imul(vt,Ee)|0,N=(N=N+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,U=U+Math.imul(Fe,Y)|0,Z=Z+Math.imul(we,De)|0,N=(N=N+Math.imul(we,et)|0)+Math.imul(z,De)|0,U=U+Math.imul(z,et)|0,Z=Z+Math.imul(Oe,Nt)|0,N=(N=N+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,U=U+Math.imul(K,Jt)|0;var yt=(b+(Z=Z+Math.imul(be,ke)|0)|0)+((8191&(N=(N=N+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0))<<13)|0;b=((U=U+Math.imul(Re,Be)|0)+(N>>>13)|0)+(yt>>>26)|0,yt&=67108863,Z=Math.imul(Ce,jt),N=(N=Math.imul(Ce,ei))+Math.imul(Ue,jt)|0,U=Math.imul(Ue,ei),Z=Z+Math.imul(q,ai)|0,N=(N=N+Math.imul(q,hi)|0)+Math.imul($,ai)|0,U=U+Math.imul($,hi)|0,Z=Z+Math.imul(ce,Ee)|0,N=(N=N+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,U=U+Math.imul(Le,Y)|0,Z=Z+Math.imul(vt,De)|0,N=(N=N+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,U=U+Math.imul(Fe,et)|0,Z=Z+Math.imul(we,Nt)|0,N=(N=N+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,U=U+Math.imul(z,Jt)|0,Z=Z+Math.imul(Oe,ke)|0,N=(N=N+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,U=U+Math.imul(K,Be)|0;var ue=(b+(Z=Z+Math.imul(be,st)|0)|0)+((8191&(N=(N=N+Math.imul(be,At)|0)+Math.imul(Re,st)|0))<<13)|0;b=((U=U+Math.imul(Re,At)|0)+(N>>>13)|0)+(ue>>>26)|0,ue&=67108863,Z=Math.imul(nt,jt),N=(N=Math.imul(nt,ei))+Math.imul(ft,jt)|0,U=Math.imul(ft,ei),Z=Z+Math.imul(Ce,ai)|0,N=(N=N+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,U=U+Math.imul(Ue,hi)|0,Z=Z+Math.imul(q,Ee)|0,N=(N=N+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,U=U+Math.imul($,Y)|0,Z=Z+Math.imul(ce,De)|0,N=(N=N+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,U=U+Math.imul(Le,et)|0,Z=Z+Math.imul(vt,Nt)|0,N=(N=N+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,U=U+Math.imul(Fe,Jt)|0,Z=Z+Math.imul(we,ke)|0,N=(N=N+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,U=U+Math.imul(z,Be)|0,Z=Z+Math.imul(Oe,st)|0,N=(N=N+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,U=U+Math.imul(K,At)|0;var Je=(b+(Z=Z+Math.imul(be,Bt)|0)|0)+((8191&(N=(N=N+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0))<<13)|0;b=((U=U+Math.imul(Re,Rt)|0)+(N>>>13)|0)+(Je>>>26)|0,Je&=67108863,Z=Math.imul(rt,jt),N=(N=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,U=Math.imul(Mt,ei),Z=Z+Math.imul(nt,ai)|0,N=(N=N+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,U=U+Math.imul(ft,hi)|0,Z=Z+Math.imul(Ce,Ee)|0,N=(N=N+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,U=U+Math.imul(Ue,Y)|0,Z=Z+Math.imul(q,De)|0,N=(N=N+Math.imul(q,et)|0)+Math.imul($,De)|0,U=U+Math.imul($,et)|0,Z=Z+Math.imul(ce,Nt)|0,N=(N=N+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,U=U+Math.imul(Le,Jt)|0,Z=Z+Math.imul(vt,ke)|0,N=(N=N+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,U=U+Math.imul(Fe,Be)|0,Z=Z+Math.imul(we,st)|0,N=(N=N+Math.imul(we,At)|0)+Math.imul(z,st)|0,U=U+Math.imul(z,At)|0,Z=Z+Math.imul(Oe,Bt)|0,N=(N=N+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,U=U+Math.imul(K,Rt)|0;var St=(b+(Z=Z+Math.imul(be,si)|0)|0)+((8191&(N=(N=N+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;b=((U=U+Math.imul(Re,ci)|0)+(N>>>13)|0)+(St>>>26)|0,St&=67108863,Z=Math.imul(Ft,jt),N=(N=Math.imul(Ft,ei))+Math.imul(Vt,jt)|0,U=Math.imul(Vt,ei),Z=Z+Math.imul(rt,ai)|0,N=(N=N+Math.imul(rt,hi)|0)+Math.imul(Mt,ai)|0,U=U+Math.imul(Mt,hi)|0,Z=Z+Math.imul(nt,Ee)|0,N=(N=N+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,U=U+Math.imul(ft,Y)|0,Z=Z+Math.imul(Ce,De)|0,N=(N=N+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,U=U+Math.imul(Ue,et)|0,Z=Z+Math.imul(q,Nt)|0,N=(N=N+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,U=U+Math.imul($,Jt)|0,Z=Z+Math.imul(ce,ke)|0,N=(N=N+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,U=U+Math.imul(Le,Be)|0,Z=Z+Math.imul(vt,st)|0,N=(N=N+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,U=U+Math.imul(Fe,At)|0,Z=Z+Math.imul(we,Bt)|0,N=(N=N+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,U=U+Math.imul(z,Rt)|0,Z=Z+Math.imul(Oe,si)|0,N=(N=N+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0,U=U+Math.imul(K,ci)|0;var kt=(b+(Z=Z+Math.imul(be,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(be,Di)|0)+Math.imul(Re,Ui)|0))<<13)|0;b=((U=U+Math.imul(Re,Di)|0)+(N>>>13)|0)+(kt>>>26)|0,kt&=67108863,Z=Math.imul(Ft,ai),N=(N=Math.imul(Ft,hi))+Math.imul(Vt,ai)|0,U=Math.imul(Vt,hi),Z=Z+Math.imul(rt,Ee)|0,N=(N=N+Math.imul(rt,Y)|0)+Math.imul(Mt,Ee)|0,U=U+Math.imul(Mt,Y)|0,Z=Z+Math.imul(nt,De)|0,N=(N=N+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,U=U+Math.imul(ft,et)|0,Z=Z+Math.imul(Ce,Nt)|0,N=(N=N+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,U=U+Math.imul(Ue,Jt)|0,Z=Z+Math.imul(q,ke)|0,N=(N=N+Math.imul(q,Be)|0)+Math.imul($,ke)|0,U=U+Math.imul($,Be)|0,Z=Z+Math.imul(ce,st)|0,N=(N=N+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,U=U+Math.imul(Le,At)|0,Z=Z+Math.imul(vt,Bt)|0,N=(N=N+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,U=U+Math.imul(Fe,Rt)|0,Z=Z+Math.imul(we,si)|0,N=(N=N+Math.imul(we,ci)|0)+Math.imul(z,si)|0,U=U+Math.imul(z,ci)|0;var yi=(b+(Z=Z+Math.imul(Oe,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(Oe,Di)|0)+Math.imul(K,Ui)|0))<<13)|0;b=((U=U+Math.imul(K,Di)|0)+(N>>>13)|0)+(yi>>>26)|0,yi&=67108863,Z=Math.imul(Ft,Ee),N=(N=Math.imul(Ft,Y))+Math.imul(Vt,Ee)|0,U=Math.imul(Vt,Y),Z=Z+Math.imul(rt,De)|0,N=(N=N+Math.imul(rt,et)|0)+Math.imul(Mt,De)|0,U=U+Math.imul(Mt,et)|0,Z=Z+Math.imul(nt,Nt)|0,N=(N=N+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,U=U+Math.imul(ft,Jt)|0,Z=Z+Math.imul(Ce,ke)|0,N=(N=N+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,U=U+Math.imul(Ue,Be)|0,Z=Z+Math.imul(q,st)|0,N=(N=N+Math.imul(q,At)|0)+Math.imul($,st)|0,U=U+Math.imul($,At)|0,Z=Z+Math.imul(ce,Bt)|0,N=(N=N+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,U=U+Math.imul(Le,Rt)|0,Z=Z+Math.imul(vt,si)|0,N=(N=N+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0,U=U+Math.imul(Fe,ci)|0;var Ni=(b+(Z=Z+Math.imul(we,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(we,Di)|0)+Math.imul(z,Ui)|0))<<13)|0;b=((U=U+Math.imul(z,Di)|0)+(N>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,Z=Math.imul(Ft,De),N=(N=Math.imul(Ft,et))+Math.imul(Vt,De)|0,U=Math.imul(Vt,et),Z=Z+Math.imul(rt,Nt)|0,N=(N=N+Math.imul(rt,Jt)|0)+Math.imul(Mt,Nt)|0,U=U+Math.imul(Mt,Jt)|0,Z=Z+Math.imul(nt,ke)|0,N=(N=N+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,U=U+Math.imul(ft,Be)|0,Z=Z+Math.imul(Ce,st)|0,N=(N=N+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,U=U+Math.imul(Ue,At)|0,Z=Z+Math.imul(q,Bt)|0,N=(N=N+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,U=U+Math.imul($,Rt)|0,Z=Z+Math.imul(ce,si)|0,N=(N=N+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0,U=U+Math.imul(Le,ci)|0;var Si=(b+(Z=Z+Math.imul(vt,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(vt,Di)|0)+Math.imul(Fe,Ui)|0))<<13)|0;b=((U=U+Math.imul(Fe,Di)|0)+(N>>>13)|0)+(Si>>>26)|0,Si&=67108863,Z=Math.imul(Ft,Nt),N=(N=Math.imul(Ft,Jt))+Math.imul(Vt,Nt)|0,U=Math.imul(Vt,Jt),Z=Z+Math.imul(rt,ke)|0,N=(N=N+Math.imul(rt,Be)|0)+Math.imul(Mt,ke)|0,U=U+Math.imul(Mt,Be)|0,Z=Z+Math.imul(nt,st)|0,N=(N=N+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,U=U+Math.imul(ft,At)|0,Z=Z+Math.imul(Ce,Bt)|0,N=(N=N+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,U=U+Math.imul(Ue,Rt)|0,Z=Z+Math.imul(q,si)|0,N=(N=N+Math.imul(q,ci)|0)+Math.imul($,si)|0,U=U+Math.imul($,ci)|0;var qi=(b+(Z=Z+Math.imul(ce,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(ce,Di)|0)+Math.imul(Le,Ui)|0))<<13)|0;b=((U=U+Math.imul(Le,Di)|0)+(N>>>13)|0)+(qi>>>26)|0,qi&=67108863,Z=Math.imul(Ft,ke),N=(N=Math.imul(Ft,Be))+Math.imul(Vt,ke)|0,U=Math.imul(Vt,Be),Z=Z+Math.imul(rt,st)|0,N=(N=N+Math.imul(rt,At)|0)+Math.imul(Mt,st)|0,U=U+Math.imul(Mt,At)|0,Z=Z+Math.imul(nt,Bt)|0,N=(N=N+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,U=U+Math.imul(ft,Rt)|0,Z=Z+Math.imul(Ce,si)|0,N=(N=N+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0,U=U+Math.imul(Ue,ci)|0;var ot=(b+(Z=Z+Math.imul(q,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(q,Di)|0)+Math.imul($,Ui)|0))<<13)|0;b=((U=U+Math.imul($,Di)|0)+(N>>>13)|0)+(ot>>>26)|0,ot&=67108863,Z=Math.imul(Ft,st),N=(N=Math.imul(Ft,At))+Math.imul(Vt,st)|0,U=Math.imul(Vt,At),Z=Z+Math.imul(rt,Bt)|0,N=(N=N+Math.imul(rt,Rt)|0)+Math.imul(Mt,Bt)|0,U=U+Math.imul(Mt,Rt)|0,Z=Z+Math.imul(nt,si)|0,N=(N=N+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0,U=U+Math.imul(ft,ci)|0;var Kt=(b+(Z=Z+Math.imul(Ce,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(Ce,Di)|0)+Math.imul(Ue,Ui)|0))<<13)|0;b=((U=U+Math.imul(Ue,Di)|0)+(N>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,Z=Math.imul(Ft,Bt),N=(N=Math.imul(Ft,Rt))+Math.imul(Vt,Bt)|0,U=Math.imul(Vt,Rt),Z=Z+Math.imul(rt,si)|0,N=(N=N+Math.imul(rt,ci)|0)+Math.imul(Mt,si)|0,U=U+Math.imul(Mt,ci)|0;var gt=(b+(Z=Z+Math.imul(nt,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(nt,Di)|0)+Math.imul(ft,Ui)|0))<<13)|0;b=((U=U+Math.imul(ft,Di)|0)+(N>>>13)|0)+(gt>>>26)|0,gt&=67108863,Z=Math.imul(Ft,si),N=(N=Math.imul(Ft,ci))+Math.imul(Vt,si)|0,U=Math.imul(Vt,ci);var Lt=(b+(Z=Z+Math.imul(rt,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(rt,Di)|0)+Math.imul(Mt,Ui)|0))<<13)|0;b=((U=U+Math.imul(Mt,Di)|0)+(N>>>13)|0)+(Lt>>>26)|0,Lt&=67108863;var ui=(b+(Z=Math.imul(Ft,Ui))|0)+((8191&(N=(N=Math.imul(Ft,Di))+Math.imul(Vt,Ui)|0))<<13)|0;return b=((U=Math.imul(Vt,Di))+(N>>>13)|0)+(ui>>>26)|0,ui&=67108863,r[0]=Xi,r[1]=Ke,r[2]=_t,r[3]=_e,r[4]=qe,r[5]=yt,r[6]=ue,r[7]=Je,r[8]=St,r[9]=kt,r[10]=yi,r[11]=Ni,r[12]=Si,r[13]=qi,r[14]=ot,r[15]=Kt,r[16]=gt,r[17]=Lt,r[18]=ui,0!==b&&(r[19]=b,D.length++),D};function te(p,u,_){_.negative=u.negative^p.negative,_.length=p.length+u.length;for(var D=0,O=0,x=0;x<_.length-1;x++){var r=O;O=0;for(var b=67108863&D,Z=Math.min(x,u.length-1),N=Math.max(0,x-p.length+1);N<=Z;N++){var Re=(0|p.words[x-N])*(0|u.words[N]),ze=67108863ℜb=67108863&(ze=ze+b|0),O+=(r=(r=r+(Re/67108864|0)|0)+(ze>>>26)|0)>>>26,r&=67108863}_.words[x]=b,D=r,r=O}return 0!==D?_.words[x]=D:_.length--,_._strip()}function ee(p,u,_){return te(p,u,_)}function ge(p,u){this.x=p,this.y=u}Math.imul||(W=j),o.prototype.mulTo=function(u,_){var O=this.length+u.length;return 10===this.length&&10===u.length?W(this,u,_):O<63?j(this,u,_):O<1024?te(this,u,_):ee(this,u,_)},ge.prototype.makeRBT=function(u){for(var _=new Array(u),D=o.prototype._countBits(u)-1,O=0;O>=1;return O},ge.prototype.permute=function(u,_,D,O,x,r){for(var b=0;b>>=1)x++;return 1<>>=13),x>>>=13;for(r=2*_;r>=26,D+=x/67108864|0,D+=r>>>26,this.words[O]=67108863&r}return 0!==D&&(this.words[O]=D,this.length++),_?this.ineg():this},o.prototype.muln=function(u){return this.clone().imuln(u)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(u){var _=function V(p){for(var u=new Array(p.bitLength()),_=0;_>>_%26&1;return u}(u);if(0===_.length)return new o(1);for(var D=this,O=0;O<_.length&&0===_[O];O++,D=D.sqr());if(++O<_.length)for(var x=D.sqr();O<_.length;O++,x=x.sqr())0!==_[O]&&(D=D.mul(x));return D},o.prototype.iushln=function(u){y("number"==typeof u&&u>=0);var x,_=u%26,D=(u-_)/26,O=67108863>>>26-_<<26-_;if(0!==_){var r=0;for(x=0;x>>26-_}r&&(this.words[x]=r,this.length++)}if(0!==D){for(x=this.length-1;x>=0;x--)this.words[x+D]=this.words[x];for(x=0;x=0),O=_?(_-_%26)/26:0;var x=u%26,r=Math.min((u-x)/26,this.length),b=67108863^67108863>>>x<r)for(this.length-=r,N=0;N=0&&(0!==U||N>=O);N--){var ve=0|this.words[N];this.words[N]=U<<26-x|ve>>>x,U=ve&b}return Z&&0!==U&&(Z.words[Z.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(u,_,D){return y(0===this.negative),this.iushrn(u,_,D)},o.prototype.shln=function(u){return this.clone().ishln(u)},o.prototype.ushln=function(u){return this.clone().iushln(u)},o.prototype.shrn=function(u){return this.clone().ishrn(u)},o.prototype.ushrn=function(u){return this.clone().iushrn(u)},o.prototype.testn=function(u){y("number"==typeof u&&u>=0);var _=u%26,D=(u-_)/26;return!(this.length<=D||!(this.words[D]&1<<_))},o.prototype.imaskn=function(u){y("number"==typeof u&&u>=0);var _=u%26,D=(u-_)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=D?this:(0!==_&&D++,this.length=Math.min(D,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this._strip())},o.prototype.maskn=function(u){return this.clone().imaskn(u)},o.prototype.iaddn=function(u){return y("number"==typeof u),y(u<67108864),u<0?this.isubn(-u):0!==this.negative?1===this.length&&(0|this.words[0])<=u?(this.words[0]=u-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},o.prototype._iaddn=function(u){this.words[0]+=u;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},o.prototype.isubn=function(u){if(y("number"==typeof u),y(u<67108864),u<0)return this.iaddn(-u);if(0!==this.negative)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_>26)-(Z/67108864|0),this.words[x+D]=67108863&r}for(;x>26,this.words[x+D]=67108863&r;if(0===b)return this._strip();for(y(-1===b),b=0,x=0;x>26,this.words[x]=67108863&r;return this.negative=1,this._strip()},o.prototype._wordDiv=function(u,_){var D,O=this.clone(),x=u,r=0|x.words[x.length-1];0!=(D=26-this._countBits(r))&&(x=x.ushln(D),O.iushln(D),r=0|x.words[x.length-1]);var N,Z=O.length-x.length;if("mod"!==_){(N=new o(null)).length=Z+1,N.words=new Array(N.length);for(var U=0;U=0;be--){var Re=67108864*(0|O.words[x.length+be])+(0|O.words[x.length+be-1]);for(Re=Math.min(Re/r|0,67108863),O._ishlnsubmul(x,Re,be);0!==O.negative;)Re--,O.negative=0,O._ishlnsubmul(x,1,be),O.isZero()||(O.negative^=1);N&&(N.words[be]=Re)}return N&&N._strip(),O._strip(),"div"!==_&&0!==D&&O.iushrn(D),{div:N||null,mod:O}},o.prototype.divmod=function(u,_,D){return y(!u.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===u.negative?(r=this.neg().divmod(u,_),"mod"!==_&&(O=r.div.neg()),"div"!==_&&(x=r.mod.neg(),D&&0!==x.negative&&x.iadd(u)),{div:O,mod:x}):0===this.negative&&0!==u.negative?(r=this.divmod(u.neg(),_),"mod"!==_&&(O=r.div.neg()),{div:O,mod:r.mod}):0!=(this.negative&u.negative)?(r=this.neg().divmod(u.neg(),_),"div"!==_&&(x=r.mod.neg(),D&&0!==x.negative&&x.isub(u)),{div:r.div,mod:x}):u.length>this.length||this.cmp(u)<0?{div:new o(0),mod:this}:1===u.length?"div"===_?{div:this.divn(u.words[0]),mod:null}:"mod"===_?{div:null,mod:new o(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new o(this.modrn(u.words[0]))}:this._wordDiv(u,_);var O,x,r},o.prototype.div=function(u){return this.divmod(u,"div",!1).div},o.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},o.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},o.prototype.divRound=function(u){var _=this.divmod(u);if(_.mod.isZero())return _.div;var D=0!==_.div.negative?_.mod.isub(u):_.mod,O=u.ushrn(1),x=u.andln(1),r=D.cmp(O);return r<0||1===x&&0===r?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},o.prototype.modrn=function(u){var _=u<0;_&&(u=-u),y(u<=67108863);for(var D=(1<<26)%u,O=0,x=this.length-1;x>=0;x--)O=(D*O+(0|this.words[x]))%u;return _?-O:O},o.prototype.modn=function(u){return this.modrn(u)},o.prototype.idivn=function(u){var _=u<0;_&&(u=-u),y(u<=67108863);for(var D=0,O=this.length-1;O>=0;O--){var x=(0|this.words[O])+67108864*D;this.words[O]=x/u|0,D=x%u}return this._strip(),_?this.ineg():this},o.prototype.divn=function(u){return this.clone().idivn(u)},o.prototype.egcd=function(u){y(0===u.negative),y(!u.isZero());var _=this,D=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var O=new o(1),x=new o(0),r=new o(0),b=new o(1),Z=0;_.isEven()&&D.isEven();)_.iushrn(1),D.iushrn(1),++Z;for(var N=D.clone(),U=_.clone();!_.isZero();){for(var ve=0,be=1;0==(_.words[0]&be)&&ve<26;++ve,be<<=1);if(ve>0)for(_.iushrn(ve);ve-- >0;)(O.isOdd()||x.isOdd())&&(O.iadd(N),x.isub(U)),O.iushrn(1),x.iushrn(1);for(var Re=0,ze=1;0==(D.words[0]&ze)&&Re<26;++Re,ze<<=1);if(Re>0)for(D.iushrn(Re);Re-- >0;)(r.isOdd()||b.isOdd())&&(r.iadd(N),b.isub(U)),r.iushrn(1),b.iushrn(1);_.cmp(D)>=0?(_.isub(D),O.isub(r),x.isub(b)):(D.isub(_),r.isub(O),b.isub(x))}return{a:r,b,gcd:D.iushln(Z)}},o.prototype._invmp=function(u){y(0===u.negative),y(!u.isZero());var ve,_=this,D=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var O=new o(1),x=new o(0),r=D.clone();_.cmpn(1)>0&&D.cmpn(1)>0;){for(var b=0,Z=1;0==(_.words[0]&Z)&&b<26;++b,Z<<=1);if(b>0)for(_.iushrn(b);b-- >0;)O.isOdd()&&O.iadd(r),O.iushrn(1);for(var N=0,U=1;0==(D.words[0]&U)&&N<26;++N,U<<=1);if(N>0)for(D.iushrn(N);N-- >0;)x.isOdd()&&x.iadd(r),x.iushrn(1);_.cmp(D)>=0?(_.isub(D),O.isub(x)):(D.isub(_),x.isub(O))}return(ve=0===_.cmpn(1)?O:x).cmpn(0)<0&&ve.iadd(u),ve},o.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var _=this.clone(),D=u.clone();_.negative=0,D.negative=0;for(var O=0;_.isEven()&&D.isEven();O++)_.iushrn(1),D.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;D.isEven();)D.iushrn(1);var x=_.cmp(D);if(x<0){var r=_;_=D,D=r}else if(0===x||0===D.cmpn(1))break;_.isub(D)}return D.iushln(O)},o.prototype.invm=function(u){return this.egcd(u).a.umod(u)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(u){return this.words[0]&u},o.prototype.bincn=function(u){y("number"==typeof u);var _=u%26,D=(u-_)/26,O=1<<_;if(this.length<=D)return this._expand(D+1),this.words[D]|=O,this;for(var x=O,r=D;0!==x&&r>>26,this.words[r]=b&=67108863}return 0!==x&&(this.words[r]=x,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(u){var D,_=u<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)D=1;else{_&&(u=-u),y(u<=67108863,"Number is too big");var O=0|this.words[0];D=O===u?0:Ou.length)return 1;if(this.length=0;D--){var O=0|this.words[D],x=0|u.words[D];if(O!==x){Ox&&(_=1);break}}return _},o.prototype.gtn=function(u){return 1===this.cmpn(u)},o.prototype.gt=function(u){return 1===this.cmp(u)},o.prototype.gten=function(u){return this.cmpn(u)>=0},o.prototype.gte=function(u){return this.cmp(u)>=0},o.prototype.ltn=function(u){return-1===this.cmpn(u)},o.prototype.lt=function(u){return-1===this.cmp(u)},o.prototype.lten=function(u){return this.cmpn(u)<=0},o.prototype.lte=function(u){return this.cmp(u)<=0},o.prototype.eqn=function(u){return 0===this.cmpn(u)},o.prototype.eq=function(u){return 0===this.cmp(u)},o.red=function(u){return new i(u)},o.prototype.toRed=function(u){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),u.convertTo(this)._forceRed(u)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(u){return this.red=u,this},o.prototype.forceRed=function(u){return y(!this.red,"Already a number in reduction context"),this._forceRed(u)},o.prototype.redAdd=function(u){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},o.prototype.redIAdd=function(u){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},o.prototype.redSub=function(u){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},o.prototype.redISub=function(u){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},o.prototype.redShl=function(u){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},o.prototype.redMul=function(u){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},o.prototype.redIMul=function(u){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(u){return y(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var le={k256:null,p224:null,p192:null,p25519:null};function re(p,u){this.name=p,this.p=new o(u,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function de(){re.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function se(){re.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){re.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){re.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(p){if("string"==typeof p){var u=o._prime(p);this.m=u.p,this.prime=u}else y(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}function a(p){i.call(this,p),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}re.prototype._tmp=function(){var u=new o(null);return u.words=new Array(Math.ceil(this.n/13)),u},re.prototype.ireduce=function(u){var D,_=u;do{this.split(_,this.tmp),D=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(D>this.n);var O=D0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},re.prototype.split=function(u,_){u.iushrn(this.n,0,_)},re.prototype.imulK=function(u){return u.imul(this.k)},C(de,re),de.prototype.split=function(u,_){for(var D=4194303,O=Math.min(u.length,9),x=0;x>>22,r=b}u.words[x-10]=r>>>=22,u.length-=0===r&&u.length>10?10:9},de.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var _=0,D=0;D>>=26,u.words[D]=x,_=O}return 0!==_&&(u.words[u.length++]=_),u},o._prime=function(u){if(le[u])return le[u];var _;if("k256"===u)_=new de;else if("p224"===u)_=new se;else if("p192"===u)_=new ye;else{if("p25519"!==u)throw new Error("Unknown prime "+u);_=new v}return le[u]=_,_},i.prototype._verify1=function(u){y(0===u.negative,"red works only with positives"),y(u.red,"red works only with red numbers")},i.prototype._verify2=function(u,_){y(0==(u.negative|_.negative),"red works only with positives"),y(u.red&&u.red===_.red,"red works only with red numbers")},i.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(L(u,u.umod(this.m)._forceRed(this)),u)},i.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},i.prototype.add=function(u,_){this._verify2(u,_);var D=u.add(_);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},i.prototype.iadd=function(u,_){this._verify2(u,_);var D=u.iadd(_);return D.cmp(this.m)>=0&&D.isub(this.m),D},i.prototype.sub=function(u,_){this._verify2(u,_);var D=u.sub(_);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},i.prototype.isub=function(u,_){this._verify2(u,_);var D=u.isub(_);return D.cmpn(0)<0&&D.iadd(this.m),D},i.prototype.shl=function(u,_){return this._verify1(u),this.imod(u.ushln(_))},i.prototype.imul=function(u,_){return this._verify2(u,_),this.imod(u.imul(_))},i.prototype.mul=function(u,_){return this._verify2(u,_),this.imod(u.mul(_))},i.prototype.isqr=function(u){return this.imul(u,u.clone())},i.prototype.sqr=function(u){return this.mul(u,u)},i.prototype.sqrt=function(u){if(u.isZero())return u.clone();var _=this.m.andln(3);if(y(_%2==1),3===_){var D=this.m.add(new o(1)).iushrn(2);return this.pow(u,D)}for(var O=this.m.subn(1),x=0;!O.isZero()&&0===O.andln(1);)x++,O.iushrn(1);y(!O.isZero());var r=new o(1).toRed(this),b=r.redNeg(),Z=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new o(2*N*N).toRed(this);0!==this.pow(N,Z).cmp(b);)N.redIAdd(b);for(var U=this.pow(N,O),ve=this.pow(u,O.addn(1).iushrn(1)),be=this.pow(u,O),Re=x;0!==be.cmp(r);){for(var ze=be,Oe=0;0!==ze.cmp(r);Oe++)ze=ze.redSqr();y(Oe=0;x--){for(var U=_.words[x],ve=N-1;ve>=0;ve--){var be=U>>ve&1;r!==O[0]&&(r=this.sqr(r)),0!==be||0!==b?(b<<=1,b|=be,(4==++Z||0===x&&0===ve)&&(r=this.mul(r,O[b]),Z=0,b=0)):Z=0}N=26}return r},i.prototype.convertTo=function(u){var _=u.umod(this.m);return _===u?_.clone():_},i.prototype.convertFrom=function(u){var _=u.clone();return _.red=null,_},o.mont=function(u){return new a(u)},C(a,i),a.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},a.prototype.convertFrom=function(u){var _=this.imod(u.mul(this.rinv));return _.red=null,_},a.prototype.imul=function(u,_){if(u.isZero()||_.isZero())return u.words[0]=0,u.length=1,u;var D=u.imul(_),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=D.isub(O).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.mul=function(u,_){if(u.isZero()||_.isZero())return new o(0)._forceRed(this);var D=u.mul(_),O=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=D.isub(O).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.invm=function(u){return this.imod(u._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},7950:(Ge,Q,m)=>{var e;function t(C){this.rand=C}if(Ge.exports=function(o){return e||(e=new t(null)),e.generate(o)},Ge.exports.Rand=t,t.prototype.generate=function(o){return this._rand(o)},t.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var M=new Uint8Array(o),l=0;l{var e=m(3502).Buffer;function t(R){e.isBuffer(R)||(R=e.from(R));for(var s=R.length/4|0,L=new Array(s),I=0;I>>24]^P[W>>>16&255]^w[te>>>8&255]^V[255&ee]^s[se++],le=E[W>>>24]^P[te>>>16&255]^w[ee>>>8&255]^V[255&j]^s[se++],re=E[te>>>24]^P[ee>>>16&255]^w[j>>>8&255]^V[255&W]^s[se++],de=E[ee>>>24]^P[j>>>16&255]^w[W>>>8&255]^V[255&te]^s[se++],j=ge,W=le,te=re,ee=de;return ge=(I[j>>>24]<<24|I[W>>>16&255]<<16|I[te>>>8&255]<<8|I[255&ee])^s[se++],le=(I[W>>>24]<<24|I[te>>>16&255]<<16|I[ee>>>8&255]<<8|I[255&j])^s[se++],re=(I[te>>>24]<<24|I[ee>>>16&255]<<16|I[j>>>8&255]<<8|I[255&W])^s[se++],de=(I[ee>>>24]<<24|I[j>>>16&255]<<16|I[W>>>8&255]<<8|I[255&te])^s[se++],[ge>>>=0,le>>>=0,re>>>=0,de>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],M=function(){for(var R=new Array(256),s=0;s<256;s++)R[s]=s<128?s<<1:s<<1^283;for(var L=[],I=[],A=[[],[],[],[]],E=[[],[],[],[]],P=0,w=0,V=0;V<256;++V){var j=w^w<<1^w<<2^w<<3^w<<4;L[P]=j=j>>>8^255&j^99,I[j]=P;var W=R[P],te=R[W],ee=R[te],ge=257*R[j]^16843008*j;A[0][P]=ge<<24|ge>>>8,A[1][P]=ge<<16|ge>>>16,A[2][P]=ge<<8|ge>>>24,A[3][P]=ge,E[0][j]=(ge=16843009*ee^65537*te^257*W^16843008*P)<<24|ge>>>8,E[1][j]=ge<<16|ge>>>16,E[2][j]=ge<<8|ge>>>24,E[3][j]=ge,0===P?P=w=1:(P=W^R[R[R[ee^W]]],w^=R[R[w]])}return{SBOX:L,INV_SBOX:I,SUB_MIX:A,INV_SUB_MIX:E}}();function l(R){this._key=t(R),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var R=this._key,s=R.length,L=s+6,I=4*(L+1),A=[],E=0;E>>24)>>>24]<<24|M.SBOX[P>>>16&255]<<16|M.SBOX[P>>>8&255]<<8|M.SBOX[255&P],P^=o[E/s|0]<<24):s>6&&E%s==4&&(P=M.SBOX[P>>>24]<<24|M.SBOX[P>>>16&255]<<16|M.SBOX[P>>>8&255]<<8|M.SBOX[255&P]),A[E]=A[E-s]^P}for(var w=[],V=0;V>>24]]^M.INV_SUB_MIX[1][M.SBOX[W>>>16&255]]^M.INV_SUB_MIX[2][M.SBOX[W>>>8&255]]^M.INV_SUB_MIX[3][M.SBOX[255&W]]}this._nRounds=L,this._keySchedule=A,this._invKeySchedule=w},l.prototype.encryptBlockRaw=function(R){return C(R=t(R),this._keySchedule,M.SUB_MIX,M.SBOX,this._nRounds)},l.prototype.encryptBlock=function(R){var s=this.encryptBlockRaw(R),L=e.allocUnsafe(16);return L.writeUInt32BE(s[0],0),L.writeUInt32BE(s[1],4),L.writeUInt32BE(s[2],8),L.writeUInt32BE(s[3],12),L},l.prototype.decryptBlock=function(R){var s=(R=t(R))[1];R[1]=R[3],R[3]=s;var L=C(R,this._invKeySchedule,M.INV_SUB_MIX,M.INV_SBOX,this._nRounds),I=e.allocUnsafe(16);return I.writeUInt32BE(L[0],0),I.writeUInt32BE(L[3],4),I.writeUInt32BE(L[2],8),I.writeUInt32BE(L[1],12),I},l.prototype.scrub=function(){y(this._keySchedule),y(this._invKeySchedule),y(this._key)},Ge.exports.AES=l},9382:(Ge,Q,m)=>{var e=m(1899),t=m(3502).Buffer,y=m(1052),C=m(3894),o=m(8857),M=m(8789),l=m(7968);function L(I,A,E,P){y.call(this);var w=t.alloc(4,0);this._cipher=new e.AES(A);var V=this._cipher.encryptBlock(w);this._ghash=new o(V),E=function s(I,A,E){if(12===A.length)return I._finID=t.concat([A,t.from([0,0,0,1])]),t.concat([A,t.from([0,0,0,2])]);var P=new o(E),w=A.length,V=w%16;P.update(A),V&&P.update(t.alloc(V=16-V,0)),P.update(t.alloc(8,0));var j=8*w,W=t.alloc(8);W.writeUIntBE(j,0,8),P.update(W),I._finID=P.state;var te=t.from(I._finID);return l(te),te}(this,E,V),this._prev=t.from(E),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=P,this._alen=0,this._len=0,this._mode=I,this._authTag=null,this._called=!1}C(L,y),L.prototype._update=function(I){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=t.alloc(A,0),this._ghash.update(A))}this._called=!0;var E=this._mode.encrypt(this,I);return this._ghash.update(this._decrypt?I:E),this._len+=I.length,E},L.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var I=M(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function R(I,A){var E=0;I.length!==A.length&&E++;for(var P=Math.min(I.length,A.length),w=0;w{var e=m(6900),t=m(856),y=m(4946);Q.createCipher=Q.Cipher=e.createCipher,Q.createCipheriv=Q.Cipheriv=e.createCipheriv,Q.createDecipher=Q.Decipher=t.createDecipher,Q.createDecipheriv=Q.Decipheriv=t.createDecipheriv,Q.listCiphers=Q.getCiphers=function C(){return Object.keys(y)}},856:(Ge,Q,m)=>{var e=m(9382),t=m(3502).Buffer,y=m(9171),C=m(8441),o=m(1052),M=m(1899),l=m(347);function s(P,w,V){o.call(this),this._cache=new L,this._last=void 0,this._cipher=new M.AES(w),this._prev=t.from(V),this._mode=P,this._autopadding=!0}function L(){this.cache=t.allocUnsafe(0)}function A(P,w,V){var j=y[P.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof V&&(V=t.from(V)),"GCM"!==j.mode&&V.length!==j.iv)throw new TypeError("invalid iv length "+V.length);if("string"==typeof w&&(w=t.from(w)),w.length!==j.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===j.type?new C(j.module,w,V,!0):"auth"===j.type?new e(j.module,w,V,!0):new s(j.module,w,V)}m(3894)(s,o),s.prototype._update=function(P){this._cache.add(P);for(var w,V,j=[];w=this._cache.get(this._autopadding);)V=this._mode.decrypt(this,w),j.push(V);return t.concat(j)},s.prototype._final=function(){var P=this._cache.flush();if(this._autopadding)return function I(P){var w=P[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var V=-1;++V16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},L.prototype.flush=function(){if(this.cache.length)return this.cache},Q.createDecipher=function E(P,w){var V=y[P.toLowerCase()];if(!V)throw new TypeError("invalid suite type");var j=l(w,!1,V.key,V.iv);return A(P,j.key,j.iv)},Q.createDecipheriv=A},6900:(Ge,Q,m)=>{var e=m(9171),t=m(9382),y=m(3502).Buffer,C=m(8441),o=m(1052),M=m(1899),l=m(347);function s(P,w,V){o.call(this),this._cache=new I,this._cipher=new M.AES(w),this._prev=y.from(V),this._mode=P,this._autopadding=!0}m(3894)(s,o),s.prototype._update=function(P){this._cache.add(P);for(var w,V,j=[];w=this._cache.get();)V=this._mode.encrypt(this,w),j.push(V);return y.concat(j)};var L=y.alloc(16,16);function I(){this.cache=y.allocUnsafe(0)}function A(P,w,V){var j=e[P.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=y.from(w)),w.length!==j.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof V&&(V=y.from(V)),"GCM"!==j.mode&&V.length!==j.iv)throw new TypeError("invalid iv length "+V.length);return"stream"===j.type?new C(j.module,w,V):"auth"===j.type?new t(j.module,w,V):new s(j.module,w,V)}s.prototype._final=function(){var P=this._cache.flush();if(this._autopadding)return P=this._mode.encrypt(this,P),this._cipher.scrub(),P;if(!P.equals(L))throw this._cipher.scrub(),new Error("data not multiple of block length")},s.prototype.setAutoPadding=function(P){return this._autopadding=!!P,this},I.prototype.add=function(P){this.cache=y.concat([this.cache,P])},I.prototype.get=function(){if(this.cache.length>15){var P=this.cache.slice(0,16);return this.cache=this.cache.slice(16),P}return null},I.prototype.flush=function(){for(var P=16-this.cache.length,w=y.allocUnsafe(P),V=-1;++V{var e=m(3502).Buffer,t=e.alloc(16,0);function C(M){var l=e.allocUnsafe(16);return l.writeUInt32BE(M[0]>>>0,0),l.writeUInt32BE(M[1]>>>0,4),l.writeUInt32BE(M[2]>>>0,8),l.writeUInt32BE(M[3]>>>0,12),l}function o(M){this.h=M,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}o.prototype.ghash=function(M){for(var l=-1;++l0;R--)M[R]=M[R]>>>1|(1&M[R-1])<<31;M[0]=M[0]>>>1,L&&(M[0]=M[0]^225<<24)}this.state=C(l)},o.prototype.update=function(M){this.cache=e.concat([this.cache,M]);for(var l;this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},o.prototype.final=function(M,l){return this.cache.length&&this.ghash(e.concat([this.cache,t],16)),this.ghash(C([0,M,0,l])),this.state},Ge.exports=o},7968:Ge=>{Ge.exports=function Q(m){for(var t,e=m.length;e--;){if(255!==(t=m.readUInt8(e))){t++,m.writeUInt8(t,e);break}m.writeUInt8(0,e)}}},4903:(Ge,Q,m)=>{var e=m(8789);Q.encrypt=function(t,y){var C=e(y,t._prev);return t._prev=t._cipher.encryptBlock(C),t._prev},Q.decrypt=function(t,y){var C=t._prev;t._prev=y;var o=t._cipher.decryptBlock(y);return e(o,C)}},9885:(Ge,Q,m)=>{var e=m(3502).Buffer,t=m(8789);function y(C,o,M){var l=o.length,R=t(o,C._cache);return C._cache=C._cache.slice(l),C._prev=e.concat([C._prev,M?o:R]),R}Q.encrypt=function(C,o,M){for(var R,l=e.allocUnsafe(0);o.length;){if(0===C._cache.length&&(C._cache=C._cipher.encryptBlock(C._prev),C._prev=e.allocUnsafe(0)),!(C._cache.length<=o.length)){l=e.concat([l,y(C,o,M)]);break}l=e.concat([l,y(C,o.slice(0,R=C._cache.length),M)]),o=o.slice(R)}return l}},6531:(Ge,Q,m)=>{var e=m(3502).Buffer;function t(C,o,M){for(var I,A,R=-1,L=0;++R<8;)L+=(128&(A=C._cipher.encryptBlock(C._prev)[0]^(I=o&1<<7-R?128:0)))>>R%8,C._prev=y(C._prev,M?I:A);return L}function y(C,o){var M=C.length,l=-1,R=e.allocUnsafe(C.length);for(C=e.concat([C,e.from([o])]);++l>7;return R}Q.encrypt=function(C,o,M){for(var l=o.length,R=e.allocUnsafe(l),s=-1;++s{var e=m(3502).Buffer;function t(y,C,o){var l=y._cipher.encryptBlock(y._prev)[0]^C;return y._prev=e.concat([y._prev.slice(1),e.from([o?C:l])]),l}Q.encrypt=function(y,C,o){for(var M=C.length,l=e.allocUnsafe(M),R=-1;++R{var e=m(8789),t=m(3502).Buffer,y=m(7968);function C(M){var l=M._cipher.encryptBlockRaw(M._prev);return y(M._prev),l}Q.encrypt=function(M,l){var R=Math.ceil(l.length/16),s=M._cache.length;M._cache=t.concat([M._cache,t.allocUnsafe(16*R)]);for(var L=0;L{Q.encrypt=function(m,e){return m._cipher.encryptBlock(e)},Q.decrypt=function(m,e){return m._cipher.decryptBlock(e)}},9171:(Ge,Q,m)=>{var e={ECB:m(1704),CBC:m(4903),CFB:m(9885),CFB8:m(1641),CFB1:m(6531),OFB:m(6816),CTR:m(1150),GCM:m(1150)},t=m(4946);for(var y in t)t[y].module=e[t[y].mode];Ge.exports=t},6816:(Ge,Q,m)=>{var e=m(8789);function t(y){return y._prev=y._cipher.encryptBlock(y._prev),y._prev}Q.encrypt=function(y,C){for(;y._cache.length{var e=m(1899),t=m(3502).Buffer,y=m(1052);function o(M,l,R,s){y.call(this),this._cipher=new e.AES(l),this._prev=t.from(R),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=s,this._mode=M}m(3894)(o,y),o.prototype._update=function(M){return this._mode.encrypt(this,M,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},Ge.exports=o},5255:(Ge,Q,m)=>{var e=m(9004),t=m(4330),y=m(9171),C=m(1115),o=m(347);function R(I,A,E){if(I=I.toLowerCase(),y[I])return t.createCipheriv(I,A,E);if(C[I])return new e({key:A,iv:E,mode:I});throw new TypeError("invalid suite type")}function s(I,A,E){if(I=I.toLowerCase(),y[I])return t.createDecipheriv(I,A,E);if(C[I])return new e({key:A,iv:E,mode:I,decrypt:!0});throw new TypeError("invalid suite type")}Q.createCipher=Q.Cipher=function M(I,A){var E,P;if(I=I.toLowerCase(),y[I])E=y[I].key,P=y[I].iv;else{if(!C[I])throw new TypeError("invalid suite type");E=8*C[I].key,P=C[I].iv}var w=o(A,!1,E,P);return R(I,w.key,w.iv)},Q.createCipheriv=Q.Cipheriv=R,Q.createDecipher=Q.Decipher=function l(I,A){var E,P;if(I=I.toLowerCase(),y[I])E=y[I].key,P=y[I].iv;else{if(!C[I])throw new TypeError("invalid suite type");E=8*C[I].key,P=C[I].iv}var w=o(A,!1,E,P);return s(I,w.key,w.iv)},Q.createDecipheriv=Q.Decipheriv=s,Q.listCiphers=Q.getCiphers=function L(){return Object.keys(C).concat(t.getCiphers())}},9004:(Ge,Q,m)=>{var e=m(1052),t=m(3684),y=m(3894),C=m(3502).Buffer,o={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};function M(l){e.call(this);var L,R=l.mode.toLowerCase(),s=o[R];L=l.decrypt?"decrypt":"encrypt";var I=l.key;C.isBuffer(I)||(I=C.from(I)),("des-ede"===R||"des-ede-cbc"===R)&&(I=C.concat([I,I.slice(0,8)]));var A=l.iv;C.isBuffer(A)||(A=C.from(A)),this._des=s.create({key:I,iv:A,type:L})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],Ge.exports=M,y(M,e),M.prototype._update=function(l){return C.from(this._des.update(l))},M.prototype._final=function(){return C.from(this._des.final())}},1115:(Ge,Q)=>{Q["des-ecb"]={key:8,iv:0},Q["des-cbc"]=Q.des={key:8,iv:8},Q["des-ede3-cbc"]=Q.des3={key:24,iv:8},Q["des-ede3"]={key:24,iv:0},Q["des-ede-cbc"]={key:16,iv:8},Q["des-ede"]={key:16,iv:0}},8466:(Ge,Q,m)=>{var e=m(8538),t=m(3753);function C(M){var R,l=M.modulus.byteLength();do{R=new e(t(l))}while(R.cmp(M.modulus)>=0||!R.umod(M.prime1)||!R.umod(M.prime2));return R}function o(M,l){var R=function y(M){var l=C(M);return{blinder:l.toRed(e.mont(M.modulus)).redPow(new e(M.publicExponent)).fromRed(),unblinder:l.invm(M.modulus)}}(l),s=l.modulus.byteLength(),L=new e(M).mul(R.blinder).umod(l.modulus),I=L.toRed(e.mont(l.prime1)),A=L.toRed(e.mont(l.prime2)),E=l.coefficient,P=l.prime1,w=l.prime2,V=I.redPow(l.exponent1).fromRed(),j=A.redPow(l.exponent2).fromRed(),W=V.isub(j).imul(E).umod(P).imul(w);return j.iadd(W).imul(R.unblinder).umod(l.modulus).toArrayLike(Buffer,"be",s)}o.getr=C,Ge.exports=o},7793:(Ge,Q,m)=>{Ge.exports=m(5207)},3923:(Ge,Q,m)=>{var e=m(8446).Buffer,t=m(6386),y=m(5685),C=m(3894),o=m(9947),M=m(3946),l=m(5207);function R(A){y.Writable.call(this);var E=l[A];if(!E)throw new Error("Unknown message digest");this._hashType=E.hash,this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function s(A){y.Writable.call(this);var E=l[A];if(!E)throw new Error("Unknown message digest");this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function L(A){return new R(A)}function I(A){return new s(A)}Object.keys(l).forEach(function(A){l[A].id=e.from(l[A].id,"hex"),l[A.toLowerCase()]=l[A]}),C(R,y.Writable),R.prototype._write=function(E,P,w){this._hash.update(E),w()},R.prototype.update=function(E,P){return"string"==typeof E&&(E=e.from(E,P)),this._hash.update(E),this},R.prototype.sign=function(E,P){this.end();var w=this._hash.digest(),V=o(w,E,this._hashType,this._signType,this._tag);return P?V.toString(P):V},C(s,y.Writable),s.prototype._write=function(E,P,w){this._hash.update(E),w()},s.prototype.update=function(E,P){return"string"==typeof E&&(E=e.from(E,P)),this._hash.update(E),this},s.prototype.verify=function(E,P,w){"string"==typeof P&&(P=e.from(P,w)),this.end();var V=this._hash.digest();return M(P,V,E,this._signType,this._tag)},Ge.exports={Sign:L,Verify:I,createSign:L,createVerify:I}},9947:(Ge,Q,m)=>{var e=m(8446).Buffer,t=m(4529),y=m(8466),C=m(7715).ec,o=m(8538),M=m(2772),l=m(1308);function A(j,W,te,ee){if((j=e.from(j.toArray())).length0&&te.ishrn(ee),te}function w(j,W,te){var ee,ge;do{for(ee=e.alloc(0);8*ee.length{var e=m(8446).Buffer,t=m(8538),y=m(7715).ec,C=m(2772),o=m(1308);function s(L,I){if(L.cmpn(0)<=0)throw new Error("invalid sig");if(L.cmp(I)>=I)throw new Error("invalid sig")}Ge.exports=function M(L,I,A,E,P){var w=C(A);if("ec"===w.type){if("ecdsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");return function l(L,I,A){var E=o[A.data.algorithm.curve.join(".")];if(!E)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));return new y(E).verify(I,L,A.data.subjectPrivateKey.data)}(L,I,w)}if("dsa"===w.type){if("dsa"!==E)throw new Error("wrong public key type");return function R(L,I,A){var E=A.data.p,P=A.data.q,w=A.data.g,V=A.data.pub_key,j=C.signature.decode(L,"der"),W=j.s,te=j.r;s(W,P),s(te,P);var ee=t.mont(E),ge=W.invm(P);return 0===w.toRed(ee).redPow(new t(I).mul(ge).mod(P)).fromRed().mul(V.toRed(ee).redPow(te.mul(ge).mod(P)).fromRed()).mod(E).mod(P).cmp(te)}(L,I,w)}if("rsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");I=e.concat([P,I]);for(var V=w.modulus.byteLength(),j=[1],W=0;I.length+j.length+2{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ge.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},8789:Ge=>{Ge.exports=function(m,e){for(var t=Math.min(m.length,e.length),y=new Buffer(t),C=0;C{"use strict";var e=m(5343),t=m(8461),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Q.Buffer=l,Q.SlowBuffer=function W(Fe){return+Fe!=Fe&&(Fe=0),l.alloc(+Fe)},Q.INSPECT_MAX_BYTES=50;var C=2147483647;function M(Fe){if(Fe>C)throw new RangeError('The value "'+Fe+'" is invalid for option "size"');var Ne=new Uint8Array(Fe);return Object.setPrototypeOf(Ne,l.prototype),Ne}function l(Fe,Ne,ce){if("number"==typeof Fe){if("string"==typeof Ne)throw new TypeError('The "string" argument must be of type string. Received type number');return I(Fe)}return R(Fe,Ne,ce)}function R(Fe,Ne,ce){if("string"==typeof Fe)return function A(Fe,Ne){if(("string"!=typeof Ne||""===Ne)&&(Ne="utf8"),!l.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);var ce=0|te(Fe,Ne),Le=M(ce),Pe=Le.write(Fe,Ne);return Pe!==ce&&(Le=Le.slice(0,Pe)),Le}(Fe,Ne);if(ArrayBuffer.isView(Fe))return function P(Fe){if(z(Fe,Uint8Array)){var Ne=new Uint8Array(Fe);return w(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return E(Fe)}(Fe);if(null==Fe)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Fe);if(z(Fe,ArrayBuffer)||Fe&&z(Fe.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(z(Fe,SharedArrayBuffer)||Fe&&z(Fe.buffer,SharedArrayBuffer)))return w(Fe,Ne,ce);if("number"==typeof Fe)throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=Fe.valueOf&&Fe.valueOf();if(null!=Le&&Le!==Fe)return l.from(Le,Ne,ce);var Pe=function V(Fe){if(l.isBuffer(Fe)){var Ne=0|j(Fe.length),ce=M(Ne);return 0===ce.length||Fe.copy(ce,0,0,Ne),ce}return void 0!==Fe.length?"number"!=typeof Fe.length||Ze(Fe.length)?M(0):E(Fe):"Buffer"===Fe.type&&Array.isArray(Fe.data)?E(Fe.data):void 0}(Fe);if(Pe)return Pe;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Fe[Symbol.toPrimitive])return l.from(Fe[Symbol.toPrimitive]("string"),Ne,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Fe)}function s(Fe){if("number"!=typeof Fe)throw new TypeError('"size" argument must be of type number');if(Fe<0)throw new RangeError('The value "'+Fe+'" is invalid for option "size"')}function I(Fe){return s(Fe),M(Fe<0?0:0|j(Fe))}function E(Fe){for(var Ne=Fe.length<0?0:0|j(Fe.length),ce=M(Ne),Le=0;Le=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return 0|Fe}function te(Fe,Ne){if(l.isBuffer(Fe))return Fe.length;if(ArrayBuffer.isView(Fe)||z(Fe,ArrayBuffer))return Fe.byteLength;if("string"!=typeof Fe)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Fe);var ce=Fe.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===ce)return 0;for(var Pe=!1;;)switch(Ne){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return ze(Fe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ce;case"hex":return ce>>>1;case"base64":return Me(Fe).length;default:if(Pe)return Le?-1:ze(Fe).length;Ne=(""+Ne).toLowerCase(),Pe=!0}}function ee(Fe,Ne,ce){var Le=!1;if((void 0===Ne||Ne<0)&&(Ne=0),Ne>this.length||((void 0===ce||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0)<=(Ne>>>=0))return"";for(Fe||(Fe="utf8");;)switch(Fe){case"hex":return x(this,Ne,ce);case"utf8":case"utf-8":return p(this,Ne,ce);case"ascii":return D(this,Ne,ce);case"latin1":case"binary":return O(this,Ne,ce);case"base64":return a(this,Ne,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,Ne,ce);default:if(Le)throw new TypeError("Unknown encoding: "+Fe);Fe=(Fe+"").toLowerCase(),Le=!0}}function ge(Fe,Ne,ce){var Le=Fe[Ne];Fe[Ne]=Fe[ce],Fe[ce]=Le}function le(Fe,Ne,ce,Le,Pe){if(0===Fe.length)return-1;if("string"==typeof ce?(Le=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),Ze(ce=+ce)&&(ce=Pe?0:Fe.length-1),ce<0&&(ce=Fe.length+ce),ce>=Fe.length){if(Pe)return-1;ce=Fe.length-1}else if(ce<0){if(!Pe)return-1;ce=0}if("string"==typeof Ne&&(Ne=l.from(Ne,Le)),l.isBuffer(Ne))return 0===Ne.length?-1:re(Fe,Ne,ce,Le,Pe);if("number"==typeof Ne)return Ne&=255,"function"==typeof Uint8Array.prototype.indexOf?Pe?Uint8Array.prototype.indexOf.call(Fe,Ne,ce):Uint8Array.prototype.lastIndexOf.call(Fe,Ne,ce):re(Fe,[Ne],ce,Le,Pe);throw new TypeError("val must be string, number or Buffer")}function re(Fe,Ne,ce,Le,Pe){var Ue,q=1,$=Fe.length,oe=Ne.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(Fe.length<2||Ne.length<2)return-1;q=2,$/=2,oe/=2,ce/=2}function Ce(it,rt){return 1===q?it[rt]:it.readUInt16BE(rt*q)}if(Pe){var lt=-1;for(Ue=ce;Ue<$;Ue++)if(Ce(Fe,Ue)===Ce(Ne,-1===lt?0:Ue-lt)){if(-1===lt&&(lt=Ue),Ue-lt+1===oe)return lt*q}else-1!==lt&&(Ue-=Ue-lt),lt=-1}else for(ce+oe>$&&(ce=$-oe),Ue=ce;Ue>=0;Ue--){for(var nt=!0,ft=0;ftPe&&(Le=Pe):Le=Pe;var q=Ne.length;Le>q/2&&(Le=q/2);for(var $=0;$>8,q.push(ce%256),q.push(Le);return q}(Ne,Fe.length-ce),Fe,ce,Le)}function a(Fe,Ne,ce){return e.fromByteArray(0===Ne&&ce===Fe.length?Fe:Fe.slice(Ne,ce))}function p(Fe,Ne,ce){ce=Math.min(Fe.length,ce);for(var Le=[],Pe=Ne;Pe239?4:q>223?3:q>191?2:1;if(Pe+oe<=ce)switch(oe){case 1:q<128&&($=q);break;case 2:128==(192&(Ce=Fe[Pe+1]))&&(nt=(31&q)<<6|63&Ce)>127&&($=nt);break;case 3:Ue=Fe[Pe+2],128==(192&(Ce=Fe[Pe+1]))&&128==(192&Ue)&&(nt=(15&q)<<12|(63&Ce)<<6|63&Ue)>2047&&(nt<55296||nt>57343)&&($=nt);break;case 4:Ue=Fe[Pe+2],lt=Fe[Pe+3],128==(192&(Ce=Fe[Pe+1]))&&128==(192&Ue)&&128==(192<)&&(nt=(15&q)<<18|(63&Ce)<<12|(63&Ue)<<6|63<)>65535&&nt<1114112&&($=nt)}null===$?($=65533,oe=1):$>65535&&(Le.push(($-=65536)>>>10&1023|55296),$=56320|1023&$),Le.push($),Pe+=oe}return function _(Fe){var Ne=Fe.length;if(Ne<=u)return String.fromCharCode.apply(String,Fe);for(var ce="",Le=0;LePe.length?l.from($).copy(Pe,q):Uint8Array.prototype.set.call(Pe,$,q);else{if(!l.isBuffer($))throw new TypeError('"list" argument must be an Array of Buffers');$.copy(Pe,q)}q+=$.length}return Pe},l.byteLength=te,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var Ne=this.length;if(Ne%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ce=0;cece&&(Ne+=" ... "),""},y&&(l.prototype[y]=l.prototype.inspect),l.prototype.compare=function(Ne,ce,Le,Pe,q){if(z(Ne,Uint8Array)&&(Ne=l.from(Ne,Ne.offset,Ne.byteLength)),!l.isBuffer(Ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ne);if(void 0===ce&&(ce=0),void 0===Le&&(Le=Ne?Ne.length:0),void 0===Pe&&(Pe=0),void 0===q&&(q=this.length),ce<0||Le>Ne.length||Pe<0||q>this.length)throw new RangeError("out of range index");if(Pe>=q&&ce>=Le)return 0;if(Pe>=q)return-1;if(ce>=Le)return 1;if(this===Ne)return 0;for(var $=(q>>>=0)-(Pe>>>=0),oe=(Le>>>=0)-(ce>>>=0),Ce=Math.min($,oe),Ue=this.slice(Pe,q),lt=Ne.slice(ce,Le),nt=0;nt>>=0,isFinite(Le)?(Le>>>=0,void 0===Pe&&(Pe="utf8")):(Pe=Le,Le=void 0)}var q=this.length-ce;if((void 0===Le||Le>q)&&(Le=q),Ne.length>0&&(Le<0||ce<0)||ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");Pe||(Pe="utf8");for(var $=!1;;)switch(Pe){case"hex":return de(this,Ne,ce,Le);case"utf8":case"utf-8":return se(this,Ne,ce,Le);case"ascii":case"latin1":case"binary":return ye(this,Ne,ce,Le);case"base64":return v(this,Ne,ce,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Ne,ce,Le);default:if($)throw new TypeError("Unknown encoding: "+Pe);Pe=(""+Pe).toLowerCase(),$=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var u=4096;function D(Fe,Ne,ce){var Le="";ce=Math.min(Fe.length,ce);for(var Pe=Ne;PeLe)&&(ce=Le);for(var Pe="",q=Ne;qce)throw new RangeError("Trying to access beyond buffer length")}function Z(Fe,Ne,ce,Le,Pe,q){if(!l.isBuffer(Fe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ne>Pe||NeFe.length)throw new RangeError("Index out of range")}function N(Fe,Ne,ce,Le,Pe,q){if(ce+Le>Fe.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function U(Fe,Ne,ce,Le,Pe){return Ne=+Ne,ce>>>=0,Pe||N(Fe,0,ce,4),t.write(Fe,Ne,ce,Le,23,4),ce+4}function ve(Fe,Ne,ce,Le,Pe){return Ne=+Ne,ce>>>=0,Pe||N(Fe,0,ce,8),t.write(Fe,Ne,ce,Le,52,8),ce+8}l.prototype.slice=function(Ne,ce){var Le=this.length;(Ne=~~Ne)<0?(Ne+=Le)<0&&(Ne=0):Ne>Le&&(Ne=Le),(ce=void 0===ce?Le:~~ce)<0?(ce+=Le)<0&&(ce=0):ce>Le&&(ce=Le),ce>>=0,ce>>>=0,Le||b(Ne,ce,this.length);for(var Pe=this[Ne],q=1,$=0;++$>>=0,ce>>>=0,Le||b(Ne,ce,this.length);for(var Pe=this[Ne+--ce],q=1;ce>0&&(q*=256);)Pe+=this[Ne+--ce]*q;return Pe},l.prototype.readUint8=l.prototype.readUInt8=function(Ne,ce){return Ne>>>=0,ce||b(Ne,1,this.length),this[Ne]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,2,this.length),this[Ne]|this[Ne+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,2,this.length),this[Ne]<<8|this[Ne+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),(this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16)+16777216*this[Ne+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),16777216*this[Ne]+(this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3])},l.prototype.readIntLE=function(Ne,ce,Le){Ne>>>=0,ce>>>=0,Le||b(Ne,ce,this.length);for(var Pe=this[Ne],q=1,$=0;++$=(q*=128)&&(Pe-=Math.pow(2,8*ce)),Pe},l.prototype.readIntBE=function(Ne,ce,Le){Ne>>>=0,ce>>>=0,Le||b(Ne,ce,this.length);for(var Pe=ce,q=1,$=this[Ne+--Pe];Pe>0&&(q*=256);)$+=this[Ne+--Pe]*q;return $>=(q*=128)&&($-=Math.pow(2,8*ce)),$},l.prototype.readInt8=function(Ne,ce){return Ne>>>=0,ce||b(Ne,1,this.length),128&this[Ne]?-1*(255-this[Ne]+1):this[Ne]},l.prototype.readInt16LE=function(Ne,ce){Ne>>>=0,ce||b(Ne,2,this.length);var Le=this[Ne]|this[Ne+1]<<8;return 32768&Le?4294901760|Le:Le},l.prototype.readInt16BE=function(Ne,ce){Ne>>>=0,ce||b(Ne,2,this.length);var Le=this[Ne+1]|this[Ne]<<8;return 32768&Le?4294901760|Le:Le},l.prototype.readInt32LE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16|this[Ne+3]<<24},l.prototype.readInt32BE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),this[Ne]<<24|this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3]},l.prototype.readFloatLE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),t.read(this,Ne,!0,23,4)},l.prototype.readFloatBE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,4,this.length),t.read(this,Ne,!1,23,4)},l.prototype.readDoubleLE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,8,this.length),t.read(this,Ne,!0,52,8)},l.prototype.readDoubleBE=function(Ne,ce){return Ne>>>=0,ce||b(Ne,8,this.length),t.read(this,Ne,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(Ne,ce,Le,Pe){Ne=+Ne,ce>>>=0,Le>>>=0,Pe||Z(this,Ne,ce,Le,Math.pow(2,8*Le)-1,0);var $=1,oe=0;for(this[ce]=255&Ne;++oe>>=0,Le>>>=0,Pe||Z(this,Ne,ce,Le,Math.pow(2,8*Le)-1,0);var $=Le-1,oe=1;for(this[ce+$]=255&Ne;--$>=0&&(oe*=256);)this[ce+$]=Ne/oe&255;return ce+Le},l.prototype.writeUint8=l.prototype.writeUInt8=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,1,255,0),this[ce]=255&Ne,ce+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,2,65535,0),this[ce]=255&Ne,this[ce+1]=Ne>>>8,ce+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,2,65535,0),this[ce]=Ne>>>8,this[ce+1]=255&Ne,ce+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,4,4294967295,0),this[ce+3]=Ne>>>24,this[ce+2]=Ne>>>16,this[ce+1]=Ne>>>8,this[ce]=255&Ne,ce+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,4,4294967295,0),this[ce]=Ne>>>24,this[ce+1]=Ne>>>16,this[ce+2]=Ne>>>8,this[ce+3]=255&Ne,ce+4},l.prototype.writeIntLE=function(Ne,ce,Le,Pe){if(Ne=+Ne,ce>>>=0,!Pe){var q=Math.pow(2,8*Le-1);Z(this,Ne,ce,Le,q-1,-q)}var $=0,oe=1,Ce=0;for(this[ce]=255&Ne;++$>0)-Ce&255;return ce+Le},l.prototype.writeIntBE=function(Ne,ce,Le,Pe){if(Ne=+Ne,ce>>>=0,!Pe){var q=Math.pow(2,8*Le-1);Z(this,Ne,ce,Le,q-1,-q)}var $=Le-1,oe=1,Ce=0;for(this[ce+$]=255&Ne;--$>=0&&(oe*=256);)Ne<0&&0===Ce&&0!==this[ce+$+1]&&(Ce=1),this[ce+$]=(Ne/oe>>0)-Ce&255;return ce+Le},l.prototype.writeInt8=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,1,127,-128),Ne<0&&(Ne=255+Ne+1),this[ce]=255&Ne,ce+1},l.prototype.writeInt16LE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,2,32767,-32768),this[ce]=255&Ne,this[ce+1]=Ne>>>8,ce+2},l.prototype.writeInt16BE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,2,32767,-32768),this[ce]=Ne>>>8,this[ce+1]=255&Ne,ce+2},l.prototype.writeInt32LE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,4,2147483647,-2147483648),this[ce]=255&Ne,this[ce+1]=Ne>>>8,this[ce+2]=Ne>>>16,this[ce+3]=Ne>>>24,ce+4},l.prototype.writeInt32BE=function(Ne,ce,Le){return Ne=+Ne,ce>>>=0,Le||Z(this,Ne,ce,4,2147483647,-2147483648),Ne<0&&(Ne=4294967295+Ne+1),this[ce]=Ne>>>24,this[ce+1]=Ne>>>16,this[ce+2]=Ne>>>8,this[ce+3]=255&Ne,ce+4},l.prototype.writeFloatLE=function(Ne,ce,Le){return U(this,Ne,ce,!0,Le)},l.prototype.writeFloatBE=function(Ne,ce,Le){return U(this,Ne,ce,!1,Le)},l.prototype.writeDoubleLE=function(Ne,ce,Le){return ve(this,Ne,ce,!0,Le)},l.prototype.writeDoubleBE=function(Ne,ce,Le){return ve(this,Ne,ce,!1,Le)},l.prototype.copy=function(Ne,ce,Le,Pe){if(!l.isBuffer(Ne))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!Pe&&0!==Pe&&(Pe=this.length),ce>=Ne.length&&(ce=Ne.length),ce||(ce=0),Pe>0&&Pe=this.length)throw new RangeError("Index out of range");if(Pe<0)throw new RangeError("sourceEnd out of bounds");Pe>this.length&&(Pe=this.length),Ne.length-ce>>=0,Le=void 0===Le?this.length:Le>>>0,Ne||(Ne=0),"number"==typeof Ne)for($=ce;$55295&&ce<57344){if(!Pe){if(ce>56319){(Ne-=3)>-1&&q.push(239,191,189);continue}if($+1===Le){(Ne-=3)>-1&&q.push(239,191,189);continue}Pe=ce;continue}if(ce<56320){(Ne-=3)>-1&&q.push(239,191,189),Pe=ce;continue}ce=65536+(Pe-55296<<10|ce-56320)}else Pe&&(Ne-=3)>-1&&q.push(239,191,189);if(Pe=null,ce<128){if((Ne-=1)<0)break;q.push(ce)}else if(ce<2048){if((Ne-=2)<0)break;q.push(ce>>6|192,63&ce|128)}else if(ce<65536){if((Ne-=3)<0)break;q.push(ce>>12|224,ce>>6&63|128,63&ce|128)}else{if(!(ce<1114112))throw new Error("Invalid code point");if((Ne-=4)<0)break;q.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,63&ce|128)}}return q}function Me(Fe){return e.toByteArray(function Re(Fe){if((Fe=(Fe=Fe.split("=")[0]).trim().replace(be,"")).length<2)return"";for(;Fe.length%4!=0;)Fe+="=";return Fe}(Fe))}function we(Fe,Ne,ce,Le){for(var Pe=0;Pe=Ne.length||Pe>=Fe.length);++Pe)Ne[Pe+ce]=Fe[Pe];return Pe}function z(Fe,Ne){return Fe instanceof Ne||null!=Fe&&null!=Fe.constructor&&null!=Fe.constructor.name&&Fe.constructor.name===Ne.name}function Ze(Fe){return Fe!=Fe}var vt=function(){for(var Fe="0123456789abcdef",Ne=new Array(256),ce=0;ce<16;++ce)for(var Le=16*ce,Pe=0;Pe<16;++Pe)Ne[Le+Pe]=Fe[ce]+Fe[Pe];return Ne}()},1052:(Ge,Q,m)=>{var e=m(3502).Buffer,t=m(295).Transform,y=m(3054).s;function o(M){t.call(this),this.hashMode="string"==typeof M,this.hashMode?this[M]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}m(3894)(o,t),o.prototype.update=function(M,l,R){"string"==typeof M&&(M=e.from(M,l));var s=this._update(M);return this.hashMode?this:(R&&(s=this._toString(s,R)),s)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(M,l,R){var s;try{this.hashMode?this._update(M):this.push(this._update(M))}catch(L){s=L}finally{R(s)}},o.prototype._flush=function(M){var l;try{this.push(this.__final())}catch(R){l=R}M(l)},o.prototype._finalOrDigest=function(M){var l=this.__final()||e.alloc(0);return M&&(l=this._toString(l,M,!0)),l},o.prototype._toString=function(M,l,R){if(this._decoder||(this._decoder=new y(l),this._encoding=l),this._encoding!==l)throw new Error("can't switch encodings");var s=this._decoder.write(M);return R&&(s+=this._decoder.end()),s},Ge.exports=o},7293:(Ge,Q,m)=>{"use strict";const e=m(4315),t=m(2872),y=m(717);Ge.exports=function C(l,R){switch(t(l)){case"object":return function o(l,R){if("function"==typeof R)return R(l);if(R||y(l)){const s=new l.constructor;for(let L in l)s[L]=C(l[L],R);return s}return l}(l,R);case"array":return function M(l,R){const s=new l.constructor(l.length);for(let L=0;LC?y:Array(C-y.length+1).join("0")+y}(C.toString(16),2)}).join("")}(y)},hexToBytes:function(y){if(y.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===y.indexOf("0x")&&(y=y.slice(2)),y.match(/../g).map(function(C){return parseInt(C,16)})}};Ge.exports?Ge.exports=m:Q.convertHex=m}(this)},5612:function(Ge){!function(Q){"use strict";var m={bytesToString:function(e){return e.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(e){return e.split("").map(function(t){return t.charCodeAt(0)})}};m.UTF8={bytesToString:function(e){return decodeURIComponent(escape(m.bytesToString(e)))},stringToBytes:function(e){return m.stringToBytes(unescape(encodeURIComponent(e)))}},Ge.exports?Ge.exports=m:Q.convertString=m}(this)},4746:(Ge,Q,m)=>{var e=m(7715),t=m(6422);Ge.exports=function(l){return new C(l)};var y={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 C(M){this.curveType=y[M],this.curveType||(this.curveType={name:M}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function o(M,l,R){Array.isArray(M)||(M=M.toArray());var s=new Buffer(M);if(R&&s.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},6386:(Ge,Q,m)=>{"use strict";var e=m(3894),t=m(8095),y=m(5634),C=m(5244),o=m(1052);function M(l){o.call(this,"digest"),this._hash=l}e(M,o),M.prototype._update=function(l){this._hash.update(l)},M.prototype._final=function(){return this._hash.digest()},Ge.exports=function(R){return"md5"===(R=R.toLowerCase())?new t:"rmd160"===R||"ripemd160"===R?new y:new M(C(R))}},5640:(Ge,Q,m)=>{var e=m(8095);Ge.exports=function(t){return(new e).update(t).digest()}},4529:(Ge,Q,m)=>{"use strict";var e=m(3894),t=m(7309),y=m(1052),C=m(3502).Buffer,o=m(5640),M=m(5634),l=m(5244),R=C.alloc(128);function s(L,I){y.call(this,"digest"),"string"==typeof I&&(I=C.from(I));var A="sha512"===L||"sha384"===L?128:64;this._alg=L,this._key=I,I.length>A?I=("rmd160"===L?new M:l(L)).update(I).digest():I.length{"use strict";var e=m(3894),t=m(3502).Buffer,y=m(1052),C=t.alloc(128),o=64;function M(l,R){y.call(this,"digest"),"string"==typeof R&&(R=t.from(R)),this._alg=l,this._key=R,R.length>o?R=l(R):R.length{"use strict";Q.randomBytes=Q.rng=Q.pseudoRandomBytes=Q.prng=m(3753),Q.createHash=Q.Hash=m(6386),Q.createHmac=Q.Hmac=m(4529);var e=m(7793),t=Object.keys(e),y=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);Q.getHashes=function(){return y};var C=m(9357);Q.pbkdf2=C.pbkdf2,Q.pbkdf2Sync=C.pbkdf2Sync;var o=m(5255);Q.Cipher=o.Cipher,Q.createCipher=o.createCipher,Q.Cipheriv=o.Cipheriv,Q.createCipheriv=o.createCipheriv,Q.Decipher=o.Decipher,Q.createDecipher=o.createDecipher,Q.Decipheriv=o.Decipheriv,Q.createDecipheriv=o.createDecipheriv,Q.getCiphers=o.getCiphers,Q.listCiphers=o.listCiphers;var M=m(8829);Q.DiffieHellmanGroup=M.DiffieHellmanGroup,Q.createDiffieHellmanGroup=M.createDiffieHellmanGroup,Q.getDiffieHellman=M.getDiffieHellman,Q.createDiffieHellman=M.createDiffieHellman,Q.DiffieHellman=M.DiffieHellman;var l=m(3923);Q.createSign=l.createSign,Q.Sign=l.Sign,Q.createVerify=l.createVerify,Q.Verify=l.Verify,Q.createECDH=m(4746);var R=m(3701);Q.publicEncrypt=R.publicEncrypt,Q.privateEncrypt=R.privateEncrypt,Q.publicDecrypt=R.publicDecrypt,Q.privateDecrypt=R.privateDecrypt;var s=m(4275);Q.randomFill=s.randomFill,Q.randomFillSync=s.randomFillSync,Q.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},Q.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:(Ge,Q,m)=>{"use strict";Q.utils=m(7451),Q.Cipher=m(8170),Q.DES=m(4631),Q.CBC=m(9454),Q.EDE=m(1862)},9454:(Ge,Q,m)=>{"use strict";var e=m(2391),t=m(3894),y={};function C(M){e.equal(M.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l{"use strict";var e=m(2391);function t(y){this.options=y,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Ge.exports=t,t.prototype._init=function(){},t.prototype.update=function(C){return 0===C.length?[]:"decrypt"===this.type?this._updateDecrypt(C):this._updateEncrypt(C)},t.prototype._buffer=function(C,o){for(var M=Math.min(this.buffer.length-this.bufferOff,C.length-o),l=0;l0;l--)o+=this._buffer(C,o),M+=this._flushBuffer(R,M);return o+=this._buffer(C,o),R},t.prototype.final=function(C){var o,M;return C&&(o=this.update(C)),M="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),o?o.concat(M):M},t.prototype._pad=function(C,o){if(0===o)return!1;for(;o{"use strict";var e=m(2391),t=m(3894),y=m(7451),C=m(8170);function o(){this.tmp=new Array(2),this.keys=null}function M(R){C.call(this,R);var s=new o;this._desState=s,this.deriveKeys(s,R.key)}t(M,C),Ge.exports=M,M.create=function(s){return new M(s)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];M.prototype.deriveKeys=function(s,L){s.keys=new Array(32),e.equal(L.length,this.blockSize,"Invalid key length");var I=y.readUInt32BE(L,0),A=y.readUInt32BE(L,4);y.pc1(I,A,s.tmp,0),I=s.tmp[0],A=s.tmp[1];for(var E=0;E>>1];I=y.r28shl(I,P),A=y.r28shl(A,P),y.pc2(I,A,s.keys,E)}},M.prototype._update=function(s,L,I,A){var E=this._desState,P=y.readUInt32BE(s,L),w=y.readUInt32BE(s,L+4);y.ip(P,w,E.tmp,0),P=E.tmp[0],w=E.tmp[1],"encrypt"===this.type?this._encrypt(E,P,w,E.tmp,0):this._decrypt(E,P,w,E.tmp,0),w=E.tmp[1],y.writeUInt32BE(I,P=E.tmp[0],A),y.writeUInt32BE(I,w,A+4)},M.prototype._pad=function(s,L){for(var I=s.length-L,A=L;A>>0,P=ge}y.rip(w,P,A,E)},M.prototype._decrypt=function(s,L,I,A,E){for(var P=I,w=L,V=s.keys.length-2;V>=0;V-=2){var j=s.keys[V],W=s.keys[V+1];y.expand(P,s.tmp,0);var te=y.substitute(j^=s.tmp[0],W^=s.tmp[1]),ge=P;P=(w^y.permute(te))>>>0,w=ge}y.rip(P,w,A,E)}},1862:(Ge,Q,m)=>{"use strict";var e=m(2391),t=m(3894),y=m(8170),C=m(4631);function o(l,R){e.equal(R.length,24,"Invalid key length");var s=R.slice(0,8),L=R.slice(8,16),I=R.slice(16,24);this.ciphers="encrypt"===l?[C.create({type:"encrypt",key:s}),C.create({type:"decrypt",key:L}),C.create({type:"encrypt",key:I})]:[C.create({type:"decrypt",key:I}),C.create({type:"encrypt",key:L}),C.create({type:"decrypt",key:s})]}function M(l){y.call(this,l);var R=new o(this.type,this.options.key);this._edeState=R}t(M,y),Ge.exports=M,M.create=function(R){return new M(R)},M.prototype._update=function(R,s,L,I){var A=this._edeState;A.ciphers[0]._update(R,s,L,I),A.ciphers[1]._update(L,I,L,I),A.ciphers[2]._update(L,I,L,I)},M.prototype._pad=C.prototype._pad,M.prototype._unpad=C.prototype._unpad},7451:(Ge,Q)=>{"use strict";Q.readUInt32BE=function(C,o){return(C[0+o]<<24|C[1+o]<<16|C[2+o]<<8|C[3+o])>>>0},Q.writeUInt32BE=function(C,o,M){C[0+M]=o>>>24,C[1+M]=o>>>16&255,C[2+M]=o>>>8&255,C[3+M]=255&o},Q.ip=function(C,o,M,l){for(var R=0,s=0,L=6;L>=0;L-=2){for(var I=0;I<=24;I+=8)R<<=1,R|=o>>>I+L&1;for(I=0;I<=24;I+=8)R<<=1,R|=C>>>I+L&1}for(L=6;L>=0;L-=2){for(I=1;I<=25;I+=8)s<<=1,s|=o>>>I+L&1;for(I=1;I<=25;I+=8)s<<=1,s|=C>>>I+L&1}M[l+0]=R>>>0,M[l+1]=s>>>0},Q.rip=function(C,o,M,l){for(var R=0,s=0,L=0;L<4;L++)for(var I=24;I>=0;I-=8)R<<=1,R|=o>>>I+L&1,R<<=1,R|=C>>>I+L&1;for(L=4;L<8;L++)for(I=24;I>=0;I-=8)s<<=1,s|=o>>>I+L&1,s<<=1,s|=C>>>I+L&1;M[l+0]=R>>>0,M[l+1]=s>>>0},Q.pc1=function(C,o,M,l){for(var R=0,s=0,L=7;L>=5;L--){for(var I=0;I<=24;I+=8)R<<=1,R|=o>>I+L&1;for(I=0;I<=24;I+=8)R<<=1,R|=C>>I+L&1}for(I=0;I<=24;I+=8)R<<=1,R|=o>>I+L&1;for(L=1;L<=3;L++){for(I=0;I<=24;I+=8)s<<=1,s|=o>>I+L&1;for(I=0;I<=24;I+=8)s<<=1,s|=C>>I+L&1}for(I=0;I<=24;I+=8)s<<=1,s|=C>>I+L&1;M[l+0]=R>>>0,M[l+1]=s>>>0},Q.r28shl=function(C,o){return C<>>28-o};var m=[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];Q.pc2=function(C,o,M,l){for(var R=0,s=0,L=m.length>>>1,I=0;I>>m[I]&1;for(I=L;I>>m[I]&1;M[l+0]=R>>>0,M[l+1]=s>>>0},Q.expand=function(C,o,M){var l=0,R=0;l=(1&C)<<5|C>>>27;for(var s=23;s>=15;s-=4)l<<=6,l|=C>>>s&63;for(s=11;s>=3;s-=4)R|=C>>>s&63,R<<=6;R|=(31&C)<<1|C>>>31,o[M+0]=l>>>0,o[M+1]=R>>>0};var e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Q.substitute=function(C,o){for(var M=0,l=0;l<4;l++)M<<=4,M|=e[64*l+(C>>>18-6*l&63)];for(l=0;l<4;l++)M<<=4,M|=e[256+64*l+(o>>>18-6*l&63)];return M>>>0};var t=[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];Q.permute=function(C){for(var o=0,M=0;M>>t[M]&1;return o>>>0},Q.padSplit=function(C,o,M){for(var l=C.toString(2);l.length{var e=m(5563),t=m(9799),y=m(1419),o={binary:!0,hex:!0,base64:!0};Q.DiffieHellmanGroup=Q.createDiffieHellmanGroup=Q.getDiffieHellman=function C(l){var R=new Buffer(t[l].prime,"hex"),s=new Buffer(t[l].gen,"hex");return new y(R,s)},Q.createDiffieHellman=Q.DiffieHellman=function M(l,R,s,L){return Buffer.isBuffer(R)||void 0===o[R]?M(l,"binary",R,s):(R=R||"binary",L=L||"binary",s=s||new Buffer([2]),Buffer.isBuffer(s)||(s=new Buffer(s,L)),"number"==typeof l?new y(e(l,s),s,!0):(Buffer.isBuffer(l)||(l=new Buffer(l,R)),new y(l,s,!0)))}},1419:(Ge,Q,m)=>{var e=m(8313),y=new(m(7079)),C=new e(24),o=new e(11),M=new e(10),l=new e(3),R=new e(7),s=m(5563),L=m(3753);function I(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this._pub=new e(j),this}function A(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this._priv=new e(j),this}Ge.exports=w;var E={};function w(j,W,te){this.setGenerator(W),this.__prime=new e(j),this._prime=e.mont(this.__prime),this._primeLen=j.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,te?(this.setPublicKey=I,this.setPrivateKey=A):this._primeCode=8}function V(j,W){var te=new Buffer(j.toArray());return W?te.toString(W):te}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function P(j,W){var te=W.toString("hex"),ee=[te,j.toString(16)].join("_");if(ee in E)return E[ee];var le,ge=0;if(j.isEven()||!s.simpleSieve||!s.fermatTest(j)||!y.test(j))return ge+=1,E[ee]=ge+="02"===te||"05"===te?8:4,ge;switch(y.test(j.shrn(1))||(ge+=2),te){case"02":j.mod(C).cmp(o)&&(ge+=8);break;case"05":(le=j.mod(M)).cmp(l)&&le.cmp(R)&&(ge+=8);break;default:ge+=4}return E[ee]=ge,ge}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new e(L(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(j){var W=(j=(j=new e(j)).toRed(this._prime)).redPow(this._priv).fromRed(),te=new Buffer(W.toArray()),ee=this.getPrime();if(te.length{var e=m(3753);Ge.exports=ge,ge.simpleSieve=te,ge.fermatTest=ee;var t=m(8313),y=new t(24),o=new(m(7079)),M=new t(1),l=new t(2),R=new t(5),I=(new t(16),new t(8),new t(10)),A=new t(3),P=(new t(7),new t(11)),w=new t(4),j=(new t(12),null);function te(le){for(var re=function W(){if(null!==j)return j;var re=[];re[0]=2;for(var de=1,se=3;se<1048576;se+=2){for(var ye=Math.ceil(Math.sqrt(se)),v=0;vle;)de.ishrn(1);if(de.isEven()&&de.iadd(M),de.testn(1)||de.iadd(l),re.cmp(l)){if(!re.cmp(R))for(;de.mod(I).cmp(A);)de.iadd(w)}else for(;de.mod(y).cmp(P);)de.iadd(w);if(te(se=de.shrn(1))&&te(de)&&ee(se)&&ee(de)&&o.test(se)&&o.test(de))return de}}},8313:function(Ge,Q,m){!function(e,t){"use strict";function y(v,i){if(!v)throw new Error(i||"Assertion failed")}function C(v,i){v.super_=i;var a=function(){};a.prototype=i.prototype,v.prototype=new a,v.prototype.constructor=v}function o(v,i,a){if(o.isBN(v))return v;this.negative=0,this.words=null,this.length=0,this.red=null,null!==v&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(v||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(7748).Buffer}catch(v){}function l(v,i){var a=v.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},4901:Ge=>{"use strict";var Q={single_source_shortest_paths:function(m,e,t){var y={},C={};C[e]=0;var M,l,R,s,L,A,o=Q.PriorityQueue.make();for(o.push(e,0);!o.empty();)for(R in s=(M=o.pop()).cost,L=m[l=M.value]||{})L.hasOwnProperty(R)&&(A=s+L[R],(void 0===C[R]||C[R]>A)&&(C[R]=A,o.push(R,A),y[R]=l));if(void 0!==t&&void 0===C[t]){var w=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(w)}return y},extract_shortest_path_from_predecessor_list:function(m,e){for(var t=[],y=e;y;)t.push(y),y=m[y];return t.reverse(),t},find_path:function(m,e,t){var y=Q.single_source_shortest_paths(m,e,t);return Q.extract_shortest_path_from_predecessor_list(y,t)},PriorityQueue:{make:function(m){var y,e=Q.PriorityQueue,t={};for(y in m=m||{},e)e.hasOwnProperty(y)&&(t[y]=e[y]);return t.queue=[],t.sorter=m.sorter||e.default_sorter,t},default_sorter:function(m,e){return m.cost-e.cost},push:function(m,e){this.queue.push({value:m,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ge.exports=Q},7715:(Ge,Q,m)=>{"use strict";var e=Q;e.version=m(8597).i8,e.utils=m(1970),e.rand=m(7950),e.curve=m(6270),e.curves=m(2916),e.ec=m(7626),e.eddsa=m(1885)},7902:(Ge,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.getNAF,C=t.getJSF,o=t.assert;function M(R,s){this.type=R,this.p=new e(s.p,16),this.red=s.prime?e.red(s.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=s.n&&new e(s.n,16),this.g=s.g&&this.pointFromJSON(s.g,s.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 L=this.n&&this.p.div(this.n);!L||L.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(R,s){this.curve=R,this.type=s,this.precomputed=null}Ge.exports=M,M.prototype.point=function(){throw new Error("Not implemented")},M.prototype.validate=function(){throw new Error("Not implemented")},M.prototype._fixedNafMul=function(s,L){o(s.precomputed);var I=s._getDoubles(),A=y(L,1,this._bitLength),E=(1<=w;j--)V=(V<<1)+A[j];P.push(V)}for(var W=this.jpoint(null,null,null),te=this.jpoint(null,null,null),ee=E;ee>0;ee--){for(w=0;w=0;V--){for(var j=0;V>=0&&0===P[V];V--)j++;if(V>=0&&j++,w=w.dblp(j),V<0)break;var W=P[V];o(0!==W),w="affine"===s.type?w.mixedAdd(W>0?E[W-1>>1]:E[-W-1>>1].neg()):w.add(W>0?E[W-1>>1]:E[-W-1>>1].neg())}return"affine"===s.type?w.toP():w},M.prototype._wnafMulAdd=function(s,L,I,A,E){var W,te,ee,P=this._wnafT1,w=this._wnafT2,V=this._wnafT3,j=0;for(W=0;W=1;W-=2){var le=W-1,re=W;if(1===P[le]&&1===P[re]){var de=[L[le],null,null,L[re]];0===L[le].y.cmp(L[re].y)?(de[1]=L[le].add(L[re]),de[2]=L[le].toJ().mixedAdd(L[re].neg())):0===L[le].y.cmp(L[re].y.redNeg())?(de[1]=L[le].toJ().mixedAdd(L[re]),de[2]=L[le].add(L[re].neg())):(de[1]=L[le].toJ().mixedAdd(L[re]),de[2]=L[le].toJ().mixedAdd(L[re].neg()));var se=[-3,-1,-5,-7,0,7,5,1,3],ye=C(I[le],I[re]);for(j=Math.max(ye[0].length,j),V[le]=new Array(j),V[re]=new Array(j),te=0;te=0;W--){for(var u=0;W>=0;){var _=!0;for(te=0;te=0&&u++,a=a.dblp(u),W<0)break;for(te=0;te0?ee=w[te][D-1>>1]:D<0&&(ee=w[te][-D-1>>1].neg()),a="affine"===ee.type?a.mixedAdd(ee):a.add(ee))}}for(W=0;W=Math.ceil((s.bitLength()+1)/L.step)},l.prototype._getDoubles=function(s,L){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var I=[this],A=this,E=0;E{"use strict";var e=m(1970),t=m(7433),y=m(3894),C=m(7902),o=e.assert;function M(R){this.twisted=1!=(0|R.a),this.mOneA=this.twisted&&-1==(0|R.a),this.extended=this.mOneA,C.call(this,"edwards",R),this.a=new t(R.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(R.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(R.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|R.c)}function l(R,s,L,I,A){C.BasePoint.call(this,R,"projective"),null===s&&null===L&&null===I?(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 t(s,16),this.y=new t(L,16),this.z=I?new t(I,16):this.curve.one,this.t=A&&new t(A,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}y(M,C),Ge.exports=M,M.prototype._mulA=function(s){return this.mOneA?s.redNeg():this.a.redMul(s)},M.prototype._mulC=function(s){return this.oneC?s:this.c.redMul(s)},M.prototype.jpoint=function(s,L,I,A){return this.point(s,L,I,A)},M.prototype.pointFromX=function(s,L){(s=new t(s,16)).red||(s=s.toRed(this.red));var I=s.redSqr(),A=this.c2.redSub(this.a.redMul(I)),E=this.one.redSub(this.c2.redMul(this.d).redMul(I)),P=A.redMul(E.redInvm()),w=P.redSqrt();if(0!==w.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");var V=w.fromRed().isOdd();return(L&&!V||!L&&V)&&(w=w.redNeg()),this.point(s,w)},M.prototype.pointFromY=function(s,L){(s=new t(s,16)).red||(s=s.toRed(this.red));var I=s.redSqr(),A=I.redSub(this.c2),E=I.redMul(this.d).redMul(this.c2).redSub(this.a),P=A.redMul(E.redInvm());if(0===P.cmp(this.zero)){if(L)throw new Error("invalid point");return this.point(this.zero,s)}var w=P.redSqrt();if(0!==w.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==L&&(w=w.redNeg()),this.point(w,s)},M.prototype.validate=function(s){if(s.isInfinity())return!0;s.normalize();var L=s.x.redSqr(),I=s.y.redSqr(),A=L.redMul(this.a).redAdd(I),E=this.c2.redMul(this.one.redAdd(this.d.redMul(L).redMul(I)));return 0===A.cmp(E)},y(l,C.BasePoint),M.prototype.pointFromJSON=function(s){return l.fromJSON(this,s)},M.prototype.point=function(s,L,I,A){return new l(this,s,L,I,A)},l.fromJSON=function(s,L){return new l(s,L[0],L[1],L[2])},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var s=this.x.redSqr(),L=this.y.redSqr(),I=this.z.redSqr();I=I.redIAdd(I);var A=this.curve._mulA(s),E=this.x.redAdd(this.y).redSqr().redISub(s).redISub(L),P=A.redAdd(L),w=P.redSub(I),V=A.redSub(L),j=E.redMul(w),W=P.redMul(V),te=E.redMul(V),ee=w.redMul(P);return this.curve.point(j,W,ee,te)},l.prototype._projDbl=function(){var A,E,P,w,V,j,s=this.x.redAdd(this.y).redSqr(),L=this.x.redSqr(),I=this.y.redSqr();if(this.curve.twisted){var W=(w=this.curve._mulA(L)).redAdd(I);this.zOne?(A=s.redSub(L).redSub(I).redMul(W.redSub(this.curve.two)),E=W.redMul(w.redSub(I)),P=W.redSqr().redSub(W).redSub(W)):(V=this.z.redSqr(),j=W.redSub(V).redISub(V),A=s.redSub(L).redISub(I).redMul(j),E=W.redMul(w.redSub(I)),P=W.redMul(j))}else w=L.redAdd(I),V=this.curve._mulC(this.z).redSqr(),j=w.redSub(V).redSub(V),A=this.curve._mulC(s.redISub(w)).redMul(j),E=this.curve._mulC(w).redMul(L.redISub(I)),P=w.redMul(j);return this.curve.point(A,E,P)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(s){var L=this.y.redSub(this.x).redMul(s.y.redSub(s.x)),I=this.y.redAdd(this.x).redMul(s.y.redAdd(s.x)),A=this.t.redMul(this.curve.dd).redMul(s.t),E=this.z.redMul(s.z.redAdd(s.z)),P=I.redSub(L),w=E.redSub(A),V=E.redAdd(A),j=I.redAdd(L),W=P.redMul(w),te=V.redMul(j),ee=P.redMul(j),ge=w.redMul(V);return this.curve.point(W,te,ge,ee)},l.prototype._projAdd=function(s){var te,ee,L=this.z.redMul(s.z),I=L.redSqr(),A=this.x.redMul(s.x),E=this.y.redMul(s.y),P=this.curve.d.redMul(A).redMul(E),w=I.redSub(P),V=I.redAdd(P),j=this.x.redAdd(this.y).redMul(s.x.redAdd(s.y)).redISub(A).redISub(E),W=L.redMul(w).redMul(j);return this.curve.twisted?(te=L.redMul(V).redMul(E.redSub(this.curve._mulA(A))),ee=w.redMul(V)):(te=L.redMul(V).redMul(E.redSub(A)),ee=this.curve._mulC(w).redMul(V)),this.curve.point(W,te,ee)},l.prototype.add=function(s){return this.isInfinity()?s:s.isInfinity()?this:this.curve.extended?this._extAdd(s):this._projAdd(s)},l.prototype.mul=function(s){return this._hasDoubles(s)?this.curve._fixedNafMul(this,s):this.curve._wnafMul(this,s)},l.prototype.mulAdd=function(s,L,I){return this.curve._wnafMulAdd(1,[this,L],[s,I],2,!1)},l.prototype.jmulAdd=function(s,L,I){return this.curve._wnafMulAdd(1,[this,L],[s,I],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var s=this.z.redInvm();return this.x=this.x.redMul(s),this.y=this.y.redMul(s),this.t&&(this.t=this.t.redMul(s)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(s){return this===s||0===this.getX().cmp(s.getX())&&0===this.getY().cmp(s.getY())},l.prototype.eqXToP=function(s){var L=s.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(L))return!0;for(var I=s.clone(),A=this.curve.redN.redMul(this.z);;){if(I.iadd(this.curve.n),I.cmp(this.curve.p)>=0)return!1;if(L.redIAdd(A),0===this.x.cmp(L))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},6270:(Ge,Q,m)=>{"use strict";var e=Q;e.base=m(7902),e.short=m(1781),e.mont=m(7064),e.edwards=m(3835)},7064:(Ge,Q,m)=>{"use strict";var e=m(7433),t=m(3894),y=m(7902),C=m(1970);function o(l){y.call(this,"mont",l),this.a=new e(l.a,16).toRed(this.red),this.b=new e(l.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function M(l,R,s){y.BasePoint.call(this,l,"projective"),null===R&&null===s?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(R,16),this.z=new e(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}t(o,y),Ge.exports=o,o.prototype.validate=function(R){var s=R.normalize().x,L=s.redSqr(),I=L.redMul(s).redAdd(L.redMul(this.a)).redAdd(s);return 0===I.redSqrt().redSqr().cmp(I)},t(M,y.BasePoint),o.prototype.decodePoint=function(R,s){return this.point(C.toArray(R,s),1)},o.prototype.point=function(R,s){return new M(this,R,s)},o.prototype.pointFromJSON=function(R){return M.fromJSON(this,R)},M.prototype.precompute=function(){},M.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},M.fromJSON=function(R,s){return new M(R,s[0],s[1]||R.one)},M.prototype.inspect=function(){return this.isInfinity()?"":""},M.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},M.prototype.dbl=function(){var s=this.x.redAdd(this.z).redSqr(),I=this.x.redSub(this.z).redSqr(),A=s.redSub(I),E=s.redMul(I),P=A.redMul(I.redAdd(this.curve.a24.redMul(A)));return this.curve.point(E,P)},M.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.diffAdd=function(R,s){var L=this.x.redAdd(this.z),I=this.x.redSub(this.z),A=R.x.redAdd(R.z),P=R.x.redSub(R.z).redMul(L),w=A.redMul(I),V=s.z.redMul(P.redAdd(w).redSqr()),j=s.x.redMul(P.redISub(w).redSqr());return this.curve.point(V,j)},M.prototype.mul=function(R){for(var s=R.clone(),L=this,I=this.curve.point(null,null),E=[];0!==s.cmpn(0);s.iushrn(1))E.push(s.andln(1));for(var P=E.length-1;P>=0;P--)0===E[P]?(L=L.diffAdd(I,this),I=I.dbl()):(I=L.diffAdd(I,this),L=L.dbl());return I},M.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.eq=function(R){return 0===this.getX().cmp(R.getX())},M.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},M.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Ge,Q,m)=>{"use strict";var e=m(1970),t=m(7433),y=m(3894),C=m(7902),o=e.assert;function M(s){C.call(this,"short",s),this.a=new t(s.a,16).toRed(this.red),this.b=new t(s.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(s),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(s,L,I,A){C.BasePoint.call(this,s,"affine"),null===L&&null===I?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(L,16),this.y=new t(I,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function R(s,L,I,A){C.BasePoint.call(this,s,"jacobian"),null===L&&null===I&&null===A?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(L,16),this.y=new t(I,16),this.z=new t(A,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}y(M,C),Ge.exports=M,M.prototype._getEndomorphism=function(L){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var I,A;if(L.beta)I=new t(L.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);I=(I=E[0].cmp(E[1])<0?E[0]:E[1]).toRed(this.red)}if(L.lambda)A=new t(L.lambda,16);else{var P=this._getEndoRoots(this.n);0===this.g.mul(P[0]).x.cmp(this.g.x.redMul(I))?A=P[0]:o(0===this.g.mul(A=P[1]).x.cmp(this.g.x.redMul(I)))}return{beta:I,lambda:A,basis:L.basis?L.basis.map(function(V){return{a:new t(V.a,16),b:new t(V.b,16)}}):this._getEndoBasis(A)}}},M.prototype._getEndoRoots=function(L){var I=L===this.p?this.red:t.mont(L),A=new t(2).toRed(I).redInvm(),E=A.redNeg(),P=new t(3).toRed(I).redNeg().redSqrt().redMul(A);return[E.redAdd(P).fromRed(),E.redSub(P).fromRed()]},M.prototype._getEndoBasis=function(L){for(var W,te,ee,ge,le,re,de,ye,v,I=this.n.ushrn(Math.floor(this.n.bitLength()/2)),A=L,E=this.n.clone(),P=new t(1),w=new t(0),V=new t(0),j=new t(1),se=0;0!==A.cmpn(0);){var i=E.div(A);ye=E.sub(i.mul(A)),v=V.sub(i.mul(P));var a=j.sub(i.mul(w));if(!ee&&ye.cmp(I)<0)W=de.neg(),te=P,ee=ye.neg(),ge=v;else if(ee&&2==++se)break;de=ye,E=A,A=ye,V=P,P=v,j=w,w=a}le=ye.neg(),re=v;var p=ee.sqr().add(ge.sqr());return le.sqr().add(re.sqr()).cmp(p)>=0&&(le=W,re=te),ee.negative&&(ee=ee.neg(),ge=ge.neg()),le.negative&&(le=le.neg(),re=re.neg()),[{a:ee,b:ge},{a:le,b:re}]},M.prototype._endoSplit=function(L){var I=this.endo.basis,A=I[0],E=I[1],P=E.b.mul(L).divRound(this.n),w=A.b.neg().mul(L).divRound(this.n),V=P.mul(A.a),j=w.mul(E.a),W=P.mul(A.b),te=w.mul(E.b);return{k1:L.sub(V).sub(j),k2:W.add(te).neg()}},M.prototype.pointFromX=function(L,I){(L=new t(L,16)).red||(L=L.toRed(this.red));var A=L.redSqr().redMul(L).redIAdd(L.redMul(this.a)).redIAdd(this.b),E=A.redSqrt();if(0!==E.redSqr().redSub(A).cmp(this.zero))throw new Error("invalid point");var P=E.fromRed().isOdd();return(I&&!P||!I&&P)&&(E=E.redNeg()),this.point(L,E)},M.prototype.validate=function(L){if(L.inf)return!0;var I=L.x,A=L.y,E=this.a.redMul(I),P=I.redSqr().redMul(I).redIAdd(E).redIAdd(this.b);return 0===A.redSqr().redISub(P).cmpn(0)},M.prototype._endoWnafMulAdd=function(L,I,A){for(var E=this._endoWnafT1,P=this._endoWnafT2,w=0;w":""},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(L){if(this.inf)return L;if(L.inf)return this;if(this.eq(L))return this.dbl();if(this.neg().eq(L))return this.curve.point(null,null);if(0===this.x.cmp(L.x))return this.curve.point(null,null);var I=this.y.redSub(L.y);0!==I.cmpn(0)&&(I=I.redMul(this.x.redSub(L.x).redInvm()));var A=I.redSqr().redISub(this.x).redISub(L.x),E=I.redMul(this.x.redSub(A)).redISub(this.y);return this.curve.point(A,E)},l.prototype.dbl=function(){if(this.inf)return this;var L=this.y.redAdd(this.y);if(0===L.cmpn(0))return this.curve.point(null,null);var I=this.curve.a,A=this.x.redSqr(),E=L.redInvm(),P=A.redAdd(A).redIAdd(A).redIAdd(I).redMul(E),w=P.redSqr().redISub(this.x.redAdd(this.x)),V=P.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,V)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(L){return L=new t(L,16),this.isInfinity()?this:this._hasDoubles(L)?this.curve._fixedNafMul(this,L):this.curve.endo?this.curve._endoWnafMulAdd([this],[L]):this.curve._wnafMul(this,L)},l.prototype.mulAdd=function(L,I,A){var E=[this,I],P=[L,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,P):this.curve._wnafMulAdd(1,E,P,2)},l.prototype.jmulAdd=function(L,I,A){var E=[this,I],P=[L,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,P,!0):this.curve._wnafMulAdd(1,E,P,2,!0)},l.prototype.eq=function(L){return this===L||this.inf===L.inf&&(this.inf||0===this.x.cmp(L.x)&&0===this.y.cmp(L.y))},l.prototype.neg=function(L){if(this.inf)return this;var I=this.curve.point(this.x,this.y.redNeg());if(L&&this.precomputed){var A=this.precomputed,E=function(P){return P.neg()};I.precomputed={naf:A.naf&&{wnd:A.naf.wnd,points:A.naf.points.map(E)},doubles:A.doubles&&{step:A.doubles.step,points:A.doubles.points.map(E)}}}return I},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},y(R,C.BasePoint),M.prototype.jpoint=function(L,I,A){return new R(this,L,I,A)},R.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var L=this.z.redInvm(),I=L.redSqr(),A=this.x.redMul(I),E=this.y.redMul(I).redMul(L);return this.curve.point(A,E)},R.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},R.prototype.add=function(L){if(this.isInfinity())return L;if(L.isInfinity())return this;var I=L.z.redSqr(),A=this.z.redSqr(),E=this.x.redMul(I),P=L.x.redMul(A),w=this.y.redMul(I.redMul(L.z)),V=L.y.redMul(A.redMul(this.z)),j=E.redSub(P),W=w.redSub(V);if(0===j.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var te=j.redSqr(),ee=te.redMul(j),ge=E.redMul(te),le=W.redSqr().redIAdd(ee).redISub(ge).redISub(ge),re=W.redMul(ge.redISub(le)).redISub(w.redMul(ee)),de=this.z.redMul(L.z).redMul(j);return this.curve.jpoint(le,re,de)},R.prototype.mixedAdd=function(L){if(this.isInfinity())return L.toJ();if(L.isInfinity())return this;var I=this.z.redSqr(),A=this.x,E=L.x.redMul(I),P=this.y,w=L.y.redMul(I).redMul(this.z),V=A.redSub(E),j=P.redSub(w);if(0===V.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var W=V.redSqr(),te=W.redMul(V),ee=A.redMul(W),ge=j.redSqr().redIAdd(te).redISub(ee).redISub(ee),le=j.redMul(ee.redISub(ge)).redISub(P.redMul(te)),re=this.z.redMul(V);return this.curve.jpoint(ge,le,re)},R.prototype.dblp=function(L){if(0===L)return this;if(this.isInfinity())return this;if(!L)return this.dbl();var I;if(this.curve.zeroA||this.curve.threeA){var A=this;for(I=0;I=0)return!1;if(A.redIAdd(P),0===this.x.cmp(A))return!0}},R.prototype.inspect=function(){return this.isInfinity()?"":""},R.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Ge,Q,m)=>{"use strict";var R,e=Q,t=m(7084),y=m(6270),o=m(1970).assert;function M(s){this.curve="short"===s.type?new y.short(s):"edwards"===s.type?new y.edwards(s):new y.mont(s),this.g=this.curve.g,this.n=this.curve.n,this.hash=s.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(s,L){Object.defineProperty(e,s,{configurable:!0,enumerable:!0,get:function(){var I=new M(L);return Object.defineProperty(e,s,{configurable:!0,enumerable:!0,value:I}),I}})}e.PresetCurve=M,l("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:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("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:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("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:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("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:t.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"]}),l("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:t.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"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),l("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:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{R=m(5150)}catch(s){R=void 0}l("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:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",R]})},7626:(Ge,Q,m)=>{"use strict";var e=m(7433),t=m(2438),y=m(1970),C=m(2916),o=m(7950),M=y.assert,l=m(1259),R=m(5957);function s(L){if(!(this instanceof s))return new s(L);"string"==typeof L&&(M(Object.prototype.hasOwnProperty.call(C,L),"Unknown curve "+L),L=C[L]),L instanceof C.PresetCurve&&(L={curve:L}),this.curve=L.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=L.curve.g,this.g.precompute(L.curve.n.bitLength()+1),this.hash=L.hash||L.curve.hash}Ge.exports=s,s.prototype.keyPair=function(I){return new l(this,I)},s.prototype.keyFromPrivate=function(I,A){return l.fromPrivate(this,I,A)},s.prototype.keyFromPublic=function(I,A){return l.fromPublic(this,I,A)},s.prototype.genKeyPair=function(I){I||(I={});for(var A=new t({hash:this.hash,pers:I.pers,persEnc:I.persEnc||"utf8",entropy:I.entropy||o(this.hash.hmacStrength),entropyEnc:I.entropy&&I.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),P=this.n.sub(new e(2));;){var w=new e(A.generate(E));if(!(w.cmp(P)>0))return w.iaddn(1),this.keyFromPrivate(w)}},s.prototype._truncateToN=function(I,A){var E=8*I.byteLength()-this.n.bitLength();return E>0&&(I=I.ushrn(E)),!A&&I.cmp(this.n)>=0?I.sub(this.n):I},s.prototype.sign=function(I,A,E,P){"object"==typeof E&&(P=E,E=null),P||(P={}),A=this.keyFromPrivate(A,E),I=this._truncateToN(new e(I,16));for(var w=this.n.byteLength(),V=A.getPrivate().toArray("be",w),j=I.toArray("be",w),W=new t({hash:this.hash,entropy:V,nonce:j,pers:P.pers,persEnc:P.persEnc||"utf8"}),te=this.n.sub(new e(1)),ee=0;;ee++){var ge=P.k?P.k(ee):new e(W.generate(this.n.byteLength()));if(!((ge=this._truncateToN(ge,!0)).cmpn(1)<=0||ge.cmp(te)>=0)){var le=this.g.mul(ge);if(!le.isInfinity()){var re=le.getX(),de=re.umod(this.n);if(0!==de.cmpn(0)){var se=ge.invm(this.n).mul(de.mul(A.getPrivate()).iadd(I));if(0!==(se=se.umod(this.n)).cmpn(0)){var ye=(le.getY().isOdd()?1:0)|(0!==re.cmp(de)?2:0);return P.canonical&&se.cmp(this.nh)>0&&(se=this.n.sub(se),ye^=1),new R({r:de,s:se,recoveryParam:ye})}}}}}},s.prototype.verify=function(I,A,E,P){I=this._truncateToN(new e(I,16)),E=this.keyFromPublic(E,P);var w=(A=new R(A,"hex")).r,V=A.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||V.cmpn(1)<0||V.cmp(this.n)>=0)return!1;var ee,j=V.invm(this.n),W=j.mul(I).umod(this.n),te=j.mul(w).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(W,E.getPublic(),te)).isInfinity()&&ee.eqXToP(w):!(ee=this.g.mulAdd(W,E.getPublic(),te)).isInfinity()&&0===ee.getX().umod(this.n).cmp(w)},s.prototype.recoverPubKey=function(L,I,A,E){M((3&A)===A,"The recovery param is more than two bits"),I=new R(I,E);var P=this.n,w=new e(L),V=I.r,j=I.s,W=1&A,te=A>>1;if(V.cmp(this.curve.p.umod(this.curve.n))>=0&&te)throw new Error("Unable to find sencond key candinate");V=this.curve.pointFromX(te?V.add(this.curve.n):V,W);var ee=I.r.invm(P),ge=P.sub(w).mul(ee).umod(P),le=j.mul(ee).umod(P);return this.g.mulAdd(ge,V,le)},s.prototype.getKeyRecoveryParam=function(L,I,A,E){if(null!==(I=new R(I,E)).recoveryParam)return I.recoveryParam;for(var P=0;P<4;P++){var w;try{w=this.recoverPubKey(L,I,P)}catch(V){continue}if(w.eq(A))return P}throw new Error("Unable to find valid recovery factor")}},1259:(Ge,Q,m)=>{"use strict";var e=m(7433),y=m(1970).assert;function C(o,M){this.ec=o,this.priv=null,this.pub=null,M.priv&&this._importPrivate(M.priv,M.privEnc),M.pub&&this._importPublic(M.pub,M.pubEnc)}Ge.exports=C,C.fromPublic=function(M,l,R){return l instanceof C?l:new C(M,{pub:l,pubEnc:R})},C.fromPrivate=function(M,l,R){return l instanceof C?l:new C(M,{priv:l,privEnc:R})},C.prototype.validate=function(){var M=this.getPublic();return M.isInfinity()?{result:!1,reason:"Invalid public key"}:M.validate()?M.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"}},C.prototype.getPublic=function(M,l){return"string"==typeof M&&(l=M,M=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),l?this.pub.encode(l,M):this.pub},C.prototype.getPrivate=function(M){return"hex"===M?this.priv.toString(16,2):this.priv},C.prototype._importPrivate=function(M,l){this.priv=new e(M,l||16),this.priv=this.priv.umod(this.ec.curve.n)},C.prototype._importPublic=function(M,l){if(M.x||M.y)return"mont"===this.ec.curve.type?y(M.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&y(M.x&&M.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(M.x,M.y));this.pub=this.ec.curve.decodePoint(M,l)},C.prototype.derive=function(M){return M.validate()||y(M.validate(),"public point not validated"),M.mul(this.priv).getX()},C.prototype.sign=function(M,l,R){return this.ec.sign(M,this,l,R)},C.prototype.verify=function(M,l){return this.ec.verify(M,l,this)},C.prototype.inspect=function(){return""}},5957:(Ge,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.assert;function C(s,L){if(s instanceof C)return s;this._importDER(s,L)||(y(s.r&&s.s,"Signature without r or s"),this.r=new e(s.r,16),this.s=new e(s.s,16),this.recoveryParam=void 0===s.recoveryParam?null:s.recoveryParam)}function o(){this.place=0}function M(s,L){var I=s[L.place++];if(!(128&I))return I;var A=15&I;if(0===A||A>4)return!1;for(var E=0,P=0,w=L.place;P>>=0;return!(E<=127)&&(L.place=w,E)}function l(s){for(var L=0,I=s.length-1;!s[L]&&!(128&s[L+1])&&L>>3);for(s.push(128|I);--I;)s.push(L>>>(I<<3)&255);s.push(L)}}Ge.exports=C,C.prototype._importDER=function(L,I){L=t.toArray(L,I);var A=new o;if(48!==L[A.place++])return!1;var E=M(L,A);if(!1===E||E+A.place!==L.length||2!==L[A.place++])return!1;var P=M(L,A);if(!1===P)return!1;var w=L.slice(A.place,P+A.place);if(A.place+=P,2!==L[A.place++])return!1;var V=M(L,A);if(!1===V||L.length!==V+A.place)return!1;var j=L.slice(A.place,V+A.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===j[0]){if(!(128&j[1]))return!1;j=j.slice(1)}return this.r=new e(w),this.s=new e(j),this.recoveryParam=null,!0},C.prototype.toDER=function(L){var I=this.r.toArray(),A=this.s.toArray();for(128&I[0]&&(I=[0].concat(I)),128&A[0]&&(A=[0].concat(A)),I=l(I),A=l(A);!(A[0]||128&A[1]);)A=A.slice(1);var E=[2];R(E,I.length),(E=E.concat(I)).push(2),R(E,A.length);var P=E.concat(A),w=[48];return R(w,P.length),w=w.concat(P),t.encode(w,L)}},1885:(Ge,Q,m)=>{"use strict";var e=m(7084),t=m(2916),y=m(1970),C=y.assert,o=y.parseBytes,M=m(7535),l=m(8241);function R(s){if(C("ed25519"===s,"only tested with ed25519 so far"),!(this instanceof R))return new R(s);this.curve=s=t[s].curve,this.g=s.g,this.g.precompute(s.n.bitLength()+1),this.pointClass=s.point().constructor,this.encodingLength=Math.ceil(s.n.bitLength()/8),this.hash=e.sha512}Ge.exports=R,R.prototype.sign=function(L,I){L=o(L);var A=this.keyFromSecret(I),E=this.hashInt(A.messagePrefix(),L),P=this.g.mul(E),w=this.encodePoint(P),V=this.hashInt(w,A.pubBytes(),L).mul(A.priv()),j=E.add(V).umod(this.curve.n);return this.makeSignature({R:P,S:j,Rencoded:w})},R.prototype.verify=function(L,I,A){L=o(L),I=this.makeSignature(I);var E=this.keyFromPublic(A),P=this.hashInt(I.Rencoded(),E.pubBytes(),L),w=this.g.mul(I.S());return I.R().add(E.pub().mul(P)).eq(w)},R.prototype.hashInt=function(){for(var L=this.hash(),I=0;I{"use strict";var e=m(1970),t=e.assert,y=e.parseBytes,C=e.cachedProperty;function o(M,l){this.eddsa=M,this._secret=y(l.secret),M.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=y(l.pub)}o.fromPublic=function(l,R){return R instanceof o?R:new o(l,{pub:R})},o.fromSecret=function(l,R){return R instanceof o?R:new o(l,{secret:R})},o.prototype.secret=function(){return this._secret},C(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),C(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),C(o,"privBytes",function(){var l=this.eddsa,R=this.hash(),s=l.encodingLength-1,L=R.slice(0,l.encodingLength);return L[0]&=248,L[s]&=127,L[s]|=64,L}),C(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),C(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),C(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(l){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},o.prototype.verify=function(l,R){return this.eddsa.verify(l,R,this)},o.prototype.getSecret=function(l){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),l)},o.prototype.getPublic=function(l){return e.encode(this.pubBytes(),l)},Ge.exports=o},8241:(Ge,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.assert,C=t.cachedProperty,o=t.parseBytes;function M(l,R){this.eddsa=l,"object"!=typeof R&&(R=o(R)),Array.isArray(R)&&(R={R:R.slice(0,l.encodingLength),S:R.slice(l.encodingLength)}),y(R.R&&R.S,"Signature without R or S"),l.isPoint(R.R)&&(this._R=R.R),R.S instanceof e&&(this._S=R.S),this._Rencoded=Array.isArray(R.R)?R.R:R.Rencoded,this._Sencoded=Array.isArray(R.S)?R.S:R.Sencoded}C(M,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),C(M,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),C(M,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),C(M,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),M.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},M.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},Ge.exports=M},5150:Ge=>{Ge.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:(Ge,Q,m)=>{"use strict";var e=Q,t=m(7433),y=m(2391),C=m(8195);e.assert=y,e.toArray=C.toArray,e.zero2=C.zero2,e.toHex=C.toHex,e.encode=C.encode,e.getNAF=function o(L,I,A){var E=new Array(Math.max(L.bitLength(),A)+1);E.fill(0);for(var P=1<(P>>1)-1?(P>>1)-W:W):j=0,E[V]=j,w.iushrn(1)}return E},e.getJSF=function M(L,I){var A=[[],[]];L=L.clone(),I=I.clone();for(var w,E=0,P=0;L.cmpn(-E)>0||I.cmpn(-P)>0;){var W,te,V=L.andln(3)+E&3,j=I.andln(3)+P&3;3===V&&(V=-1),3===j&&(j=-1),W=0==(1&V)?0:3!=(w=L.andln(7)+E&7)&&5!==w||2!==j?V:-V,A[0].push(W),te=0==(1&j)?0:3!=(w=I.andln(7)+P&7)&&5!==w||2!==V?j:-j,A[1].push(te),2*E===W+1&&(E=1-E),2*P===te+1&&(P=1-P),L.iushrn(1),I.iushrn(1)}return A},e.cachedProperty=function l(L,I,A){var E="_"+I;L.prototype[I]=function(){return void 0!==this[E]?this[E]:this[E]=A.call(this)}},e.parseBytes=function R(L){return"string"==typeof L?e.toArray(L,"hex"):L},e.intFromLE=function s(L){return new t(L,"hex","le")}},7433:function(Ge,Q,m){!function(e,t){"use strict";function y(v,i){if(!v)throw new Error(i||"Assertion failed")}function C(v,i){v.super_=i;var a=function(){};a.prototype=i.prototype,v.prototype=new a,v.prototype.constructor=v}function o(v,i,a){if(o.isBN(v))return v;this.negative=0,this.words=null,this.length=0,this.red=null,null!==v&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(v||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(5568).Buffer}catch(v){}function l(v,i){var a=v.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},8419:Ge=>{"use strict";Ge.exports=function(m){for(var e=[],t=m.length,y=0;y=55296&&C<=56319&&t>y+1){var o=m.charCodeAt(y+1);o>=56320&&o<=57343&&(C=1024*(C-55296)+o-56320+65536,y+=1)}C<128?e.push(C):C<2048?(e.push(C>>6|192),e.push(63&C|128)):C<55296||C>=57344&&C<65536?(e.push(C>>12|224),e.push(C>>6&63|128),e.push(63&C|128)):C>=65536&&C<=1114111?(e.push(C>>18|240),e.push(C>>12&63|128),e.push(C>>6&63|128),e.push(63&C|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},9069:Ge=>{"use strict";var e,Q="object"==typeof Reflect?Reflect:null,m=Q&&"function"==typeof Q.apply?Q.apply:function(ee,ge,le){return Function.prototype.apply.call(ee,ge,le)};e=Q&&"function"==typeof Q.ownKeys?Q.ownKeys:Object.getOwnPropertySymbols?function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:function(ee){return Object.getOwnPropertyNames(ee)};var y=Number.isNaN||function(ee){return ee!=ee};function C(){C.init.call(this)}Ge.exports=C,Ge.exports.once=function V(te,ee){return new Promise(function(ge,le){function re(se){te.removeListener(ee,de),le(se)}function de(){"function"==typeof te.removeListener&&te.removeListener("error",re),ge([].slice.call(arguments))}W(te,ee,de,{once:!0}),"error"!==ee&&function j(te,ee,ge){"function"==typeof te.on&&W(te,"error",ee,ge)}(te,re,{once:!0})})},C.EventEmitter=C,C.prototype._events=void 0,C.prototype._eventsCount=0,C.prototype._maxListeners=void 0;var o=10;function M(te){if("function"!=typeof te)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof te)}function l(te){return void 0===te._maxListeners?C.defaultMaxListeners:te._maxListeners}function R(te,ee,ge,le){var re,de,se;if(M(ge),void 0===(de=te._events)?(de=te._events=Object.create(null),te._eventsCount=0):(void 0!==de.newListener&&(te.emit("newListener",ee,ge.listener?ge.listener:ge),de=te._events),se=de[ee]),void 0===se)se=de[ee]=ge,++te._eventsCount;else if("function"==typeof se?se=de[ee]=le?[ge,se]:[se,ge]:le?se.unshift(ge):se.push(ge),(re=l(te))>0&&se.length>re&&!se.warned){se.warned=!0;var ye=new Error("Possible EventEmitter memory leak detected. "+se.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");ye.name="MaxListenersExceededWarning",ye.emitter=te,ye.type=ee,ye.count=se.length,function t(te){console&&console.warn&&console.warn(te)}(ye)}return te}function s(){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 L(te,ee,ge){var le={fired:!1,wrapFn:void 0,target:te,type:ee,listener:ge},re=s.bind(le);return re.listener=ge,le.wrapFn=re,re}function I(te,ee,ge){var le=te._events;if(void 0===le)return[];var re=le[ee];return void 0===re?[]:"function"==typeof re?ge?[re.listener||re]:[re]:ge?function w(te){for(var ee=new Array(te.length),ge=0;ge0&&(se=ge[0]),se instanceof Error)throw se;var ye=new Error("Unhandled error."+(se?" ("+se.message+")":""));throw ye.context=se,ye}var v=de[ee];if(void 0===v)return!1;if("function"==typeof v)m(v,this,ge);else{var i=v.length,a=E(v,i);for(le=0;le=0;se--)if(le[se]===ge||le[se].listener===ge){ye=le[se].listener,de=se;break}if(de<0)return this;0===de?le.shift():function P(te,ee){for(;ee+1=0;re--)this.removeListener(ee,ge[re]);return this},C.prototype.listeners=function(ee){return I(this,ee,!0)},C.prototype.rawListeners=function(ee){return I(this,ee,!1)},C.listenerCount=function(te,ee){return"function"==typeof te.listenerCount?te.listenerCount(ee):A.call(te,ee)},C.prototype.listenerCount=A,C.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},347:(Ge,Q,m)=>{var e=m(3502).Buffer,t=m(8095);Ge.exports=function y(C,o,M,l){if(e.isBuffer(C)||(C=e.from(C,"binary")),o&&(e.isBuffer(o)||(o=e.from(o,"binary")),8!==o.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var R=M/8,s=e.alloc(R),L=e.alloc(l||0),I=e.alloc(0);R>0||l>0;){var A=new t;A.update(I),A.update(C),o&&A.update(o),I=A.digest();var E=0;if(R>0){var P=s.length-R;E=Math.min(R,I.length),I.copy(s,P,0,E),R-=E}if(E0){var w=L.length-l,V=Math.min(l,I.length-E);I.copy(L,w,E,E+V),l-=V}}return I.fill(0),{key:s,iv:L}}},9650:(Ge,Q,m)=>{"use strict";var e=m(8444).Buffer,t=m(5685).Transform;function o(M){t.call(this),this._block=e.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(3894)(o,t),o.prototype._transform=function(M,l,R){var s=null;try{this.update(M,l)}catch(L){s=L}R(s)},o.prototype._flush=function(M){var l=null;try{this.push(this.digest())}catch(R){l=R}M(l)},o.prototype.update=function(M,l){if(function C(M,l){if(!e.isBuffer(M)&&"string"!=typeof M)throw new TypeError(l+" must be a string or a buffer")}(M,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(M)||(M=e.from(M,l));for(var R=this._block,s=0;this._blockOffset+M.length-s>=this._blockSize;){for(var L=this._blockOffset;L0;++I)this._length[I]+=A,(A=this._length[I]/4294967296|0)>0&&(this._length[I]-=4294967296*A);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(M){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var l=this._digest();void 0!==M&&(l=l.toString(M)),this._block.fill(0),this._blockOffset=0;for(var R=0;R<4;++R)this._length[R]=0;return l},o.prototype._digest=function(){throw new Error("_digest is not implemented")},Ge.exports=o},8444:(Ge,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ge.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},7084:(Ge,Q,m)=>{var e=Q;e.utils=m(9299),e.common=m(3800),e.sha=m(4962),e.ripemd=m(9458),e.hmac=m(2194),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},3800:(Ge,Q,m)=>{"use strict";var e=m(9299),t=m(2391);function y(){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}Q.BlockHash=y,y.prototype.update=function(o,M){if(o=e.toArray(o,M),this.pending=this.pending?this.pending.concat(o):o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){var l=(o=this.pending).length%this._delta8;this.pending=o.slice(o.length-l,o.length),0===this.pending.length&&(this.pending=null),o=e.join32(o,0,o.length-l,this.endian);for(var R=0;R>>24&255,R[s++]=o>>>16&255,R[s++]=o>>>8&255,R[s++]=255&o}else for(R[s++]=255&o,R[s++]=o>>>8&255,R[s++]=o>>>16&255,R[s++]=o>>>24&255,R[s++]=0,R[s++]=0,R[s++]=0,R[s++]=0,L=8;L{"use strict";var e=m(9299),t=m(2391);function y(C,o,M){if(!(this instanceof y))return new y(C,o,M);this.Hash=C,this.blockSize=C.blockSize/8,this.outSize=C.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(o,M))}Ge.exports=y,y.prototype._init=function(o){o.length>this.blockSize&&(o=(new this.Hash).update(o).digest()),t(o.length<=this.blockSize);for(var M=o.length;M{"use strict";var e=m(9299),t=m(3800),y=e.rotl32,C=e.sum32,o=e.sum32_3,M=e.sum32_4,l=t.BlockHash;function R(){if(!(this instanceof R))return new R;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function s(V,j,W,te){return V<=15?j^W^te:V<=31?j&W|~j&te:V<=47?(j|~W)^te:V<=63?j&te|W&~te:j^(W|~te)}function I(V){return V<=15?1352829926:V<=31?1548603684:V<=47?1836072691:V<=63?2053994217:0}e.inherits(R,l),Q.ripemd160=R,R.blockSize=512,R.outSize=160,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(j,W){for(var te=this.h[0],ee=this.h[1],ge=this.h[2],le=this.h[3],re=this.h[4],de=te,se=ee,ye=ge,v=le,i=re,a=0;a<80;a++){var p=C(y(M(te,s(a,ee,ge,le),j[A[a]+W],(V=a)<=15?0:V<=31?1518500249:V<=47?1859775393:V<=63?2400959708:2840853838),P[a]),re);te=re,re=le,le=y(ge,10),ge=ee,ee=p,p=C(y(M(de,s(79-a,se,ye,v),j[E[a]+W],I(a)),w[a]),i),de=i,i=v,v=y(ye,10),ye=se,se=p}var V;p=o(this.h[1],ge,v),this.h[1]=o(this.h[2],le,i),this.h[2]=o(this.h[3],re,de),this.h[3]=o(this.h[4],te,se),this.h[4]=o(this.h[0],ee,ye),this.h[0]=p},R.prototype._digest=function(j){return"hex"===j?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],P=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},4962:(Ge,Q,m)=>{"use strict";Q.sha1=m(9007),Q.sha224=m(55),Q.sha256=m(9342),Q.sha384=m(8634),Q.sha512=m(39)},9007:(Ge,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(3113),C=e.rotl32,o=e.sum32,M=e.sum32_5,l=y.ft_1,R=t.BlockHash,s=[1518500249,1859775393,2400959708,3395469782];function L(){if(!(this instanceof L))return new L;R.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(L,R),Ge.exports=L,L.blockSize=512,L.outSize=160,L.hmacStrength=80,L.padLength=64,L.prototype._update=function(A,E){for(var P=this.W,w=0;w<16;w++)P[w]=A[E+w];for(;w{"use strict";var e=m(9299),t=m(9342);function y(){if(!(this instanceof y))return new y;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}e.inherits(y,t),Ge.exports=y,y.blockSize=512,y.outSize=224,y.hmacStrength=192,y.padLength=64,y.prototype._digest=function(o){return"hex"===o?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")}},9342:(Ge,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(3113),C=m(2391),o=e.sum32,M=e.sum32_4,l=e.sum32_5,R=y.ch32,s=y.maj32,L=y.s0_256,I=y.s1_256,A=y.g0_256,E=y.g1_256,P=t.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function V(){if(!(this instanceof V))return new V;P.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}e.inherits(V,P),Ge.exports=V,V.blockSize=512,V.outSize=256,V.hmacStrength=192,V.padLength=64,V.prototype._update=function(W,te){for(var ee=this.W,ge=0;ge<16;ge++)ee[ge]=W[te+ge];for(;ge{"use strict";var e=m(9299),t=m(39);function y(){if(!(this instanceof y))return new y;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}e.inherits(y,t),Ge.exports=y,y.blockSize=1024,y.outSize=384,y.hmacStrength=192,y.padLength=128,y.prototype._digest=function(o){return"hex"===o?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")}},39:(Ge,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(2391),C=e.rotr64_hi,o=e.rotr64_lo,M=e.shr64_hi,l=e.shr64_lo,R=e.sum64,s=e.sum64_hi,L=e.sum64_lo,I=e.sum64_4_hi,A=e.sum64_4_lo,E=e.sum64_5_hi,P=e.sum64_5_lo,w=t.BlockHash,V=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function j(){if(!(this instanceof j))return new j;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=V,this.W=new Array(160)}function W(p,u,_,D,O){var x=p&_^~p&O;return x<0&&(x+=4294967296),x}function te(p,u,_,D,O,x){var r=u&D^~u&x;return r<0&&(r+=4294967296),r}function ee(p,u,_,D,O){var x=p&_^p&O^_&O;return x<0&&(x+=4294967296),x}function ge(p,u,_,D,O,x){var r=u&D^u&x^D&x;return r<0&&(r+=4294967296),r}function le(p,u){var x=C(p,u,28)^C(u,p,2)^C(u,p,7);return x<0&&(x+=4294967296),x}function re(p,u){var x=o(p,u,28)^o(u,p,2)^o(u,p,7);return x<0&&(x+=4294967296),x}function de(p,u){var x=C(p,u,14)^C(p,u,18)^C(u,p,9);return x<0&&(x+=4294967296),x}function se(p,u){var x=o(p,u,14)^o(p,u,18)^o(u,p,9);return x<0&&(x+=4294967296),x}function ye(p,u){var x=C(p,u,1)^C(p,u,8)^M(p,u,7);return x<0&&(x+=4294967296),x}function v(p,u){var x=o(p,u,1)^o(p,u,8)^l(p,u,7);return x<0&&(x+=4294967296),x}function i(p,u){var x=C(p,u,19)^C(u,p,29)^M(p,u,6);return x<0&&(x+=4294967296),x}function a(p,u){var x=o(p,u,19)^o(u,p,29)^l(p,u,6);return x<0&&(x+=4294967296),x}e.inherits(j,w),Ge.exports=j,j.blockSize=1024,j.outSize=512,j.hmacStrength=192,j.padLength=128,j.prototype._prepareBlock=function(u,_){for(var D=this.W,O=0;O<32;O++)D[O]=u[_+O];for(;O{"use strict";var t=m(9299).rotr32;function C(I,A,E){return I&A^~I&E}function o(I,A,E){return I&A^I&E^A&E}function M(I,A,E){return I^A^E}Q.ft_1=function y(I,A,E,P){return 0===I?C(A,E,P):1===I||3===I?M(A,E,P):2===I?o(A,E,P):void 0},Q.ch32=C,Q.maj32=o,Q.p32=M,Q.s0_256=function l(I){return t(I,2)^t(I,13)^t(I,22)},Q.s1_256=function R(I){return t(I,6)^t(I,11)^t(I,25)},Q.g0_256=function s(I){return t(I,7)^t(I,18)^I>>>3},Q.g1_256=function L(I){return t(I,17)^t(I,19)^I>>>10}},9299:(Ge,Q,m)=>{"use strict";var e=m(2391),t=m(3894);function y(a,p){return!(55296!=(64512&a.charCodeAt(p))||p<0||p+1>=a.length)&&56320==(64512&a.charCodeAt(p+1))}function M(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function R(a){return 1===a.length?"0"+a:a}function s(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}Q.inherits=t,Q.toArray=function C(a,p){if(Array.isArray(a))return a.slice();if(!a)return[];var u=[];if("string"==typeof a)if(p){if("hex"===p)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),D=0;D>6|192,u[_++]=63&O|128):y(a,D)?(O=65536+((1023&O)<<10)+(1023&a.charCodeAt(++D)),u[_++]=O>>18|240,u[_++]=O>>12&63|128,u[_++]=O>>6&63|128,u[_++]=63&O|128):(u[_++]=O>>12|224,u[_++]=O>>6&63|128,u[_++]=63&O|128)}else for(D=0;D>>0;return O},Q.split32=function I(a,p){for(var u=new Array(4*a.length),_=0,D=0;_>>24,u[D+1]=O>>>16&255,u[D+2]=O>>>8&255,u[D+3]=255&O):(u[D+3]=O>>>24,u[D+2]=O>>>16&255,u[D+1]=O>>>8&255,u[D]=255&O)}return u},Q.rotr32=function A(a,p){return a>>>p|a<<32-p},Q.rotl32=function E(a,p){return a<>>32-p},Q.sum32=function P(a,p){return a+p>>>0},Q.sum32_3=function w(a,p,u){return a+p+u>>>0},Q.sum32_4=function V(a,p,u,_){return a+p+u+_>>>0},Q.sum32_5=function j(a,p,u,_,D){return a+p+u+_+D>>>0},Q.sum64=function W(a,p,u,_){var x=_+a[p+1]>>>0;a[p]=(x<_?1:0)+u+a[p]>>>0,a[p+1]=x},Q.sum64_hi=function te(a,p,u,_){return(p+_>>>0>>0},Q.sum64_lo=function ee(a,p,u,_){return p+_>>>0},Q.sum64_4_hi=function ge(a,p,u,_,D,O,x,r){var b=0,Z=p;return b+=(Z=Z+_>>>0)>>0)>>0)>>0},Q.sum64_4_lo=function le(a,p,u,_,D,O,x,r){return p+_+O+r>>>0},Q.sum64_5_hi=function re(a,p,u,_,D,O,x,r,b,Z){var N=0,U=p;return N+=(U=U+_>>>0)>>0)>>0)>>0)>>0},Q.sum64_5_lo=function de(a,p,u,_,D,O,x,r,b,Z){return p+_+O+r+Z>>>0},Q.rotr64_hi=function se(a,p,u){return(p<<32-u|a>>>u)>>>0},Q.rotr64_lo=function ye(a,p,u){return(a<<32-u|p>>>u)>>>0},Q.shr64_hi=function v(a,p,u){return a>>>u},Q.shr64_lo=function i(a,p,u){return(a<<32-u|p>>>u)>>>0}},2438:(Ge,Q,m)=>{"use strict";var e=m(7084),t=m(8195),y=m(2391);function C(o){if(!(this instanceof C))return new C(o);this.hash=o.hash,this.predResist=!!o.predResist,this.outLen=this.hash.outSize,this.minEntropy=o.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var M=t.toArray(o.entropy,o.entropyEnc||"hex"),l=t.toArray(o.nonce,o.nonceEnc||"hex"),R=t.toArray(o.pers,o.persEnc||"hex");y(M.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(M,l,R)}Ge.exports=C,C.prototype._init=function(M,l,R){var s=M.concat(l).concat(R);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var L=0;L=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(M.concat(R||[])),this._reseed=1},C.prototype.generate=function(M,l,R,s){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof l&&(s=R,R=l,l=null),R&&(R=t.toArray(R,s||"hex"),this._update(R));for(var L=[];L.length{Q.read=function(m,e,t,y,C){var o,M,l=8*C-y-1,R=(1<>1,L=-7,I=t?C-1:0,A=t?-1:1,E=m[e+I];for(I+=A,o=E&(1<<-L)-1,E>>=-L,L+=l;L>0;o=256*o+m[e+I],I+=A,L-=8);for(M=o&(1<<-L)-1,o>>=-L,L+=y;L>0;M=256*M+m[e+I],I+=A,L-=8);if(0===o)o=1-s;else{if(o===R)return M?NaN:1/0*(E?-1:1);M+=Math.pow(2,y),o-=s}return(E?-1:1)*M*Math.pow(2,o-y)},Q.write=function(m,e,t,y,C,o){var M,l,R,s=8*o-C-1,L=(1<>1,A=23===C?Math.pow(2,-24)-Math.pow(2,-77):0,E=y?0:o-1,P=y?1:-1,w=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,M=L):(M=Math.floor(Math.log(e)/Math.LN2),e*(R=Math.pow(2,-M))<1&&(M--,R*=2),(e+=M+I>=1?A/R:A*Math.pow(2,1-I))*R>=2&&(M++,R/=2),M+I>=L?(l=0,M=L):M+I>=1?(l=(e*R-1)*Math.pow(2,C),M+=I):(l=e*Math.pow(2,I-1)*Math.pow(2,C),M=0));C>=8;m[t+E]=255&l,E+=P,l/=256,C-=8);for(M=M<0;m[t+E]=255&M,E+=P,M/=256,s-=8);m[t+E-P]|=128*w}},3894:Ge=>{Ge.exports="function"==typeof Object.create?function(m,e){e&&(m.super_=e,m.prototype=Object.create(e.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:function(m,e){if(e){m.super_=e;var t=function(){};t.prototype=e.prototype,m.prototype=new t,m.prototype.constructor=m}}},717:(Ge,Q,m)=>{"use strict";var e=m(623);function t(y){return!0===e(y)&&"[object Object]"===Object.prototype.toString.call(y)}Ge.exports=function(C){var o,M;return!(!1===t(C)||(o=C.constructor,"function"!=typeof o)||(M=o.prototype,!1===t(M))||!1===M.hasOwnProperty("isPrototypeOf"))}},623:Ge=>{"use strict";Ge.exports=function(m){return null!=m&&"object"==typeof m&&!1===Array.isArray(m)}},2872:Ge=>{var Q=Object.prototype.toString;function m(s){return"function"==typeof s.constructor?s.constructor.name:null}Ge.exports=function(L){if(void 0===L)return"undefined";if(null===L)return"null";var I=typeof L;if("boolean"===I)return"boolean";if("string"===I)return"string";if("number"===I)return"number";if("symbol"===I)return"symbol";if("function"===I)return function o(s,L){return"GeneratorFunction"===m(s)}(L)?"generatorfunction":"function";if(function e(s){return Array.isArray?Array.isArray(s):s instanceof Array}(L))return"array";if(function R(s){return!(!s.constructor||"function"!=typeof s.constructor.isBuffer)&&s.constructor.isBuffer(s)}(L))return"buffer";if(function l(s){try{if("number"==typeof s.length&&"function"==typeof s.callee)return!0}catch(L){if(-1!==L.message.indexOf("callee"))return!0}return!1}(L))return"arguments";if(function y(s){return s instanceof Date||"function"==typeof s.toDateString&&"function"==typeof s.getDate&&"function"==typeof s.setDate}(L))return"date";if(function t(s){return s instanceof Error||"string"==typeof s.message&&s.constructor&&"number"==typeof s.constructor.stackTraceLimit}(L))return"error";if(function C(s){return s instanceof RegExp||"string"==typeof s.flags&&"boolean"==typeof s.ignoreCase&&"boolean"==typeof s.multiline&&"boolean"==typeof s.global}(L))return"regexp";switch(m(L)){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 M(s){return"function"==typeof s.throw&&"function"==typeof s.return&&"function"==typeof s.next}(L))return"generator";switch(I=Q.call(L)){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 I.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Ge,Q,m)=>{"use strict";var e=m(3894),t=m(9650),y=m(3502).Buffer,C=new Array(16);function o(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function M(I,A){return I<>>32-A}function l(I,A,E,P,w,V,j){return M(I+(A&E|~A&P)+w+V|0,j)+A|0}function R(I,A,E,P,w,V,j){return M(I+(A&P|E&~P)+w+V|0,j)+A|0}function s(I,A,E,P,w,V,j){return M(I+(A^E^P)+w+V|0,j)+A|0}function L(I,A,E,P,w,V,j){return M(I+(E^(A|~P))+w+V|0,j)+A|0}e(o,t),o.prototype._update=function(){for(var I=C,A=0;A<16;++A)I[A]=this._block.readInt32LE(4*A);var E=this._a,P=this._b,w=this._c,V=this._d;E=l(E,P,w,V,I[0],3614090360,7),V=l(V,E,P,w,I[1],3905402710,12),w=l(w,V,E,P,I[2],606105819,17),P=l(P,w,V,E,I[3],3250441966,22),E=l(E,P,w,V,I[4],4118548399,7),V=l(V,E,P,w,I[5],1200080426,12),w=l(w,V,E,P,I[6],2821735955,17),P=l(P,w,V,E,I[7],4249261313,22),E=l(E,P,w,V,I[8],1770035416,7),V=l(V,E,P,w,I[9],2336552879,12),w=l(w,V,E,P,I[10],4294925233,17),P=l(P,w,V,E,I[11],2304563134,22),E=l(E,P,w,V,I[12],1804603682,7),V=l(V,E,P,w,I[13],4254626195,12),w=l(w,V,E,P,I[14],2792965006,17),E=R(E,P=l(P,w,V,E,I[15],1236535329,22),w,V,I[1],4129170786,5),V=R(V,E,P,w,I[6],3225465664,9),w=R(w,V,E,P,I[11],643717713,14),P=R(P,w,V,E,I[0],3921069994,20),E=R(E,P,w,V,I[5],3593408605,5),V=R(V,E,P,w,I[10],38016083,9),w=R(w,V,E,P,I[15],3634488961,14),P=R(P,w,V,E,I[4],3889429448,20),E=R(E,P,w,V,I[9],568446438,5),V=R(V,E,P,w,I[14],3275163606,9),w=R(w,V,E,P,I[3],4107603335,14),P=R(P,w,V,E,I[8],1163531501,20),E=R(E,P,w,V,I[13],2850285829,5),V=R(V,E,P,w,I[2],4243563512,9),w=R(w,V,E,P,I[7],1735328473,14),E=s(E,P=R(P,w,V,E,I[12],2368359562,20),w,V,I[5],4294588738,4),V=s(V,E,P,w,I[8],2272392833,11),w=s(w,V,E,P,I[11],1839030562,16),P=s(P,w,V,E,I[14],4259657740,23),E=s(E,P,w,V,I[1],2763975236,4),V=s(V,E,P,w,I[4],1272893353,11),w=s(w,V,E,P,I[7],4139469664,16),P=s(P,w,V,E,I[10],3200236656,23),E=s(E,P,w,V,I[13],681279174,4),V=s(V,E,P,w,I[0],3936430074,11),w=s(w,V,E,P,I[3],3572445317,16),P=s(P,w,V,E,I[6],76029189,23),E=s(E,P,w,V,I[9],3654602809,4),V=s(V,E,P,w,I[12],3873151461,11),w=s(w,V,E,P,I[15],530742520,16),E=L(E,P=s(P,w,V,E,I[2],3299628645,23),w,V,I[0],4096336452,6),V=L(V,E,P,w,I[7],1126891415,10),w=L(w,V,E,P,I[14],2878612391,15),P=L(P,w,V,E,I[5],4237533241,21),E=L(E,P,w,V,I[12],1700485571,6),V=L(V,E,P,w,I[3],2399980690,10),w=L(w,V,E,P,I[10],4293915773,15),P=L(P,w,V,E,I[1],2240044497,21),E=L(E,P,w,V,I[8],1873313359,6),V=L(V,E,P,w,I[15],4264355552,10),w=L(w,V,E,P,I[6],2734768916,15),P=L(P,w,V,E,I[13],1309151649,21),E=L(E,P,w,V,I[4],4149444226,6),V=L(V,E,P,w,I[11],3174756917,10),w=L(w,V,E,P,I[2],718787259,15),P=L(P,w,V,E,I[9],3951481745,21),this._a=this._a+E|0,this._b=this._b+P|0,this._c=this._c+w|0,this._d=this._d+V|0},o.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 I=y.allocUnsafe(16);return I.writeInt32LE(this._a,0),I.writeInt32LE(this._b,4),I.writeInt32LE(this._c,8),I.writeInt32LE(this._d,12),I},Ge.exports=o},7079:(Ge,Q,m)=>{var e=m(1378),t=m(7950);function y(C){this.rand=C||new t.Rand}Ge.exports=y,y.create=function(o){return new y(o)},y.prototype._randbelow=function(o){var M=o.bitLength(),l=Math.ceil(M/8);do{var R=new e(this.rand.generate(l))}while(R.cmp(o)>=0);return R},y.prototype._randrange=function(o,M){var l=M.sub(o);return o.add(this._randbelow(l))},y.prototype.test=function(o,M,l){var R=o.bitLength(),s=e.mont(o),L=new e(1).toRed(s);M||(M=Math.max(1,R/48|0));for(var I=o.subn(1),A=0;!I.testn(A);A++);for(var E=o.shrn(A),P=I.toRed(s);M>0;M--){var V=this._randrange(new e(2),I);l&&l(V);var j=V.toRed(s).redPow(E);if(0!==j.cmp(L)&&0!==j.cmp(P)){for(var W=1;W0;M--){var P=this._randrange(new e(2),L),w=o.gcd(P);if(0!==w.cmpn(1))return w;var V=P.toRed(R).redPow(A);if(0!==V.cmp(s)&&0!==V.cmp(E)){for(var j=1;j=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},2391:Ge=>{function Q(m,e){if(!m)throw new Error(e||"Assertion failed")}Ge.exports=Q,Q.equal=function(e,t,y){if(e!=t)throw new Error(y||"Assertion failed: "+e+" != "+t)}},8195:(Ge,Q)=>{"use strict";var m=Q;function t(C){return 1===C.length?"0"+C:C}function y(C){for(var o="",M=0;M>8,L=255&R;s?M.push(s,L):M.push(L)}return M},m.zero2=t,m.toHex=y,m.encode=function(o,M){return"hex"===M?y(o):o}},644:(Ge,Q,m)=>{"use strict";m.d(Q,{op:()=>Ve,$V:()=>et,Xd:()=>Jt});var e=m(7579),t=m(4968),C=(m(6451),m(3601)),o=m(2722),R=(m(1884),m(9718),m(5e3)),s=m(9808);function L(ct){return getComputedStyle(ct)}function I(ct,ke){for(var Be in ke){var at=ke[Be];"number"==typeof at&&(at+="px"),ct.style[Be]=at}return ct}function A(ct){var ke=document.createElement("div");return ke.className=ct,ke}var E="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function P(ct,ke){if(!E)throw new Error("No element matching method supported");return E.call(ct,ke)}function w(ct){ct.remove?ct.remove():ct.parentNode&&ct.parentNode.removeChild(ct)}function V(ct,ke){return Array.prototype.filter.call(ct.children,function(Be){return P(Be,ke)})}var j_element_thumb=function(ct){return"ps__thumb-"+ct},j_element_rail=function(ct){return"ps__rail-"+ct},j_element_consuming="ps__child--consume",j_state_focus="ps--focus",j_state_clicking="ps--clicking",j_state_active=function(ct){return"ps--active-"+ct},j_state_scrolling=function(ct){return"ps--scrolling-"+ct},W={x:null,y:null};function te(ct,ke){var Be=ct.element.classList,at=j_state_scrolling(ke);Be.contains(at)?clearTimeout(W[ke]):Be.add(at)}function ee(ct,ke){W[ke]=setTimeout(function(){return ct.isAlive&&ct.element.classList.remove(j_state_scrolling(ke))},ct.settings.scrollingThreshold)}var le=function(ke){this.element=ke,this.handlers={}},re={isEmpty:{configurable:!0}};le.prototype.bind=function(ke,Be){void 0===this.handlers[ke]&&(this.handlers[ke]=[]),this.handlers[ke].push(Be),this.element.addEventListener(ke,Be,!1)},le.prototype.unbind=function(ke,Be){var at=this;this.handlers[ke]=this.handlers[ke].filter(function(st){return!(!Be||st===Be)||(at.element.removeEventListener(ke,st,!1),!1)})},le.prototype.unbindAll=function(){for(var ke in this.handlers)this.unbind(ke)},re.isEmpty.get=function(){var ct=this;return Object.keys(this.handlers).every(function(ke){return 0===ct.handlers[ke].length})},Object.defineProperties(le.prototype,re);var de=function(){this.eventElements=[]};function se(ct){if("function"==typeof window.CustomEvent)return new CustomEvent(ct);var ke=document.createEvent("CustomEvent");return ke.initCustomEvent(ct,!1,!1,void 0),ke}function ye(ct,ke,Be,at,st){var At;if(void 0===at&&(at=!0),void 0===st&&(st=!1),"top"===ke)At=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==ke)throw new Error("A proper axis should be provided");At=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function v(ct,ke,Be,at,st){var At=Be[0],li=Be[1],Bt=Be[2],Rt=Be[3],Li=Be[4],si=Be[5];void 0===at&&(at=!0),void 0===st&&(st=!1);var ci=ct.element;ct.reach[Rt]=null,ci[Bt]<1&&(ct.reach[Rt]="start"),ci[Bt]>ct[At]-ct[li]-1&&(ct.reach[Rt]="end"),ke&&(ci.dispatchEvent(se("ps-scroll-"+Rt)),ke<0?ci.dispatchEvent(se("ps-scroll-"+Li)):ke>0&&ci.dispatchEvent(se("ps-scroll-"+si)),at&&function ge(ct,ke){te(ct,ke),ee(ct,ke)}(ct,Rt)),ct.reach[Rt]&&(ke||st)&&ci.dispatchEvent(se("ps-"+Rt+"-reach-"+ct.reach[Rt]))}(ct,Be,At,at,st)}function i(ct){return parseInt(ct,10)||0}de.prototype.eventElement=function(ke){var Be=this.eventElements.filter(function(at){return at.element===ke})[0];return Be||(Be=new le(ke),this.eventElements.push(Be)),Be},de.prototype.bind=function(ke,Be,at){this.eventElement(ke).bind(Be,at)},de.prototype.unbind=function(ke,Be,at){var st=this.eventElement(ke);st.unbind(Be,at),st.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(st),1)},de.prototype.unbindAll=function(){this.eventElements.forEach(function(ke){return ke.unbindAll()}),this.eventElements=[]},de.prototype.once=function(ke,Be,at){var st=this.eventElement(ke),At=function(li){st.unbind(Be,At),at(li)};st.bind(Be,At)};var u={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 _(ct){var ke=ct.element,Be=Math.floor(ke.scrollTop),at=ke.getBoundingClientRect();ct.containerWidth=Math.ceil(at.width),ct.containerHeight=Math.ceil(at.height),ct.contentWidth=ke.scrollWidth,ct.contentHeight=ke.scrollHeight,ke.contains(ct.scrollbarXRail)||(V(ke,j_element_rail("x")).forEach(function(st){return w(st)}),ke.appendChild(ct.scrollbarXRail)),ke.contains(ct.scrollbarYRail)||(V(ke,j_element_rail("y")).forEach(function(st){return w(st)}),ke.appendChild(ct.scrollbarYRail)),!ct.settings.suppressScrollX&&ct.containerWidth+ct.settings.scrollXMarginOffset=ct.railXWidth-ct.scrollbarXWidth&&(ct.scrollbarXLeft=ct.railXWidth-ct.scrollbarXWidth),ct.scrollbarYTop>=ct.railYHeight-ct.scrollbarYHeight&&(ct.scrollbarYTop=ct.railYHeight-ct.scrollbarYHeight),function O(ct,ke){var Be={width:ke.railXWidth},at=Math.floor(ct.scrollTop);Be.left=ke.isRtl?ke.negativeScrollAdjustment+ct.scrollLeft+ke.containerWidth-ke.contentWidth:ct.scrollLeft,ke.isScrollbarXUsingBottom?Be.bottom=ke.scrollbarXBottom-at:Be.top=ke.scrollbarXTop+at,I(ke.scrollbarXRail,Be);var st={top:at,height:ke.railYHeight};ke.isScrollbarYUsingRight?st.right=ke.isRtl?ke.contentWidth-(ke.negativeScrollAdjustment+ct.scrollLeft)-ke.scrollbarYRight-ke.scrollbarYOuterWidth-9:ke.scrollbarYRight-ct.scrollLeft:st.left=ke.isRtl?ke.negativeScrollAdjustment+ct.scrollLeft+2*ke.containerWidth-ke.contentWidth-ke.scrollbarYLeft-ke.scrollbarYOuterWidth:ke.scrollbarYLeft+ct.scrollLeft,I(ke.scrollbarYRail,st),I(ke.scrollbarX,{left:ke.scrollbarXLeft,width:ke.scrollbarXWidth-ke.railBorderXWidth}),I(ke.scrollbarY,{top:ke.scrollbarYTop,height:ke.scrollbarYHeight-ke.railBorderYWidth})}(ke,ct),ct.scrollbarXActive?ke.classList.add(j_state_active("x")):(ke.classList.remove(j_state_active("x")),ct.scrollbarXWidth=0,ct.scrollbarXLeft=0,ke.scrollLeft=!0===ct.isRtl?ct.contentWidth:0),ct.scrollbarYActive?ke.classList.add(j_state_active("y")):(ke.classList.remove(j_state_active("y")),ct.scrollbarYHeight=0,ct.scrollbarYTop=0,ke.scrollTop=0)}function D(ct,ke){return ct.settings.minScrollbarLength&&(ke=Math.max(ke,ct.settings.minScrollbarLength)),ct.settings.maxScrollbarLength&&(ke=Math.min(ke,ct.settings.maxScrollbarLength)),ke}function b(ct,ke){var Be=ke[0],at=ke[1],st=ke[2],At=ke[3],li=ke[4],Bt=ke[5],Rt=ke[6],Li=ke[7],si=ke[8],ci=ct.element,sn=null,Ui=null,Di=null;function Xi(_e){_e.touches&&_e.touches[0]&&(_e[st]=_e.touches[0].pageY),ci[Rt]=sn+Di*(_e[st]-Ui),te(ct,Li),_(ct),_e.stopPropagation(),_e.preventDefault()}function Ke(){ee(ct,Li),ct[si].classList.remove(j_state_clicking),ct.event.unbind(ct.ownerDocument,"mousemove",Xi)}function _t(_e,qe){sn=ci[Rt],qe&&_e.touches&&(_e[st]=_e.touches[0].pageY),Ui=_e[st],Di=(ct[at]-ct[Be])/(ct[At]-ct[Bt]),qe?ct.event.bind(ct.ownerDocument,"touchmove",Xi):(ct.event.bind(ct.ownerDocument,"mousemove",Xi),ct.event.once(ct.ownerDocument,"mouseup",Ke),_e.preventDefault()),ct[si].classList.add(j_state_clicking),_e.stopPropagation()}ct.event.bind(ct[li],"mousedown",function(_e){_t(_e)}),ct.event.bind(ct[li],"touchstart",function(_e){_t(_e,!0)})}var be={"click-rail":function x(ct){ct.event.bind(ct.scrollbarY,"mousedown",function(Be){return Be.stopPropagation()}),ct.event.bind(ct.scrollbarYRail,"mousedown",function(Be){var at=Be.pageY-window.pageYOffset-ct.scrollbarYRail.getBoundingClientRect().top;ct.element.scrollTop+=(at>ct.scrollbarYTop?1:-1)*ct.containerHeight,_(ct),Be.stopPropagation()}),ct.event.bind(ct.scrollbarX,"mousedown",function(Be){return Be.stopPropagation()}),ct.event.bind(ct.scrollbarXRail,"mousedown",function(Be){var at=Be.pageX-window.pageXOffset-ct.scrollbarXRail.getBoundingClientRect().left;ct.element.scrollLeft+=(at>ct.scrollbarXLeft?1:-1)*ct.containerWidth,_(ct),Be.stopPropagation()})},"drag-thumb":function r(ct){b(ct,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),b(ct,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function Z(ct){var ke=ct.element;ct.event.bind(ct.ownerDocument,"keydown",function(At){if(!(At.isDefaultPrevented&&At.isDefaultPrevented()||At.defaultPrevented)&&(P(ke,":hover")||P(ct.scrollbarX,":focus")||P(ct.scrollbarY,":focus"))){var li=document.activeElement?document.activeElement:ct.ownerDocument.activeElement;if(li){if("IFRAME"===li.tagName)li=li.contentDocument.activeElement;else for(;li.shadowRoot;)li=li.shadowRoot.activeElement;if(function a(ct){return P(ct,"input,[contenteditable]")||P(ct,"select,[contenteditable]")||P(ct,"textarea,[contenteditable]")||P(ct,"button,[contenteditable]")}(li))return}var Bt=0,Rt=0;switch(At.which){case 37:Bt=At.metaKey?-ct.contentWidth:At.altKey?-ct.containerWidth:-30;break;case 38:Rt=At.metaKey?ct.contentHeight:At.altKey?ct.containerHeight:30;break;case 39:Bt=At.metaKey?ct.contentWidth:At.altKey?ct.containerWidth:30;break;case 40:Rt=At.metaKey?-ct.contentHeight:At.altKey?-ct.containerHeight:-30;break;case 32:Rt=At.shiftKey?ct.containerHeight:-ct.containerHeight;break;case 33:Rt=ct.containerHeight;break;case 34:Rt=-ct.containerHeight;break;case 36:Rt=ct.contentHeight;break;case 35:Rt=-ct.contentHeight;break;default:return}ct.settings.suppressScrollX&&0!==Bt||ct.settings.suppressScrollY&&0!==Rt||(ke.scrollTop-=Rt,ke.scrollLeft+=Bt,_(ct),function st(At,li){var Bt=Math.floor(ke.scrollTop);if(0===At){if(!ct.scrollbarYActive)return!1;if(0===Bt&&li>0||Bt>=ct.contentHeight-ct.containerHeight&&li<0)return!ct.settings.wheelPropagation}var Rt=ke.scrollLeft;if(0===li){if(!ct.scrollbarXActive)return!1;if(0===Rt&&At<0||Rt>=ct.contentWidth-ct.containerWidth&&At>0)return!ct.settings.wheelPropagation}return!0}(Bt,Rt)&&At.preventDefault())}})},wheel:function N(ct){var ke=ct.element;function At(li){var Bt=function at(li){var Bt=li.deltaX,Rt=-1*li.deltaY;return(void 0===Bt||void 0===Rt)&&(Bt=-1*li.wheelDeltaX/6,Rt=li.wheelDeltaY/6),li.deltaMode&&1===li.deltaMode&&(Bt*=10,Rt*=10),Bt!=Bt&&Rt!=Rt&&(Bt=0,Rt=li.wheelDelta),li.shiftKey?[-Rt,-Bt]:[Bt,Rt]}(li),Rt=Bt[0],Li=Bt[1];if(!function st(li,Bt,Rt){if(!u.isWebKit&&ke.querySelector("select:focus"))return!0;if(!ke.contains(li))return!1;for(var Li=li;Li&&Li!==ke;){if(Li.classList.contains(j_element_consuming))return!0;var si=L(Li);if(Rt&&si.overflowY.match(/(scroll|auto)/)){var ci=Li.scrollHeight-Li.clientHeight;if(ci>0&&(Li.scrollTop>0&&Rt<0||Li.scrollTop0))return!0}if(Bt&&si.overflowX.match(/(scroll|auto)/)){var sn=Li.scrollWidth-Li.clientWidth;if(sn>0&&(Li.scrollLeft>0&&Bt<0||Li.scrollLeft0))return!0}Li=Li.parentNode}return!1}(li.target,Rt,Li)){var si=!1;ct.settings.useBothWheelAxes?ct.scrollbarYActive&&!ct.scrollbarXActive?(Li?ke.scrollTop-=Li*ct.settings.wheelSpeed:ke.scrollTop+=Rt*ct.settings.wheelSpeed,si=!0):ct.scrollbarXActive&&!ct.scrollbarYActive&&(Rt?ke.scrollLeft+=Rt*ct.settings.wheelSpeed:ke.scrollLeft-=Li*ct.settings.wheelSpeed,si=!0):(ke.scrollTop-=Li*ct.settings.wheelSpeed,ke.scrollLeft+=Rt*ct.settings.wheelSpeed),_(ct),si=si||function Be(li,Bt){var Rt=Math.floor(ke.scrollTop),Li=0===ke.scrollTop,si=Rt+ke.offsetHeight===ke.scrollHeight,ci=0===ke.scrollLeft,sn=ke.scrollLeft+ke.offsetWidth===ke.scrollWidth;return!(Math.abs(Bt)>Math.abs(li)?Li||si:ci||sn)||!ct.settings.wheelPropagation}(Rt,Li),si&&!li.ctrlKey&&(li.stopPropagation(),li.preventDefault())}}void 0!==window.onwheel?ct.event.bind(ke,"wheel",At):void 0!==window.onmousewheel&&ct.event.bind(ke,"mousewheel",At)},touch:function U(ct){if(u.supportsTouch||u.supportsIePointer){var ke=ct.element,st={},At=0,li={},Bt=null;u.supportsTouch?(ct.event.bind(ke,"touchstart",si),ct.event.bind(ke,"touchmove",sn),ct.event.bind(ke,"touchend",Ui)):u.supportsIePointer&&(window.PointerEvent?(ct.event.bind(ke,"pointerdown",si),ct.event.bind(ke,"pointermove",sn),ct.event.bind(ke,"pointerup",Ui)):window.MSPointerEvent&&(ct.event.bind(ke,"MSPointerDown",si),ct.event.bind(ke,"MSPointerMove",sn),ct.event.bind(ke,"MSPointerUp",Ui)))}function at(Di,Xi){ke.scrollTop-=Xi,ke.scrollLeft-=Di,_(ct)}function Rt(Di){return Di.targetTouches?Di.targetTouches[0]:Di}function Li(Di){return!(Di.pointerType&&"pen"===Di.pointerType&&0===Di.buttons||!(Di.targetTouches&&1===Di.targetTouches.length||Di.pointerType&&"mouse"!==Di.pointerType&&Di.pointerType!==Di.MSPOINTER_TYPE_MOUSE))}function si(Di){if(Li(Di)){var Xi=Rt(Di);st.pageX=Xi.pageX,st.pageY=Xi.pageY,At=(new Date).getTime(),null!==Bt&&clearInterval(Bt)}}function sn(Di){if(Li(Di)){var Xi=Rt(Di),Ke={pageX:Xi.pageX,pageY:Xi.pageY},_t=Ke.pageX-st.pageX,_e=Ke.pageY-st.pageY;if(function ci(Di,Xi,Ke){if(!ke.contains(Di))return!1;for(var _t=Di;_t&&_t!==ke;){if(_t.classList.contains(j_element_consuming))return!0;var _e=L(_t);if(Ke&&_e.overflowY.match(/(scroll|auto)/)){var qe=_t.scrollHeight-_t.clientHeight;if(qe>0&&(_t.scrollTop>0&&Ke<0||_t.scrollTop0))return!0}if(Xi&&_e.overflowX.match(/(scroll|auto)/)){var yt=_t.scrollWidth-_t.clientWidth;if(yt>0&&(_t.scrollLeft>0&&Xi<0||_t.scrollLeft0))return!0}_t=_t.parentNode}return!1}(Di.target,_t,_e))return;at(_t,_e),st=Ke;var qe=(new Date).getTime(),yt=qe-At;yt>0&&(li.x=_t/yt,li.y=_e/yt,At=qe),function Be(Di,Xi){var Ke=Math.floor(ke.scrollTop),_t=ke.scrollLeft,_e=Math.abs(Di),qe=Math.abs(Xi);if(qe>_e){if(Xi<0&&Ke===ct.contentHeight-ct.containerHeight||Xi>0&&0===Ke)return 0===window.scrollY&&Xi>0&&u.isChrome}else if(_e>qe&&(Di<0&&_t===ct.contentWidth-ct.containerWidth||Di>0&&0===_t))return!0;return!0}(_t,_e)&&Di.preventDefault()}}function Ui(){ct.settings.swipeEasing&&(clearInterval(Bt),Bt=setInterval(function(){ct.isInitialized?clearInterval(Bt):li.x||li.y?Math.abs(li.x)<.01&&Math.abs(li.y)<.01?clearInterval(Bt):(at(30*li.x,30*li.y),li.x*=.8,li.y*=.8):clearInterval(Bt)},10))}}},Re=function(ke,Be){var at=this;if(void 0===Be&&(Be={}),"string"==typeof ke&&(ke=document.querySelector(ke)),!ke||!ke.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var st in this.element=ke,ke.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},Be)this.settings[st]=Be[st];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var si,Li,At=function(){return ke.classList.add(j_state_focus)},li=function(){return ke.classList.remove(j_state_focus)};this.isRtl="rtl"===L(ke).direction,!0===this.isRtl&&ke.classList.add("ps__rtl"),this.isNegativeScroll=(Li=ke.scrollLeft,ke.scrollLeft=-1,si=ke.scrollLeft<0,ke.scrollLeft=Li,si),this.negativeScrollAdjustment=this.isNegativeScroll?ke.scrollWidth-ke.clientWidth:0,this.event=new de,this.ownerDocument=ke.ownerDocument||document,this.scrollbarXRail=A(j_element_rail("x")),ke.appendChild(this.scrollbarXRail),this.scrollbarX=A(j_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",At),this.event.bind(this.scrollbarX,"blur",li),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Bt=L(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Bt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=i(Bt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=i(Bt.borderLeftWidth)+i(Bt.borderRightWidth),I(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(Bt.marginLeft)+i(Bt.marginRight),I(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=A(j_element_rail("y")),ke.appendChild(this.scrollbarYRail),this.scrollbarY=A(j_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",At),this.event.bind(this.scrollbarY,"blur",li),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var Rt=L(this.scrollbarYRail);this.scrollbarYRight=parseInt(Rt.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=i(Rt.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function p(ct){var ke=L(ct);return i(ke.width)+i(ke.paddingLeft)+i(ke.paddingRight)+i(ke.borderLeftWidth)+i(ke.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=i(Rt.borderTopWidth)+i(Rt.borderBottomWidth),I(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(Rt.marginTop)+i(Rt.marginBottom),I(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:ke.scrollLeft<=0?"start":ke.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:ke.scrollTop<=0?"start":ke.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Li){return be[Li](at)}),this.lastScrollTop=Math.floor(ke.scrollTop),this.lastScrollLeft=ke.scrollLeft,this.event.bind(this.element,"scroll",function(Li){return at.onScroll(Li)}),_(this)};Re.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,I(this.scrollbarXRail,{display:"block"}),I(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(L(this.scrollbarXRail).marginLeft)+i(L(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(L(this.scrollbarYRail).marginTop)+i(L(this.scrollbarYRail).marginBottom),I(this.scrollbarXRail,{display:"none"}),I(this.scrollbarYRail,{display:"none"}),_(this),ye(this,"top",0,!1,!0),ye(this,"left",0,!1,!0),I(this.scrollbarXRail,{display:""}),I(this.scrollbarYRail,{display:""}))},Re.prototype.onScroll=function(ke){!this.isAlive||(_(this),ye(this,"top",this.element.scrollTop-this.lastScrollTop),ye(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Re.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)},Re.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(ke){return!ke.match(/^ps([-_].+|)$/)}).join(" ")};const ze=Re;var Oe=function(){if("undefined"!=typeof Map)return Map;function ct(ke,Be){var at=-1;return ke.some(function(st,At){return st[0]===Be&&(at=At,!0)}),at}return function(){function ke(){this.__entries__=[]}return Object.defineProperty(ke.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),ke.prototype.get=function(Be){var at=ct(this.__entries__,Be),st=this.__entries__[at];return st&&st[1]},ke.prototype.set=function(Be,at){var st=ct(this.__entries__,Be);~st?this.__entries__[st][1]=at:this.__entries__.push([Be,at])},ke.prototype.delete=function(Be){var at=this.__entries__,st=ct(at,Be);~st&&at.splice(st,1)},ke.prototype.has=function(Be){return!!~ct(this.__entries__,Be)},ke.prototype.clear=function(){this.__entries__.splice(0)},ke.prototype.forEach=function(Be,at){void 0===at&&(at=null);for(var st=0,At=this.__entries__;st0},ct.prototype.connect_=function(){!K||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ne?(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)},ct.prototype.disconnect_=function(){!K||!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)},ct.prototype.onTransitionEnd_=function(ke){var Be=ke.propertyName,at=void 0===Be?"":Be;Fe.some(function(At){return!!~at.indexOf(At)})&&this.refresh()},ct.getInstance=function(){return this.instance_||(this.instance_=new ct),this.instance_},ct.instance_=null,ct}(),Le=function(ct,ke){for(var Be=0,at=Object.keys(ke);Be0},ct}(),Ii="undefined"!=typeof WeakMap?new WeakMap:new Oe,jt=function ct(ke){if(!(this instanceof ct))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Be=ce.getInstance(),at=new Vt(ke,Be,this);Ii.set(this,at)};["observe","unobserve","disconnect"].forEach(function(ct){jt.prototype[ct]=function(){var ke;return(ke=Ii.get(this))[ct].apply(ke,arguments)}});const ki=void 0!==Me.ResizeObserver?Me.ResizeObserver:jt,Ve=new R.OlP("PERFECT_SCROLLBAR_CONFIG");class Ee{constructor(ke,Be,at,st){this.x=ke,this.y=Be,this.w=at,this.h=st}}class Y{constructor(ke,Be){this.x=ke,this.y=Be}}const pe=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class De{constructor(ke={}){this.assign(ke)}assign(ke={}){for(const Be in ke)this[Be]=ke[Be]}}let et=(()=>{class ct{constructor(Be,at,st,At,li){this.zone=Be,this.differs=at,this.elementRef=st,this.platformId=At,this.defaults=li,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new e.x,this.disabled=!1,this.psScrollY=new R.vpe,this.psScrollX=new R.vpe,this.psScrollUp=new R.vpe,this.psScrollDown=new R.vpe,this.psScrollLeft=new R.vpe,this.psScrollRight=new R.vpe,this.psYReachEnd=new R.vpe,this.psYReachStart=new R.vpe,this.psXReachEnd=new R.vpe,this.psXReachStart=new R.vpe}ngOnInit(){if(!this.disabled&&(0,s.NF)(this.platformId)){const Be=new De(this.defaults);Be.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new ze(this.elementRef.nativeElement,Be)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new ki(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{pe.forEach(at=>{const st=at.replace(/([A-Z])/g,At=>`-${At.toLowerCase()}`);(0,t.R)(this.elementRef.nativeElement,st).pipe((0,C.e)(20),(0,o.R)(this.ngDestroy)).subscribe(At=>{this[at].emit(At)})})})}}ngOnDestroy(){(0,s.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,s.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Be){Be.disabled&&!Be.disabled.isFirstChange()&&(0,s.NF)(this.platformId)&&Be.disabled.currentValue!==Be.disabled.previousValue&&(!0===Be.disabled.currentValue?this.ngOnDestroy():!1===Be.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(Be){}},0))}geometry(Be="scroll"){return new Ee(this.elementRef.nativeElement[Be+"Left"],this.elementRef.nativeElement[Be+"Top"],this.elementRef.nativeElement[Be+"Width"],this.elementRef.nativeElement[Be+"Height"])}position(Be=!1){return!Be&&this.instance?new Y(this.instance.reach.x||0,this.instance.reach.y||0):new Y(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Be="any"){const at=this.elementRef.nativeElement;return"any"===Be?at.classList.contains("ps--active-x")||at.classList.contains("ps--active-y"):"both"===Be?at.classList.contains("ps--active-x")&&at.classList.contains("ps--active-y"):at.classList.contains("ps--active-"+Be)}scrollTo(Be,at,st){this.disabled||(null==at&&null==st?this.animateScrolling("scrollTop",Be,st):(null!=Be&&this.animateScrolling("scrollLeft",Be,st),null!=at&&this.animateScrolling("scrollTop",at,st)))}scrollToX(Be,at){this.animateScrolling("scrollLeft",Be,at)}scrollToY(Be,at){this.animateScrolling("scrollTop",Be,at)}scrollToTop(Be,at){this.animateScrolling("scrollTop",Be||0,at)}scrollToLeft(Be,at){this.animateScrolling("scrollLeft",Be||0,at)}scrollToRight(Be,at){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Be||0),at)}scrollToBottom(Be,at){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Be||0),at)}scrollToElement(Be,at,st){if("string"==typeof Be&&(Be=this.elementRef.nativeElement.querySelector(Be)),Be){const At=Be.getBoundingClientRect(),li=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",At.left-li.left+this.elementRef.nativeElement.scrollLeft+(at||0),st),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",At.top-li.top+this.elementRef.nativeElement.scrollTop+(at||0),st)}}animateScrolling(Be,at,st){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),st&&"undefined"!=typeof window){if(at!==this.elementRef.nativeElement[Be]){let At=0,li=0,Bt=performance.now(),Rt=this.elementRef.nativeElement[Be];const Li=(Rt-at)/2,si=ci=>{li+=Math.PI/(st/(ci-Bt)),At=Math.round(at+Li+Li*Math.cos(li)),this.elementRef.nativeElement[Be]===Rt&&(li>=Math.PI?this.animateScrolling(Be,at,0):(this.elementRef.nativeElement[Be]=At,Rt=this.elementRef.nativeElement[Be],Bt=ci,this.animation=window.requestAnimationFrame(si)))};window.requestAnimationFrame(si)}}else this.elementRef.nativeElement[Be]=at}}return ct.\u0275fac=function(Be){return new(Be||ct)(R.Y36(R.R0b),R.Y36(R.aQg),R.Y36(R.SBq),R.Y36(R.Lbi),R.Y36(Ve,8))},ct.\u0275dir=R.lG2({type:ct,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:[R.TTD]}),ct})(),Jt=(()=>{class ct{}return ct.\u0275fac=function(Be){return new(Be||ct)},ct.\u0275mod=R.oAB({type:ct}),ct.\u0275inj=R.cJS({imports:[[s.ez],s.ez]}),ct})()},5768:(Ge,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var e=m(842);Object.keys(e).forEach(function(t){"default"!==t&&Object.defineProperty(Q,t,{enumerable:!0,get:function(){return e[t]}})})},2999:(Ge,Q,m)=>{"use strict";var e=m(7977);Q.certificate=m(2390);var t=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Q.RSAPrivateKey=t;var y=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Q.RSAPublicKey=y;var C=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())});Q.PublicKey=C;var o=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),M=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())});Q.PrivateKey=M;var l=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Q.EncryptedPrivateKey=l;var R=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Q.DSAPrivateKey=R,Q.DSAparam=e.define("DSAparam",function(){this.int()});var s=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(L),this.key("publicKey").optional().explicit(1).bitstr())});Q.ECPrivateKey=s;var L=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Q.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Ge,Q,m)=>{"use strict";var e=m(7977),t=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),y=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),C=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(C),this.key("subjectPublicKey").bitstr())}),M=e.define("RelativeDistinguishedName",function(){this.setof(y)}),l=e.define("RDNSequence",function(){this.seqof(M)}),R=e.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),s=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(t),this.key("notAfter").use(t))}),L=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),I=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(C),this.key("issuer").use(R),this.key("validity").use(s),this.key("subject").use(R),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(L).optional())}),A=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(I),this.key("signatureAlgorithm").use(C),this.key("signatureValue").bitstr())});Ge.exports=A},5269:(Ge,Q,m)=>{var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,t=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,y=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,C=m(347),o=m(4330),M=m(3502).Buffer;Ge.exports=function(l,R){var I,s=l.toString(),L=s.match(e);if(L){var E="aes"+L[1],P=M.from(L[2],"hex"),w=M.from(L[3].replace(/[\r\n]/g,""),"base64"),V=C(R,P.slice(0,8),parseInt(L[1],10)).key,j=[],W=o.createDecipheriv(E,V,P);j.push(W.update(w)),j.push(W.final()),I=M.concat(j)}else{var A=s.match(y);I=M.from(A[2].replace(/[\r\n]/g,""),"base64")}return{tag:s.match(t)[1],data:I}}},2772:(Ge,Q,m)=>{var e=m(2999),t=m(2562),y=m(5269),C=m(4330),o=m(9357),M=m(3502).Buffer;function l(s){var L;"object"==typeof s&&!M.isBuffer(s)&&(L=s.passphrase,s=s.key),"string"==typeof s&&(s=M.from(s));var P,w,I=y(s,L),A=I.tag,E=I.data;switch(A){case"CERTIFICATE":w=e.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=e.PublicKey.decode(E,"der")),P=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=e.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw new Error("unknown key id "+P)}case"ENCRYPTED PRIVATE KEY":E=function R(s,L){var I=s.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(s.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=t[s.algorithm.decrypt.cipher.algo.join(".")],P=s.algorithm.decrypt.cipher.iv,w=s.subjectPrivateKey,V=parseInt(E.split("-")[1],10)/8,j=o.pbkdf2Sync(L,I,A,V,"sha1"),W=C.createDecipheriv(E,j,P),te=[];return te.push(W.update(w)),te.push(W.final()),M.concat(te)}(E=e.EncryptedPrivateKey.decode(E,"der"),L);case"PRIVATE KEY":switch(P=(w=e.PrivateKey.decode(E,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:e.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=e.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw new Error("unknown key id "+P)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(E,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(E,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(E,"der")};case"EC PRIVATE KEY":return{curve:(E=e.ECPrivateKey.decode(E,"der")).parameters.value,privateKey:E.privateKey};default:throw new Error("unknown key type "+A)}}Ge.exports=l,l.signature=e.signature},9357:(Ge,Q,m)=>{Q.pbkdf2=m(415),Q.pbkdf2Sync=m(7472)},415:(Ge,Q,m)=>{var M,I,e=m(3502).Buffer,t=m(2697),y=m(8867),C=m(7472),o=m(4566),l=global.crypto&&global.crypto.subtle,R={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"},s=[];function A(){return I||(I=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function E(w,V,j,W,te){return l.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return l.deriveBits({name:"PBKDF2",salt:V,iterations:j,hash:{name:te}},ee,W<<3)}).then(function(ee){return e.from(ee)})}Ge.exports=function(w,V,j,W,te,ee){"function"==typeof te&&(ee=te,te=void 0);var ge=R[(te=te||"sha1").toLowerCase()];if(ge&&"function"==typeof global.Promise){if(t(j,W),w=o(w,y,"Password"),V=o(V,y,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function P(w,V){w.then(function(j){A()(function(){V(null,j)})},function(j){A()(function(){V(j)})})}(function L(w){if(global.process&&!global.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==s[w])return s[w];var V=E(M=M||e.alloc(8),M,10,128,w).then(function(){return!0}).catch(function(){return!1});return s[w]=V,V}(ge).then(function(le){return le?E(w,V,j,W,ge):C(w,V,j,W,te)}),ee)}else A()(function(){var le;try{le=C(w,V,j,W,te)}catch(re){return ee(re)}ee(null,le)})}},8867:Ge=>{var Q;Q=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",Ge.exports=Q},2697:Ge=>{var Q=Math.pow(2,30)-1;Ge.exports=function(m,e){if("number"!=typeof m)throw new TypeError("Iterations not a number");if(m<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>Q||e!=e)throw new TypeError("Bad key length")}},7472:(Ge,Q,m)=>{var e=m(5640),t=m(5634),y=m(5244),C=m(3502).Buffer,o=m(2697),M=m(8867),l=m(4566),R=C.alloc(128),s={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function L(E,P,w){var V=function I(E){return"rmd160"===E||"ripemd160"===E?function w(V){return(new t).update(V).digest()}:"md5"===E?e:function P(V){return y(E).update(V).digest()}}(E),j="sha512"===E||"sha384"===E?128:64;P.length>j?P=V(P):P.length{var e=m(3502).Buffer;Ge.exports=function(t,y,C){if(e.isBuffer(t))return t;if("string"==typeof t)return e.from(t,y);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(C+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Ge,Q,m)=>{Q.publicEncrypt=m(6562),Q.privateDecrypt=m(6705),Q.privateEncrypt=function(t,y){return Q.publicEncrypt(t,y,!0)},Q.publicDecrypt=function(t,y){return Q.privateDecrypt(t,y,!0)}},6945:(Ge,Q,m)=>{var e=m(6386),t=m(3502).Buffer;function y(C){var o=t.allocUnsafe(4);return o.writeUInt32BE(C,0),o}Ge.exports=function(C,o){for(var R,M=t.alloc(0),l=0;M.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(v,i,a){var p=l(v,a);return a-1>=i&&(p|=l(v,a-1)<<4),p}function s(v,i,a,p){for(var u=0,_=Math.min(v.length,a),D=i;D<_;D++){var O=v.charCodeAt(D)-48;u*=p,u+=O>=49?O-49+10:O>=17?O-17+10:O}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)O=R(i,a,u)<<_,this.words[D]|=67108863&O,_>=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=O>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,O=D%u,x=Math.min(D,D-O)+p,r=0,b=p;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var L=["","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"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function P(v,i,a){a.negative=i.negative^v.negative;var p=v.length+i.length|0;a.length=p,p=p-1|0;var u=0|v.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,Z=67108863&x,N=Math.min(r,i.length-1),U=Math.max(0,r-v.length+1);U<=N;U++)b+=(D=(u=0|v.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=I[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var N=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,O=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[r]=x;for(;r<_;r++)O[r]=0}else{for(r=0;r<_-u;r++)O[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),O[_-r-1]=x}return O},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,O=0;O<_.length;O++)D=(a=(0|u.words[O])-(0|_.words[O])+D)>>26,this.words[O]=67108863&a;for(;0!==D&&O>26,this.words[O]=67108863&a;if(0===D&&O>>13,ve=0|u[1],be=8191&ve,Re=ve>>>13,ze=0|u[2],Oe=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ze=0|u[4],vt=8191&Ze,Fe=Ze>>>13,Ne=0|u[5],ce=8191&Ne,Le=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ve=0|_[3],Ee=8191&Ve,Y=Ve>>>13,pe=0|_[4],De=8191&pe,et=pe>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(O+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(U,Ft)|0))<<13)|0;O=((b=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(be,Ft),r=(r=Math.imul(be,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(O+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(U,jt)|0))<<13)|0;O=((b=b+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Oe,Ft),r=(r=Math.imul(Oe,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(be,jt)|0,r=(r=r+Math.imul(be,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(O+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(U,ai)|0))<<13)|0;O=((b=b+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,b=Math.imul(z,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(be,ai)|0,r=(r=r+Math.imul(be,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(O+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;O=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,b=b+Math.imul(z,ei)|0,x=x+Math.imul(Oe,ai)|0,r=(r=r+Math.imul(Oe,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(be,Ee)|0,r=(r=r+Math.imul(be,Y)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,Y)|0;var Ke=(O+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(U,De)|0))<<13)|0;O=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ce,Ft),r=(r=Math.imul(ce,Vt))+Math.imul(Le,Ft)|0,b=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,b=b+Math.imul(z,hi)|0,x=x+Math.imul(Oe,Ee)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,Y)|0,x=x+Math.imul(be,De)|0,r=(r=r+Math.imul(be,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(O+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;O=((b=b+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ce,jt)|0,r=(r=r+Math.imul(ce,ei)|0)+Math.imul(Le,jt)|0,b=b+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,b=b+Math.imul(z,Y)|0,x=x+Math.imul(Oe,De)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(be,Nt)|0,r=(r=r+Math.imul(be,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var _e=(O+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(U,ke)|0))<<13)|0;O=((b=b+Math.imul(U,Be)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ce,ai)|0,r=(r=r+Math.imul(ce,hi)|0)+Math.imul(Le,ai)|0,b=b+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,b=b+Math.imul(z,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(be,ke)|0,r=(r=r+Math.imul(be,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(O+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(U,st)|0))<<13)|0;O=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ce,Ee)|0,r=(r=r+Math.imul(ce,Y)|0)+Math.imul(Le,Ee)|0,b=b+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,b=b+Math.imul(z,Jt)|0,x=x+Math.imul(Oe,ke)|0,r=(r=r+Math.imul(Oe,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(be,st)|0,r=(r=r+Math.imul(be,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(O+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;O=((b=b+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,Y)|0,x=x+Math.imul(ce,De)|0,r=(r=r+Math.imul(ce,et)|0)+Math.imul(Le,De)|0,b=b+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(we,ke)|0,r=(r=r+Math.imul(we,Be)|0)+Math.imul(z,ke)|0,b=b+Math.imul(z,Be)|0,x=x+Math.imul(Oe,st)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(be,Bt)|0,r=(r=r+Math.imul(be,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var ue=(O+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(U,si)|0))<<13)|0;O=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ce,Nt)|0,r=(r=r+Math.imul(ce,Jt)|0)+Math.imul(Le,Nt)|0,b=b+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,b=b+Math.imul(z,At)|0,x=x+Math.imul(Oe,Bt)|0,r=(r=r+Math.imul(Oe,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(O+(x=x+Math.imul(be,si)|0)|0)+((8191&(r=(r=r+Math.imul(be,ci)|0)+Math.imul(Re,si)|0))<<13)|0;O=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ce,ke)|0,r=(r=r+Math.imul(ce,Be)|0)+Math.imul(Le,ke)|0,b=b+Math.imul(Le,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,b=b+Math.imul(z,Rt)|0;var St=(O+(x=x+Math.imul(Oe,si)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(K,si)|0))<<13)|0;O=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ce,st)|0,r=(r=r+Math.imul(ce,At)|0)+Math.imul(Le,st)|0,b=b+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(O+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;O=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Ce,ke)|0,r=(r=r+Math.imul(Ce,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ce,Bt)|0,r=(r=r+Math.imul(ce,Rt)|0)+Math.imul(Le,Bt)|0,b=b+Math.imul(Le,Rt)|0;var yi=(O+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;O=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(O+(x=x+Math.imul(ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(ce,ci)|0)+Math.imul(Le,si)|0))<<13)|0;O=((b=b+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(O+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;O=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(O+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;O=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(O+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;O=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(O+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return O=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=_e,D[7]=qe,D[8]=yt,D[9]=ue,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==O&&(D[19]=O,p.length++),p};function j(v,i,a){return(new W).mulp(v,i,a)}function W(v,i){this.x=v,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function V(v,i,a){a.negative=i.negative^v.negative,a.length=v.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=O,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var O=0;O>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(v){for(var i=new Array(v.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),O=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&O}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(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 a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===O)return this.strip();for(y(-1===O),O=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var U=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,N);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),O=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,N=1;0==(a.words[0]&N)&&Z<26;++Z,N<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ve=1;0==(p.words[0]&ve)&&U<26;++U,ve<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||O.isOdd())&&(D.iadd(r),O.isub(b)),D.iushrn(1),O.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(O)):(p.isub(a),D.isub(u),O.isub(_))}return{a:D,b:O,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var O=0,x=1;0==(a.words[0]&x)&&O<26;++O,x<<=1);if(O>0)for(a.iushrn(O);O-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=O&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new se(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var te={k256:null,p224:null,p192:null,p25519:null};function ee(v,i){this.name=v,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(v){if("string"==typeof v){var i=o._prime(v);this.m=i.p,this.prime=i}else y(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function ye(v){se.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ge,ee),ge.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=O}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ge.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(te[i])return te[i];var a;if("k256"===i)a=new ge;else if("p224"===i)a=new le;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return te[i]=a,a},se.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},se.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},se.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},se.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var D=new o(1).toRed(this),O=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(O);)r.redIAdd(O);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),U=_;0!==N.cmp(D);){for(var ve=N,be=0;0!==ve.cmp(D);be++)ve=ve.redSqr();y(be=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var N=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==O?(O<<=1,O|=N,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[O]),x=0,O=0)):x=0}r=26}return D},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ye(i)},C(ye,se),ye.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ye.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ye.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},ye.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ge=m.nmd(Ge),this)},6705:(Ge,Q,m)=>{var e=m(2772),t=m(6945),y=m(9401),C=m(2057),o=m(8466),M=m(6386),l=m(8651),R=m(3502).Buffer;Ge.exports=function(E,P,w){var V;V=E.padding?E.padding:w?1:4;var te,j=e(E),W=j.modulus.byteLength();if(P.length>W||new C(P).cmp(j.modulus)>=0)throw new Error("decryption error");te=w?l(new C(P),j):o(P,j);var ee=R.alloc(W-te.length);if(te=R.concat([ee,te],W),4===V)return function s(A,E){var P=A.modulus.byteLength(),w=M("sha1").update(R.alloc(0)).digest(),V=w.length;if(0!==E[0])throw new Error("decryption error");var j=E.slice(1,V+1),W=E.slice(V+1),te=y(j,t(W,V)),ee=y(W,t(te,P-V-1));if(function I(A,E){A=R.from(A),E=R.from(E);var P=0,w=A.length;A.length!==E.length&&(P++,w=Math.min(A.length,E.length));for(var V=-1;++V=E.length){j++;break}var W=E.slice(2,V-1);if(("0002"!==w.toString("hex")&&!P||"0001"!==w.toString("hex")&&P)&&j++,W.length<8&&j++,j)throw new Error("decryption error");return E.slice(V)}(0,te,w);if(3===V)return te;throw new Error("unknown padding")}},6562:(Ge,Q,m)=>{var e=m(2772),t=m(3753),y=m(6386),C=m(6945),o=m(9401),M=m(2057),l=m(8651),R=m(8466),s=m(3502).Buffer;Ge.exports=function(P,w,V){var j;j=P.padding?P.padding:V?1:4;var te,W=e(P);if(4===j)te=function L(E,P){var w=E.modulus.byteLength(),V=P.length,j=y("sha1").update(s.alloc(0)).digest(),W=j.length,te=2*W;if(V>w-te-2)throw new Error("message too long");var ee=s.alloc(w-V-te-2),ge=w-W-1,le=t(W),re=o(s.concat([j,ee,s.alloc(1,1),P],ge),C(le,ge)),de=o(le,C(re,W));return new M(s.concat([s.alloc(1),de,re],w))}(W,w);else if(1===j)te=function I(E,P,w){var W,V=P.length,j=E.modulus.byteLength();if(V>j-11)throw new Error("message too long");return W=w?s.alloc(j-V-3,255):function A(E){for(var W,P=s.allocUnsafe(E),w=0,V=t(2*E),j=0;w=0)throw new Error("data too long for modulus")}return V?R(te,W):l(te,W)}},8651:(Ge,Q,m)=>{var e=m(2057),t=m(3502).Buffer;Ge.exports=function y(C,o){return t.from(C.toRed(e.mont(o.modulus)).redPow(new e(o.publicExponent)).fromRed().toArray())}},9401:Ge=>{Ge.exports=function(m,e){for(var t=m.length,y=-1;++y{const e=m(8695),t=m(1465),y=m(3210),C=m(2334);function o(M,l,R,s,L){const I=[].slice.call(arguments,1),A=I.length,E="function"==typeof I[A-1];if(!E&&!e())throw new Error("Callback required as last argument");if(!E){if(A<1)throw new Error("Too few arguments provided");return 1===A?(R=l,l=s=void 0):2===A&&!l.getContext&&(s=R,R=l,l=void 0),new Promise(function(P,w){try{const V=t.create(R,s);P(M(V,l,s))}catch(V){w(V)}})}if(A<2)throw new Error("Too few arguments provided");2===A?(L=R,R=l,l=s=void 0):3===A&&(l.getContext&&void 0===L?(L=s,s=void 0):(L=s,s=R,R=l,l=void 0));try{const P=t.create(R,s);L(null,M(P,l,s))}catch(P){L(P)}}Q.create=t.create,Q.toCanvas=o.bind(null,y.render),Q.toDataURL=o.bind(null,y.renderToDataURL),Q.toString=o.bind(null,function(M,l,R){return C.render(M,R)})},8695:Ge=>{Ge.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Ge,Q,m)=>{const e=m(4792).getSymbolSize;Q.getRowColCoords=function(y){if(1===y)return[];const C=Math.floor(y/7)+2,o=e(y),M=145===o?26:2*Math.ceil((o-13)/(2*C-2)),l=[o-7];for(let R=1;R{const e=m(4016),t=["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 y(C){this.mode=e.ALPHANUMERIC,this.data=C}y.getBitsLength=function(o){return 11*Math.floor(o/2)+o%2*6},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(o){let M;for(M=0;M+2<=this.data.length;M+=2){let l=45*t.indexOf(this.data[M]);l+=t.indexOf(this.data[M+1]),o.put(l,11)}this.data.length%2&&o.put(t.indexOf(this.data[M]),6)},Ge.exports=y},2118:Ge=>{function Q(){this.buffer=[],this.length=0}Q.prototype={get:function(m){const e=Math.floor(m/8);return 1==(this.buffer[e]>>>7-m%8&1)},put:function(m,e){for(let t=0;t>>e-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(m){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),m&&(this.buffer[e]|=128>>>this.length%8),this.length++}},Ge.exports=Q},4425:Ge=>{function Q(m){if(!m||m<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=m,this.data=new Uint8Array(m*m),this.reservedBit=new Uint8Array(m*m)}Q.prototype.set=function(m,e,t,y){const C=m*this.size+e;this.data[C]=t,y&&(this.reservedBit[C]=!0)},Q.prototype.get=function(m,e){return this.data[m*this.size+e]},Q.prototype.xor=function(m,e,t){this.data[m*this.size+e]^=t},Q.prototype.isReserved=function(m,e){return this.reservedBit[m*this.size+e]},Ge.exports=Q},5663:(Ge,Q,m)=>{const e=m(8419),t=m(4016);function y(C){this.mode=t.BYTE,this.data=new Uint8Array(e(C))}y.getBitsLength=function(o){return 8*o},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(C){for(let o=0,M=this.data.length;o{const e=m(2259),t=[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],y=[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];Q.getBlocksCount=function(o,M){switch(M){case e.L:return t[4*(o-1)+0];case e.M:return t[4*(o-1)+1];case e.Q:return t[4*(o-1)+2];case e.H:return t[4*(o-1)+3];default:return}},Q.getTotalCodewordsCount=function(o,M){switch(M){case e.L:return y[4*(o-1)+0];case e.M:return y[4*(o-1)+1];case e.Q:return y[4*(o-1)+2];case e.H:return y[4*(o-1)+3];default:return}}},2259:(Ge,Q)=>{Q.L={bit:1},Q.M={bit:0},Q.Q={bit:3},Q.H={bit:2},Q.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},Q.from=function(t,y){if(Q.isValid(t))return t;try{return function m(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Q.L;case"m":case"medium":return Q.M;case"q":case"quartile":return Q.Q;case"h":case"high":return Q.H;default:throw new Error("Unknown EC Level: "+e)}}(t)}catch(C){return y}}},3114:(Ge,Q,m)=>{const e=m(4792).getSymbolSize;Q.getPositions=function(C){const o=e(C);return[[0,0],[o-7,0],[0,o-7]]}},7078:(Ge,Q,m)=>{const e=m(4792),C=e.getBCHDigit(1335);Q.getEncodedBits=function(M,l){const R=M.bit<<3|l;let s=R<<10;for(;e.getBCHDigit(s)-C>=0;)s^=1335<{const m=new Uint8Array(512),e=new Uint8Array(256);(function(){let y=1;for(let C=0;C<255;C++)m[C]=y,e[y]=C,y<<=1,256&y&&(y^=285);for(let C=255;C<512;C++)m[C]=m[C-255]})(),Q.log=function(y){if(y<1)throw new Error("log("+y+")");return e[y]},Q.exp=function(y){return m[y]},Q.mul=function(y,C){return 0===y||0===C?0:m[e[y]+e[C]]}},4388:(Ge,Q,m)=>{const e=m(4016),t=m(4792);function y(C){this.mode=e.KANJI,this.data=C}y.getBitsLength=function(o){return 13*o},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(C){let o;for(o=0;o=33088&&M<=40956)M-=33088;else{if(!(M>=57408&&M<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");M-=49472}M=192*(M>>>8&255)+(255&M),C.put(M,13)}},Ge.exports=y},3667:(Ge,Q)=>{Q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,y,C){switch(t){case Q.Patterns.PATTERN000:return(y+C)%2==0;case Q.Patterns.PATTERN001:return y%2==0;case Q.Patterns.PATTERN010:return C%3==0;case Q.Patterns.PATTERN011:return(y+C)%3==0;case Q.Patterns.PATTERN100:return(Math.floor(y/2)+Math.floor(C/3))%2==0;case Q.Patterns.PATTERN101:return y*C%2+y*C%3==0;case Q.Patterns.PATTERN110:return(y*C%2+y*C%3)%2==0;case Q.Patterns.PATTERN111:return(y*C%3+(y+C)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}Q.isValid=function(y){return null!=y&&""!==y&&!isNaN(y)&&y>=0&&y<=7},Q.from=function(y){return Q.isValid(y)?parseInt(y,10):void 0},Q.getPenaltyN1=function(y){const C=y.size;let o=0,M=0,l=0,R=null,s=null;for(let L=0;L=5&&(o+=M-5+3),R=A,M=1),A=y.get(I,L),A===s?l++:(l>=5&&(o+=l-5+3),s=A,l=1)}M>=5&&(o+=M-5+3),l>=5&&(o+=l-5+3)}return o},Q.getPenaltyN2=function(y){const C=y.size;let o=0;for(let M=0;M=10&&(1488===M||93===M)&&o++,l=l<<1&2047|y.get(s,R),s>=10&&(1488===l||93===l)&&o++}return 40*o},Q.getPenaltyN4=function(y){let C=0;const o=y.data.length;for(let l=0;l{const e=m(4406),t=m(2699);Q.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Q.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Q.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Q.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Q.MIXED={bit:-1},Q.getCharCountIndicator=function(o,M){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(M))throw new Error("Invalid version: "+M);return M>=1&&M<10?o.ccBits[0]:M<27?o.ccBits[1]:o.ccBits[2]},Q.getBestModeForData=function(o){return t.testNumeric(o)?Q.NUMERIC:t.testAlphanumeric(o)?Q.ALPHANUMERIC:t.testKanji(o)?Q.KANJI:Q.BYTE},Q.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},Q.isValid=function(o){return o&&o.bit&&o.ccBits},Q.from=function(o,M){if(Q.isValid(o))return o;try{return function y(C){if("string"!=typeof C)throw new Error("Param is not a string");switch(C.toLowerCase()){case"numeric":return Q.NUMERIC;case"alphanumeric":return Q.ALPHANUMERIC;case"kanji":return Q.KANJI;case"byte":return Q.BYTE;default:throw new Error("Unknown mode: "+C)}}(o)}catch(l){return M}}},7783:(Ge,Q,m)=>{const e=m(4016);function t(y){this.mode=e.NUMERIC,this.data=y.toString()}t.getBitsLength=function(C){return 10*Math.floor(C/3)+(C%3?C%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(C){let o,M,l;for(o=0;o+3<=this.data.length;o+=3)M=this.data.substr(o,3),l=parseInt(M,10),C.put(l,10);const R=this.data.length-o;R>0&&(M=this.data.substr(o),l=parseInt(M,10),C.put(l,3*R+1))},Ge.exports=t},1106:(Ge,Q,m)=>{const e=m(5339);Q.mul=function(y,C){const o=new Uint8Array(y.length+C.length-1);for(let M=0;M=0;){const M=o[0];for(let R=0;R{const e=m(4792),t=m(2259),y=m(2118),C=m(4425),o=m(6221),M=m(3114),l=m(3667),R=m(4655),s=m(2636),L=m(2088),I=m(7078),A=m(4016),E=m(2033);function W(re,de,se){const ye=re.size,v=I.getEncodedBits(de,se);let i,a;for(i=0;i<15;i++)a=1==(v>>i&1),re.set(i<6?i:i<8?i+1:ye-15+i,8,a,!0),re.set(8,i<8?ye-i-1:i<9?15-i-1+1:15-i-1,a,!0);re.set(ye-8,8,1,!0)}function le(re,de,se,ye){let v;if(Array.isArray(re))v=E.fromArray(re);else{if("string"!=typeof re)throw new Error("Invalid data");{let _=de;if(!_){const D=E.rawSplit(re);_=L.getBestVersionForData(D,se)}v=E.fromString(re,_||40)}}const i=L.getBestVersionForData(v,se);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(de){if(de=0&&p<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===p||6===p)||p>=2&&p<=4&&u>=2&&u<=4,!0)}}(u,de),function w(re){const de=re.size;for(let se=8;se=7&&function j(re,de){const se=re.size,ye=L.getEncodedBits(de);let v,i,a;for(let p=0;p<18;p++)v=Math.floor(p/3),i=p%3+se-8-3,a=1==(ye>>p&1),re.set(v,i,a,!0),re.set(i,v,a,!0)}(u,de),function te(re,de){const se=re.size;let ye=-1,v=se-1,i=7,a=0;for(let p=se-1;p>0;p-=2)for(6===p&&p--;;){for(let u=0;u<2;u++)if(!re.isReserved(v,p-u)){let _=!1;a>>i&1)),re.set(v,p-u,_),i--,-1===i&&(a++,i=7)}if(v+=ye,v<0||se<=v){v-=ye,ye=-ye;break}}}(u,a),isNaN(ye)&&(ye=l.getBestMask(u,W.bind(null,u,se))),l.applyMask(ye,u),W(u,se,ye),{modules:u,version:de,errorCorrectionLevel:se,maskPattern:ye,segments:v}}Q.create=function(de,se){if(void 0===de||""===de)throw new Error("No input text");let v,i,ye=t.M;return void 0!==se&&(ye=t.from(se.errorCorrectionLevel,t.M),v=L.from(se.version),i=l.from(se.maskPattern),se.toSJISFunc&&e.setToSJISFunction(se.toSJISFunc)),le(de,v,ye,i)}},2636:(Ge,Q,m)=>{const e=m(1106);function t(y){this.genPoly=void 0,this.degree=y,this.degree&&this.initialize(this.degree)}t.prototype.initialize=function(C){this.degree=C,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(C){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(C.length+this.degree);o.set(C);const M=e.mod(o,this.genPoly),l=this.degree-M.length;if(l>0){const R=new Uint8Array(this.degree);return R.set(M,l),R}return M},Ge.exports=t},2699:(Ge,Q)=>{const m="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const y="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Q.KANJI=new RegExp(t,"g"),Q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Q.BYTE=new RegExp(y,"g"),Q.NUMERIC=new RegExp(m,"g"),Q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const C=new RegExp("^"+t+"$"),o=new RegExp("^"+m+"$"),M=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Q.testKanji=function(R){return C.test(R)},Q.testNumeric=function(R){return o.test(R)},Q.testAlphanumeric=function(R){return M.test(R)}},2033:(Ge,Q,m)=>{const e=m(4016),t=m(7783),y=m(2424),C=m(5663),o=m(4388),M=m(2699),l=m(4792),R=m(4901);function s(j){return unescape(encodeURIComponent(j)).length}function L(j,W,te){const ee=[];let ge;for(;null!==(ge=j.exec(te));)ee.push({data:ge[0],index:ge.index,mode:W,length:ge[0].length});return ee}function I(j){const W=L(M.NUMERIC,e.NUMERIC,j),te=L(M.ALPHANUMERIC,e.ALPHANUMERIC,j);let ee,ge;return l.isKanjiModeEnabled()?(ee=L(M.BYTE,e.BYTE,j),ge=L(M.KANJI,e.KANJI,j)):(ee=L(M.BYTE_KANJI,e.BYTE,j),ge=[]),W.concat(te,ee,ge).sort(function(re,de){return re.index-de.index}).map(function(re){return{data:re.data,mode:re.mode,length:re.length}})}function A(j,W){switch(W){case e.NUMERIC:return t.getBitsLength(j);case e.ALPHANUMERIC:return y.getBitsLength(j);case e.KANJI:return o.getBitsLength(j);case e.BYTE:return C.getBitsLength(j)}}function V(j,W){let te;const ee=e.getBestModeForData(j);if(te=e.from(W,ee),te!==e.BYTE&&te.bit=0?W[W.length-1]:null;return ee&&ee.mode===te.mode?(W[W.length-1].data+=te.data,W):(W.push(te),W)},[])}(de))},Q.rawSplit=function(W){return Q.fromArray(I(W,l.isKanjiModeEnabled()))}},4792:(Ge,Q)=>{let m;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Q.getSymbolSize=function(y){if(!y)throw new Error('"version" cannot be null or undefined');if(y<1||y>40)throw new Error('"version" should be in range from 1 to 40');return 4*y+17},Q.getSymbolTotalCodewords=function(y){return e[y]},Q.getBCHDigit=function(t){let y=0;for(;0!==t;)y++,t>>>=1;return y},Q.setToSJISFunction=function(y){if("function"!=typeof y)throw new Error('"toSJISFunc" is not a valid function.');m=y},Q.isKanjiModeEnabled=function(){return void 0!==m},Q.toSJIS=function(y){return m(y)}},4406:(Ge,Q)=>{Q.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},2088:(Ge,Q,m)=>{const e=m(4792),t=m(4655),y=m(2259),C=m(4016),o=m(4406),l=e.getBCHDigit(7973);function s(A,E){return C.getCharCountIndicator(A,E)+4}function L(A,E){let P=0;return A.forEach(function(w){P+=s(w.mode,E)+w.getBitsLength()}),P}Q.from=function(E,P){return o.isValid(E)?parseInt(E,10):P},Q.getCapacity=function(E,P,w){if(!o.isValid(E))throw new Error("Invalid QR Code version");void 0===w&&(w=C.BYTE);const W=8*(e.getSymbolTotalCodewords(E)-t.getTotalCodewordsCount(E,P));if(w===C.MIXED)return W;const te=W-s(w,E);switch(w){case C.NUMERIC:return Math.floor(te/10*3);case C.ALPHANUMERIC:return Math.floor(te/11*2);case C.KANJI:return Math.floor(te/13);default:return Math.floor(te/8)}},Q.getBestVersionForData=function(E,P){let w;const V=y.from(P,y.M);if(Array.isArray(E)){if(E.length>1)return function I(A,E){for(let P=1;P<=40;P++)if(L(A,P)<=Q.getCapacity(P,E,C.MIXED))return P}(E,V);if(0===E.length)return 1;w=E[0]}else w=E;return function R(A,E,P){for(let w=1;w<=40;w++)if(E<=Q.getCapacity(w,P,A))return w}(w.mode,w.getLength(),V)},Q.getEncodedBits=function(E){if(!o.isValid(E)||E<7)throw new Error("Invalid QR Code version");let P=E<<12;for(;e.getBCHDigit(P)-l>=0;)P^=7973<{const e=m(6355);Q.render=function(o,M,l){let R=l,s=M;void 0===R&&(!M||!M.getContext)&&(R=M,M=void 0),M||(s=function y(){try{return document.createElement("canvas")}catch(C){throw new Error("You need to specify a canvas element")}}()),R=e.getOptions(R);const L=e.getImageWidth(o.modules.size,R),I=s.getContext("2d"),A=I.createImageData(L,L);return e.qrToImageData(A.data,o,R),function t(C,o,M){C.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=M,o.width=M,o.style.height=M+"px",o.style.width=M+"px"}(I,s,L),I.putImageData(A,0,0),s},Q.renderToDataURL=function(o,M,l){let R=l;return void 0===R&&(!M||!M.getContext)&&(R=M,M=void 0),R||(R={}),Q.render(o,M,R).toDataURL(R.type||"image/png",(R.rendererOpts||{}).quality)}},2334:(Ge,Q,m)=>{const e=m(6355);function t(o,M){const l=o.a/255,R=M+'="'+o.hex+'"';return l<1?R+" "+M+'-opacity="'+l.toFixed(2).slice(1)+'"':R}function y(o,M,l){let R=o+M;return void 0!==l&&(R+=" "+l),R}Q.render=function(M,l,R){const s=e.getOptions(l),L=M.modules.size,I=M.modules.data,A=L+2*s.margin,E=s.color.light.a?"':"",P="0&&E>0&&o[A-1]||(R+=L?y("M",E+l,.5+P+l):y("m",s,0),s=0,L=!1),E+1',j=''+E+P+"\n";return"function"==typeof R&&R(null,j),j}},6355:(Ge,Q)=>{function m(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(C){return[C,C]}))),6===t.length&&t.push("F","F");const y=parseInt(t.join(""),16);return{r:y>>24&255,g:y>>16&255,b:y>>8&255,a:255&y,hex:"#"+t.slice(0,6).join("")}}Q.getOptions=function(t){t||(t={}),t.color||(t.color={});const C=t.width&&t.width>=21?t.width:void 0;return{width:C,scale:C?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:m(t.color.dark||"#000000ff"),light:m(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},Q.getScale=function(t,y){return y.width&&y.width>=t+2*y.margin?y.width/(t+2*y.margin):y.scale},Q.getImageWidth=function(t,y){const C=Q.getScale(t,y);return Math.floor((t+2*y.margin)*C)},Q.qrToImageData=function(t,y,C){const o=y.modules.size,M=y.modules.data,l=Q.getScale(o,C),R=Math.floor((o+2*C.margin)*l),s=C.margin*l,L=[C.color.light,C.color.dark];for(let I=0;I=s&&A>=s&&I{"use strict";var e=65536,C=m(3502).Buffer,o=global.crypto||global.msCrypto;Ge.exports=o&&o.getRandomValues?function M(l,R){if(l>4294967295)throw new RangeError("requested too many random bytes");var s=C.allocUnsafe(l);if(l>0)if(l>e)for(var L=0;L{"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=m(3502),y=m(3753),C=t.Buffer,o=t.kMaxLength,M=global.crypto||global.msCrypto,l=Math.pow(2,32)-1;function R(E,P){if("number"!=typeof E||E!=E)throw new TypeError("offset must be a number");if(E>l||E<0)throw new TypeError("offset must be a uint32");if(E>o||E>P)throw new RangeError("offset out of range")}function s(E,P,w){if("number"!=typeof E||E!=E)throw new TypeError("size must be a number");if(E>l||E<0)throw new TypeError("size must be a uint32");if(E+P>w||E>o)throw new RangeError("buffer too small")}function I(E,P,w,V){if(process.browser){var W=new Uint8Array(E.buffer,P,w);return M.getRandomValues(W),V?void process.nextTick(function(){V(null,E)}):E}if(!V)return y(w).copy(E,P),E;y(w,function(ee,ge){if(ee)return V(ee);ge.copy(E,P),V(null,E)})}M&&M.getRandomValues||!process.browser?(Q.randomFill=function L(E,P,w,V){if(!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof P)V=P,P=0,w=E.length;else if("function"==typeof w)V=w,w=E.length-P;else if("function"!=typeof V)throw new TypeError('"cb" argument must be a function');return R(P,E.length),s(w,P,E.length),I(E,P,w,V)},Q.randomFillSync=function A(E,P,w){if(void 0===P&&(P=0),!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return R(P,E.length),void 0===w&&(w=E.length-P),s(w,P,E.length),I(E,P,w)}):(Q.randomFill=e,Q.randomFillSync=e)},891:Ge=>{"use strict";var m={};function e(M,l,R){R||(R=Error);var L=function(I){function A(E,P,w){return I.call(this,function s(I,A,E){return"string"==typeof l?l:l(I,A,E)}(E,P,w))||this}return function Q(M,l){M.prototype=Object.create(l.prototype),M.prototype.constructor=M,M.__proto__=l}(A,I),A}(R);L.prototype.name=R.name,L.prototype.code=M,m[M]=L}function t(M,l){if(Array.isArray(M)){var R=M.length;return M=M.map(function(s){return String(s)}),R>2?"one of ".concat(l," ").concat(M.slice(0,R-1).join(", "),", or ")+M[R-1]:2===R?"one of ".concat(l," ").concat(M[0]," or ").concat(M[1]):"of ".concat(l," ").concat(M[0])}return"of ".concat(l," ").concat(String(M))}e("ERR_INVALID_OPT_VALUE",function(M,l){return'The value "'+l+'" is invalid for option "'+M+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(M,l,R){var s,L;if("string"==typeof l&&function y(M,l,R){return M.substr(!R||R<0?0:+R,l.length)===l}(l,"not ")?(s="must not be",l=l.replace(/^not /,"")):s="must be",function C(M,l,R){return(void 0===R||R>M.length)&&(R=M.length),M.substring(R-l.length,R)===l}(M," argument"))L="The ".concat(M," ").concat(s," ").concat(t(l,"type"));else{var I=function o(M,l,R){return"number"!=typeof R&&(R=0),!(R+l.length>M.length)&&-1!==M.indexOf(l,R)}(M,".")?"property":"argument";L='The "'.concat(M,'" ').concat(I," ").concat(s," ").concat(t(l,"type"))}return L+". Received type ".concat(typeof R)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(M){return"The "+M+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(M){return"Cannot call "+M+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(M){return"Unknown encoding: "+M},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ge.exports.q=m},1339:(Ge,Q,m)=>{"use strict";var e=Object.keys||function(L){var I=[];for(var A in L)I.push(A);return I};Ge.exports=l;var t=m(3154),y=m(520);m(3894)(l,t);for(var C=e(y.prototype),o=0;o{"use strict";Ge.exports=t;var e=m(6025);function t(y){if(!(this instanceof t))return new t(y);e.call(this,y)}m(3894)(t,e),t.prototype._transform=function(y,C,o){o(null,y)}},3154:(Ge,Q,m)=>{"use strict";var e;Ge.exports=v,v.ReadableState=ye,m(9069);var L,y=function(Ze,vt){return Ze.listeners(vt).length},C=m(4970),o=m(3172).Buffer,M=global.Uint8Array||function(){},s=m(4616);L=s&&s.debuglog?s.debuglog("stream"):function(){};var ee,ge,le,I=m(5019),A=m(1920),P=m(7102).getHighWaterMark,w=m(891).q,V=w.ERR_INVALID_ARG_TYPE,j=w.ERR_STREAM_PUSH_AFTER_EOF,W=w.ERR_METHOD_NOT_IMPLEMENTED,te=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(3894)(v,C);var re=A.errorOrDestroy,de=["error","close","destroy","pause","resume"];function ye(z,Ze,vt){e=e||m(1339),"boolean"!=typeof vt&&(vt=Ze instanceof e),this.objectMode=!!(z=z||{}).objectMode,vt&&(this.objectMode=this.objectMode||!!z.readableObjectMode),this.highWaterMark=P(this,z,"readableHighWaterMark",vt),this.buffer=new I,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==z.emitClose,this.autoDestroy=!!z.autoDestroy,this.destroyed=!1,this.defaultEncoding=z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z.encoding&&(ee||(ee=m(3054).s),this.decoder=new ee(z.encoding),this.encoding=z.encoding)}function v(z){if(e=e||m(1339),!(this instanceof v))return new v(z);this._readableState=new ye(z,this,this instanceof e),this.readable=!0,z&&("function"==typeof z.read&&(this._read=z.read),"function"==typeof z.destroy&&(this._destroy=z.destroy)),C.call(this)}function i(z,Ze,vt,Fe,Ne){L("readableAddChunk",Ze);var Le,ce=z._readableState;if(null===Ze)ce.reading=!1,function O(z,Ze){if(L("onEofChunk"),!Ze.ended){if(Ze.decoder){var vt=Ze.decoder.end();vt&&vt.length&&(Ze.buffer.push(vt),Ze.length+=Ze.objectMode?1:vt.length)}Ze.ended=!0,Ze.sync?x(z):(Ze.needReadable=!1,Ze.emittedReadable||(Ze.emittedReadable=!0,r(z)))}}(z,ce);else if(Ne||(Le=function p(z,Ze){var vt;return!function R(z){return o.isBuffer(z)||z instanceof M}(Ze)&&"string"!=typeof Ze&&void 0!==Ze&&!z.objectMode&&(vt=new V("chunk",["string","Buffer","Uint8Array"],Ze)),vt}(ce,Ze)),Le)re(z,Le);else if(ce.objectMode||Ze&&Ze.length>0)if("string"!=typeof Ze&&!ce.objectMode&&Object.getPrototypeOf(Ze)!==o.prototype&&(Ze=function l(z){return o.from(z)}(Ze)),Fe)ce.endEmitted?re(z,new te):a(z,ce,Ze,!0);else if(ce.ended)re(z,new j);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!vt?(Ze=ce.decoder.write(Ze),ce.objectMode||0!==Ze.length?a(z,ce,Ze,!1):b(z,ce)):a(z,ce,Ze,!1)}else Fe||(ce.reading=!1,b(z,ce));return!ce.ended&&(ce.lengthZe.highWaterMark&&(Ze.highWaterMark=function _(z){return z>=u?z=u:(z--,z|=z>>>1,z|=z>>>2,z|=z>>>4,z|=z>>>8,z|=z>>>16,z++),z}(z)),z<=Ze.length?z:Ze.ended?Ze.length:(Ze.needReadable=!0,0))}function x(z){var Ze=z._readableState;L("emitReadable",Ze.needReadable,Ze.emittedReadable),Ze.needReadable=!1,Ze.emittedReadable||(L("emitReadable",Ze.flowing),Ze.emittedReadable=!0,process.nextTick(r,z))}function r(z){var Ze=z._readableState;L("emitReadable_",Ze.destroyed,Ze.length,Ze.ended),!Ze.destroyed&&(Ze.length||Ze.ended)&&(z.emit("readable"),Ze.emittedReadable=!1),Ze.needReadable=!Ze.flowing&&!Ze.ended&&Ze.length<=Ze.highWaterMark,ze(z)}function b(z,Ze){Ze.readingMore||(Ze.readingMore=!0,process.nextTick(Z,z,Ze))}function Z(z,Ze){for(;!Ze.reading&&!Ze.ended&&(Ze.length0,Ze.resumeScheduled&&!Ze.paused?Ze.flowing=!0:z.listenerCount("data")>0&&z.resume()}function ve(z){L("readable nexttick read 0"),z.read(0)}function Re(z,Ze){L("resume",Ze.reading),Ze.reading||z.read(0),Ze.resumeScheduled=!1,z.emit("resume"),ze(z),Ze.flowing&&!Ze.reading&&z.read(0)}function ze(z){var Ze=z._readableState;for(L("flow",Ze.flowing);Ze.flowing&&null!==z.read(););}function Oe(z,Ze){return 0===Ze.length?null:(Ze.objectMode?vt=Ze.buffer.shift():!z||z>=Ze.length?(vt=Ze.decoder?Ze.buffer.join(""):1===Ze.buffer.length?Ze.buffer.first():Ze.buffer.concat(Ze.length),Ze.buffer.clear()):vt=Ze.buffer.consume(z,Ze.decoder),vt);var vt}function K(z){var Ze=z._readableState;L("endReadable",Ze.endEmitted),Ze.endEmitted||(Ze.ended=!0,process.nextTick(Me,Ze,z))}function Me(z,Ze){if(L("endReadableNT",z.endEmitted,z.length),!z.endEmitted&&0===z.length&&(z.endEmitted=!0,Ze.readable=!1,Ze.emit("end"),z.autoDestroy)){var vt=Ze._writableState;(!vt||vt.autoDestroy&&vt.finished)&&Ze.destroy()}}function we(z,Ze){for(var vt=0,Fe=z.length;vt=Ze.highWaterMark:Ze.length>0)||Ze.ended))return L("read: emitReadable",Ze.length,Ze.ended),0===Ze.length&&Ze.ended?K(this):x(this),null;if(0===(z=D(z,Ze))&&Ze.ended)return 0===Ze.length&&K(this),null;var Ne,Fe=Ze.needReadable;return L("need readable",Fe),(0===Ze.length||Ze.length-z0?Oe(z,Ze):null)?(Ze.needReadable=Ze.length<=Ze.highWaterMark,z=0):(Ze.length-=z,Ze.awaitDrain=0),0===Ze.length&&(Ze.ended||(Ze.needReadable=!0),vt!==z&&Ze.ended&&K(this)),null!==Ne&&this.emit("data",Ne),Ne},v.prototype._read=function(z){re(this,new W("_read()"))},v.prototype.pipe=function(z,Ze){var vt=this,Fe=this._readableState;switch(Fe.pipesCount){case 0:Fe.pipes=z;break;case 1:Fe.pipes=[Fe.pipes,z];break;default:Fe.pipes.push(z)}Fe.pipesCount+=1,L("pipe count=%d opts=%j",Fe.pipesCount,Ze);var ce=Ze&&!1===Ze.end||z===process.stdout||z===process.stderr?ft:Pe;function Pe(){L("onend"),z.end()}Fe.endEmitted?process.nextTick(ce):vt.once("end",ce),z.on("unpipe",function Le(it,rt){L("onunpipe"),it===vt&&rt&&!1===rt.hasUnpiped&&(rt.hasUnpiped=!0,function oe(){L("cleanup"),z.removeListener("close",lt),z.removeListener("finish",nt),z.removeListener("drain",q),z.removeListener("error",Ue),z.removeListener("unpipe",Le),vt.removeListener("end",Pe),vt.removeListener("end",ft),vt.removeListener("data",Ce),$=!0,Fe.awaitDrain&&(!z._writableState||z._writableState.needDrain)&&q()}())});var q=function N(z){return function(){var vt=z._readableState;L("pipeOnDrain",vt.awaitDrain),vt.awaitDrain&&vt.awaitDrain--,0===vt.awaitDrain&&y(z,"data")&&(vt.flowing=!0,ze(z))}}(vt);z.on("drain",q);var $=!1;function Ce(it){L("ondata");var rt=z.write(it);L("dest.write",rt),!1===rt&&((1===Fe.pipesCount&&Fe.pipes===z||Fe.pipesCount>1&&-1!==we(Fe.pipes,z))&&!$&&(L("false write response, pause",Fe.awaitDrain),Fe.awaitDrain++),vt.pause())}function Ue(it){L("onerror",it),ft(),z.removeListener("error",Ue),0===y(z,"error")&&re(z,it)}function lt(){z.removeListener("finish",nt),ft()}function nt(){L("onfinish"),z.removeListener("close",lt),ft()}function ft(){L("unpipe"),vt.unpipe(z)}return vt.on("data",Ce),function se(z,Ze,vt){if("function"==typeof z.prependListener)return z.prependListener(Ze,vt);z._events&&z._events[Ze]?Array.isArray(z._events[Ze])?z._events[Ze].unshift(vt):z._events[Ze]=[vt,z._events[Ze]]:z.on(Ze,vt)}(z,"error",Ue),z.once("close",lt),z.once("finish",nt),z.emit("pipe",vt),Fe.flowing||(L("pipe resume"),vt.resume()),z},v.prototype.unpipe=function(z){var Ze=this._readableState,vt={hasUnpiped:!1};if(0===Ze.pipesCount)return this;if(1===Ze.pipesCount)return z&&z!==Ze.pipes||(z||(z=Ze.pipes),Ze.pipes=null,Ze.pipesCount=0,Ze.flowing=!1,z&&z.emit("unpipe",this,vt)),this;if(!z){var Fe=Ze.pipes,Ne=Ze.pipesCount;Ze.pipes=null,Ze.pipesCount=0,Ze.flowing=!1;for(var ce=0;ce0,!1!==Fe.flowing&&this.resume()):"readable"===z&&!Fe.endEmitted&&!Fe.readableListening&&(Fe.readableListening=Fe.needReadable=!0,Fe.flowing=!1,Fe.emittedReadable=!1,L("on readable",Fe.length,Fe.reading),Fe.length?x(this):Fe.reading||process.nextTick(ve,this)),vt},v.prototype.removeListener=function(z,Ze){var vt=C.prototype.removeListener.call(this,z,Ze);return"readable"===z&&process.nextTick(U,this),vt},v.prototype.removeAllListeners=function(z){var Ze=C.prototype.removeAllListeners.apply(this,arguments);return("readable"===z||void 0===z)&&process.nextTick(U,this),Ze},v.prototype.resume=function(){var z=this._readableState;return z.flowing||(L("resume"),z.flowing=!z.readableListening,function be(z,Ze){Ze.resumeScheduled||(Ze.resumeScheduled=!0,process.nextTick(Re,z,Ze))}(this,z)),z.paused=!1,this},v.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},v.prototype.wrap=function(z){var Ze=this,vt=this._readableState,Fe=!1;for(var Ne in z.on("end",function(){if(L("wrapped end"),vt.decoder&&!vt.ended){var Le=vt.decoder.end();Le&&Le.length&&Ze.push(Le)}Ze.push(null)}),z.on("data",function(Le){L("wrapped data"),vt.decoder&&(Le=vt.decoder.write(Le)),vt.objectMode&&null==Le||!(vt.objectMode||Le&&Le.length)||Ze.push(Le)||(Fe=!0,z.pause())}),z)void 0===this[Ne]&&"function"==typeof z[Ne]&&(this[Ne]=function(Pe){return function(){return z[Pe].apply(z,arguments)}}(Ne));for(var ce=0;ce{"use strict";Ge.exports=R;var e=m(891).q,t=e.ERR_METHOD_NOT_IMPLEMENTED,y=e.ERR_MULTIPLE_CALLBACK,C=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,M=m(1339);function l(I,A){var E=this._transformState;E.transforming=!1;var P=E.writecb;if(null===P)return this.emit("error",new y);E.writechunk=null,E.writecb=null,null!=A&&this.push(A),P(I);var w=this._readableState;w.reading=!1,(w.needReadable||w.length{"use strict";function t(ze){var Oe=this;this.next=null,this.entry=null,this.finish=function(){!function Re(ze,Oe,K){var Me=ze.entry;for(ze.entry=null;Me;){var we=Me.callback;Oe.pendingcb--,we(K),Me=Me.next}Oe.corkedRequestsFree.next=ze}(Oe,ze)}}var y;Ge.exports=ye,ye.WritableState=de;var se,C={deprecate:m(4364)},o=m(4970),M=m(3172).Buffer,l=global.Uint8Array||function(){},L=m(1920),A=m(7102).getHighWaterMark,E=m(891).q,P=E.ERR_INVALID_ARG_TYPE,w=E.ERR_METHOD_NOT_IMPLEMENTED,V=E.ERR_MULTIPLE_CALLBACK,j=E.ERR_STREAM_CANNOT_PIPE,W=E.ERR_STREAM_DESTROYED,te=E.ERR_STREAM_NULL_VALUES,ee=E.ERR_STREAM_WRITE_AFTER_END,ge=E.ERR_UNKNOWN_ENCODING,le=L.errorOrDestroy;function re(){}function de(ze,Oe,K){y=y||m(1339),"boolean"!=typeof K&&(K=Oe instanceof y),this.objectMode=!!(ze=ze||{}).objectMode,K&&(this.objectMode=this.objectMode||!!ze.writableObjectMode),this.highWaterMark=A(this,ze,"writableHighWaterMark",K),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===ze.decodeStrings),this.defaultEncoding=ze.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(we){!function O(ze,Oe){var K=ze._writableState,Me=K.sync,we=K.writecb;if("function"!=typeof we)throw new V;if(function D(ze){ze.writing=!1,ze.writecb=null,ze.length-=ze.writelen,ze.writelen=0}(K),Oe)!function _(ze,Oe,K,Me,we){--Oe.pendingcb,K?(process.nextTick(we,Me),process.nextTick(ve,ze,Oe),ze._writableState.errorEmitted=!0,le(ze,Me)):(we(Me),ze._writableState.errorEmitted=!0,le(ze,Me),ve(ze,Oe))}(ze,K,Me,Oe,we);else{var z=Z(K)||ze.destroyed;!z&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&b(ze,K),Me?process.nextTick(x,ze,K,z,we):x(ze,K,z,we)}}(Oe,we)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==ze.emitClose,this.autoDestroy=!!ze.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function ye(ze){var Oe=this instanceof(y=y||m(1339));if(!Oe&&!se.call(ye,this))return new ye(ze);this._writableState=new de(ze,this,Oe),this.writable=!0,ze&&("function"==typeof ze.write&&(this._write=ze.write),"function"==typeof ze.writev&&(this._writev=ze.writev),"function"==typeof ze.destroy&&(this._destroy=ze.destroy),"function"==typeof ze.final&&(this._final=ze.final)),o.call(this)}function u(ze,Oe,K,Me,we,z,Ze){Oe.writelen=Me,Oe.writecb=Ze,Oe.writing=!0,Oe.sync=!0,Oe.destroyed?Oe.onwrite(new W("write")):K?ze._writev(we,Oe.onwrite):ze._write(we,z,Oe.onwrite),Oe.sync=!1}function x(ze,Oe,K,Me){K||function r(ze,Oe){0===Oe.length&&Oe.needDrain&&(Oe.needDrain=!1,ze.emit("drain"))}(ze,Oe),Oe.pendingcb--,Me(),ve(ze,Oe)}function b(ze,Oe){Oe.bufferProcessing=!0;var K=Oe.bufferedRequest;if(ze._writev&&K&&K.next){var we=new Array(Oe.bufferedRequestCount),z=Oe.corkedRequestsFree;z.entry=K;for(var Ze=0,vt=!0;K;)we[Ze]=K,K.isBuf||(vt=!1),K=K.next,Ze+=1;we.allBuffers=vt,u(ze,Oe,!0,Oe.length,we,"",z.finish),Oe.pendingcb++,Oe.lastBufferedRequest=null,z.next?(Oe.corkedRequestsFree=z.next,z.next=null):Oe.corkedRequestsFree=new t(Oe),Oe.bufferedRequestCount=0}else{for(;K;){var Fe=K.chunk;if(u(ze,Oe,!1,Oe.objectMode?1:Fe.length,Fe,K.encoding,K.callback),K=K.next,Oe.bufferedRequestCount--,Oe.writing)break}null===K&&(Oe.lastBufferedRequest=null)}Oe.bufferedRequest=K,Oe.bufferProcessing=!1}function Z(ze){return ze.ending&&0===ze.length&&null===ze.bufferedRequest&&!ze.finished&&!ze.writing}function N(ze,Oe){ze._final(function(K){Oe.pendingcb--,K&&le(ze,K),Oe.prefinished=!0,ze.emit("prefinish"),ve(ze,Oe)})}function ve(ze,Oe){var K=Z(Oe);if(K&&(function U(ze,Oe){!Oe.prefinished&&!Oe.finalCalled&&("function"!=typeof ze._final||Oe.destroyed?(Oe.prefinished=!0,ze.emit("prefinish")):(Oe.pendingcb++,Oe.finalCalled=!0,process.nextTick(N,ze,Oe)))}(ze,Oe),0===Oe.pendingcb&&(Oe.finished=!0,ze.emit("finish"),Oe.autoDestroy))){var Me=ze._readableState;(!Me||Me.autoDestroy&&Me.endEmitted)&&ze.destroy()}return K}m(3894)(ye,o),de.prototype.getBuffer=function(){for(var Oe=this.bufferedRequest,K=[];Oe;)K.push(Oe),Oe=Oe.next;return K},function(){try{Object.defineProperty(de.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ze){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(se=Function.prototype[Symbol.hasInstance],Object.defineProperty(ye,Symbol.hasInstance,{value:function(Oe){return!!se.call(this,Oe)||this===ye&&Oe&&Oe._writableState instanceof de}})):se=function(Oe){return Oe instanceof this},ye.prototype.pipe=function(){le(this,new j)},ye.prototype.write=function(ze,Oe,K){var Me=this._writableState,we=!1,z=!Me.objectMode&&function s(ze){return M.isBuffer(ze)||ze instanceof l}(ze);return z&&!M.isBuffer(ze)&&(ze=function R(ze){return M.from(ze)}(ze)),"function"==typeof Oe&&(K=Oe,Oe=null),z?Oe="buffer":Oe||(Oe=Me.defaultEncoding),"function"!=typeof K&&(K=re),Me.ending?function v(ze,Oe){var K=new ee;le(ze,K),process.nextTick(Oe,K)}(this,K):(z||function i(ze,Oe,K,Me){var we;return null===K?we=new te:"string"!=typeof K&&!Oe.objectMode&&(we=new P("chunk",["string","Buffer"],K)),!we||(le(ze,we),process.nextTick(Me,we),!1)}(this,Me,ze,K))&&(Me.pendingcb++,we=function p(ze,Oe,K,Me,we,z){if(!K){var Ze=function a(ze,Oe,K){return!ze.objectMode&&!1!==ze.decodeStrings&&"string"==typeof Oe&&(Oe=M.from(Oe,K)),Oe}(Oe,Me,we);Me!==Ze&&(K=!0,we="buffer",Me=Ze)}var vt=Oe.objectMode?1:Me.length;Oe.length+=vt;var Fe=Oe.length-1))throw new ge(Oe);return this._writableState.defaultEncoding=Oe,this},Object.defineProperty(ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ye.prototype._write=function(ze,Oe,K){K(new w("_write()"))},ye.prototype._writev=null,ye.prototype.end=function(ze,Oe,K){var Me=this._writableState;return"function"==typeof ze?(K=ze,ze=null,Oe=null):"function"==typeof Oe&&(K=Oe,Oe=null),null!=ze&&this.write(ze,Oe),Me.corked&&(Me.corked=1,this.uncork()),Me.ending||function be(ze,Oe,K){Oe.ending=!0,ve(ze,Oe),K&&(Oe.finished?process.nextTick(K):ze.once("finish",K)),Oe.ended=!0,ze.writable=!1}(this,Me,K),this},Object.defineProperty(ye.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ye.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Oe){!this._writableState||(this._writableState.destroyed=Oe)}}),ye.prototype.destroy=L.destroy,ye.prototype._undestroy=L.undestroy,ye.prototype._destroy=function(ze,Oe){Oe(ze)}},3872:(Ge,Q,m)=>{"use strict";var e;function t(W,te,ee){return te in W?Object.defineProperty(W,te,{value:ee,enumerable:!0,configurable:!0,writable:!0}):W[te]=ee,W}var y=m(7542),C=Symbol("lastResolve"),o=Symbol("lastReject"),M=Symbol("error"),l=Symbol("ended"),R=Symbol("lastPromise"),s=Symbol("handlePromise"),L=Symbol("stream");function I(W,te){return{value:W,done:te}}function A(W){var te=W[C];if(null!==te){var ee=W[L].read();null!==ee&&(W[R]=null,W[C]=null,W[o]=null,te(I(ee,!1)))}}function E(W){process.nextTick(A,W)}var w=Object.getPrototypeOf(function(){}),V=Object.setPrototypeOf((t(e={get stream(){return this[L]},next:function(){var te=this,ee=this[M];if(null!==ee)return Promise.reject(ee);if(this[l])return Promise.resolve(I(void 0,!0));if(this[L].destroyed)return new Promise(function(de,se){process.nextTick(function(){te[M]?se(te[M]):de(I(void 0,!0))})});var le,ge=this[R];if(ge)le=new Promise(function P(W,te){return function(ee,ge){W.then(function(){te[l]?ee(I(void 0,!0)):te[s](ee,ge)},ge)}}(ge,this));else{var re=this[L].read();if(null!==re)return Promise.resolve(I(re,!1));le=new Promise(this[s])}return this[R]=le,le}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var te=this;return new Promise(function(ee,ge){te[L].destroy(null,function(le){le?ge(le):ee(I(void 0,!0))})})}),e),w);Ge.exports=function(te){var ee,ge=Object.create(V,(t(ee={},L,{value:te,writable:!0}),t(ee,C,{value:null,writable:!0}),t(ee,o,{value:null,writable:!0}),t(ee,M,{value:null,writable:!0}),t(ee,l,{value:te._readableState.endEmitted,writable:!0}),t(ee,s,{value:function(re,de){var se=ge[L].read();se?(ge[R]=null,ge[C]=null,ge[o]=null,re(I(se,!1))):(ge[C]=re,ge[o]=de)},writable:!0}),ee));return ge[R]=null,y(te,function(le){if(le&&"ERR_STREAM_PREMATURE_CLOSE"!==le.code){var re=ge[o];return null!==re&&(ge[R]=null,ge[C]=null,ge[o]=null,re(le)),void(ge[M]=le)}var de=ge[C];null!==de&&(ge[R]=null,ge[C]=null,ge[o]=null,de(I(void 0,!0))),ge[l]=!0}),te.on("readable",E.bind(null,ge)),ge}},5019:(Ge,Q,m)=>{"use strict";function e(E,P){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(E);P&&(V=V.filter(function(j){return Object.getOwnPropertyDescriptor(E,j).enumerable})),w.push.apply(w,V)}return w}function y(E,P,w){return P in E?Object.defineProperty(E,P,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[P]=w,E}function o(E,P){for(var w=0;w0?this.tail.next=V:this.head=V,this.tail=V,++this.length}},{key:"unshift",value:function(w){var V={data:w,next:this.head};0===this.length&&(this.tail=V),this.head=V,++this.length}},{key:"shift",value:function(){if(0!==this.length){var w=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(0===this.length)return"";for(var V=this.head,j=""+V.data;V=V.next;)j+=w+V.data;return j}},{key:"concat",value:function(w){if(0===this.length)return R.alloc(0);for(var V=R.allocUnsafe(w>>>0),j=this.head,W=0;j;)A(j.data,V,W),W+=j.data.length,j=j.next;return V}},{key:"consume",value:function(w,V){var j;return wte.length?te.length:w;if(W+=ee===te.length?te:te.slice(0,w),0==(w-=ee)){ee===te.length?(++j,this.head=V.next?V.next:this.tail=null):(this.head=V,V.data=te.slice(ee));break}++j}return this.length-=j,W}},{key:"_getBuffer",value:function(w){var V=R.allocUnsafe(w),j=this.head,W=1;for(j.data.copy(V),w-=j.data.length;j=j.next;){var te=j.data,ee=w>te.length?te.length:w;if(te.copy(V,V.length-w,0,ee),0==(w-=ee)){ee===te.length?(++W,this.head=j.next?j.next:this.tail=null):(this.head=j,j.data=te.slice(ee));break}++W}return this.length-=W,V}},{key:I,value:function(w,V){return L(this,function t(E){for(var P=1;P{"use strict";function m(o,M){y(o,M),e(o)}function e(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function y(o,M){o.emit("error",M)}Ge.exports={destroy:function Q(o,M){var l=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(M?M(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(y,this,o)):process.nextTick(y,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(L){!M&&L?l._writableState?l._writableState.errorEmitted?process.nextTick(e,l):(l._writableState.errorEmitted=!0,process.nextTick(m,l,L)):process.nextTick(m,l,L):M?(process.nextTick(e,l),M(L)):process.nextTick(e,l)}),this)},undestroy:function t(){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 C(o,M){var l=o._readableState,R=o._writableState;l&&l.autoDestroy||R&&R.autoDestroy?o.destroy(M):o.emit("error",M)}}},7542:(Ge,Q,m)=>{"use strict";var e=m(891).q.ERR_STREAM_PREMATURE_CLOSE;function y(){}Ge.exports=function o(M,l,R){if("function"==typeof l)return o(M,null,l);l||(l={}),R=function t(M){var l=!1;return function(){if(!l){l=!0;for(var R=arguments.length,s=new Array(R),L=0;L{Ge.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Ge,Q,m)=>{"use strict";var e,y=m(891).q,C=y.ERR_MISSING_ARGS,o=y.ERR_STREAM_DESTROYED;function M(E){if(E)throw E}function R(E,P,w,V){V=function t(E){var P=!1;return function(){P||(P=!0,E.apply(void 0,arguments))}}(V);var j=!1;E.on("close",function(){j=!0}),void 0===e&&(e=m(7542)),e(E,{readable:P,writable:w},function(te){if(te)return V(te);j=!0,V()});var W=!1;return function(te){if(!j&&!W){if(W=!0,function l(E){return E.setHeader&&"function"==typeof E.abort}(E))return E.abort();if("function"==typeof E.destroy)return E.destroy();V(te||new o("pipe"))}}}function s(E){E()}function L(E,P){return E.pipe(P)}function I(E){return E.length&&"function"==typeof E[E.length-1]?E.pop():M}Ge.exports=function A(){for(var E=arguments.length,P=new Array(E),w=0;w0,function(re){j||(j=re),re&&W.forEach(s),!ge&&(W.forEach(s),V(j))})});return P.reduce(L)}},7102:(Ge,Q,m)=>{"use strict";var e=m(891).q.ERR_INVALID_OPT_VALUE;Ge.exports={getHighWaterMark:function y(C,o,M,l){var R=function t(C,o,M){return null!=C.highWaterMark?C.highWaterMark:o?C[M]:null}(o,l,M);if(null!=R){if(!isFinite(R)||Math.floor(R)!==R||R<0)throw new e(l?M:"highWaterMark",R);return Math.floor(R)}return C.objectMode?16:16384}}},4970:(Ge,Q,m)=>{Ge.exports=m(9069).EventEmitter},5685:(Ge,Q,m)=>{(Q=Ge.exports=m(3154)).Stream=Q,Q.Readable=Q,Q.Writable=m(520),Q.Duplex=m(1339),Q.Transform=m(6025),Q.PassThrough=m(6071),Q.finished=m(7542),Q.pipeline=m(954)},5634:(Ge,Q,m)=>{"use strict";var e=m(3172).Buffer,t=m(3894),y=m(9650),C=new Array(16),o=[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],M=[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],l=[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],R=[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],s=[0,1518500249,1859775393,2400959708,2840853838],L=[1352829926,1548603684,1836072691,2053994217,0];function I(){y.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function A(W,te){return W<>>32-te}function E(W,te,ee,ge,le,re,de,se){return A(W+(te^ee^ge)+re+de|0,se)+le|0}function P(W,te,ee,ge,le,re,de,se){return A(W+(te&ee|~te&ge)+re+de|0,se)+le|0}function w(W,te,ee,ge,le,re,de,se){return A(W+((te|~ee)^ge)+re+de|0,se)+le|0}function V(W,te,ee,ge,le,re,de,se){return A(W+(te&ge|ee&~ge)+re+de|0,se)+le|0}function j(W,te,ee,ge,le,re,de,se){return A(W+(te^(ee|~ge))+re+de|0,se)+le|0}t(I,y),I.prototype._update=function(){for(var W=C,te=0;te<16;++te)W[te]=this._block.readInt32LE(4*te);for(var ee=0|this._a,ge=0|this._b,le=0|this._c,re=0|this._d,de=0|this._e,se=0|this._a,ye=0|this._b,v=0|this._c,i=0|this._d,a=0|this._e,p=0;p<80;p+=1){var u,_;p<16?(u=E(ee,ge,le,re,de,W[o[p]],s[0],l[p]),_=j(se,ye,v,i,a,W[M[p]],L[0],R[p])):p<32?(u=P(ee,ge,le,re,de,W[o[p]],s[1],l[p]),_=V(se,ye,v,i,a,W[M[p]],L[1],R[p])):p<48?(u=w(ee,ge,le,re,de,W[o[p]],s[2],l[p]),_=w(se,ye,v,i,a,W[M[p]],L[2],R[p])):p<64?(u=V(ee,ge,le,re,de,W[o[p]],s[3],l[p]),_=P(se,ye,v,i,a,W[M[p]],L[3],R[p])):(u=j(ee,ge,le,re,de,W[o[p]],s[4],l[p]),_=E(se,ye,v,i,a,W[M[p]],L[4],R[p])),ee=de,de=re,re=A(le,10),le=ge,ge=u,se=a,a=i,i=A(v,10),v=ye,ye=_}var D=this._b+le+i|0;this._b=this._c+re+a|0,this._c=this._d+de+se|0,this._d=this._e+ee+ye|0,this._e=this._a+ge+v|0,this._a=D},I.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var W=e.alloc?e.alloc(20):new e(20);return W.writeInt32LE(this._a,0),W.writeInt32LE(this._b,4),W.writeInt32LE(this._c,8),W.writeInt32LE(this._d,12),W.writeInt32LE(this._e,16),W},Ge.exports=I},1135:(Ge,Q,m)=>{"use strict";m.d(Q,{X:()=>t});var e=m(7579);class t extends e.x{constructor(C){super(),this._value=C}get value(){return this.getValue()}_subscribe(C){const o=super._subscribe(C);return!o.closed&&C.next(this._value),o}getValue(){const{hasError:C,thrownError:o,_value:M}=this;if(C)throw o;return this._throwIfClosed(),M}next(C){super.next(this._value=C)}}},8306:(Ge,Q,m)=>{"use strict";m.d(Q,{y:()=>L});var e=m(930),t=m(727),y=m(8822),C=m(4671);var l=m(2416),R=m(576),s=m(2806);let L=(()=>{class P{constructor(V){V&&(this._subscribe=V)}lift(V){const j=new P;return j.source=this,j.operator=V,j}subscribe(V,j,W){const te=function E(P){return P&&P instanceof e.Lv||function A(P){return P&&(0,R.m)(P.next)&&(0,R.m)(P.error)&&(0,R.m)(P.complete)}(P)&&(0,t.Nn)(P)}(V)?V:new e.Hp(V,j,W);return(0,s.x)(()=>{const{operator:ee,source:ge}=this;te.add(ee?ee.call(te,ge):ge?this._subscribe(te):this._trySubscribe(te))}),te}_trySubscribe(V){try{return this._subscribe(V)}catch(j){V.error(j)}}forEach(V,j){return new(j=I(j))((W,te)=>{let ee;ee=this.subscribe(ge=>{try{V(ge)}catch(le){te(le),null==ee||ee.unsubscribe()}},te,W)})}_subscribe(V){var j;return null===(j=this.source)||void 0===j?void 0:j.subscribe(V)}[y.L](){return this}pipe(...V){return function M(P){return 0===P.length?C.y:1===P.length?P[0]:function(V){return P.reduce((j,W)=>W(j),V)}}(V)(this)}toPromise(V){return new(V=I(V))((j,W)=>{let te;this.subscribe(ee=>te=ee,ee=>W(ee),()=>j(te))})}}return P.create=w=>new P(w),P})();function I(P){var w;return null!==(w=null!=P?P:l.v.Promise)&&void 0!==w?w:Promise}},4707:(Ge,Q,m)=>{"use strict";m.d(Q,{t:()=>y});var e=m(7579),t=m(6063);class y extends e.x{constructor(o=1/0,M=1/0,l=t.l){super(),this._bufferSize=o,this._windowTime=M,this._timestampProvider=l,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=M===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,M)}next(o){const{isStopped:M,_buffer:l,_infiniteTimeWindow:R,_timestampProvider:s,_windowTime:L}=this;M||(l.push(o),!R&&l.push(s.now()+L)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const M=this._innerSubscribe(o),{_infiniteTimeWindow:l,_buffer:R}=this,s=R.slice();for(let L=0;L{"use strict";m.d(Q,{u:()=>R,x:()=>l});var e=m(8306),t=m(727);const C=(0,m(3888).d)(s=>function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var o=m(8737),M=m(2806);let l=(()=>{class s extends e.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(I){const A=new R(this,this);return A.operator=I,A}_throwIfClosed(){if(this.closed)throw new C}next(I){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const A=this.observers.slice();for(const E of A)E.next(I)}})}error(I){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=I;const{observers:A}=this;for(;A.length;)A.shift().error(I)}})}complete(){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:I}=this;for(;I.length;)I.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var I;return(null===(I=this.observers)||void 0===I?void 0:I.length)>0}_trySubscribe(I){return this._throwIfClosed(),super._trySubscribe(I)}_subscribe(I){return this._throwIfClosed(),this._checkFinalizedStatuses(I),this._innerSubscribe(I)}_innerSubscribe(I){const{hasError:A,isStopped:E,observers:P}=this;return A||E?t.Lc:(P.push(I),new t.w0(()=>(0,o.P)(P,I)))}_checkFinalizedStatuses(I){const{hasError:A,thrownError:E,isStopped:P}=this;A?I.error(E):P&&I.complete()}asObservable(){const I=new e.y;return I.source=this,I}}return s.create=(L,I)=>new R(L,I),s})();class R extends l{constructor(L,I){super(),this.destination=L,this.source=I}next(L){var I,A;null===(A=null===(I=this.destination)||void 0===I?void 0:I.next)||void 0===A||A.call(I,L)}error(L){var I,A;null===(A=null===(I=this.destination)||void 0===I?void 0:I.error)||void 0===A||A.call(I,L)}complete(){var L,I;null===(I=null===(L=this.destination)||void 0===L?void 0:L.complete)||void 0===I||I.call(L)}_subscribe(L){var I,A;return null!==(A=null===(I=this.source)||void 0===I?void 0:I.subscribe(L))&&void 0!==A?A:t.Lc}}},930:(Ge,Q,m)=>{"use strict";m.d(Q,{Hp:()=>E,Lv:()=>A});var e=m(576),t=m(727),y=m(2416),C=m(7849),o=m(5032);const M=s("C",void 0,void 0);function s(W,te,ee){return{kind:W,value:te,error:ee}}var L=m(3410),I=m(2806);class A extends t.w0{constructor(te){super(),this.isStopped=!1,te?(this.destination=te,(0,t.Nn)(te)&&te.add(this)):this.destination=j}static create(te,ee,ge){return new E(te,ee,ge)}next(te){this.isStopped?V(function R(W){return s("N",W,void 0)}(te),this):this._next(te)}error(te){this.isStopped?V(function l(W){return s("E",void 0,W)}(te),this):(this.isStopped=!0,this._error(te))}complete(){this.isStopped?V(M,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(te){this.destination.next(te)}_error(te){try{this.destination.error(te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class E extends A{constructor(te,ee,ge){let le;if(super(),(0,e.m)(te))le=te;else if(te){let re;({next:le,error:ee,complete:ge}=te),this&&y.v.useDeprecatedNextContext?(re=Object.create(te),re.unsubscribe=()=>this.unsubscribe()):re=te,le=null==le?void 0:le.bind(re),ee=null==ee?void 0:ee.bind(re),ge=null==ge?void 0:ge.bind(re)}this.destination={next:le?P(le):o.Z,error:P(null!=ee?ee:w),complete:ge?P(ge):o.Z}}}function P(W,te){return(...ee)=>{try{W(...ee)}catch(ge){y.v.useDeprecatedSynchronousErrorHandling?(0,I.O)(ge):(0,C.h)(ge)}}}function w(W){throw W}function V(W,te){const{onStoppedNotification:ee}=y.v;ee&&L.z.setTimeout(()=>ee(W,te))}const j={closed:!0,next:o.Z,error:w,complete:o.Z}},727:(Ge,Q,m)=>{"use strict";m.d(Q,{Lc:()=>M,w0:()=>o,Nn:()=>l});var e=m(576);const y=(0,m(3888).d)(s=>function(I){s(this),this.message=I?`${I.length} errors occurred during unsubscription:\n${I.map((A,E)=>`${E+1}) ${A.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=I});var C=m(8737);class o{constructor(L){this.initialTeardown=L,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let L;if(!this.closed){this.closed=!0;const{_parentage:I}=this;if(I)if(this._parentage=null,Array.isArray(I))for(const P of I)P.remove(this);else I.remove(this);const{initialTeardown:A}=this;if((0,e.m)(A))try{A()}catch(P){L=P instanceof y?P.errors:[P]}const{_teardowns:E}=this;if(E){this._teardowns=null;for(const P of E)try{R(P)}catch(w){L=null!=L?L:[],w instanceof y?L=[...L,...w.errors]:L.push(w)}}if(L)throw new y(L)}}add(L){var I;if(L&&L!==this)if(this.closed)R(L);else{if(L instanceof o){if(L.closed||L._hasParent(this))return;L._addParent(this)}(this._teardowns=null!==(I=this._teardowns)&&void 0!==I?I:[]).push(L)}}_hasParent(L){const{_parentage:I}=this;return I===L||Array.isArray(I)&&I.includes(L)}_addParent(L){const{_parentage:I}=this;this._parentage=Array.isArray(I)?(I.push(L),I):I?[I,L]:L}_removeParent(L){const{_parentage:I}=this;I===L?this._parentage=null:Array.isArray(I)&&(0,C.P)(I,L)}remove(L){const{_teardowns:I}=this;I&&(0,C.P)(I,L),L instanceof o&&L._removeParent(this)}}o.EMPTY=(()=>{const s=new o;return s.closed=!0,s})();const M=o.EMPTY;function l(s){return s instanceof o||s&&"closed"in s&&(0,e.m)(s.remove)&&(0,e.m)(s.add)&&(0,e.m)(s.unsubscribe)}function R(s){(0,e.m)(s)?s():s.unsubscribe()}},2416:(Ge,Q,m)=>{"use strict";m.d(Q,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Ge,Q,m)=>{"use strict";m.d(Q,{a:()=>L});var e=m(8306),t=m(4742),y=m(457),C=m(4671),o=m(3268),M=m(3269),l=m(1810),R=m(5403),s=m(9672);function L(...E){const P=(0,M.yG)(E),w=(0,M.jO)(E),{args:V,keys:j}=(0,t.D)(E);if(0===V.length)return(0,y.D)([],P);const W=new e.y(function I(E,P,w=C.y){return V=>{A(P,()=>{const{length:j}=E,W=new Array(j);let te=j,ee=j;for(let ge=0;ge{const le=(0,y.D)(E[ge],P);let re=!1;le.subscribe(new R.Q(V,de=>{W[ge]=de,re||(re=!0,ee--),ee||V.next(w(W.slice()))},()=>{--te||V.complete()}))},V)},V)}}(V,P,j?te=>(0,l.n)(j,te):C.y));return w?W.pipe((0,o.Z)(w)):W}function A(E,P,w){E?(0,s.f)(w,E,P):P()}},7272:(Ge,Q,m)=>{"use strict";m.d(Q,{z:()=>o});var e=m(8189),y=m(3269),C=m(457);function o(...M){return function t(){return(0,e.J)(1)}()((0,C.D)(M,(0,y.yG)(M)))}},9770:(Ge,Q,m)=>{"use strict";m.d(Q,{P:()=>y});var e=m(8306),t=m(8421);function y(C){return new e.y(o=>{(0,t.Xf)(C()).subscribe(o)})}},515:(Ge,Q,m)=>{"use strict";m.d(Q,{E:()=>t});const t=new(m(8306).y)(o=>o.complete())},4128:(Ge,Q,m)=>{"use strict";m.d(Q,{D:()=>R});var e=m(8306),t=m(4742),y=m(8421),C=m(3269),o=m(5403),M=m(3268),l=m(1810);function R(...s){const L=(0,C.jO)(s),{args:I,keys:A}=(0,t.D)(s),E=new e.y(P=>{const{length:w}=I;if(!w)return void P.complete();const V=new Array(w);let j=w,W=w;for(let te=0;te{ee||(ee=!0,W--),V[te]=ge},()=>j--,void 0,()=>{(!j||!ee)&&(W||P.next(A?(0,l.n)(A,V):V),P.complete())}))}});return L?E.pipe((0,M.Z)(L)):E}},457:(Ge,Q,m)=>{"use strict";m.d(Q,{D:()=>re});var e=m(8421),t=m(5363),y=m(4482);function C(de,se=0){return(0,y.e)((ye,v)=>{v.add(de.schedule(()=>ye.subscribe(v),se))})}var l=m(8306),s=m(2202),L=m(576),I=m(9672);function E(de,se){if(!de)throw new Error("Iterable cannot be null");return new l.y(ye=>{(0,I.f)(ye,se,()=>{const v=de[Symbol.asyncIterator]();(0,I.f)(ye,se,()=>{v.next().then(i=>{i.done?ye.complete():ye.next(i.value)})},0,!0)})})}var P=m(3670),w=m(8239),V=m(1144),j=m(6495),W=m(2206),te=m(4532),ee=m(3260);function re(de,se){return se?function le(de,se){if(null!=de){if((0,P.c)(de))return function o(de,se){return(0,e.Xf)(de).pipe(C(se),(0,t.Q)(se))}(de,se);if((0,V.z)(de))return function R(de,se){return new l.y(ye=>{let v=0;return se.schedule(function(){v===de.length?ye.complete():(ye.next(de[v++]),ye.closed||this.schedule())})})}(de,se);if((0,w.t)(de))return function M(de,se){return(0,e.Xf)(de).pipe(C(se),(0,t.Q)(se))}(de,se);if((0,W.D)(de))return E(de,se);if((0,j.T)(de))return function A(de,se){return new l.y(ye=>{let v;return(0,I.f)(ye,se,()=>{v=de[s.h](),(0,I.f)(ye,se,()=>{let i,a;try{({value:i,done:a}=v.next())}catch(p){return void ye.error(p)}a?ye.complete():ye.next(i)},0,!0)}),()=>(0,L.m)(null==v?void 0:v.return)&&v.return()})}(de,se);if((0,ee.L)(de))return function ge(de,se){return E((0,ee.Q)(de),se)}(de,se)}throw(0,te.z)(de)}(de,se):(0,e.Xf)(de)}},4968:(Ge,Q,m)=>{"use strict";m.d(Q,{R:()=>L});var e=m(8421),t=m(8306),y=m(5577),C=m(1144),o=m(576),M=m(3268);const l=["addListener","removeListener"],R=["addEventListener","removeEventListener"],s=["on","off"];function L(w,V,j,W){if((0,o.m)(j)&&(W=j,j=void 0),W)return L(w,V,j).pipe((0,M.Z)(W));const[te,ee]=function P(w){return(0,o.m)(w.addEventListener)&&(0,o.m)(w.removeEventListener)}(w)?R.map(ge=>le=>w[ge](V,le,j)):function A(w){return(0,o.m)(w.addListener)&&(0,o.m)(w.removeListener)}(w)?l.map(I(w,V)):function E(w){return(0,o.m)(w.on)&&(0,o.m)(w.off)}(w)?s.map(I(w,V)):[];if(!te&&(0,C.z)(w))return(0,y.z)(ge=>L(ge,V,j))((0,e.Xf)(w));if(!te)throw new TypeError("Invalid event target");return new t.y(ge=>{const le=(...re)=>ge.next(1ee(le)})}function I(w,V){return j=>W=>w[j](V,W)}},8421:(Ge,Q,m)=>{"use strict";m.d(Q,{Xf:()=>E});var e=m(5987),t=m(1144),y=m(8239),C=m(8306),o=m(3670),M=m(2206),l=m(4532),R=m(6495),s=m(3260),L=m(576),I=m(7849),A=m(8822);function E(ge){if(ge instanceof C.y)return ge;if(null!=ge){if((0,o.c)(ge))return function P(ge){return new C.y(le=>{const re=ge[A.L]();if((0,L.m)(re.subscribe))return re.subscribe(le);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ge);if((0,t.z)(ge))return function w(ge){return new C.y(le=>{for(let re=0;re{ge.then(re=>{le.closed||(le.next(re),le.complete())},re=>le.error(re)).then(null,I.h)})}(ge);if((0,M.D)(ge))return W(ge);if((0,R.T)(ge))return function j(ge){return new C.y(le=>{for(const re of ge)if(le.next(re),le.closed)return;le.complete()})}(ge);if((0,s.L)(ge))return function te(ge){return W((0,s.Q)(ge))}(ge)}throw(0,l.z)(ge)}function W(ge){return new C.y(le=>{(function ee(ge,le){var re,de,se,ye;return(0,e.mG)(this,void 0,void 0,function*(){try{for(re=(0,e.KL)(ge);!(de=yield re.next()).done;)if(le.next(de.value),le.closed)return}catch(v){se={error:v}}finally{try{de&&!de.done&&(ye=re.return)&&(yield ye.call(re))}finally{if(se)throw se.error}}le.complete()})})(ge,le).catch(re=>le.error(re))})}},6451:(Ge,Q,m)=>{"use strict";m.d(Q,{T:()=>M});var e=m(8189),t=m(8421),y=m(515),C=m(3269),o=m(457);function M(...l){const R=(0,C.yG)(l),s=(0,C._6)(l,1/0),L=l;return L.length?1===L.length?(0,t.Xf)(L[0]):(0,e.J)(s)((0,o.D)(L,R)):y.E}},9646:(Ge,Q,m)=>{"use strict";m.d(Q,{of:()=>y});var e=m(3269),t=m(457);function y(...C){const o=(0,e.yG)(C);return(0,t.D)(C,o)}},2843:(Ge,Q,m)=>{"use strict";m.d(Q,{_:()=>y});var e=m(8306),t=m(576);function y(C,o){const M=(0,t.m)(C)?C:()=>C,l=R=>R.error(M());return new e.y(o?R=>o.schedule(l,0,R):l)}},2805:(Ge,Q,m)=>{"use strict";m.d(Q,{H:()=>o});var e=m(8306),t=m(4986),y=m(3532),C=m(1165);function o(M=0,l,R=t.P){let s=-1;return null!=l&&((0,y.K)(l)?R=l:s=l),new e.y(L=>{let I=(0,C.q)(M)?+M-R.now():M;I<0&&(I=0);let A=0;return R.schedule(function(){L.closed||(L.next(A++),0<=s?this.schedule(void 0,s):L.complete())},I)})}},5403:(Ge,Q,m)=>{"use strict";m.d(Q,{Q:()=>t});var e=m(930);class t extends e.Lv{constructor(C,o,M,l,R){super(C),this.onFinalize=R,this._next=o?function(s){try{o(s)}catch(L){C.error(L)}}:super._next,this._error=l?function(s){try{l(s)}catch(L){C.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=M?function(){try{M()}catch(s){C.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var C;const{closed:o}=this;super.unsubscribe(),!o&&(null===(C=this.onFinalize)||void 0===C||C.call(this))}}},3601:(Ge,Q,m)=>{"use strict";m.d(Q,{e:()=>l});var e=m(4986),t=m(4482),y=m(8421),C=m(5403),M=m(2805);function l(R,s=e.P){return function o(R){return(0,t.e)((s,L)=>{let I=!1,A=null,E=null,P=!1;const w=()=>{if(null==E||E.unsubscribe(),E=null,I){I=!1;const j=A;A=null,L.next(j)}P&&L.complete()},V=()=>{E=null,P&&L.complete()};s.subscribe(new C.Q(L,j=>{I=!0,A=j,E||(0,y.Xf)(R(j)).subscribe(E=new C.Q(L,w,V))},()=>{P=!0,(!I||!E||E.closed)&&L.complete()}))})}(()=>(0,M.H)(R,s))}},262:(Ge,Q,m)=>{"use strict";m.d(Q,{K:()=>C});var e=m(8421),t=m(5403),y=m(4482);function C(o){return(0,y.e)((M,l)=>{let L,R=null,s=!1;R=M.subscribe(new t.Q(l,void 0,void 0,I=>{L=(0,e.Xf)(o(I,C(o)(M))),R?(R.unsubscribe(),R=null,L.subscribe(l)):s=!0})),s&&(R.unsubscribe(),R=null,L.subscribe(l))})}},4351:(Ge,Q,m)=>{"use strict";m.d(Q,{b:()=>y});var e=m(5577),t=m(576);function y(C,o){return(0,t.m)(o)?(0,e.z)(C,o,1):(0,e.z)(C,1)}},8372:(Ge,Q,m)=>{"use strict";m.d(Q,{b:()=>C});var e=m(4986),t=m(4482),y=m(5403);function C(o,M=e.z){return(0,t.e)((l,R)=>{let s=null,L=null,I=null;const A=()=>{if(s){s.unsubscribe(),s=null;const P=L;L=null,R.next(P)}};function E(){const P=I+o,w=M.now();if(w{L=P,I=M.now(),s||(s=M.schedule(E,o),R.add(s))},()=>{A(),R.complete()},void 0,()=>{L=s=null}))})}},6590:(Ge,Q,m)=>{"use strict";m.d(Q,{d:()=>y});var e=m(4482),t=m(5403);function y(C){return(0,e.e)((o,M)=>{let l=!1;o.subscribe(new t.Q(M,R=>{l=!0,M.next(R)},()=>{l||M.next(C),M.complete()}))})}},4086:(Ge,Q,m)=>{"use strict";m.d(Q,{g:()=>s});var e=m(4986),t=m(7272),y=m(5698),C=m(8502),o=m(9718),M=m(5577);function l(L,I){return I?A=>(0,t.z)(I.pipe((0,y.q)(1),(0,C.l)()),A.pipe(l(L))):(0,M.z)((A,E)=>L(A,E).pipe((0,y.q)(1),(0,o.h)(A)))}var R=m(2805);function s(L,I=e.z){const A=(0,R.H)(L,I);return l(()=>A)}},1884:(Ge,Q,m)=>{"use strict";m.d(Q,{x:()=>C});var e=m(4671),t=m(4482),y=m(5403);function C(M,l=e.y){return M=null!=M?M:o,(0,t.e)((R,s)=>{let L,I=!0;R.subscribe(new y.Q(s,A=>{const E=l(A);(I||!M(L,E))&&(I=!1,L=E,s.next(A))}))})}function o(M,l){return M===l}},9300:(Ge,Q,m)=>{"use strict";m.d(Q,{h:()=>y});var e=m(4482),t=m(5403);function y(C,o){return(0,e.e)((M,l)=>{let R=0;M.subscribe(new t.Q(l,s=>C.call(o,s,R++)&&l.next(s)))})}},8746:(Ge,Q,m)=>{"use strict";m.d(Q,{x:()=>t});var e=m(4482);function t(y){return(0,e.e)((C,o)=>{try{C.subscribe(o)}finally{o.add(y)}})}},590:(Ge,Q,m)=>{"use strict";m.d(Q,{P:()=>l});var e=m(6805),t=m(9300),y=m(5698),C=m(6590),o=m(8068),M=m(4671);function l(R,s){const L=arguments.length>=2;return I=>I.pipe(R?(0,t.h)((A,E)=>R(A,E,I)):M.y,(0,y.q)(1),L?(0,C.d)(s):(0,o.T)(()=>new e.K))}},8502:(Ge,Q,m)=>{"use strict";m.d(Q,{l:()=>C});var e=m(4482),t=m(5403),y=m(5032);function C(){return(0,e.e)((o,M)=>{o.subscribe(new t.Q(M,y.Z))})}},4004:(Ge,Q,m)=>{"use strict";m.d(Q,{U:()=>y});var e=m(4482),t=m(5403);function y(C,o){return(0,e.e)((M,l)=>{let R=0;M.subscribe(new t.Q(l,s=>{l.next(C.call(o,s,R++))}))})}},9718:(Ge,Q,m)=>{"use strict";m.d(Q,{h:()=>t});var e=m(4004);function t(y){return(0,e.U)(()=>y)}},8189:(Ge,Q,m)=>{"use strict";m.d(Q,{J:()=>y});var e=m(5577),t=m(4671);function y(C=1/0){return(0,e.z)(t.y,C)}},5577:(Ge,Q,m)=>{"use strict";m.d(Q,{z:()=>R});var e=m(4004),t=m(8421),y=m(4482),C=m(9672),o=m(5403),l=m(576);function R(s,L,I=1/0){return(0,l.m)(L)?R((A,E)=>(0,e.U)((P,w)=>L(A,P,E,w))((0,t.Xf)(s(A,E))),I):("number"==typeof L&&(I=L),(0,y.e)((A,E)=>function M(s,L,I,A,E,P,w,V){const j=[];let W=0,te=0,ee=!1;const ge=()=>{ee&&!j.length&&!W&&L.complete()},le=de=>W{P&&L.next(de),W++;let se=!1;(0,t.Xf)(I(de,te++)).subscribe(new o.Q(L,ye=>{null==E||E(ye),P?le(ye):L.next(ye)},()=>{se=!0},void 0,()=>{if(se)try{for(W--;j.length&&Wre(ye)):re(ye)}ge()}catch(ye){L.error(ye)}}))};return s.subscribe(new o.Q(L,le,()=>{ee=!0,ge()})),()=>{null==V||V()}}(A,E,s,I)))}},5363:(Ge,Q,m)=>{"use strict";m.d(Q,{Q:()=>C});var e=m(9672),t=m(4482),y=m(5403);function C(o,M=0){return(0,t.e)((l,R)=>{l.subscribe(new y.Q(R,s=>(0,e.f)(R,o,()=>R.next(s),M),()=>(0,e.f)(R,o,()=>R.complete(),M),s=>(0,e.f)(R,o,()=>R.error(s),M)))})}},5026:(Ge,Q,m)=>{"use strict";m.d(Q,{R:()=>C});var e=m(4482),t=m(5403);function y(o,M,l,R,s){return(L,I)=>{let A=l,E=M,P=0;L.subscribe(new t.Q(I,w=>{const V=P++;E=A?o(E,w,V):(A=!0,w),R&&I.next(E)},s&&(()=>{A&&I.next(E),I.complete()})))}}function C(o,M){return(0,e.e)(y(o,M,arguments.length>=2,!0))}},3099:(Ge,Q,m)=>{"use strict";m.d(Q,{B:()=>M});var e=m(457),t=m(5698),y=m(7579),C=m(930),o=m(4482);function M(R={}){const{connector:s=(()=>new y.x),resetOnError:L=!0,resetOnComplete:I=!0,resetOnRefCountZero:A=!0}=R;return E=>{let P=null,w=null,V=null,j=0,W=!1,te=!1;const ee=()=>{null==w||w.unsubscribe(),w=null},ge=()=>{ee(),P=V=null,W=te=!1},le=()=>{const re=P;ge(),null==re||re.unsubscribe()};return(0,o.e)((re,de)=>{j++,!te&&!W&&ee();const se=V=null!=V?V:s();de.add(()=>{j--,0===j&&!te&&!W&&(w=l(le,A))}),se.subscribe(de),P||(P=new C.Hp({next:ye=>se.next(ye),error:ye=>{te=!0,ee(),w=l(ge,L,ye),se.error(ye)},complete:()=>{W=!0,ee(),w=l(ge,I),se.complete()}}),(0,e.D)(re).subscribe(P))})(E)}}function l(R,s,...L){return!0===s?(R(),null):!1===s?null:s(...L).pipe((0,t.q)(1)).subscribe(()=>R())}},5684:(Ge,Q,m)=>{"use strict";m.d(Q,{T:()=>t});var e=m(9300);function t(y){return(0,e.h)((C,o)=>y<=o)}},8675:(Ge,Q,m)=>{"use strict";m.d(Q,{O:()=>C});var e=m(7272),t=m(3269),y=m(4482);function C(...o){const M=(0,t.yG)(o);return(0,y.e)((l,R)=>{(M?(0,e.z)(o,l,M):(0,e.z)(o,l)).subscribe(R)})}},3900:(Ge,Q,m)=>{"use strict";m.d(Q,{w:()=>C});var e=m(8421),t=m(4482),y=m(5403);function C(o,M){return(0,t.e)((l,R)=>{let s=null,L=0,I=!1;const A=()=>I&&!s&&R.complete();l.subscribe(new y.Q(R,E=>{null==s||s.unsubscribe();let P=0;const w=L++;(0,e.Xf)(o(E,w)).subscribe(s=new y.Q(R,V=>R.next(M?M(E,V,w,P++):V),()=>{s=null,A()}))},()=>{I=!0,A()}))})}},5698:(Ge,Q,m)=>{"use strict";m.d(Q,{q:()=>C});var e=m(515),t=m(4482),y=m(5403);function C(o){return o<=0?()=>e.E:(0,t.e)((M,l)=>{let R=0;M.subscribe(new y.Q(l,s=>{++R<=o&&(l.next(s),o<=R&&l.complete())}))})}},2722:(Ge,Q,m)=>{"use strict";m.d(Q,{R:()=>o});var e=m(4482),t=m(5403),y=m(8421),C=m(5032);function o(M){return(0,e.e)((l,R)=>{(0,y.Xf)(M).subscribe(new t.Q(R,()=>R.complete(),C.Z)),!R.closed&&l.subscribe(R)})}},8505:(Ge,Q,m)=>{"use strict";m.d(Q,{b:()=>o});var e=m(576),t=m(4482),y=m(5403),C=m(4671);function o(M,l,R){const s=(0,e.m)(M)||l||R?{next:M,error:l,complete:R}:M;return s?(0,t.e)((L,I)=>{var A;null===(A=s.subscribe)||void 0===A||A.call(s);let E=!0;L.subscribe(new y.Q(I,P=>{var w;null===(w=s.next)||void 0===w||w.call(s,P),I.next(P)},()=>{var P;E=!1,null===(P=s.complete)||void 0===P||P.call(s),I.complete()},P=>{var w;E=!1,null===(w=s.error)||void 0===w||w.call(s,P),I.error(P)},()=>{var P,w;E&&(null===(P=s.unsubscribe)||void 0===P||P.call(s)),null===(w=s.finalize)||void 0===w||w.call(s)}))}):C.y}},8068:(Ge,Q,m)=>{"use strict";m.d(Q,{T:()=>C});var e=m(6805),t=m(4482),y=m(5403);function C(M=o){return(0,t.e)((l,R)=>{let s=!1;l.subscribe(new y.Q(R,L=>{s=!0,R.next(L)},()=>s?R.complete():R.error(M())))})}function o(){return new e.K}},7414:(Ge,Q,m)=>{"use strict";m.d(Q,{V:()=>s});var e=m(4986),t=m(1165),y=m(4482),C=m(8421),o=m(3888),M=m(5403),l=m(9672);const R=(0,o.d)(I=>function(E=null){I(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E});function s(I,A){const{first:E,each:P,with:w=L,scheduler:V=(null!=A?A:e.z),meta:j=null}=(0,t.q)(I)?{first:I}:"number"==typeof I?{each:I}:I;if(null==E&&null==P)throw new TypeError("No timeout provided.");return(0,y.e)((W,te)=>{let ee,ge,le=null,re=0;const de=se=>{ge=(0,l.f)(te,V,()=>{try{ee.unsubscribe(),(0,C.Xf)(w({meta:j,lastValue:le,seen:re})).subscribe(te)}catch(ye){te.error(ye)}},se)};ee=W.subscribe(new M.Q(te,se=>{null==ge||ge.unsubscribe(),re++,te.next(le=se),P>0&&de(P)},void 0,void 0,()=>{(null==ge?void 0:ge.closed)||null==ge||ge.unsubscribe(),le=null})),de(null!=E?"number"==typeof E?E:+E-V.now():P)})}function L(I){throw new R(I)}},1365:(Ge,Q,m)=>{"use strict";m.d(Q,{M:()=>l});var e=m(4482),t=m(5403),y=m(8421),C=m(4671),o=m(5032),M=m(3269);function l(...R){const s=(0,M.jO)(R);return(0,e.e)((L,I)=>{const A=R.length,E=new Array(A);let P=R.map(()=>!1),w=!1;for(let V=0;V{E[V]=j,!w&&!P[V]&&(P[V]=!0,(w=P.every(C.y))&&(P=null))},o.Z));L.subscribe(new t.Q(I,V=>{if(w){const j=[V,...E];I.next(s?s(...j):j)}}))})}},4408:(Ge,Q,m)=>{"use strict";m.d(Q,{o:()=>o});var e=m(727);class t extends e.w0{constructor(l,R){super()}schedule(l,R=0){return this}}const y={setInterval(...M){const{delegate:l}=y;return((null==l?void 0:l.setInterval)||setInterval)(...M)},clearInterval(M){const{delegate:l}=y;return((null==l?void 0:l.clearInterval)||clearInterval)(M)},delegate:void 0};var C=m(8737);class o extends t{constructor(l,R){super(l,R),this.scheduler=l,this.work=R,this.pending=!1}schedule(l,R=0){if(this.closed)return this;this.state=l;const s=this.id,L=this.scheduler;return null!=s&&(this.id=this.recycleAsyncId(L,s,R)),this.pending=!0,this.delay=R,this.id=this.id||this.requestAsyncId(L,this.id,R),this}requestAsyncId(l,R,s=0){return y.setInterval(l.flush.bind(l,this),s)}recycleAsyncId(l,R,s=0){if(null!=s&&this.delay===s&&!1===this.pending)return R;y.clearInterval(R)}execute(l,R){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const s=this._execute(l,R);if(s)return s;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(l,R){let L,s=!1;try{this.work(l)}catch(I){s=!0,L=I||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),L}unsubscribe(){if(!this.closed){const{id:l,scheduler:R}=this,{actions:s}=R;this.work=this.state=this.scheduler=null,this.pending=!1,(0,C.P)(s,this),null!=l&&(this.id=this.recycleAsyncId(R,l,null)),this.delay=null,super.unsubscribe()}}}},7565:(Ge,Q,m)=>{"use strict";m.d(Q,{v:()=>y});var e=m(6063);class t{constructor(o,M=t.now){this.schedulerActionCtor=o,this.now=M}schedule(o,M=0,l){return new this.schedulerActionCtor(this,o).schedule(l,M)}}t.now=e.l.now;class y extends t{constructor(o,M=t.now){super(o,M),this.actions=[],this._active=!1,this._scheduled=void 0}flush(o){const{actions:M}=this;if(this._active)return void M.push(o);let l;this._active=!0;do{if(l=o.execute(o.state,o.delay))break}while(o=M.shift());if(this._active=!1,l){for(;o=M.shift();)o.unsubscribe();throw l}}}},3101:(Ge,Q,m)=>{"use strict";m.d(Q,{E:()=>P});var e=m(4408);let y,t=1;const C={};function o(V){return V in C&&(delete C[V],!0)}const M={setImmediate(V){const j=t++;return C[j]=!0,y||(y=Promise.resolve()),y.then(()=>o(j)&&V()),j},clearImmediate(V){o(V)}},{setImmediate:R,clearImmediate:s}=M,L={setImmediate(...V){const{delegate:j}=L;return((null==j?void 0:j.setImmediate)||R)(...V)},clearImmediate(V){const{delegate:j}=L;return((null==j?void 0:j.clearImmediate)||s)(V)},delegate:void 0};var A=m(7565);const P=new class E extends A.v{flush(j){this._active=!0,this._scheduled=void 0;const{actions:W}=this;let te,ee=-1;j=j||W.shift();const ge=W.length;do{if(te=j.execute(j.state,j.delay))break}while(++ee0?super.requestAsyncId(j,W,te):(j.actions.push(this),j._scheduled||(j._scheduled=L.setImmediate(j.flush.bind(j,void 0))))}recycleAsyncId(j,W,te=0){if(null!=te&&te>0||null==te&&this.delay>0)return super.recycleAsyncId(j,W,te);0===j.actions.length&&(L.clearImmediate(W),j._scheduled=void 0)}})},4986:(Ge,Q,m)=>{"use strict";m.d(Q,{z:()=>y,P:()=>C});var e=m(4408);const y=new(m(7565).v)(e.o),C=y},6063:(Ge,Q,m)=>{"use strict";m.d(Q,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(Ge,Q,m)=>{"use strict";m.d(Q,{N:()=>o});var e=m(4408),y=m(7565);const o=new class C extends y.v{}(class t extends e.o{constructor(R,s){super(R,s),this.scheduler=R,this.work=s}schedule(R,s=0){return s>0?super.schedule(R,s):(this.delay=s,this.state=R,this.scheduler.flush(this),this)}execute(R,s){return s>0||this.closed?super.execute(R,s):this._execute(R,s)}requestAsyncId(R,s,L=0){return null!=L&&L>0||null==L&&this.delay>0?super.requestAsyncId(R,s,L):R.flush(this)}})},3410:(Ge,Q,m)=>{"use strict";m.d(Q,{z:()=>e});const e={setTimeout(...t){const{delegate:y}=e;return((null==y?void 0:y.setTimeout)||setTimeout)(...t)},clearTimeout(t){const{delegate:y}=e;return((null==y?void 0:y.clearTimeout)||clearTimeout)(t)},delegate:void 0}},2202:(Ge,Q,m)=>{"use strict";m.d(Q,{h:()=>t});const t=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Ge,Q,m)=>{"use strict";m.d(Q,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Ge,Q,m)=>{"use strict";m.d(Q,{K:()=>t});const t=(0,m(3888).d)(y=>function(){y(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Ge,Q,m)=>{"use strict";m.d(Q,{jO:()=>C,yG:()=>o,_6:()=>M});var e=m(576),t=m(3532);function y(l){return l[l.length-1]}function C(l){return(0,e.m)(y(l))?l.pop():void 0}function o(l){return(0,t.K)(y(l))?l.pop():void 0}function M(l,R){return"number"==typeof y(l)?l.pop():R}},4742:(Ge,Q,m)=>{"use strict";m.d(Q,{D:()=>o});const{isArray:e}=Array,{getPrototypeOf:t,prototype:y,keys:C}=Object;function o(l){if(1===l.length){const R=l[0];if(e(R))return{args:R,keys:null};if(function M(l){return l&&"object"==typeof l&&t(l)===y}(R)){const s=C(R);return{args:s.map(L=>R[L]),keys:s}}}return{args:l,keys:null}}},8737:(Ge,Q,m)=>{"use strict";function e(t,y){if(t){const C=t.indexOf(y);0<=C&&t.splice(C,1)}}m.d(Q,{P:()=>e})},3888:(Ge,Q,m)=>{"use strict";function e(t){const C=t(o=>{Error.call(o),o.stack=(new Error).stack});return C.prototype=Object.create(Error.prototype),C.prototype.constructor=C,C}m.d(Q,{d:()=>e})},1810:(Ge,Q,m)=>{"use strict";function e(t,y){return t.reduce((C,o,M)=>(C[o]=y[M],C),{})}m.d(Q,{n:()=>e})},2806:(Ge,Q,m)=>{"use strict";m.d(Q,{x:()=>y,O:()=>C});var e=m(2416);let t=null;function y(o){if(e.v.useDeprecatedSynchronousErrorHandling){const M=!t;if(M&&(t={errorThrown:!1,error:null}),o(),M){const{errorThrown:l,error:R}=t;if(t=null,l)throw R}}else o()}function C(o){e.v.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=o)}},9672:(Ge,Q,m)=>{"use strict";function e(t,y,C,o=0,M=!1){const l=y.schedule(function(){C(),M?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(l),!M)return l}m.d(Q,{f:()=>e})},4671:(Ge,Q,m)=>{"use strict";function e(t){return t}m.d(Q,{y:()=>e})},1144:(Ge,Q,m)=>{"use strict";m.d(Q,{z:()=>e});const e=t=>t&&"number"==typeof t.length&&"function"!=typeof t},2206:(Ge,Q,m)=>{"use strict";m.d(Q,{D:()=>t});var e=m(576);function t(y){return Symbol.asyncIterator&&(0,e.m)(null==y?void 0:y[Symbol.asyncIterator])}},1165:(Ge,Q,m)=>{"use strict";function e(t){return t instanceof Date&&!isNaN(t)}m.d(Q,{q:()=>e})},576:(Ge,Q,m)=>{"use strict";function e(t){return"function"==typeof t}m.d(Q,{m:()=>e})},3670:(Ge,Q,m)=>{"use strict";m.d(Q,{c:()=>y});var e=m(8822),t=m(576);function y(C){return(0,t.m)(C[e.L])}},6495:(Ge,Q,m)=>{"use strict";m.d(Q,{T:()=>y});var e=m(2202),t=m(576);function y(C){return(0,t.m)(null==C?void 0:C[e.h])}},5191:(Ge,Q,m)=>{"use strict";m.d(Q,{b:()=>y});var e=m(8306),t=m(576);function y(C){return!!C&&(C instanceof e.y||(0,t.m)(C.lift)&&(0,t.m)(C.subscribe))}},8239:(Ge,Q,m)=>{"use strict";m.d(Q,{t:()=>t});var e=m(576);function t(y){return(0,e.m)(null==y?void 0:y.then)}},3260:(Ge,Q,m)=>{"use strict";m.d(Q,{Q:()=>y,L:()=>C});var e=m(5987),t=m(576);function y(o){return(0,e.FC)(this,arguments,function*(){const l=o.getReader();try{for(;;){const{value:R,done:s}=yield(0,e.qq)(l.read());if(s)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(R)}}finally{l.releaseLock()}})}function C(o){return(0,t.m)(null==o?void 0:o.getReader)}},3532:(Ge,Q,m)=>{"use strict";m.d(Q,{K:()=>t});var e=m(576);function t(y){return y&&(0,e.m)(y.schedule)}},4482:(Ge,Q,m)=>{"use strict";m.d(Q,{A:()=>t,e:()=>y});var e=m(576);function t(C){return(0,e.m)(null==C?void 0:C.lift)}function y(C){return o=>{if(t(o))return o.lift(function(M){try{return C(M,this)}catch(l){this.error(l)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ge,Q,m)=>{"use strict";m.d(Q,{Z:()=>C});var e=m(4004);const{isArray:t}=Array;function C(o){return(0,e.U)(M=>function y(o,M){return t(M)?o(...M):o(M)}(o,M))}},5032:(Ge,Q,m)=>{"use strict";function e(){}m.d(Q,{Z:()=>e})},7849:(Ge,Q,m)=>{"use strict";m.d(Q,{h:()=>y});var e=m(2416),t=m(3410);function y(C){t.z.setTimeout(()=>{const{onUnhandledError:o}=e.v;if(!o)throw C;o(C)})}},4532:(Ge,Q,m)=>{"use strict";function e(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(Q,{z:()=>e})},3502:(Ge,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ge.exports=e:(y(e,Q),Q.Buffer=C),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},2038:(Ge,Q,m)=>{"use strict";var C,e=m(3172),t=e.Buffer,y={};for(C in e)!e.hasOwnProperty(C)||"SlowBuffer"===C||"Buffer"===C||(y[C]=e[C]);var o=y.Buffer={};for(C in t)!t.hasOwnProperty(C)||"allocUnsafe"===C||"allocUnsafeSlow"===C||(o[C]=t[C]);if(y.Buffer.prototype=t.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(M,l,R){if("number"==typeof M)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof M);if(M&&void 0===M.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);return t(M,l,R)}),o.alloc||(o.alloc=function(M,l,R){if("number"!=typeof M)throw new TypeError('The "size" argument must be of type number. Received type '+typeof M);if(M<0||M>=2*(1<<30))throw new RangeError('The value "'+M+'" is invalid for option "size"');var s=t(M);return l&&0!==l.length?"string"==typeof R?s.fill(l,R):s.fill(l):s.fill(0),s}),!y.kStringMaxLength)try{y.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(M){}y.constants||(y.constants={MAX_LENGTH:y.kMaxLength},y.kStringMaxLength&&(y.constants.MAX_STRING_LENGTH=y.kStringMaxLength)),Ge.exports=y},6692:(Ge,Q,m)=>{var e=m(3502).Buffer;function t(y,C){this._block=e.alloc(y),this._finalSize=C,this._blockSize=y,this._len=0}t.prototype.update=function(y,C){"string"==typeof y&&(y=e.from(y,C=C||"utf8"));for(var o=this._block,M=this._blockSize,l=y.length,R=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=8*this._len;if(o<=4294967295)this._block.writeUInt32BE(o,this._blockSize-4);else{var M=(4294967295&o)>>>0;this._block.writeUInt32BE((o-M)/4294967296,this._blockSize-8),this._block.writeUInt32BE(M,this._blockSize-4)}this._update(this._block);var R=this._hash();return y?R.toString(y):R},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ge.exports=t},5244:(Ge,Q,m)=>{var e=Ge.exports=function(y){y=y.toLowerCase();var C=e[y];if(!C)throw new Error(y+" is not supported (we accept pull requests)");return new C};e.sha=m(8932),e.sha1=m(7736),e.sha224=m(5044),e.sha256=m(5014),e.sha384=m(6540),e.sha512=m(117)},8932:(Ge,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(L){return L<<5|L>>>27}function R(L){return L<<30|L>>>2}function s(L,I,A,E){return 0===L?I&A|~I&E:2===L?I&A|I&E|A&E:I^A^E}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(L){for(var I=this._w,A=0|this._a,E=0|this._b,P=0|this._c,w=0|this._d,V=0|this._e,j=0;j<16;++j)I[j]=L.readInt32BE(4*j);for(;j<80;++j)I[j]=I[j-3]^I[j-8]^I[j-14]^I[j-16];for(var W=0;W<80;++W){var te=~~(W/20),ee=l(A)+s(te,E,P,w)+V+I[W]+C[te]|0;V=w,w=P,P=R(E),E=A,A=ee}this._a=A+this._a|0,this._b=E+this._b|0,this._c=P+this._c|0,this._d=w+this._d|0,this._e=V+this._e|0},M.prototype._hash=function(){var L=y.allocUnsafe(20);return L.writeInt32BE(0|this._a,0),L.writeInt32BE(0|this._b,4),L.writeInt32BE(0|this._c,8),L.writeInt32BE(0|this._d,12),L.writeInt32BE(0|this._e,16),L},Ge.exports=M},7736:(Ge,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(I){return I<<1|I>>>31}function R(I){return I<<5|I>>>27}function s(I){return I<<30|I>>>2}function L(I,A,E,P){return 0===I?A&E|~A&P:2===I?A&E|A&P|E&P:A^E^P}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(I){for(var A=this._w,E=0|this._a,P=0|this._b,w=0|this._c,V=0|this._d,j=0|this._e,W=0;W<16;++W)A[W]=I.readInt32BE(4*W);for(;W<80;++W)A[W]=l(A[W-3]^A[W-8]^A[W-14]^A[W-16]);for(var te=0;te<80;++te){var ee=~~(te/20),ge=R(E)+L(ee,P,w,V)+j+A[te]+C[ee]|0;j=V,V=w,w=s(P),P=E,E=ge}this._a=E+this._a|0,this._b=P+this._b|0,this._c=w+this._c|0,this._d=V+this._d|0,this._e=j+this._e|0},M.prototype._hash=function(){var I=y.allocUnsafe(20);return I.writeInt32BE(0|this._a,0),I.writeInt32BE(0|this._b,4),I.writeInt32BE(0|this._c,8),I.writeInt32BE(0|this._d,12),I.writeInt32BE(0|this._e,16),I},Ge.exports=M},5044:(Ge,Q,m)=>{var e=m(3894),t=m(5014),y=m(6692),C=m(3502).Buffer,o=new Array(64);function M(){this.init(),this._w=o,y.call(this,64,56)}e(M,t),M.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},M.prototype._hash=function(){var l=C.allocUnsafe(28);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},Ge.exports=M},5014:(Ge,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[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],o=new Array(64);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(E,P,w){return w^E&(P^w)}function R(E,P,w){return E&P|w&(E|P)}function s(E){return(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10)}function L(E){return(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7)}function I(E){return(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3}function A(E){return(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10}e(M,t),M.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},M.prototype._update=function(E){for(var P=this._w,w=0|this._a,V=0|this._b,j=0|this._c,W=0|this._d,te=0|this._e,ee=0|this._f,ge=0|this._g,le=0|this._h,re=0;re<16;++re)P[re]=E.readInt32BE(4*re);for(;re<64;++re)P[re]=A(P[re-2])+P[re-7]+I(P[re-15])+P[re-16]|0;for(var de=0;de<64;++de){var se=le+L(te)+l(te,ee,ge)+C[de]+P[de]|0,ye=s(w)+R(w,V,j)|0;le=ge,ge=ee,ee=te,te=W+se|0,W=j,j=V,V=w,w=se+ye|0}this._a=w+this._a|0,this._b=V+this._b|0,this._c=j+this._c|0,this._d=W+this._d|0,this._e=te+this._e|0,this._f=ee+this._f|0,this._g=ge+this._g|0,this._h=le+this._h|0},M.prototype._hash=function(){var E=y.allocUnsafe(32);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E.writeInt32BE(this._h,28),E},Ge.exports=M},6540:(Ge,Q,m)=>{var e=m(3894),t=m(117),y=m(6692),C=m(3502).Buffer,o=new Array(160);function M(){this.init(),this._w=o,y.call(this,128,112)}e(M,t),M.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},M.prototype._hash=function(){var l=C.allocUnsafe(48);function R(s,L,I){l.writeInt32BE(s,I),l.writeInt32BE(L,I+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),l},Ge.exports=M},117:(Ge,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[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],o=new Array(160);function M(){this.init(),this._w=o,t.call(this,128,112)}function l(V,j,W){return W^V&(j^W)}function R(V,j,W){return V&j|W&(V|j)}function s(V,j){return(V>>>28|j<<4)^(j>>>2|V<<30)^(j>>>7|V<<25)}function L(V,j){return(V>>>14|j<<18)^(V>>>18|j<<14)^(j>>>9|V<<23)}function I(V,j){return(V>>>1|j<<31)^(V>>>8|j<<24)^V>>>7}function A(V,j){return(V>>>1|j<<31)^(V>>>8|j<<24)^(V>>>7|j<<25)}function E(V,j){return(V>>>19|j<<13)^(j>>>29|V<<3)^V>>>6}function P(V,j){return(V>>>19|j<<13)^(j>>>29|V<<3)^(V>>>6|j<<26)}function w(V,j){return V>>>0>>0?1:0}e(M,t),M.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},M.prototype._update=function(V){for(var j=this._w,W=0|this._ah,te=0|this._bh,ee=0|this._ch,ge=0|this._dh,le=0|this._eh,re=0|this._fh,de=0|this._gh,se=0|this._hh,ye=0|this._al,v=0|this._bl,i=0|this._cl,a=0|this._dl,p=0|this._el,u=0|this._fl,_=0|this._gl,D=0|this._hl,O=0;O<32;O+=2)j[O]=V.readInt32BE(4*O),j[O+1]=V.readInt32BE(4*O+4);for(;O<160;O+=2){var x=j[O-30],r=j[O-30+1],b=I(x,r),Z=A(r,x),N=E(x=j[O-4],r=j[O-4+1]),U=P(r,x),Re=j[O-32],ze=j[O-32+1],Oe=Z+j[O-14+1]|0,K=b+j[O-14]+w(Oe,Z)|0;K=(K=K+N+w(Oe=Oe+U|0,U)|0)+Re+w(Oe=Oe+ze|0,ze)|0,j[O]=K,j[O+1]=Oe}for(var Me=0;Me<160;Me+=2){K=j[Me],Oe=j[Me+1];var we=R(W,te,ee),z=R(ye,v,i),Ze=s(W,ye),vt=s(ye,W),Fe=L(le,p),Ne=L(p,le),ce=C[Me],Le=C[Me+1],Pe=l(le,re,de),q=l(p,u,_),$=D+Ne|0,oe=se+Fe+w($,D)|0;oe=(oe=(oe=oe+Pe+w($=$+q|0,q)|0)+ce+w($=$+Le|0,Le)|0)+K+w($=$+Oe|0,Oe)|0;var Ce=vt+z|0,Ue=Ze+we+w(Ce,vt)|0;se=de,D=_,de=re,_=u,re=le,u=p,le=ge+oe+w(p=a+$|0,a)|0,ge=ee,a=i,ee=te,i=v,te=W,v=ye,W=oe+Ue+w(ye=$+Ce|0,$)|0}this._al=this._al+ye|0,this._bl=this._bl+v|0,this._cl=this._cl+i|0,this._dl=this._dl+a|0,this._el=this._el+p|0,this._fl=this._fl+u|0,this._gl=this._gl+_|0,this._hl=this._hl+D|0,this._ah=this._ah+W+w(this._al,ye)|0,this._bh=this._bh+te+w(this._bl,v)|0,this._ch=this._ch+ee+w(this._cl,i)|0,this._dh=this._dh+ge+w(this._dl,a)|0,this._eh=this._eh+le+w(this._el,p)|0,this._fh=this._fh+re+w(this._fl,u)|0,this._gh=this._gh+de+w(this._gl,_)|0,this._hh=this._hh+se+w(this._hl,D)|0},M.prototype._hash=function(){var V=y.allocUnsafe(64);function j(W,te,ee){V.writeInt32BE(W,ee),V.writeInt32BE(te,ee+4)}return j(this._ah,this._al,0),j(this._bh,this._bl,8),j(this._ch,this._cl,16),j(this._dh,this._dl,24),j(this._eh,this._el,32),j(this._fh,this._fl,40),j(this._gh,this._gl,48),j(this._hh,this._hl,56),V},Ge.exports=M},8012:function(Ge,Q,m){!function(e){"use strict";var t={};Ge.exports?(t.bytesToHex=m(6128).bytesToHex,t.convertString=m(5612),Ge.exports=R):(t.bytesToHex=e.convertHex.bytesToHex,t.convertString=e.convertString,e.sha256=R);var y=[];!function(){function s(E){for(var P=Math.sqrt(E),w=2;w<=P;w++)if(!(E%w))return!1;return!0}for(var I=2,A=0;A<64;)s(I)&&(y[A]=4294967296*((E=Math.pow(I,1/3))-(0|E))|0,A++),I++;var E}();var M=[],l=function(s,L,I){for(var A=s[0],E=s[1],P=s[2],w=s[3],V=s[4],j=s[5],W=s[6],te=s[7],ee=0;ee<64;ee++){if(ee<16)M[ee]=0|L[I+ee];else{var ge=M[ee-15],re=M[ee-2];M[ee]=((ge<<25|ge>>>7)^(ge<<14|ge>>>18)^ge>>>3)+M[ee-7]+((re<<15|re>>>17)^(re<<13|re>>>19)^re>>>10)+M[ee-16]}var ye=A&E^A&P^E&P,a=te+((V<<26|V>>>6)^(V<<21|V>>>11)^(V<<7|V>>>25))+(V&j^~V&W)+y[ee]+M[ee];te=W,W=j,j=V,V=w+a|0,w=P,P=E,E=A,A=a+(((A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22))+ye)|0}s[0]=s[0]+A|0,s[1]=s[1]+E|0,s[2]=s[2]+P|0,s[3]=s[3]+w|0,s[4]=s[4]+V|0,s[5]=s[5]+j|0,s[6]=s[6]+W|0,s[7]=s[7]+te|0};function R(s,L){s.constructor===String&&(s=t.convertString.UTF8.stringToBytes(s));var I=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],A=function(s){for(var L=[],I=0,A=0;I>>5]|=s[I]<<24-A%32;return L}(s),E=8*s.length;A[E>>5]|=128<<24-E%32,A[15+(E+64>>9<<4)]=E;for(var P=0;P>>5]>>>24-I%32&255);return L}(I);return L&&L.asBytes?w:L&&L.asString?t.convertString.bytesToString(w):t.bytesToHex(w)}R.x2=function(s,L){return R(R(s,{asBytes:!0}),L)}}(this)},4315:(Ge,Q,m)=>{"use strict";const e=Symbol.prototype.valueOf,t=m(2872);Ge.exports=function y(s,L){switch(t(s)){case"array":return s.slice();case"object":return Object.assign({},s);case"date":return new s.constructor(Number(s));case"map":return new Map(s);case"set":return new Set(s);case"buffer":return function l(s){const L=s.length,I=Buffer.allocUnsafe?Buffer.allocUnsafe(L):Buffer.from(L);return s.copy(I),I}(s);case"symbol":return function R(s){return e?Object(e.call(s)):{}}(s);case"arraybuffer":return function o(s){const L=new s.constructor(s.byteLength);return new Uint8Array(L).set(new Uint8Array(s)),L}(s);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function M(s,L){return new s.constructor(s.buffer,s.byteOffset,s.length)}(s);case"regexp":return function C(s){const L=void 0!==s.flags?s.flags:/\w+$/.exec(s)||void 0,I=new s.constructor(s.source,L);return I.lastIndex=s.lastIndex,I}(s);case"error":return Object.create(s);default:return s}}},295:(Ge,Q,m)=>{Ge.exports=y;var e=m(9069).EventEmitter;function y(){e.call(this)}m(3894)(y,e),y.Readable=m(3154),y.Writable=m(520),y.Duplex=m(1339),y.Transform=m(6025),y.PassThrough=m(6071),y.finished=m(7542),y.pipeline=m(954),y.Stream=y,y.prototype.pipe=function(C,o){var M=this;function l(P){C.writable&&!1===C.write(P)&&M.pause&&M.pause()}function R(){M.readable&&M.resume&&M.resume()}M.on("data",l),C.on("drain",R),!C._isStdio&&(!o||!1!==o.end)&&(M.on("end",L),M.on("close",I));var s=!1;function L(){s||(s=!0,C.end())}function I(){s||(s=!0,"function"==typeof C.destroy&&C.destroy())}function A(P){if(E(),0===e.listenerCount(this,"error"))throw P}function E(){M.removeListener("data",l),C.removeListener("drain",R),M.removeListener("end",L),M.removeListener("close",I),M.removeListener("error",A),C.removeListener("error",A),M.removeListener("end",E),M.removeListener("close",E),C.removeListener("close",E)}return M.on("error",A),C.on("error",A),M.on("end",E),M.on("close",E),C.on("close",E),C.emit("pipe",M),C}},3054:(Ge,Q,m)=>{"use strict";var e=m(858).Buffer,t=e.isEncoding||function(W){switch((W=""+W)&&W.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(W){var te;switch(this.encoding=function C(W){var te=function y(W){if(!W)return"utf8";for(var te;;)switch(W){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return W;default:if(te)return;W=(""+W).toLowerCase(),te=!0}}(W);if("string"!=typeof te&&(e.isEncoding===t||!t(W)))throw new Error("Unknown encoding: "+W);return te||W}(W),this.encoding){case"utf16le":this.text=A,this.end=E,te=4;break;case"utf8":this.fillLast=s,te=4;break;case"base64":this.text=P,this.end=w,te=3;break;default:return this.write=V,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(te)}function M(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function s(W){var te=this.lastTotal-this.lastNeed,ee=function R(W,te,ee){if(128!=(192&te[0]))return W.lastNeed=0,"\ufffd";if(W.lastNeed>1&&te.length>1){if(128!=(192&te[1]))return W.lastNeed=1,"\ufffd";if(W.lastNeed>2&&te.length>2&&128!=(192&te[2]))return W.lastNeed=2,"\ufffd"}}(this,W);return void 0!==ee?ee:this.lastNeed<=W.length?(W.copy(this.lastChar,te,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(W.copy(this.lastChar,te,0,W.length),void(this.lastNeed-=W.length))}function A(W,te){if((W.length-te)%2==0){var ee=W.toString("utf16le",te);if(ee){var ge=ee.charCodeAt(ee.length-1);if(ge>=55296&&ge<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",te,W.length-1)}function E(W){var te=W&&W.length?this.write(W):"";return this.lastNeed?te+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):te}function P(W,te){var ee=(W.length-te)%3;return 0===ee?W.toString("base64",te):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",te,W.length-ee))}function w(W){var te=W&&W.length?this.write(W):"";return this.lastNeed?te+this.lastChar.toString("base64",0,3-this.lastNeed):te}function V(W){return W.toString(this.encoding)}function j(W){return W&&W.length?this.write(W):""}Q.s=o,o.prototype.write=function(W){if(0===W.length)return"";var te,ee;if(this.lastNeed){if(void 0===(te=this.fillLast(W)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee=0?(le>0&&(W.lastNeed=le-1),le):--ge=0?(le>0&&(W.lastNeed=le-2),le):--ge=0?(le>0&&(2===le?le=0:W.lastNeed=le-3),le):0}(this,W,te);if(!this.lastNeed)return W.toString("utf8",te);this.lastTotal=ee;var ge=W.length-(ee-this.lastNeed);return W.copy(this.lastChar,0,ge),W.toString("utf8",te,ge)},o.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},858:(Ge,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ge.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},2167:(Ge,Q,m)=>{var e=m(4606);Q.encode=e.encode,Q.decode=e.decode},4606:(Ge,Q)=>{"use strict";var e=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];Q.encode=function(y){Buffer.isBuffer(y)||(y=new Buffer(y));for(var C=0,o=0,M=0,l=0,R=new Buffer(8*function t(y){var C=Math.floor(y.length/5);return y.length%5==0?C:C+1}(y));C3?(l=(l=s&255>>M)<<(M=(M+5)%8)|(C+1>8-M,C++):(l=s>>8-(M+5)&31,0==(M=(M+5)%8)&&C++),R[o]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(l),o++}for(C=o;C>>(C=(C+5)%8),l++,M=255&o<<8-C)}return R.slice(0,l)}},4364:Ge=>{function m(e){try{if(!global.localStorage)return!1}catch(y){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}Ge.exports=function Q(e,t){if(m("noDeprecation"))return e;var y=!1;return function C(){if(!y){if(m("throwDeprecation"))throw new Error(t);m("traceDeprecation")?console.trace(t):console.warn(t),y=!0}return e.apply(this,arguments)}}},5987:(Ge,Q,m)=>{"use strict";function R(v,i,a,p){return new(a||(a=Promise))(function(_,D){function O(b){try{r(p.next(b))}catch(Z){D(Z)}}function x(b){try{r(p.throw(b))}catch(Z){D(Z)}}function r(b){b.done?_(b.value):function u(_){return _ instanceof a?_:new a(function(D){D(_)})}(b.value).then(O,x)}r((p=p.apply(v,i||[])).next())})}function j(v){return this instanceof j?(this.v=v,this):new j(v)}function W(v,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,p=a.apply(v,i||[]),_=[];return u={},D("next"),D("throw"),D("return"),u[Symbol.asyncIterator]=function(){return this},u;function D(N){p[N]&&(u[N]=function(U){return new Promise(function(ve,be){_.push([N,U,ve,be])>1||O(N,U)})})}function O(N,U){try{!function x(N){N.value instanceof j?Promise.resolve(N.value.v).then(r,b):Z(_[0][2],N)}(p[N](U))}catch(ve){Z(_[0][3],ve)}}function r(N){O("next",N)}function b(N){O("throw",N)}function Z(N,U){N(U),_.shift(),_.length&&O(_[0][0],_[0][1])}}function ee(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=v[Symbol.asyncIterator];return i?i.call(v):(v=function A(v){var i="function"==typeof Symbol&&Symbol.iterator,a=i&&v[i],p=0;if(a)return a.call(v);if(v&&"number"==typeof v.length)return{next:function(){return v&&p>=v.length&&(v=void 0),{value:v&&v[p++],done:!v}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(v),a={},p("next"),p("throw"),p("return"),a[Symbol.asyncIterator]=function(){return this},a);function p(_){a[_]=v[_]&&function(D){return new Promise(function(O,x){!function u(_,D,O,x){Promise.resolve(x).then(function(r){_({value:r,done:O})},D)}(O,x,(D=v[_](D)).done,D.value)})}}}m.d(Q,{mG:()=>R,qq:()=>j,FC:()=>W,KL:()=>ee})},655:(Ge,Q,m)=>{"use strict";function o(v,i,a,p){var D,u=arguments.length,_=u<3?i:null===p?p=Object.getOwnPropertyDescriptor(i,a):p;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(v,i,a,p);else for(var O=v.length-1;O>=0;O--)(D=v[O])&&(_=(u<3?D(_):u>3?D(i,a,_):D(i,a))||_);return u>3&&_&&Object.defineProperty(i,a,_),_}function R(v,i,a,p){return new(a||(a=Promise))(function(_,D){function O(b){try{r(p.next(b))}catch(Z){D(Z)}}function x(b){try{r(p.throw(b))}catch(Z){D(Z)}}function r(b){b.done?_(b.value):function u(_){return _ instanceof a?_:new a(function(D){D(_)})}(b.value).then(O,x)}r((p=p.apply(v,i||[])).next())})}m.d(Q,{gn:()=>o,mG:()=>R})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Ge,Q,m)=>{"use strict";m.d(Q,{l3:()=>y,_j:()=>e,LC:()=>t,ZN:()=>W,jt:()=>o,pV:()=>E,ru:()=>M,F4:()=>L,IO:()=>w,vP:()=>l,SB:()=>s,oB:()=>R,eR:()=>I,X$:()=>C,ZE:()=>te,k1:()=>ee});class e{}class t{}const y="*";function C(ge,le){return{type:7,name:ge,definitions:le,options:{}}}function o(ge,le=null){return{type:4,styles:le,timings:ge}}function M(ge,le=null){return{type:3,steps:ge,options:le}}function l(ge,le=null){return{type:2,steps:ge,options:le}}function R(ge){return{type:6,styles:ge,offset:null}}function s(ge,le,re){return{type:0,name:ge,styles:le,options:re}}function L(ge){return{type:5,steps:ge}}function I(ge,le,re=null){return{type:1,expr:ge,animation:le,options:re}}function E(ge=null){return{type:9,options:ge}}function w(ge,le,re=null){return{type:11,selector:ge,animation:le,options:re}}function j(ge){Promise.resolve(null).then(ge)}class W{constructor(le=0,re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=le+re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(le=>le()),this._onDoneFns=[])}onStart(le){this._onStartFns.push(le)}onDone(le){this._onDoneFns.push(le)}onDestroy(le){this._onDestroyFns.push(le)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){j(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(le=>le()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(le=>le()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(le){this._position=this.totalTime?le*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(le){const re="start"==le?this._onStartFns:this._onDoneFns;re.forEach(de=>de()),re.length=0}}class te{constructor(le){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=le;let re=0,de=0,se=0;const ye=this.players.length;0==ye?j(()=>this._onFinish()):this.players.forEach(v=>{v.onDone(()=>{++re==ye&&this._onFinish()}),v.onDestroy(()=>{++de==ye&&this._onDestroy()}),v.onStart(()=>{++se==ye&&this._onStart()})}),this.totalTime=this.players.reduce((v,i)=>Math.max(v,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(le=>le()),this._onDoneFns=[])}init(){this.players.forEach(le=>le.init())}onStart(le){this._onStartFns.push(le)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(le=>le()),this._onStartFns=[])}onDone(le){this._onDoneFns.push(le)}onDestroy(le){this._onDestroyFns.push(le)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(le=>le.play())}pause(){this.players.forEach(le=>le.pause())}restart(){this.players.forEach(le=>le.restart())}finish(){this._onFinish(),this.players.forEach(le=>le.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(le=>le.destroy()),this._onDestroyFns.forEach(le=>le()),this._onDestroyFns=[])}reset(){this.players.forEach(le=>le.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(le){const re=le*this.totalTime;this.players.forEach(de=>{const se=de.totalTime?Math.min(1,re/de.totalTime):1;de.setPosition(se)})}getPosition(){const le=this.players.reduce((re,de)=>null===re||de.totalTime>re.totalTime?de:re,null);return null!=le?le.getPosition():0}beforeDestroy(){this.players.forEach(le=>{le.beforeDestroy&&le.beforeDestroy()})}triggerCallback(le){const re="start"==le?this._onStartFns:this._onDoneFns;re.forEach(de=>de()),re.length=0}}const ee="!"},5664:(Ge,Q,m)=>{"use strict";m.d(Q,{rt:()=>Ve,s1:()=>D,$s:()=>a,Qr:()=>Zt,kH:()=>jt,mK:()=>vt,Em:()=>O,tE:()=>Ii,qV:()=>Ze,qm:()=>hi,ic:()=>r,Kd:()=>Mt,X6:()=>q,yG:()=>$});var e=m(9808),t=m(5e3),y=m(7579),C=m(727),o=m(1135),M=m(9646),l=m(1159),R=m(8505),s=m(8372),L=m(9300),I=m(4004),A=m(5698),E=m(5684),P=m(1884),w=m(2722),V=m(3191),j=m(925),W=m(7144);function le(Ee,Y){return(Ee.getAttribute(Y)||"").match(/\S+/g)||[]}const re="cdk-describedby-message-container",de="cdk-describedby-message",se="cdk-describedby-host";let ye=0;const v=new Map;let i=null,a=(()=>{class Ee{constructor(pe){this._document=pe}describe(pe,De,et){if(!this._canBeDescribed(pe,De))return;const $t=p(De,et);"string"!=typeof De?(u(De),v.set($t,{messageElement:De,referenceCount:0})):v.has($t)||this._createMessageElement(De,et),this._isElementDescribedByMessage(pe,$t)||this._addMessageReference(pe,$t)}removeDescription(pe,De,et){if(!De||!this._isElementNode(pe))return;const $t=p(De,et);if(this._isElementDescribedByMessage(pe,$t)&&this._removeMessageReference(pe,$t),"string"==typeof De){const Nt=v.get($t);Nt&&0===Nt.referenceCount&&this._deleteMessageElement($t)}i&&0===i.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const pe=this._document.querySelectorAll(`[${se}]`);for(let De=0;De0!=et.indexOf(de));pe.setAttribute("aria-describedby",De.join(" "))}_addMessageReference(pe,De){const et=v.get(De);(function ee(Ee,Y,pe){const De=le(Ee,Y);De.some(et=>et.trim()==pe.trim())||(De.push(pe.trim()),Ee.setAttribute(Y,De.join(" ")))})(pe,"aria-describedby",et.messageElement.id),pe.setAttribute(se,""),et.referenceCount++}_removeMessageReference(pe,De){const et=v.get(De);et.referenceCount--,function ge(Ee,Y,pe){const et=le(Ee,Y).filter($t=>$t!=pe.trim());et.length?Ee.setAttribute(Y,et.join(" ")):Ee.removeAttribute(Y)}(pe,"aria-describedby",et.messageElement.id),pe.removeAttribute(se)}_isElementDescribedByMessage(pe,De){const et=le(pe,"aria-describedby"),$t=v.get(De),Nt=$t&&$t.messageElement.id;return!!Nt&&-1!=et.indexOf(Nt)}_canBeDescribed(pe,De){if(!this._isElementNode(pe))return!1;if(De&&"object"==typeof De)return!0;const et=null==De?"":`${De}`.trim(),$t=pe.getAttribute("aria-label");return!(!et||$t&&$t.trim()===et)}_isElementNode(pe){return pe.nodeType===this._document.ELEMENT_NODE}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function p(Ee,Y){return"string"==typeof Ee?`${Y||""}/${Ee}`:Ee}function u(Ee){Ee.id||(Ee.id=`${de}-${ye++}`)}class _{constructor(Y){this._items=Y,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new y.x,this._typeaheadSubscription=C.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=pe=>pe.disabled,this._pressedLetters=[],this.tabOut=new y.x,this.change=new y.x,Y instanceof t.n_E&&Y.changes.subscribe(pe=>{if(this._activeItem){const et=pe.toArray().indexOf(this._activeItem);et>-1&&et!==this._activeItemIndex&&(this._activeItemIndex=et)}})}skipPredicate(Y){return this._skipPredicateFn=Y,this}withWrap(Y=!0){return this._wrap=Y,this}withVerticalOrientation(Y=!0){return this._vertical=Y,this}withHorizontalOrientation(Y){return this._horizontal=Y,this}withAllowedModifierKeys(Y){return this._allowedModifierKeys=Y,this}withTypeAhead(Y=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,R.b)(pe=>this._pressedLetters.push(pe)),(0,s.b)(Y),(0,L.h)(()=>this._pressedLetters.length>0),(0,I.U)(()=>this._pressedLetters.join(""))).subscribe(pe=>{const De=this._getItemsArray();for(let et=1;et!Y[$t]||this._allowedModifierKeys.indexOf($t)>-1);switch(pe){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&et){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&et){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&et){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&et){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&et){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&et){this.setLastItemActive();break}return;default:return void((et||(0,l.Vb)(Y,"shiftKey"))&&(Y.key&&1===Y.key.length?this._letterKeyStream.next(Y.key.toLocaleUpperCase()):(pe>=l.A&&pe<=l.Z||pe>=l.xE&&pe<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(pe))))}this._pressedLetters=[],Y.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(Y){const pe=this._getItemsArray(),De="number"==typeof Y?Y:pe.indexOf(Y),et=pe[De];this._activeItem=null==et?null:et,this._activeItemIndex=De}_setActiveItemByDelta(Y){this._wrap?this._setActiveInWrapMode(Y):this._setActiveInDefaultMode(Y)}_setActiveInWrapMode(Y){const pe=this._getItemsArray();for(let De=1;De<=pe.length;De++){const et=(this._activeItemIndex+Y*De+pe.length)%pe.length;if(!this._skipPredicateFn(pe[et]))return void this.setActiveItem(et)}}_setActiveInDefaultMode(Y){this._setActiveItemByIndex(this._activeItemIndex+Y,Y)}_setActiveItemByIndex(Y,pe){const De=this._getItemsArray();if(De[Y]){for(;this._skipPredicateFn(De[Y]);)if(!De[Y+=pe])return;this.setActiveItem(Y)}}_getItemsArray(){return this._items instanceof t.n_E?this._items.toArray():this._items}}class D extends _{setActiveItem(Y){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Y),this.activeItem&&this.activeItem.setActiveStyles()}}class O extends _{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Y){return this._origin=Y,this}setActiveItem(Y){super.setActiveItem(Y),this.activeItem&&this.activeItem.focus(this._origin)}}let r=(()=>{class Ee{constructor(pe){this._platform=pe}isDisabled(pe){return pe.hasAttribute("disabled")}isVisible(pe){return function Z(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(pe)&&"visible"===getComputedStyle(pe).visibility}isTabbable(pe){if(!this._platform.isBrowser)return!1;const De=function b(Ee){try{return Ee.frameElement}catch(Y){return null}}(function we(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(pe));if(De&&(-1===Oe(De)||!this.isVisible(De)))return!1;let et=pe.nodeName.toLowerCase(),$t=Oe(pe);return pe.hasAttribute("contenteditable")?-1!==$t:!("iframe"===et||"object"===et||this._platform.WEBKIT&&this._platform.IOS&&!function K(Ee){let Y=Ee.nodeName.toLowerCase(),pe="input"===Y&&Ee.type;return"text"===pe||"password"===pe||"select"===Y||"textarea"===Y}(pe))&&("audio"===et?!!pe.hasAttribute("controls")&&-1!==$t:"video"===et?-1!==$t&&(null!==$t||this._platform.FIREFOX||pe.hasAttribute("controls")):pe.tabIndex>=0)}isFocusable(pe,De){return function Me(Ee){return!function U(Ee){return function be(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function N(Ee){let Y=Ee.nodeName.toLowerCase();return"input"===Y||"select"===Y||"button"===Y||"textarea"===Y}(Ee)||function ve(Ee){return function Re(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||ze(Ee))}(pe)&&!this.isDisabled(pe)&&((null==De?void 0:De.ignoreVisibility)||this.isVisible(pe))}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(j.t4))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function ze(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Y=Ee.getAttribute("tabindex");return!(!Y||isNaN(parseInt(Y,10)))}function Oe(Ee){if(!ze(Ee))return null;const Y=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Y)?-1:Y}class z{constructor(Y,pe,De,et,$t=!1){this._element=Y,this._checker=pe,this._ngZone=De,this._document=et,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,$t||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Y){this._enabled=Y,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}destroy(){const Y=this._startAnchor,pe=this._endAnchor;Y&&(Y.removeEventListener("focus",this.startAnchorListener),Y.remove()),pe&&(pe.removeEventListener("focus",this.endAnchorListener),pe.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(Y){return new Promise(pe=>{this._executeOnStable(()=>pe(this.focusInitialElement(Y)))})}focusFirstTabbableElementWhenReady(Y){return new Promise(pe=>{this._executeOnStable(()=>pe(this.focusFirstTabbableElement(Y)))})}focusLastTabbableElementWhenReady(Y){return new Promise(pe=>{this._executeOnStable(()=>pe(this.focusLastTabbableElement(Y)))})}_getRegionBoundary(Y){const pe=this._element.querySelectorAll(`[cdk-focus-region-${Y}], [cdkFocusRegion${Y}], [cdk-focus-${Y}]`);return"start"==Y?pe.length?pe[0]:this._getFirstTabbableElement(this._element):pe.length?pe[pe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Y){const pe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(pe){if(!this._checker.isFocusable(pe)){const De=this._getFirstTabbableElement(pe);return null==De||De.focus(Y),!!De}return pe.focus(Y),!0}return this.focusFirstTabbableElement(Y)}focusFirstTabbableElement(Y){const pe=this._getRegionBoundary("start");return pe&&pe.focus(Y),!!pe}focusLastTabbableElement(Y){const pe=this._getRegionBoundary("end");return pe&&pe.focus(Y),!!pe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Y){if(this._checker.isFocusable(Y)&&this._checker.isTabbable(Y))return Y;const pe=Y.children;for(let De=0;De=0;De--){const et=pe[De].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(pe[De]):null;if(et)return et}return null}_createAnchor(){const Y=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Y),Y.classList.add("cdk-visually-hidden"),Y.classList.add("cdk-focus-trap-anchor"),Y.setAttribute("aria-hidden","true"),Y}_toggleAnchorTabIndex(Y,pe){Y?pe.setAttribute("tabindex","0"):pe.removeAttribute("tabindex")}toggleAnchors(Y){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}_executeOnStable(Y){this._ngZone.isStable?Y():this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(Y)}}let Ze=(()=>{class Ee{constructor(pe,De,et){this._checker=pe,this._ngZone=De,this._document=et}create(pe,De=!1){return new z(pe,this._checker,this._ngZone,this._document,De)}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(r),t.LFG(t.R0b),t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),vt=(()=>{class Ee{constructor(pe,De,et){this._elementRef=pe,this._focusTrapFactory=De,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(pe){this.focusTrap.enabled=(0,V.Ig)(pe)}get autoCapture(){return this._autoCapture}set autoCapture(pe){this._autoCapture=(0,V.Ig)(pe)}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(pe){const De=pe.autoCapture;De&&!De.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,j.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.Y36(t.SBq),t.Y36(Ze),t.Y36(e.K0))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[t.TTD]}),Ee})();function q(Ee){return 0===Ee.offsetX&&0===Ee.offsetY}function $(Ee){const Y=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Y||-1!==Y.identifier||null!=Y.radiusX&&1!==Y.radiusX||null!=Y.radiusY&&1!==Y.radiusY)}const oe=new t.OlP("cdk-input-modality-detector-options"),Ce={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},lt=(0,j.i$)({passive:!0,capture:!0});let nt=(()=>{class Ee{constructor(pe,De,et,$t){this._platform=pe,this._mostRecentTarget=null,this._modality=new o.X(null),this._lastTouchMs=0,this._onKeydown=Nt=>{var Jt,ct;(null===(ct=null===(Jt=this._options)||void 0===Jt?void 0:Jt.ignoreKeys)||void 0===ct?void 0:ct.some(ke=>ke===Nt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,j.sA)(Nt))},this._onMousedown=Nt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(q(Nt)?"keyboard":"mouse"),this._mostRecentTarget=(0,j.sA)(Nt))},this._onTouchstart=Nt=>{$(Nt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,j.sA)(Nt))},this._options=Object.assign(Object.assign({},Ce),$t),this.modalityDetected=this._modality.pipe((0,E.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,P.x)()),pe.isBrowser&&De.runOutsideAngular(()=>{et.addEventListener("keydown",this._onKeydown,lt),et.addEventListener("mousedown",this._onMousedown,lt),et.addEventListener("touchstart",this._onTouchstart,lt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,lt),document.removeEventListener("mousedown",this._onMousedown,lt),document.removeEventListener("touchstart",this._onTouchstart,lt))}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(j.t4),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(oe,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const ft=new t.OlP("liveAnnouncerElement",{providedIn:"root",factory:function it(){return null}}),rt=new t.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Mt=(()=>{class Ee{constructor(pe,De,et,$t){this._ngZone=De,this._defaultOptions=$t,this._document=et,this._liveElement=pe||this._createLiveElement()}announce(pe,...De){const et=this._defaultOptions;let $t,Nt;return 1===De.length&&"number"==typeof De[0]?Nt=De[0]:[$t,Nt]=De,this.clear(),clearTimeout(this._previousTimeout),$t||($t=et&&et.politeness?et.politeness:"polite"),null==Nt&&et&&(Nt=et.duration),this._liveElement.setAttribute("aria-live",$t),this._ngZone.runOutsideAngular(()=>new Promise(Jt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=pe,Jt(),"number"==typeof Nt&&(this._previousTimeout=setTimeout(()=>this.clear(),Nt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var pe;clearTimeout(this._previousTimeout),null===(pe=this._liveElement)||void 0===pe||pe.remove(),this._liveElement=null}_createLiveElement(){const pe="cdk-live-announcer-element",De=this._document.getElementsByClassName(pe),et=this._document.createElement("div");for(let $t=0;$t{class Ee{constructor(pe,De,et,$t){this._elementRef=pe,this._liveAnnouncer=De,this._contentObserver=et,this._ngZone=$t,this._politeness="polite"}get politeness(){return this._politeness}set politeness(pe){this._politeness="off"===pe||"assertive"===pe?pe:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const De=this._elementRef.nativeElement.textContent;De!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(De,this._politeness),this._previousAnnouncedText=De)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.Y36(t.SBq),t.Y36(Mt),t.Y36(W.yq),t.Y36(t.R0b))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Ee})();const Ft=new t.OlP("cdk-focus-monitor-default-options"),Vt=(0,j.i$)({passive:!0,capture:!0});let Ii=(()=>{class Ee{constructor(pe,De,et,$t,Nt){this._ngZone=pe,this._platform=De,this._inputModalityDetector=et,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=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new y.x,this._rootNodeFocusAndBlurListener=Jt=>{const ct=(0,j.sA)(Jt),ke="focus"===Jt.type?this._onFocus:this._onBlur;for(let Be=ct;Be;Be=Be.parentElement)ke.call(this,Jt,Be)},this._document=$t,this._detectionMode=(null==Nt?void 0:Nt.detectionMode)||0}monitor(pe,De=!1){const et=(0,V.fI)(pe);if(!this._platform.isBrowser||1!==et.nodeType)return(0,M.of)(null);const $t=(0,j.kV)(et)||this._getDocument(),Nt=this._elementInfo.get(et);if(Nt)return De&&(Nt.checkChildren=!0),Nt.subject;const Jt={checkChildren:De,subject:new y.x,rootNode:$t};return this._elementInfo.set(et,Jt),this._registerGlobalListeners(Jt),Jt.subject}stopMonitoring(pe){const De=(0,V.fI)(pe),et=this._elementInfo.get(De);et&&(et.subject.complete(),this._setClasses(De),this._elementInfo.delete(De),this._removeGlobalListeners(et))}focusVia(pe,De,et){const $t=(0,V.fI)(pe);$t===this._getDocument().activeElement?this._getClosestElementsInfo($t).forEach(([Jt,ct])=>this._originChanged(Jt,De,ct)):(this._setOrigin(De),"function"==typeof $t.focus&&$t.focus(et))}ngOnDestroy(){this._elementInfo.forEach((pe,De)=>this.stopMonitoring(De))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(pe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(pe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(pe){return 1===this._detectionMode||!!(null==pe?void 0:pe.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(pe,De){pe.classList.toggle("cdk-focused",!!De),pe.classList.toggle("cdk-touch-focused","touch"===De),pe.classList.toggle("cdk-keyboard-focused","keyboard"===De),pe.classList.toggle("cdk-mouse-focused","mouse"===De),pe.classList.toggle("cdk-program-focused","program"===De)}_setOrigin(pe,De=!1){this._ngZone.runOutsideAngular(()=>{this._origin=pe,this._originFromTouchInteraction="touch"===pe&&De,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(pe,De){const et=this._elementInfo.get(De),$t=(0,j.sA)(pe);!et||!et.checkChildren&&De!==$t||this._originChanged(De,this._getFocusOrigin($t),et)}_onBlur(pe,De){const et=this._elementInfo.get(De);!et||et.checkChildren&&pe.relatedTarget instanceof Node&&De.contains(pe.relatedTarget)||(this._setClasses(De),this._emitOrigin(et.subject,null))}_emitOrigin(pe,De){this._ngZone.run(()=>pe.next(De))}_registerGlobalListeners(pe){if(!this._platform.isBrowser)return;const De=pe.rootNode,et=this._rootNodeFocusListenerCount.get(De)||0;et||this._ngZone.runOutsideAngular(()=>{De.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),De.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vt)}),this._rootNodeFocusListenerCount.set(De,et+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,w.R)(this._stopInputModalityDetector)).subscribe($t=>{this._setOrigin($t,!0)}))}_removeGlobalListeners(pe){const De=pe.rootNode;if(this._rootNodeFocusListenerCount.has(De)){const et=this._rootNodeFocusListenerCount.get(De);et>1?this._rootNodeFocusListenerCount.set(De,et-1):(De.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),De.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vt),this._rootNodeFocusListenerCount.delete(De))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(pe,De,et){this._setClasses(pe,De),this._emitOrigin(et.subject,De),this._lastFocusOrigin=De}_getClosestElementsInfo(pe){const De=[];return this._elementInfo.forEach((et,$t)=>{($t===pe||et.checkChildren&&$t.contains(pe))&&De.push([$t,et])}),De}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(t.R0b),t.LFG(j.t4),t.LFG(nt),t.LFG(e.K0,8),t.LFG(Ft,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),jt=(()=>{class Ee{constructor(pe,De){this._elementRef=pe,this._focusMonitor=De,this.cdkFocusChange=new t.vpe}ngAfterViewInit(){const pe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(pe,1===pe.nodeType&&pe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(De=>this.cdkFocusChange.emit(De))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.Y36(t.SBq),t.Y36(Ii))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const ei="cdk-high-contrast-black-on-white",ki="cdk-high-contrast-white-on-black",ai="cdk-high-contrast-active";let hi=(()=>{class Ee{constructor(pe,De){this._platform=pe,this._document=De}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const pe=this._document.createElement("div");pe.style.backgroundColor="rgb(1,2,3)",pe.style.position="absolute",this._document.body.appendChild(pe);const De=this._document.defaultView||window,et=De&&De.getComputedStyle?De.getComputedStyle(pe):null,$t=(et&&et.backgroundColor||"").replace(/ /g,"");switch(pe.remove(),$t){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 pe=this._document.body.classList;pe.remove(ai),pe.remove(ei),pe.remove(ki),this._hasCheckedHighContrastMode=!0;const De=this.getHighContrastMode();1===De?(pe.add(ai),pe.add(ei)):2===De&&(pe.add(ai),pe.add(ki))}}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(j.t4),t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Ve=(()=>{class Ee{constructor(pe){pe._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(pe){return new(pe||Ee)(t.LFG(hi))},Ee.\u0275mod=t.oAB({type:Ee}),Ee.\u0275inj=t.cJS({imports:[[j.ud,W.Q8]]}),Ee})()},226:(Ge,Q,m)=>{"use strict";m.d(Q,{vT:()=>s,Is:()=>l});var e=m(5e3),t=m(9808);const y=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function C(){return(0,e.f3M)(t.K0)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let l=(()=>{class L{constructor(A){if(this.value="ltr",this.change=new e.vpe,A){const P=A.documentElement?A.documentElement.dir:null;this.value=function M(L){const I=(null==L?void 0:L.toLowerCase())||"";return"auto"===I&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?o.test(navigator.language)?"rtl":"ltr":"rtl"===I?"rtl":"ltr"}((A.body?A.body.dir:null)||P||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(A){return new(A||L)(e.LFG(y,8))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),s=(()=>{class L{}return L.\u0275fac=function(A){return new(A||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({}),L})()},3191:(Ge,Q,m)=>{"use strict";m.d(Q,{t6:()=>C,Eq:()=>o,Ig:()=>t,HM:()=>M,fI:()=>l,su:()=>y,du:()=>R});var e=m(5e3);function t(s){return null!=s&&"false"!=`${s}`}function y(s,L=0){return C(s)?Number(s):L}function C(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}function o(s){return Array.isArray(s)?s:[s]}function M(s){return null==s?"":"string"==typeof s?s:`${s}px`}function l(s){return s instanceof e.SBq?s.nativeElement:s}function R(s,L=/\s+/){const I=[];if(null!=s){const A=Array.isArray(s)?s:`${s}`.split(L);for(const E of A){const P=`${E}`.trim();P&&I.push(P)}}return I}},449:(Ge,Q,m)=>{"use strict";m.d(Q,{o2:()=>y,Ov:()=>R,A8:()=>L,yy:()=>M,eX:()=>l,k:()=>I,Z9:()=>C});var e=m(7579),t=m(5e3);class y{}function C(A){return A&&"function"==typeof A.connect}class M{applyChanges(E,P,w,V,j){E.forEachOperation((W,te,ee)=>{let ge,le;if(null==W.previousIndex){const re=w(W,te,ee);ge=P.createEmbeddedView(re.templateRef,re.context,re.index),le=1}else null==ee?(P.remove(te),le=3):(ge=P.get(te),P.move(ge,ee),le=2);j&&j({context:null==ge?void 0:ge.context,operation:le,record:W})})}detach(){}}class l{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(E,P,w,V,j){E.forEachOperation((W,te,ee)=>{let ge,le;null==W.previousIndex?(ge=this._insertView(()=>w(W,te,ee),ee,P,V(W)),le=ge?1:0):null==ee?(this._detachAndCacheView(te,P),le=3):(ge=this._moveView(te,ee,P,V(W)),le=2),j&&j({context:null==ge?void 0:ge.context,operation:le,record:W})})}detach(){for(const E of this._viewCache)E.destroy();this._viewCache=[]}_insertView(E,P,w,V){const j=this._insertViewFromCache(P,w);if(j)return void(j.context.$implicit=V);const W=E();return w.createEmbeddedView(W.templateRef,W.context,W.index)}_detachAndCacheView(E,P){const w=P.detach(E);this._maybeCacheView(w,P)}_moveView(E,P,w,V){const j=w.get(E);return w.move(j,P),j.context.$implicit=V,j}_maybeCacheView(E,P){if(this._viewCache.lengththis._markSelected(V)):this._markSelected(P[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...E){this._verifyValueAssignment(E),E.forEach(P=>this._markSelected(P)),this._emitChangeEvent()}deselect(...E){this._verifyValueAssignment(E),E.forEach(P=>this._unmarkSelected(P)),this._emitChangeEvent()}toggle(E){this.isSelected(E)?this.deselect(E):this.select(E)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(E){return this._selection.has(E)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(E){this._multiple&&this.selected&&this._selected.sort(E)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(E){this.isSelected(E)||(this._multiple||this._unmarkAll(),this._selection.add(E),this._emitChanges&&this._selectedToEmit.push(E))}_unmarkSelected(E){this.isSelected(E)&&(this._selection.delete(E),this._emitChanges&&this._deselectedToEmit.push(E))}_unmarkAll(){this.isEmpty()||this._selection.forEach(E=>this._unmarkSelected(E))}_verifyValueAssignment(E){}}let L=(()=>{class A{constructor(){this._listeners=[]}notify(P,w){for(let V of this._listeners)V(P,w)}listen(P){return this._listeners.push(P),()=>{this._listeners=this._listeners.filter(w=>P!==w)}}ngOnDestroy(){this._listeners=[]}}return A.\u0275fac=function(P){return new(P||A)},A.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const I=new t.OlP("_ViewRepeater")},1159:(Ge,Q,m)=>{"use strict";m.d(Q,{A:()=>N,zL:()=>R,jx:()=>l,JH:()=>ee,uR:()=>w,K5:()=>o,hY:()=>I,Sd:()=>V,oh:()=>j,b2:()=>ui,MW:()=>it,aO:()=>O,VM:()=>P,Ku:()=>E,SV:()=>te,JU:()=>M,L_:()=>A,Mf:()=>y,LH:()=>W,Z:()=>ft,xE:()=>se,Vb:()=>Ci});const y=9,o=13,M=16,l=17,R=18,I=27,A=32,E=33,P=34,w=35,V=36,j=37,W=38,te=39,ee=40,se=48,O=57,N=65,ft=90,it=91,ui=224;function Ci(Yi,...$i){return $i.length?$i.some(Cn=>Yi[Cn]):Yi.altKey||Yi.shiftKey||Yi.ctrlKey||Yi.metaKey}},5113:(Ge,Q,m)=>{"use strict";m.d(Q,{Yg:()=>ee,u3:()=>le,xu:()=>P});var e=m(5e3),t=m(3191),y=m(7579),C=m(9841),o=m(7272),M=m(8306),l=m(5698),R=m(5684),s=m(8372),L=m(4004),I=m(8675),A=m(2722),E=m(925);let P=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})();const w=new Set;let V,j=(()=>{class re{constructor(se){this._platform=se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):te}matchMedia(se){return(this._platform.WEBKIT||this._platform.BLINK)&&function W(re){if(!w.has(re))try{V||(V=document.createElement("style"),V.setAttribute("type","text/css"),document.head.appendChild(V)),V.sheet&&(V.sheet.insertRule(`@media ${re} {body{ }}`,0),w.add(re))}catch(de){console.error(de)}}(se),this._matchMedia(se)}}return re.\u0275fac=function(se){return new(se||re)(e.LFG(E.t4))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function te(re){return{matches:"all"===re||""===re,media:re,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class re{constructor(se,ye){this._mediaMatcher=se,this._zone=ye,this._queries=new Map,this._destroySubject=new y.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(se){return ge((0,t.Eq)(se)).some(v=>this._registerQuery(v).mql.matches)}observe(se){const v=ge((0,t.Eq)(se)).map(a=>this._registerQuery(a).observable);let i=(0,C.a)(v);return i=(0,o.z)(i.pipe((0,l.q)(1)),i.pipe((0,R.T)(1),(0,s.b)(0))),i.pipe((0,L.U)(a=>{const p={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:_})=>{p.matches=p.matches||u,p.breakpoints[_]=u}),p}))}_registerQuery(se){if(this._queries.has(se))return this._queries.get(se);const ye=this._mediaMatcher.matchMedia(se),i={observable:new M.y(a=>{const p=u=>this._zone.run(()=>a.next(u));return ye.addListener(p),()=>{ye.removeListener(p)}}).pipe((0,I.O)(ye),(0,L.U)(({matches:a})=>({query:se,matches:a})),(0,A.R)(this._destroySubject)),mql:ye};return this._queries.set(se,i),i}}return re.\u0275fac=function(se){return new(se||re)(e.LFG(j),e.LFG(e.R0b))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ge(re){return re.map(de=>de.split(",")).reduce((de,se)=>de.concat(se)).map(de=>de.trim())}const le={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:(Ge,Q,m)=>{"use strict";m.d(Q,{wD:()=>R,yq:()=>l,Q8:()=>s});var e=m(3191),t=m(5e3),y=m(8306),C=m(7579),o=m(8372);let M=(()=>{class L{create(A){return"undefined"==typeof MutationObserver?null:new MutationObserver(A)}}return L.\u0275fac=function(A){return new(A||L)},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),l=(()=>{class L{constructor(A){this._mutationObserverFactory=A,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((A,E)=>this._cleanupObserver(E))}observe(A){const E=(0,e.fI)(A);return new y.y(P=>{const V=this._observeElement(E).subscribe(P);return()=>{V.unsubscribe(),this._unobserveElement(E)}})}_observeElement(A){if(this._observedElements.has(A))this._observedElements.get(A).count++;else{const E=new C.x,P=this._mutationObserverFactory.create(w=>E.next(w));P&&P.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:P,stream:E,count:1})}return this._observedElements.get(A).stream}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){const{observer:E,stream:P}=this._observedElements.get(A);E&&E.disconnect(),P.complete(),this._observedElements.delete(A)}}}return L.\u0275fac=function(A){return new(A||L)(t.LFG(M))},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),R=(()=>{class L{constructor(A,E,P){this._contentObserver=A,this._elementRef=E,this._ngZone=P,this.event=new t.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(A){this._disabled=(0,e.Ig)(A),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(A){this._debounce=(0,e.su)(A),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const A=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?A.pipe((0,o.b)(this.debounce)):A).subscribe(this.event)})}_unsubscribe(){var A;null===(A=this._currentSubscription)||void 0===A||A.unsubscribe()}}return L.\u0275fac=function(A){return new(A||L)(t.Y36(l),t.Y36(t.SBq),t.Y36(t.R0b))},L.\u0275dir=t.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),s=(()=>{class L{}return L.\u0275fac=function(A){return new(A||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({providers:[M]}),L})()},9776:(Ge,Q,m)=>{"use strict";m.d(Q,{pI:()=>vt,xu:()=>Ze,_G:()=>r,aV:()=>Me,X_:()=>ye,Xj:()=>D,U8:()=>ce});var e=m(5303),t=m(9808),y=m(5e3),C=m(3191),o=m(925),M=m(226),l=m(7429),R=m(7579),s=m(727),L=m(6451),I=m(4482),A=m(5403),P=m(5698),w=m(2722),V=m(1159);const j=(0,o.Mq)();class W{constructor(q,$){this._viewportRuler=q,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=$}attach(){}enable(){if(this._canBeEnabled()){const q=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=q.style.left||"",this._previousHTMLStyles.top=q.style.top||"",q.style.left=(0,C.HM)(-this._previousScrollPosition.left),q.style.top=(0,C.HM)(-this._previousScrollPosition.top),q.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const q=this._document.documentElement,oe=q.style,Ce=this._document.body.style,Ue=oe.scrollBehavior||"",lt=Ce.scrollBehavior||"";this._isEnabled=!1,oe.left=this._previousHTMLStyles.left,oe.top=this._previousHTMLStyles.top,q.classList.remove("cdk-global-scrollblock"),j&&(oe.scrollBehavior=Ce.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),j&&(oe.scrollBehavior=Ue,Ce.scrollBehavior=lt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const $=this._document.body,oe=this._viewportRuler.getViewportSize();return $.scrollHeight>oe.height||$.scrollWidth>oe.width}}class ee{constructor(q,$,oe,Ce){this._scrollDispatcher=q,this._ngZone=$,this._viewportRuler=oe,this._config=Ce,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(q){this._overlayRef=q}enable(){if(this._scrollSubscription)return;const q=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=q.subscribe(()=>{const $=this._viewportRuler.getViewportScrollPosition().top;Math.abs($-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=q.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ge{enable(){}disable(){}attach(){}}function le(Pe,q){return q.some($=>Pe.bottom<$.top||Pe.top>$.bottom||Pe.right<$.left||Pe.left>$.right)}function re(Pe,q){return q.some($=>Pe.top<$.top||Pe.bottom>$.bottom||Pe.left<$.left||Pe.right>$.right)}class de{constructor(q,$,oe,Ce){this._scrollDispatcher=q,this._viewportRuler=$,this._ngZone=oe,this._config=Ce,this._scrollSubscription=null}attach(q){this._overlayRef=q}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:oe,height:Ce}=this._viewportRuler.getViewportSize();le($,[{width:oe,height:Ce,bottom:Ce,right:oe,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 se=(()=>{class Pe{constructor($,oe,Ce,Ue){this._scrollDispatcher=$,this._viewportRuler=oe,this._ngZone=Ce,this.noop=()=>new ge,this.close=lt=>new ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,lt),this.block=()=>new W(this._viewportRuler,this._document),this.reposition=lt=>new de(this._scrollDispatcher,this._viewportRuler,this._ngZone,lt),this._document=Ue}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(e.mF),y.LFG(e.rL),y.LFG(y.R0b),y.LFG(t.K0))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class ye{constructor(q){if(this.scrollStrategy=new ge,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,q){const $=Object.keys(q);for(const oe of $)void 0!==q[oe]&&(this[oe]=q[oe])}}}class a{constructor(q,$){this.connectionPair=q,this.scrollableViewProperties=$}}class _{constructor(q,$,oe,Ce,Ue,lt,nt,ft,it){this._portalOutlet=q,this._host=$,this._pane=oe,this._config=Ce,this._ngZone=Ue,this._keyboardDispatcher=lt,this._document=nt,this._location=ft,this._outsideClickDispatcher=it,this._backdropElement=null,this._backdropClick=new R.x,this._attachments=new R.x,this._detachments=new R.x,this._locationChanges=s.w0.EMPTY,this._backdropClickHandler=rt=>this._backdropClick.next(rt),this._keydownEvents=new R.x,this._outsidePointerEvents=new R.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(q){let $=this._portalOutlet.attach(q);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.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 q=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),q}dispose(){var q;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===(q=this._host)||void 0===q||q.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(q){q!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=q,this.hasAttached()&&(q.attach(this),this.updatePosition()))}updateSize(q){this._config=Object.assign(Object.assign({},this._config),q),this._updateElementSize()}setDirection(q){this._config=Object.assign(Object.assign({},this._config),{direction:q}),this._updateElementDirection()}addPanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!0)}removePanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!1)}getDirection(){const q=this._config.direction;return q?"string"==typeof q?q:q.value:"ltr"}updateScrollStrategy(q){q!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=q,this.hasAttached()&&(q.attach(this),q.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const q=this._pane.style;q.width=(0,C.HM)(this._config.width),q.height=(0,C.HM)(this._config.height),q.minWidth=(0,C.HM)(this._config.minWidth),q.minHeight=(0,C.HM)(this._config.minHeight),q.maxWidth=(0,C.HM)(this._config.maxWidth),q.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(q){this._pane.style.pointerEvents=q?"":"none"}_attachBackdrop(){const q="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(q)})}):this._backdropElement.classList.add(q)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const q=this._backdropElement;if(!q)return;let $;const oe=()=>{q&&(q.removeEventListener("click",this._backdropClickHandler),q.removeEventListener("transitionend",oe),this._disposeBackdrop(q)),this._config.backdropClass&&this._toggleClasses(q,this._config.backdropClass,!1),clearTimeout($)};q.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{q.addEventListener("transitionend",oe)}),q.style.pointerEvents="none",$=this._ngZone.runOutsideAngular(()=>setTimeout(oe,500))}_toggleClasses(q,$,oe){const Ce=(0,C.Eq)($||[]).filter(Ue=>!!Ue);Ce.length&&(oe?q.classList.add(...Ce):q.classList.remove(...Ce))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const q=this._ngZone.onStable.pipe((0,w.R)((0,L.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()),q.unsubscribe())})})}_disposeScrollStrategy(){const q=this._scrollStrategy;q&&(q.disable(),q.detach&&q.detach())}_disposeBackdrop(q){q&&(q.remove(),this._backdropElement===q&&(this._backdropElement=null))}}let D=(()=>{class Pe{constructor($,oe){this._platform=oe,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,o.Oy)()){const Ce=this._document.querySelectorAll(`.${$}[platform="server"], .${$}[platform="test"]`);for(let Ue=0;Ue{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();const q=this._originRect,$=this._overlayRect,oe=this._viewportRect,Ce=[];let Ue;for(let lt of this._preferredPositions){let nt=this._getOriginPoint(q,lt),ft=this._getOverlayPoint(nt,$,lt),it=this._getOverlayFit(ft,$,oe,lt);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(lt,nt);this._canFitWithFlexibleDimensions(it,ft,oe)?Ce.push({position:lt,origin:nt,overlayRect:$,boundingBoxRect:this._calculateBoundingBoxRect(nt,lt)}):(!Ue||Ue.overlayFit.visibleAreant&&(nt=it,lt=ft)}return this._isPushed=!1,void this._applyPosition(lt.position,lt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ue.position,Ue.originPoint);this._applyPosition(Ue.position,Ue.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&b(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||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const q=this._lastPosition||this._preferredPositions[0],$=this._getOriginPoint(this._originRect,q);this._applyPosition(q,$)}}withScrollableContainers(q){return this._scrollables=q,this}withPositions(q){return this._preferredPositions=q,-1===q.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(q){return this._viewportMargin=q,this}withFlexibleDimensions(q=!0){return this._hasFlexibleDimensions=q,this}withGrowAfterOpen(q=!0){return this._growAfterOpen=q,this}withPush(q=!0){return this._canPush=q,this}withLockedPosition(q=!0){return this._positionLocked=q,this}setOrigin(q){return this._origin=q,this}withDefaultOffsetX(q){return this._offsetX=q,this}withDefaultOffsetY(q){return this._offsetY=q,this}withTransformOriginOn(q){return this._transformOriginSelector=q,this}_getOriginPoint(q,$){let oe,Ce;if("center"==$.originX)oe=q.left+q.width/2;else{const Ue=this._isRtl()?q.right:q.left,lt=this._isRtl()?q.left:q.right;oe="start"==$.originX?Ue:lt}return Ce="center"==$.originY?q.top+q.height/2:"top"==$.originY?q.top:q.bottom,{x:oe,y:Ce}}_getOverlayPoint(q,$,oe){let Ce,Ue;return Ce="center"==oe.overlayX?-$.width/2:"start"===oe.overlayX?this._isRtl()?-$.width:0:this._isRtl()?0:-$.width,Ue="center"==oe.overlayY?-$.height/2:"top"==oe.overlayY?0:-$.height,{x:q.x+Ce,y:q.y+Ue}}_getOverlayFit(q,$,oe,Ce){const Ue=N($);let{x:lt,y:nt}=q,ft=this._getOffset(Ce,"x"),it=this._getOffset(Ce,"y");ft&&(lt+=ft),it&&(nt+=it);let Zt=0-nt,Ft=nt+Ue.height-oe.height,Vt=this._subtractOverflows(Ue.width,0-lt,lt+Ue.width-oe.width),Ii=this._subtractOverflows(Ue.height,Zt,Ft),jt=Vt*Ii;return{visibleArea:jt,isCompletelyWithinViewport:Ue.width*Ue.height===jt,fitsInViewportVertically:Ii===Ue.height,fitsInViewportHorizontally:Vt==Ue.width}}_canFitWithFlexibleDimensions(q,$,oe){if(this._hasFlexibleDimensions){const Ce=oe.bottom-$.y,Ue=oe.right-$.x,lt=Z(this._overlayRef.getConfig().minHeight),nt=Z(this._overlayRef.getConfig().minWidth),it=q.fitsInViewportHorizontally||null!=nt&&nt<=Ue;return(q.fitsInViewportVertically||null!=lt&<<=Ce)&&it}return!1}_pushOverlayOnScreen(q,$,oe){if(this._previousPushAmount&&this._positionLocked)return{x:q.x+this._previousPushAmount.x,y:q.y+this._previousPushAmount.y};const Ce=N($),Ue=this._viewportRect,lt=Math.max(q.x+Ce.width-Ue.width,0),nt=Math.max(q.y+Ce.height-Ue.height,0),ft=Math.max(Ue.top-oe.top-q.y,0),it=Math.max(Ue.left-oe.left-q.x,0);let rt=0,Mt=0;return rt=Ce.width<=Ue.width?it||-lt:q.xVt&&!this._isInitialRender&&!this._growAfterOpen&&(lt=q.y-Vt/2)}if("end"===$.overlayX&&!Ce||"start"===$.overlayX&&Ce)Zt=oe.width-q.x+this._viewportMargin,rt=q.x-this._viewportMargin;else if("start"===$.overlayX&&!Ce||"end"===$.overlayX&&Ce)Mt=q.x,rt=oe.right-q.x;else{const Ft=Math.min(oe.right-q.x+oe.left,q.x),Vt=this._lastBoundingBoxSize.width;rt=2*Ft,Mt=q.x-Ft,rt>Vt&&!this._isInitialRender&&!this._growAfterOpen&&(Mt=q.x-Vt/2)}return{top:lt,left:Mt,bottom:nt,right:Zt,width:rt,height:Ue}}_setBoundingBoxStyles(q,$){const oe=this._calculateBoundingBoxRect(q,$);!this._isInitialRender&&!this._growAfterOpen&&(oe.height=Math.min(oe.height,this._lastBoundingBoxSize.height),oe.width=Math.min(oe.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 Ue=this._overlayRef.getConfig().maxHeight,lt=this._overlayRef.getConfig().maxWidth;Ce.height=(0,C.HM)(oe.height),Ce.top=(0,C.HM)(oe.top),Ce.bottom=(0,C.HM)(oe.bottom),Ce.width=(0,C.HM)(oe.width),Ce.left=(0,C.HM)(oe.left),Ce.right=(0,C.HM)(oe.right),Ce.alignItems="center"===$.overlayX?"center":"end"===$.overlayX?"flex-end":"flex-start",Ce.justifyContent="center"===$.overlayY?"center":"bottom"===$.overlayY?"flex-end":"flex-start",Ue&&(Ce.maxHeight=(0,C.HM)(Ue)),lt&&(Ce.maxWidth=(0,C.HM)(lt))}this._lastBoundingBoxSize=oe,b(this._boundingBox.style,Ce)}_resetBoundingBoxStyles(){b(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){b(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(q,$){const oe={},Ce=this._hasExactPosition(),Ue=this._hasFlexibleDimensions,lt=this._overlayRef.getConfig();if(Ce){const rt=this._viewportRuler.getViewportScrollPosition();b(oe,this._getExactOverlayY($,q,rt)),b(oe,this._getExactOverlayX($,q,rt))}else oe.position="static";let nt="",ft=this._getOffset($,"x"),it=this._getOffset($,"y");ft&&(nt+=`translateX(${ft}px) `),it&&(nt+=`translateY(${it}px)`),oe.transform=nt.trim(),lt.maxHeight&&(Ce?oe.maxHeight=(0,C.HM)(lt.maxHeight):Ue&&(oe.maxHeight="")),lt.maxWidth&&(Ce?oe.maxWidth=(0,C.HM)(lt.maxWidth):Ue&&(oe.maxWidth="")),b(this._pane.style,oe)}_getExactOverlayY(q,$,oe){let Ce={top:"",bottom:""},Ue=this._getOverlayPoint($,this._overlayRect,q);this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,oe));let lt=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Ue.y-=lt,"bottom"===q.overlayY?Ce.bottom=this._document.documentElement.clientHeight-(Ue.y+this._overlayRect.height)+"px":Ce.top=(0,C.HM)(Ue.y),Ce}_getExactOverlayX(q,$,oe){let lt,Ce={left:"",right:""},Ue=this._getOverlayPoint($,this._overlayRect,q);return this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,oe)),lt=this._isRtl()?"end"===q.overlayX?"left":"right":"end"===q.overlayX?"right":"left","right"===lt?Ce.right=this._document.documentElement.clientWidth-(Ue.x+this._overlayRect.width)+"px":Ce.left=(0,C.HM)(Ue.x),Ce}_getScrollVisibility(){const q=this._getOriginRect(),$=this._pane.getBoundingClientRect(),oe=this._scrollables.map(Ce=>Ce.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(q,oe),isOriginOutsideView:le(q,oe),isOverlayClipped:re($,oe),isOverlayOutsideView:le($,oe)}}_subtractOverflows(q,...$){return $.reduce((oe,Ce)=>oe-Math.max(Ce,0),q)}_getNarrowedViewportRect(){const q=this._document.documentElement.clientWidth,$=this._document.documentElement.clientHeight,oe=this._viewportRuler.getViewportScrollPosition();return{top:oe.top+this._viewportMargin,left:oe.left+this._viewportMargin,right:oe.left+q-this._viewportMargin,bottom:oe.top+$-this._viewportMargin,width:q-2*this._viewportMargin,height:$-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(q,$){return"x"===$?null==q.offsetX?this._offsetX:q.offsetX:null==q.offsetY?this._offsetY:q.offsetY}_validatePositions(){}_addPanelClasses(q){this._pane&&(0,C.Eq)(q).forEach($=>{""!==$&&-1===this._appliedPanelClasses.indexOf($)&&(this._appliedPanelClasses.push($),this._pane.classList.add($))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(q=>{this._pane.classList.remove(q)}),this._appliedPanelClasses=[])}_getOriginRect(){const q=this._origin;if(q instanceof y.SBq)return q.nativeElement.getBoundingClientRect();if(q instanceof Element)return q.getBoundingClientRect();const $=q.width||0,oe=q.height||0;return{top:q.y,bottom:q.y+oe,left:q.x,right:q.x+$,height:oe,width:$}}}function b(Pe,q){for(let $ in q)q.hasOwnProperty($)&&(Pe[$]=q[$]);return Pe}function Z(Pe){if("number"!=typeof Pe&&null!=Pe){const[q,$]=Pe.split(x);return $&&"px"!==$?null:parseFloat(q)}return Pe||null}function N(Pe){return{top:Math.floor(Pe.top),right:Math.floor(Pe.right),bottom:Math.floor(Pe.bottom),left:Math.floor(Pe.left),width:Math.floor(Pe.width),height:Math.floor(Pe.height)}}const U="cdk-global-overlay-wrapper";class ve{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(q){const $=q.getConfig();this._overlayRef=q,this._width&&!$.width&&q.updateSize({width:this._width}),this._height&&!$.height&&q.updateSize({height:this._height}),q.hostElement.classList.add(U),this._isDisposed=!1}top(q=""){return this._bottomOffset="",this._topOffset=q,this._alignItems="flex-start",this}left(q=""){return this._rightOffset="",this._leftOffset=q,this._justifyContent="flex-start",this}bottom(q=""){return this._topOffset="",this._bottomOffset=q,this._alignItems="flex-end",this}right(q=""){return this._leftOffset="",this._rightOffset=q,this._justifyContent="flex-end",this}width(q=""){return this._overlayRef?this._overlayRef.updateSize({width:q}):this._width=q,this}height(q=""){return this._overlayRef?this._overlayRef.updateSize({height:q}):this._height=q,this}centerHorizontally(q=""){return this.left(q),this._justifyContent="center",this}centerVertically(q=""){return this.top(q),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const q=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement.style,oe=this._overlayRef.getConfig(),{width:Ce,height:Ue,maxWidth:lt,maxHeight:nt}=oe,ft=!("100%"!==Ce&&"100vw"!==Ce||lt&&"100%"!==lt&&"100vw"!==lt),it=!("100%"!==Ue&&"100vh"!==Ue||nt&&"100%"!==nt&&"100vh"!==nt);q.position=this._cssPosition,q.marginLeft=ft?"0":this._leftOffset,q.marginTop=it?"0":this._topOffset,q.marginBottom=this._bottomOffset,q.marginRight=this._rightOffset,ft?$.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=it?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const q=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement,oe=$.style;$.classList.remove(U),oe.justifyContent=oe.alignItems=q.marginTop=q.marginBottom=q.marginLeft=q.marginRight=q.position="",this._overlayRef=null,this._isDisposed=!0}}let be=(()=>{class Pe{constructor($,oe,Ce,Ue){this._viewportRuler=$,this._document=oe,this._platform=Ce,this._overlayContainer=Ue}global(){return new ve}flexibleConnectedTo($){return new r($,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(e.rL),y.LFG(t.K0),y.LFG(o.t4),y.LFG(D))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Re=(()=>{class Pe{constructor($){this._attachedOverlays=[],this._document=$}ngOnDestroy(){this.detach()}add($){this.remove($),this._attachedOverlays.push($)}remove($){const oe=this._attachedOverlays.indexOf($);oe>-1&&this._attachedOverlays.splice(oe,1),0===this._attachedOverlays.length&&this.detach()}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(t.K0))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),ze=(()=>{class Pe extends Re{constructor($){super($),this._keydownListener=oe=>{const Ce=this._attachedOverlays;for(let Ue=Ce.length-1;Ue>-1;Ue--)if(Ce[Ue]._keydownEvents.observers.length>0){Ce[Ue]._keydownEvents.next(oe);break}}}add($){super.add($),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(t.K0))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Oe=(()=>{class Pe extends Re{constructor($,oe){super($),this._platform=oe,this._cursorStyleIsSet=!1,this._pointerDownListener=Ce=>{this._pointerDownEventTarget=(0,o.sA)(Ce)},this._clickListener=Ce=>{const Ue=(0,o.sA)(Ce),lt="click"===Ce.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ue;this._pointerDownEventTarget=null;const nt=this._attachedOverlays.slice();for(let ft=nt.length-1;ft>-1;ft--){const it=nt[ft];if(!(it._outsidePointerEvents.observers.length<1)&&it.hasAttached()){if(it.overlayElement.contains(Ue)||it.overlayElement.contains(lt))break;it._outsidePointerEvents.next(Ce)}}}}add($){if(super.add($),!this._isAttached){const oe=this._document.body;oe.addEventListener("pointerdown",this._pointerDownListener,!0),oe.addEventListener("click",this._clickListener,!0),oe.addEventListener("auxclick",this._clickListener,!0),oe.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=oe.style.cursor,oe.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}}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(t.K0),y.LFG(o.t4))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),K=0,Me=(()=>{class Pe{constructor($,oe,Ce,Ue,lt,nt,ft,it,rt,Mt,Zt){this.scrollStrategies=$,this._overlayContainer=oe,this._componentFactoryResolver=Ce,this._positionBuilder=Ue,this._keyboardDispatcher=lt,this._injector=nt,this._ngZone=ft,this._document=it,this._directionality=rt,this._location=Mt,this._outsideClickDispatcher=Zt}create($){const oe=this._createHostElement(),Ce=this._createPaneElement(oe),Ue=this._createPortalOutlet(Ce),lt=new ye($);return lt.direction=lt.direction||this._directionality.value,new _(Ue,oe,Ce,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement($){const oe=this._document.createElement("div");return oe.id="cdk-overlay-"+K++,oe.classList.add("cdk-overlay-pane"),$.appendChild(oe),oe}_createHostElement(){const $=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild($),$}_createPortalOutlet($){return this._appRef||(this._appRef=this._injector.get(y.z2F)),new l.u0($,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Pe.\u0275fac=function($){return new($||Pe)(y.LFG(se),y.LFG(D),y.LFG(y._Vd),y.LFG(be),y.LFG(ze),y.LFG(y.zs3),y.LFG(y.R0b),y.LFG(t.K0),y.LFG(M.Is),y.LFG(t.Ye),y.LFG(Oe))},Pe.\u0275prov=y.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const we=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],z=new y.OlP("cdk-connected-overlay-scroll-strategy");let Ze=(()=>{class Pe{constructor($){this.elementRef=$}}return Pe.\u0275fac=function($){return new($||Pe)(y.Y36(y.SBq))},Pe.\u0275dir=y.lG2({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Pe})(),vt=(()=>{class Pe{constructor($,oe,Ce,Ue,lt){this._overlay=$,this._dir=lt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=s.w0.EMPTY,this._attachSubscription=s.w0.EMPTY,this._detachSubscription=s.w0.EMPTY,this._positionSubscription=s.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new y.vpe,this.positionChange=new y.vpe,this.attach=new y.vpe,this.detach=new y.vpe,this.overlayKeydown=new y.vpe,this.overlayOutsideClick=new y.vpe,this._templatePortal=new l.UE(oe,Ce),this._scrollStrategyFactory=Ue,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,C.Ig)($)}get lockPosition(){return this._lockPosition}set lockPosition($){this._lockPosition=(0,C.Ig)($)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions($){this._flexibleDimensions=(0,C.Ig)($)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen($){this._growAfterOpen=(0,C.Ig)($)}get push(){return this._push}set push($){this._push=(0,C.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=we);const $=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=$.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=$.detachments().subscribe(()=>this.detach.emit()),$.keydownEvents().subscribe(oe=>{this.overlayKeydown.next(oe),oe.keyCode===V.hY&&!this.disableClose&&!(0,V.Vb)(oe)&&(oe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(oe=>{this.overlayOutsideClick.next(oe)})}_buildConfig(){const $=this._position=this.positionStrategy||this._createPositionStrategy(),oe=new ye({direction:this._dir,positionStrategy:$,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(oe.width=this.width),(this.height||0===this.height)&&(oe.height=this.height),(this.minWidth||0===this.minWidth)&&(oe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(oe.minHeight=this.minHeight),this.backdropClass&&(oe.backdropClass=this.backdropClass),this.panelClass&&(oe.panelClass=this.panelClass),oe}_updatePositionStrategy($){const oe=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(oe).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 Ze?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 E(Pe,q=!1){return(0,I.e)(($,oe)=>{let Ce=0;$.subscribe(new A.Q(oe,Ue=>{const lt=Pe(Ue,Ce++);(lt||q)&&oe.next(Ue),!lt&&oe.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 Pe.\u0275fac=function($){return new($||Pe)(y.Y36(Me),y.Y36(y.Rgc),y.Y36(y.s_b),y.Y36(z),y.Y36(M.Is,8))},Pe.\u0275dir=y.lG2({type:Pe,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:[y.TTD]}),Pe})();const Ne={provide:z,deps:[Me],useFactory:function Fe(Pe){return()=>Pe.scrollStrategies.reposition()}};let ce=(()=>{class Pe{}return Pe.\u0275fac=function($){return new($||Pe)},Pe.\u0275mod=y.oAB({type:Pe}),Pe.\u0275inj=y.cJS({providers:[Me,Ne],imports:[[M.vT,l.eL,e.Cl],e.Cl]}),Pe})()},925:(Ge,Q,m)=>{"use strict";m.d(Q,{t4:()=>C,ud:()=>o,sA:()=>ee,ht:()=>te,kV:()=>W,Oy:()=>ge,_i:()=>w,qK:()=>R,i$:()=>I,Mq:()=>P});var e=m(5e3),t=m(9808);let y;try{y="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(le){y=!1}let M,C=(()=>{class le{constructor(de){this._platformId=de,this.isBrowser=this._platformId?(0,t.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&&!y)&&"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 le.\u0275fac=function(de){return new(de||le)(e.LFG(e.Lbi))},le.\u0275prov=e.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),o=(()=>{class le{}return le.\u0275fac=function(de){return new(de||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({}),le})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R(){if(M)return M;if("object"!=typeof document||!document)return M=new Set(l),M;let le=document.createElement("input");return M=new Set(l.filter(re=>(le.setAttribute("type",re),le.type===re))),M}let s,A,E,V;function I(le){return function L(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>s=!0}))}finally{s=s||!1}return s}()?le:!!le.capture}function P(){if(null==E){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{const le=Element.prototype.scrollTo;E=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return E}function w(){if("object"!=typeof document||!document)return 0;if(null==A){const le=document.createElement("div"),re=le.style;le.dir="rtl",re.width="1px",re.overflow="auto",re.visibility="hidden",re.pointerEvents="none",re.position="absolute";const de=document.createElement("div"),se=de.style;se.width="2px",se.height="1px",le.appendChild(de),document.body.appendChild(le),A=0,0===le.scrollLeft&&(le.scrollLeft=1,A=0===le.scrollLeft?1:2),le.remove()}return A}function W(le){if(function j(){if(null==V){const le="undefined"!=typeof document?document.head:null;V=!(!le||!le.createShadowRoot&&!le.attachShadow)}return V}()){const re=le.getRootNode?le.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&re instanceof ShadowRoot)return re}return null}function te(){let le="undefined"!=typeof document&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const re=le.shadowRoot.activeElement;if(re===le)break;le=re}return le}function ee(le){return le.composedPath?le.composedPath()[0]:le.target}function ge(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ge,Q,m)=>{"use strict";m.d(Q,{en:()=>E,ig:()=>j,Pl:()=>te,C5:()=>L,u0:()=>w,eL:()=>ge,UE:()=>I});var e=m(5e3),t=m(9808);class s{attach(de){return this._attachedHost=de,de.attach(this)}detach(){let de=this._attachedHost;null!=de&&(this._attachedHost=null,de.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(de){this._attachedHost=de}}class L extends s{constructor(de,se,ye,v){super(),this.component=de,this.viewContainerRef=se,this.injector=ye,this.componentFactoryResolver=v}}class I extends s{constructor(de,se,ye){super(),this.templateRef=de,this.viewContainerRef=se,this.context=ye}get origin(){return this.templateRef.elementRef}attach(de,se=this.context){return this.context=se,super.attach(de)}detach(){return this.context=void 0,super.detach()}}class A extends s{constructor(de){super(),this.element=de instanceof e.SBq?de.nativeElement:de}}class E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(de){return de instanceof L?(this._attachedPortal=de,this.attachComponentPortal(de)):de instanceof I?(this._attachedPortal=de,this.attachTemplatePortal(de)):this.attachDomPortal&&de instanceof A?(this._attachedPortal=de,this.attachDomPortal(de)):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(de){this._disposeFn=de}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends E{constructor(de,se,ye,v,i){super(),this.outletElement=de,this._componentFactoryResolver=se,this._appRef=ye,this._defaultInjector=v,this.attachDomPortal=a=>{const p=a.element,u=this._document.createComment("dom-portal");p.parentNode.insertBefore(u,p),this.outletElement.appendChild(p),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(p,u)})},this._document=i}attachComponentPortal(de){const ye=(de.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(de.component);let v;return de.viewContainerRef?(v=de.viewContainerRef.createComponent(ye,de.viewContainerRef.length,de.injector||de.viewContainerRef.injector),this.setDisposeFn(()=>v.destroy())):(v=ye.create(de.injector||this._defaultInjector),this._appRef.attachView(v.hostView),this.setDisposeFn(()=>{this._appRef.detachView(v.hostView),v.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(v)),this._attachedPortal=de,v}attachTemplatePortal(de){let se=de.viewContainerRef,ye=se.createEmbeddedView(de.templateRef,de.context);return ye.rootNodes.forEach(v=>this.outletElement.appendChild(v)),ye.detectChanges(),this.setDisposeFn(()=>{let v=se.indexOf(ye);-1!==v&&se.remove(v)}),this._attachedPortal=de,ye}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(de){return de.hostView.rootNodes[0]}}let j=(()=>{class re extends I{constructor(se,ye){super(se,ye)}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e.Rgc),e.Y36(e.s_b))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),re})(),te=(()=>{class re extends E{constructor(se,ye,v){super(),this._componentFactoryResolver=se,this._viewContainerRef=ye,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=i=>{const a=i.element,p=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(p,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{p.parentNode&&p.parentNode.replaceChild(a,p)})},this._document=v}get portal(){return this._attachedPortal}set portal(se){this.hasAttached()&&!se&&!this._isInitialized||(this.hasAttached()&&super.detach(),se&&super.attach(se),this._attachedPortal=se)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(se){se.setAttachedHost(this);const ye=null!=se.viewContainerRef?se.viewContainerRef:this._viewContainerRef,i=(se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(se.component),a=ye.createComponent(i,ye.length,se.injector||ye.injector);return ye!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=se,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(se){se.setAttachedHost(this);const ye=this._viewContainerRef.createEmbeddedView(se.templateRef,se.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=se,this._attachedRef=ye,this.attached.emit(ye),ye}_getRootNode(){const se=this._viewContainerRef.element.nativeElement;return se.nodeType===se.ELEMENT_NODE?se:se.parentNode}}return re.\u0275fac=function(se){return new(se||re)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(t.K0))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),re})(),ge=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})()},5303:(Ge,Q,m)=>{"use strict";m.d(Q,{PQ:()=>p,ZD:()=>Z,mF:()=>a,Cl:()=>N,rL:()=>_});var e=m(3191),t=m(5e3),y=m(4408),C=m(727);const o={schedule(U){let ve=requestAnimationFrame,be=cancelAnimationFrame;const{delegate:Re}=o;Re&&(ve=Re.requestAnimationFrame,be=Re.cancelAnimationFrame);const ze=ve(Oe=>{be=void 0,U(Oe)});return new C.w0(()=>null==be?void 0:be(ze))},requestAnimationFrame(...U){const{delegate:ve}=o;return((null==ve?void 0:ve.requestAnimationFrame)||requestAnimationFrame)(...U)},cancelAnimationFrame(...U){const{delegate:ve}=o;return((null==ve?void 0:ve.cancelAnimationFrame)||cancelAnimationFrame)(...U)},delegate:void 0};var l=m(7565);new class R extends l.v{flush(ve){this._active=!0,this._scheduled=void 0;const{actions:be}=this;let Re,ze=-1;ve=ve||be.shift();const Oe=be.length;do{if(Re=ve.execute(ve.state,ve.delay))break}while(++ze0?super.requestAsyncId(ve,be,Re):(ve.actions.push(this),ve._scheduled||(ve._scheduled=o.requestAnimationFrame(()=>ve.flush(void 0))))}recycleAsyncId(ve,be,Re=0){if(null!=Re&&Re>0||null==Re&&this.delay>0)return super.recycleAsyncId(ve,be,Re);0===ve.actions.length&&(o.cancelAnimationFrame(be),ve._scheduled=void 0)}});var I=m(7579),A=m(9646),E=m(8306),P=m(4968),V=(m(3101),m(3601)),j=m(9300),W=m(2722),te=m(9808),ee=m(925),ge=m(226);let a=(()=>{class U{constructor(be,Re,ze){this._ngZone=be,this._platform=Re,this._scrolled=new I.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ze}register(be){this.scrollContainers.has(be)||this.scrollContainers.set(be,be.elementScrolled().subscribe(()=>this._scrolled.next(be)))}deregister(be){const Re=this.scrollContainers.get(be);Re&&(Re.unsubscribe(),this.scrollContainers.delete(be))}scrolled(be=20){return this._platform.isBrowser?new E.y(Re=>{this._globalSubscription||this._addGlobalListener();const ze=be>0?this._scrolled.pipe((0,V.e)(be)).subscribe(Re):this._scrolled.subscribe(Re);return this._scrolledCount++,()=>{ze.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,A.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((be,Re)=>this.deregister(Re)),this._scrolled.complete()}ancestorScrolled(be,Re){const ze=this.getAncestorScrollContainers(be);return this.scrolled(Re).pipe((0,j.h)(Oe=>!Oe||ze.indexOf(Oe)>-1))}getAncestorScrollContainers(be){const Re=[];return this.scrollContainers.forEach((ze,Oe)=>{this._scrollableContainsElement(Oe,be)&&Re.push(Oe)}),Re}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(be,Re){let ze=(0,e.fI)(Re),Oe=be.getElementRef().nativeElement;do{if(ze==Oe)return!0}while(ze=ze.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const be=this._getWindow();return(0,P.R)(be.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return U.\u0275fac=function(be){return new(be||U)(t.LFG(t.R0b),t.LFG(ee.t4),t.LFG(te.K0,8))},U.\u0275prov=t.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),p=(()=>{class U{constructor(be,Re,ze,Oe){this.elementRef=be,this.scrollDispatcher=Re,this.ngZone=ze,this.dir=Oe,this._destroyed=new I.x,this._elementScrolled=new E.y(K=>this.ngZone.runOutsideAngular(()=>(0,P.R)(this.elementRef.nativeElement,"scroll").pipe((0,W.R)(this._destroyed)).subscribe(K)))}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(be){const Re=this.elementRef.nativeElement,ze=this.dir&&"rtl"==this.dir.value;null==be.left&&(be.left=ze?be.end:be.start),null==be.right&&(be.right=ze?be.start:be.end),null!=be.bottom&&(be.top=Re.scrollHeight-Re.clientHeight-be.bottom),ze&&0!=(0,ee._i)()?(null!=be.left&&(be.right=Re.scrollWidth-Re.clientWidth-be.left),2==(0,ee._i)()?be.left=be.right:1==(0,ee._i)()&&(be.left=be.right?-be.right:be.right)):null!=be.right&&(be.left=Re.scrollWidth-Re.clientWidth-be.right),this._applyScrollToOptions(be)}_applyScrollToOptions(be){const Re=this.elementRef.nativeElement;(0,ee.Mq)()?Re.scrollTo(be):(null!=be.top&&(Re.scrollTop=be.top),null!=be.left&&(Re.scrollLeft=be.left))}measureScrollOffset(be){const Re="left",Oe=this.elementRef.nativeElement;if("top"==be)return Oe.scrollTop;if("bottom"==be)return Oe.scrollHeight-Oe.clientHeight-Oe.scrollTop;const K=this.dir&&"rtl"==this.dir.value;return"start"==be?be=K?"right":Re:"end"==be&&(be=K?Re:"right"),K&&2==(0,ee._i)()?be==Re?Oe.scrollWidth-Oe.clientWidth-Oe.scrollLeft:Oe.scrollLeft:K&&1==(0,ee._i)()?be==Re?Oe.scrollLeft+Oe.scrollWidth-Oe.clientWidth:-Oe.scrollLeft:be==Re?Oe.scrollLeft:Oe.scrollWidth-Oe.clientWidth-Oe.scrollLeft}}return U.\u0275fac=function(be){return new(be||U)(t.Y36(t.SBq),t.Y36(a),t.Y36(t.R0b),t.Y36(ge.Is,8))},U.\u0275dir=t.lG2({type:U,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),U})(),_=(()=>{class U{constructor(be,Re,ze){this._platform=be,this._change=new I.x,this._changeListener=Oe=>{this._change.next(Oe)},this._document=ze,Re.runOutsideAngular(()=>{if(be.isBrowser){const Oe=this._getWindow();Oe.addEventListener("resize",this._changeListener),Oe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const be=this._getWindow();be.removeEventListener("resize",this._changeListener),be.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const be={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),be}getViewportRect(){const be=this.getViewportScrollPosition(),{width:Re,height:ze}=this.getViewportSize();return{top:be.top,left:be.left,bottom:be.top+ze,right:be.left+Re,height:ze,width:Re}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const be=this._document,Re=this._getWindow(),ze=be.documentElement,Oe=ze.getBoundingClientRect();return{top:-Oe.top||be.body.scrollTop||Re.scrollY||ze.scrollTop||0,left:-Oe.left||be.body.scrollLeft||Re.scrollX||ze.scrollLeft||0}}change(be=20){return be>0?this._change.pipe((0,V.e)(be)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const be=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:be.innerWidth,height:be.innerHeight}:{width:0,height:0}}}return U.\u0275fac=function(be){return new(be||U)(t.LFG(ee.t4),t.LFG(t.R0b),t.LFG(te.K0,8))},U.\u0275prov=t.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Z=(()=>{class U{}return U.\u0275fac=function(be){return new(be||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({}),U})(),N=(()=>{class U{}return U.\u0275fac=function(be){return new(be||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({imports:[[ge.vT,ee.ud,Z],ge.vT,Z]}),U})()},1555:(Ge,Q,m)=>{"use strict";m.d(Q,{be:()=>ee,KL:()=>P,u6:()=>w,B8:()=>ge,U5:()=>de,st:()=>le,po:()=>re,gx:()=>te});var e=m(5664),t=m(3191),y=m(1159),C=m(9808),o=m(5e3),M=m(925),l=m(7579),R=m(9646),s=m(8675),L=m(2722),I=m(226);function A(se,ye){1&se&&o.Hsn(0)}const E=["*"];let P=(()=>{class se{constructor(v){this._elementRef=v}focus(){this._elementRef.nativeElement.focus()}}return se.\u0275fac=function(v){return new(v||se)(o.Y36(o.SBq))},se.\u0275dir=o.lG2({type:se,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),se})(),w=(()=>{class se{constructor(v){this.template=v}}return se.\u0275fac=function(v){return new(v||se)(o.Y36(o.Rgc))},se.\u0275dir=o.lG2({type:se,selectors:[["","cdkStepLabel",""]]}),se})(),V=0;const te=new o.OlP("STEPPER_GLOBAL_OPTIONS");let ee=(()=>{class se{constructor(v,i){this._stepper=v,this.interacted=!1,this.interactedStream=new o.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(v){this._editable=(0,t.Ig)(v)}get optional(){return this._optional}set optional(v){this._optional=(0,t.Ig)(v)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(v){this._completedOverride=(0,t.Ig)(v)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(v){this._customError=(0,t.Ig)(v)}_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 v;return null!==(v=this._stepperOptions.showError)&&void 0!==v?v:null!=this._customError}}return se.\u0275fac=function(v){return new(v||se)(o.Y36((0,o.Gpc)(()=>ge)),o.Y36(te,8))},se.\u0275cmp=o.Xpm({type:se,selectors:[["cdk-step"]],contentQueries:function(v,i,a){if(1&v&&o.Suo(a,w,5),2&v){let p;o.iGM(p=o.CRH())&&(i.stepLabel=p.first)}},viewQuery:function(v,i){if(1&v&&o.Gf(o.Rgc,7),2&v){let a;o.iGM(a=o.CRH())&&(i.content=a.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:[o.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(v,i){1&v&&(o.F$t(),o.YNc(0,A,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),se})(),ge=(()=>{class se{constructor(v,i,a,p){this._dir=v,this._changeDetectorRef=i,this._elementRef=a,this._destroyed=new l.x,this.steps=new o.n_E,this._sortedHeaders=new o.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new o.vpe,this._orientation="horizontal",this._groupId=V++}get linear(){return this._linear}set linear(v){this._linear=(0,t.Ig)(v)}get selectedIndex(){return this._selectedIndex}set selectedIndex(v){var i;const a=(0,t.su)(v);this.steps&&this._steps?(this._isValidIndex(v),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==a&&!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(v)):this._selectedIndex=a}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(v){this.selectedIndex=v&&this.steps?this.steps.toArray().indexOf(v):-1}get orientation(){return this._orientation}set orientation(v){this._orientation=v,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===v)}ngAfterContentInit(){this._steps.changes.pipe((0,s.O)(this._steps),(0,L.R)(this._destroyed)).subscribe(v=>{this.steps.reset(v.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,s.O)(this._stepHeader),(0,L.R)(this._destroyed)).subscribe(v=>{this._sortedHeaders.reset(v.toArray().sort((i,a)=>i._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new e.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,s.O)(this._layoutDirection()),(0,L.R)(this._destroyed)).subscribe(v=>this._keyManager.withHorizontalOrientation(v)),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(v=>v.reset()),this._stateChanged()}_getStepLabelId(v){return`cdk-step-label-${this._groupId}-${v}`}_getStepContentId(v){return`cdk-step-content-${this._groupId}-${v}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(v){const i=v-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(v,i="number"){const a=this.steps.toArray()[v],p=this._isCurrentStep(v);return a._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(a,p):this._getGuidelineLogic(a,p,i)}_getDefaultIndicatorLogic(v,i){return v._showError()&&v.hasError&&!i?"error":!v.completed||i?"number":v.editable?"edit":"done"}_getGuidelineLogic(v,i,a="number"){return v._showError()&&v.hasError&&!i?"error":v.completed&&!i?"done":v.completed&&i?a:v.editable&&i?"edit":a}_isCurrentStep(v){return this._selectedIndex===v}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(v){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:v,previouslySelectedIndex:this._selectedIndex,selectedStep:i[v],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(v):this._keyManager.updateActiveItem(v),this._selectedIndex=v,this._stateChanged()}_onKeydown(v){const i=(0,y.Vb)(v),a=v.keyCode,p=this._keyManager;null==p.activeItemIndex||i||a!==y.L_&&a!==y.K5?p.onKeydown(v):(this.selectedIndex=p.activeItemIndex,v.preventDefault())}_anyControlsInvalidOrPending(v){return!!(this._linear&&v>=0)&&this.steps.toArray().slice(0,v).some(i=>{const a=i.stepControl;return(a?a.invalid||a.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const v=this._elementRef.nativeElement,i=(0,M.ht)();return v===i||v.contains(i)}_isValidIndex(v){return v>-1&&(!this.steps||v{class se{constructor(v){this._stepper=v,this.type="submit"}}return se.\u0275fac=function(v){return new(v||se)(o.Y36(ge))},se.\u0275dir=o.lG2({type:se,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(v,i){1&v&&o.NdJ("click",function(){return i._stepper.next()}),2&v&&o.Ikx("type",i.type)},inputs:{type:"type"}}),se})(),re=(()=>{class se{constructor(v){this._stepper=v,this.type="button"}}return se.\u0275fac=function(v){return new(v||se)(o.Y36(ge))},se.\u0275dir=o.lG2({type:se,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(v,i){1&v&&o.NdJ("click",function(){return i._stepper.previous()}),2&v&&o.Ikx("type",i.type)},inputs:{type:"type"}}),se})(),de=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275mod=o.oAB({type:se}),se.\u0275inj=o.cJS({imports:[[I.vT]]}),se})()},8258:(Ge,Q,m)=>{"use strict";m.d(Q,{HI:()=>w,Xx:()=>i,_0:()=>de,nZ:()=>D,Hs:()=>se,rO:()=>W,cu:()=>V,XJ:()=>p,Ud:()=>u,VY:()=>P});var e=m(449),t=m(5191),y=m(7579),C=m(1135),o=m(9646),M=m(5698),l=m(9300),R=m(2722),s=m(5e3),L=m(3191),I=m(226);class P extends class A{constructor(){this.expansionModel=new e.Ov(!0)}toggle(x){this.expansionModel.toggle(this._trackByValue(x))}expand(x){this.expansionModel.select(this._trackByValue(x))}collapse(x){this.expansionModel.deselect(this._trackByValue(x))}isExpanded(x){return this.expansionModel.isSelected(this._trackByValue(x))}toggleDescendants(x){this.expansionModel.isSelected(this._trackByValue(x))?this.collapseDescendants(x):this.expandDescendants(x)}collapseAll(){this.expansionModel.clear()}expandDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.select(...r.map(b=>this._trackByValue(b)))}collapseDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.deselect(...r.map(b=>this._trackByValue(b)))}_trackByValue(x){return this.trackBy?this.trackBy(x):x}}{constructor(x,r){super(),this.getChildren=x,this.options=r,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const x=this.dataNodes.reduce((r,b)=>[...r,...this.getDescendants(b),b],[]);this.expansionModel.select(...x.map(r=>this._trackByValue(r)))}getDescendants(x){const r=[];return this._getDescendants(r,x),r.splice(1)}_getDescendants(x,r){x.push(r);const b=this.getChildren(r);Array.isArray(b)?b.forEach(Z=>this._getDescendants(x,Z)):(0,t.b)(b)&&b.pipe((0,M.q)(1),(0,l.h)(Boolean)).subscribe(Z=>{for(const N of Z)this._getDescendants(x,N)})}}const w=new s.OlP("CDK_TREE_NODE_OUTLET_NODE");let V=(()=>{class O{constructor(r,b){this.viewContainer=r,this._node=b}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(s.s_b),s.Y36(w,8))},O.\u0275dir=s.lG2({type:O,selectors:[["","cdkTreeNodeOutlet",""]]}),O})();class j{constructor(x){this.$implicit=x}}let W=(()=>{class O{constructor(r){this.template=r}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(s.Rgc))},O.\u0275dir=s.lG2({type:O,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),O})(),de=(()=>{class O{constructor(r,b){this._differs=r,this._changeDetectorRef=b,this._onDestroy=new y.x,this._levels=new Map,this.viewChange=new C.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(r){this._dataSource!==r&&this._switchDataSource(r)}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 r=this._nodeDefs.filter(b=>!b.when);this._defaultNodeDef=r[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(r){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),r||this._nodeOutlet.viewContainer.clear(),this._dataSource=r,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let r;(0,e.Z9)(this._dataSource)?r=this._dataSource.connect(this):(0,t.b)(this._dataSource)?r=this._dataSource:Array.isArray(this._dataSource)&&(r=(0,o.of)(this._dataSource)),r&&(this._dataSubscription=r.pipe((0,R.R)(this._onDestroy)).subscribe(b=>this.renderNodeChanges(b)))}renderNodeChanges(r,b=this._dataDiffer,Z=this._nodeOutlet.viewContainer,N){const U=b.diff(r);!U||(U.forEachOperation((ve,be,Re)=>{if(null==ve.previousIndex)this.insertNode(r[Re],Re,Z,N);else if(null==Re)Z.remove(be),this._levels.delete(ve.item);else{const ze=Z.get(be);Z.move(ze,Re)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(r,b){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(N=>N.when&&N.when(b,r))||this._defaultNodeDef}insertNode(r,b,Z,N){const U=this._getNodeDef(r,b),ve=new j(r);ve.level=this.treeControl.getLevel?this.treeControl.getLevel(r):void 0!==N&&this._levels.has(N)?this._levels.get(N)+1:0,this._levels.set(r,ve.level),(Z||this._nodeOutlet.viewContainer).createEmbeddedView(U.template,ve,b),se.mostRecentTreeNode&&(se.mostRecentTreeNode.data=r)}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(s.ZZ4),s.Y36(s.sBO))},O.\u0275cmp=s.Xpm({type:O,selectors:[["cdk-tree"]],contentQueries:function(r,b,Z){if(1&r&&s.Suo(Z,W,5),2&r){let N;s.iGM(N=s.CRH())&&(b._nodeDefs=N)}},viewQuery:function(r,b){if(1&r&&s.Gf(V,7),2&r){let Z;s.iGM(Z=s.CRH())&&(b._nodeOutlet=Z.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,b){1&r&&s.GkF(0,0)},directives:[V],encapsulation:2}),O})(),se=(()=>{class O{constructor(r,b){this._elementRef=r,this._tree=b,this._destroyed=new y.x,this._dataChanges=new y.x,O.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(r){this._elementRef.nativeElement.setAttribute("role",r)}get data(){return this._data}set data(r){r!==this._data&&(this._data=r,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 ye(O){let x=O.parentElement;for(;x&&!v(x);)x=x.parentElement;return x?x.classList.contains("cdk-nested-tree-node")?(0,L.su)(x.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(r){return new(r||O)(s.Y36(s.SBq),s.Y36(de))},O.\u0275dir=s.lG2({type:O,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,b){2&r&&s.uIk("aria-expanded",b.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),O})();function v(O){const x=O.classList;return!(!(null==x?void 0:x.contains("cdk-nested-tree-node"))&&!(null==x?void 0:x.contains("cdk-tree")))}let i=(()=>{class O extends se{constructor(r,b,Z){super(r,b),this._differs=Z}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const r=this._tree.treeControl.getChildren(this.data);Array.isArray(r)?this.updateChildrenNodes(r):(0,t.b)(r)&&r.pipe((0,R.R)(this._destroyed)).subscribe(b=>this.updateChildrenNodes(b)),this.nodeOutlet.changes.pipe((0,R.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(r){const b=this._getNodeOutlet();r&&(this._children=r),b&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,b.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const r=this._getNodeOutlet();r&&(r.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const r=this.nodeOutlet;return r&&r.find(b=>!b._node||b._node===this)}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(s.SBq),s.Y36(de),s.Y36(s.ZZ4))},O.\u0275dir=s.lG2({type:O,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,b,Z){if(1&r&&s.Suo(Z,V,5),2&r){let N;s.iGM(N=s.CRH())&&(b.nodeOutlet=N)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[s._Bn([{provide:se,useExisting:O},{provide:w,useExisting:O}]),s.qOj]}),O})();const a=/([A-Za-z%]+)$/;let p=(()=>{class O{constructor(r,b,Z,N){this._treeNode=r,this._tree=b,this._element=Z,this._dir=N,this._destroyed=new y.x,this.indentUnits="px",this._indent=40,this._setPadding(),N&&N.change.pipe((0,R.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),r._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(r){this._setLevelInput(r)}get indent(){return this._indent}set indent(r){this._setIndentInput(r)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const r=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,b=null==this._level?r:this._level;return"number"==typeof b?`${b*this._indent}${this.indentUnits}`:null}_setPadding(r=!1){const b=this._paddingIndent();if(b!==this._currentPadding||r){const Z=this._element.nativeElement,N=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",U="paddingLeft"===N?"paddingRight":"paddingLeft";Z.style[N]=b||"",Z.style[U]="",this._currentPadding=b}}_setLevelInput(r){this._level=(0,L.su)(r,null),this._setPadding()}_setIndentInput(r){let b=r,Z="px";if("string"==typeof r){const N=r.split(a);b=N[0],Z=N[1]||Z}this.indentUnits=Z,this._indent=(0,L.su)(b),this._setPadding()}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(se),s.Y36(de),s.Y36(s.SBq),s.Y36(I.Is,8))},O.\u0275dir=s.lG2({type:O,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),O})(),u=(()=>{class O{constructor(r,b){this._tree=r,this._treeNode=b,this._recursive=!1}get recursive(){return this._recursive}set recursive(r){this._recursive=(0,L.Ig)(r)}_toggle(r){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),r.stopPropagation()}}return O.\u0275fac=function(r){return new(r||O)(s.Y36(de),s.Y36(se))},O.\u0275dir=s.lG2({type:O,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,b){1&r&&s.NdJ("click",function(N){return b._toggle(N)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),O})(),D=(()=>{class O{}return O.\u0275fac=function(r){return new(r||O)},O.\u0275mod=s.oAB({type:O}),O.\u0275inj=s.cJS({}),O})()},9808:(Ge,Q,m)=>{"use strict";m.d(Q,{mr:()=>te,Ov:()=>xr,ez:()=>wa,K0:()=>l,uU:()=>Ga,JJ:()=>Ba,Do:()=>ge,Ts:()=>Kn,Nd:()=>Qn,V_:()=>L,Ye:()=>le,S$:()=>j,i8:()=>hs,mk:()=>qi,sg:()=>gt,O5:()=>Ci,PC:()=>dn,RF:()=>Ln,n9:()=>_n,ED:()=>kn,tP:()=>Lr,b0:()=>ee,lw:()=>R,OU:()=>ga,rS:()=>pa,gd:()=>ma,EM:()=>ra,JF:()=>ja,NF:()=>ha,PM:()=>pr,w_:()=>M,bD:()=>Nr,q:()=>y,Mx:()=>Si,HT:()=>o});var e=m(5e3);let t=null;function y(){return t}function o(Xe){t||(t=Xe)}class M{}const l=new e.OlP("DocumentToken");let R=(()=>{class Xe{historyGo(J){throw new Error("Not implemented")}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function s(){return(0,e.LFG)(I)}()},providedIn:"platform"}),Xe})();const L=new e.OlP("Location Initialized");let I=(()=>{class Xe extends R{constructor(J){super(),this._doc=J,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(J){const ne=y().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",J,!1),()=>ne.removeEventListener("popstate",J)}onHashChange(J){const ne=y().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",J,!1),()=>ne.removeEventListener("hashchange",J)}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(J){this.location.pathname=J}pushState(J,ne,Qe){A()?this._history.pushState(J,ne,Qe):this.location.hash=Qe}replaceState(J,ne,Qe){A()?this._history.replaceState(J,ne,Qe):this.location.hash=Qe}forward(){this._history.forward()}back(){this._history.back()}historyGo(J=0){this._history.go(J)}getState(){return this._history.state}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(l))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function E(){return new I((0,e.LFG)(l))}()},providedIn:"platform"}),Xe})();function A(){return!!window.history.pushState}function P(Xe,me){if(0==Xe.length)return me;if(0==me.length)return Xe;let J=0;return Xe.endsWith("/")&&J++,me.startsWith("/")&&J++,2==J?Xe+me.substring(1):1==J?Xe+me:Xe+"/"+me}function w(Xe){const me=Xe.match(/#|\?|$/),J=me&&me.index||Xe.length;return Xe.slice(0,J-("/"===Xe[J-1]?1:0))+Xe.slice(J)}function V(Xe){return Xe&&"?"!==Xe[0]?"?"+Xe:Xe}let j=(()=>{class Xe{historyGo(J){throw new Error("Not implemented")}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function W(Xe){const me=(0,e.LFG)(l).location;return new ee((0,e.LFG)(R),me&&me.origin||"")}()},providedIn:"root"}),Xe})();const te=new e.OlP("appBaseHref");let ee=(()=>{class Xe extends j{constructor(J,ne){if(super(),this._platformLocation=J,this._removeListenerFns=[],null==ne&&(ne=this._platformLocation.getBaseHrefFromDOM()),null==ne)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=ne}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}prepareExternalUrl(J){return P(this._baseHref,J)}path(J=!1){const ne=this._platformLocation.pathname+V(this._platformLocation.search),Qe=this._platformLocation.hash;return Qe&&J?`${ne}${Qe}`:ne}pushState(J,ne,Qe,Wt){const mi=this.prepareExternalUrl(Qe+V(Wt));this._platformLocation.pushState(J,ne,mi)}replaceState(J,ne,Qe,Wt){const mi=this.prepareExternalUrl(Qe+V(Wt));this._platformLocation.replaceState(J,ne,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,J)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(R),e.LFG(te,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),ge=(()=>{class Xe extends j{constructor(J,ne){super(),this._platformLocation=J,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}path(J=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(J){const ne=P(this._baseHref,J);return ne.length>0?"#"+ne:ne}pushState(J,ne,Qe,Wt){let mi=this.prepareExternalUrl(Qe+V(Wt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.pushState(J,ne,mi)}replaceState(J,ne,Qe,Wt){let mi=this.prepareExternalUrl(Qe+V(Wt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.replaceState(J,ne,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,J)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(R),e.LFG(te,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),le=(()=>{class Xe{constructor(J,ne){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=J;const Qe=this._platformStrategy.getBaseHref();this._platformLocation=ne,this._baseHref=w(se(Qe)),this._platformStrategy.onPopState(Wt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Wt.state,type:Wt.type})})}path(J=!1){return this.normalize(this._platformStrategy.path(J))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(J,ne=""){return this.path()==this.normalize(J+V(ne))}normalize(J){return Xe.stripTrailingSlash(function de(Xe,me){return Xe&&me.startsWith(Xe)?me.substring(Xe.length):me}(this._baseHref,se(J)))}prepareExternalUrl(J){return J&&"/"!==J[0]&&(J="/"+J),this._platformStrategy.prepareExternalUrl(J)}go(J,ne="",Qe=null){this._platformStrategy.pushState(Qe,"",J,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+V(ne)),Qe)}replaceState(J,ne="",Qe=null){this._platformStrategy.replaceState(Qe,"",J,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+V(ne)),Qe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformStrategy).historyGo)||void 0===Qe||Qe.call(ne,J)}onUrlChange(J){this._urlChangeListeners.push(J),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)}))}_notifyUrlChangeListeners(J="",ne){this._urlChangeListeners.forEach(Qe=>Qe(J,ne))}subscribe(J,ne,Qe){return this._subject.subscribe({next:J,error:ne,complete:Qe})}}return Xe.normalizeQueryParams=V,Xe.joinWithSlash=P,Xe.stripTrailingSlash=w,Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(j),e.LFG(R))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function re(){return new le((0,e.LFG)(j),(0,e.LFG)(R))}()},providedIn:"root"}),Xe})();function se(Xe){return Xe.replace(/\/index.html$/,"")}var v=(()=>((v=v||{})[v.Decimal=0]="Decimal",v[v.Percent=1]="Percent",v[v.Currency=2]="Currency",v[v.Scientific=3]="Scientific",v))(),i=(()=>((i=i||{})[i.Zero=0]="Zero",i[i.One=1]="One",i[i.Two=2]="Two",i[i.Few=3]="Few",i[i.Many=4]="Many",i[i.Other=5]="Other",i))(),a=(()=>((a=a||{})[a.Format=0]="Format",a[a.Standalone=1]="Standalone",a))(),p=(()=>((p=p||{})[p.Narrow=0]="Narrow",p[p.Abbreviated=1]="Abbreviated",p[p.Wide=2]="Wide",p[p.Short=3]="Short",p))(),u=(()=>((u=u||{})[u.Short=0]="Short",u[u.Medium=1]="Medium",u[u.Long=2]="Long",u[u.Full=3]="Full",u))(),_=(()=>((_=_||{})[_.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 ve(Xe,me){return Le((0,e.cg1)(Xe)[e.wAp.DateFormat],me)}function be(Xe,me){return Le((0,e.cg1)(Xe)[e.wAp.TimeFormat],me)}function Re(Xe,me){return Le((0,e.cg1)(Xe)[e.wAp.DateTimeFormat],me)}function ze(Xe,me){const J=(0,e.cg1)(Xe),ne=J[e.wAp.NumberSymbols][me];if(void 0===ne){if(me===_.CurrencyDecimal)return J[e.wAp.NumberSymbols][_.Decimal];if(me===_.CurrencyGroup)return J[e.wAp.NumberSymbols][_.Group]}return ne}const Ze=e.kL8;function vt(Xe){if(!Xe[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Xe[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Le(Xe,me){for(let J=me;J>-1;J--)if(void 0!==Xe[J])return Xe[J];throw new Error("Locale data API: locale data undefined")}function Pe(Xe){const[me,J]=Xe.split(":");return{hours:+me,minutes:+J}}const Ce=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ue={},lt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var nt=(()=>((nt=nt||{})[nt.Short=0]="Short",nt[nt.ShortGMT=1]="ShortGMT",nt[nt.Long=2]="Long",nt[nt.Extended=3]="Extended",nt))(),ft=(()=>((ft=ft||{})[ft.FullYear=0]="FullYear",ft[ft.Month=1]="Month",ft[ft.Date=2]="Date",ft[ft.Hours=3]="Hours",ft[ft.Minutes=4]="Minutes",ft[ft.Seconds=5]="Seconds",ft[ft.FractionalSeconds=6]="FractionalSeconds",ft[ft.Day=7]="Day",ft))(),it=(()=>((it=it||{})[it.DayPeriods=0]="DayPeriods",it[it.Days=1]="Days",it[it.Months=2]="Months",it[it.Eras=3]="Eras",it))();function rt(Xe,me,J,ne){let Qe=function Be(Xe){if(st(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[Qe,Wt=1,mi=1]=Xe.split("-").map(Ct=>+Ct);return Mt(Qe,Wt-1,mi)}const J=parseFloat(Xe);if(!isNaN(Xe-J))return new Date(J);let ne;if(ne=Xe.match(Ce))return function at(Xe){const me=new Date(0);let J=0,ne=0;const Qe=Xe[8]?me.setUTCFullYear:me.setFullYear,Wt=Xe[8]?me.setUTCHours:me.setHours;Xe[9]&&(J=Number(Xe[9]+Xe[10]),ne=Number(Xe[9]+Xe[11])),Qe.call(me,Number(Xe[1]),Number(Xe[2])-1,Number(Xe[3]));const mi=Number(Xe[4]||0)-J,Ct=Number(Xe[5]||0)-ne,ti=Number(Xe[6]||0),bt=Math.floor(1e3*parseFloat("0."+(Xe[7]||0)));return Wt.call(me,mi,Ct,ti,bt),me}(ne)}const me=new Date(Xe);if(!st(me))throw new Error(`Unable to convert "${Xe}" into a date`);return me}(Xe);me=Zt(J,me)||me;let Ct,mi=[];for(;me;){if(Ct=lt.exec(me),!Ct){mi.push(me);break}{mi=mi.concat(Ct.slice(1));const Yt=mi.pop();if(!Yt)break;me=Yt}}let ti=Qe.getTimezoneOffset();ne&&(ti=Jt(ne,ti),Qe=function ke(Xe,me,J){const ne=J?-1:1,Qe=Xe.getTimezoneOffset();return function ct(Xe,me){return(Xe=new Date(Xe.getTime())).setMinutes(Xe.getMinutes()+me),Xe}(Xe,ne*(Jt(me,Qe)-Qe))}(Qe,ne,!0));let bt="";return mi.forEach(Yt=>{const xi=function Nt(Xe){if($t[Xe])return $t[Xe];let me;switch(Xe){case"G":case"GG":case"GGG":me=ki(it.Eras,p.Abbreviated);break;case"GGGG":me=ki(it.Eras,p.Wide);break;case"GGGGG":me=ki(it.Eras,p.Narrow);break;case"y":me=jt(ft.FullYear,1,0,!1,!0);break;case"yy":me=jt(ft.FullYear,2,0,!0,!0);break;case"yyy":me=jt(ft.FullYear,3,0,!1,!0);break;case"yyyy":me=jt(ft.FullYear,4,0,!1,!0);break;case"Y":me=et(1);break;case"YY":me=et(2,!0);break;case"YYY":me=et(3);break;case"YYYY":me=et(4);break;case"M":case"L":me=jt(ft.Month,1,1);break;case"MM":case"LL":me=jt(ft.Month,2,1);break;case"MMM":me=ki(it.Months,p.Abbreviated);break;case"MMMM":me=ki(it.Months,p.Wide);break;case"MMMMM":me=ki(it.Months,p.Narrow);break;case"LLL":me=ki(it.Months,p.Abbreviated,a.Standalone);break;case"LLLL":me=ki(it.Months,p.Wide,a.Standalone);break;case"LLLLL":me=ki(it.Months,p.Narrow,a.Standalone);break;case"w":me=De(1);break;case"ww":me=De(2);break;case"W":me=De(1,!0);break;case"d":me=jt(ft.Date,1);break;case"dd":me=jt(ft.Date,2);break;case"c":case"cc":me=jt(ft.Day,1);break;case"ccc":me=ki(it.Days,p.Abbreviated,a.Standalone);break;case"cccc":me=ki(it.Days,p.Wide,a.Standalone);break;case"ccccc":me=ki(it.Days,p.Narrow,a.Standalone);break;case"cccccc":me=ki(it.Days,p.Short,a.Standalone);break;case"E":case"EE":case"EEE":me=ki(it.Days,p.Abbreviated);break;case"EEEE":me=ki(it.Days,p.Wide);break;case"EEEEE":me=ki(it.Days,p.Narrow);break;case"EEEEEE":me=ki(it.Days,p.Short);break;case"a":case"aa":case"aaa":me=ki(it.DayPeriods,p.Abbreviated);break;case"aaaa":me=ki(it.DayPeriods,p.Wide);break;case"aaaaa":me=ki(it.DayPeriods,p.Narrow);break;case"b":case"bb":case"bbb":me=ki(it.DayPeriods,p.Abbreviated,a.Standalone,!0);break;case"bbbb":me=ki(it.DayPeriods,p.Wide,a.Standalone,!0);break;case"bbbbb":me=ki(it.DayPeriods,p.Narrow,a.Standalone,!0);break;case"B":case"BB":case"BBB":me=ki(it.DayPeriods,p.Abbreviated,a.Format,!0);break;case"BBBB":me=ki(it.DayPeriods,p.Wide,a.Format,!0);break;case"BBBBB":me=ki(it.DayPeriods,p.Narrow,a.Format,!0);break;case"h":me=jt(ft.Hours,1,-12);break;case"hh":me=jt(ft.Hours,2,-12);break;case"H":me=jt(ft.Hours,1);break;case"HH":me=jt(ft.Hours,2);break;case"m":me=jt(ft.Minutes,1);break;case"mm":me=jt(ft.Minutes,2);break;case"s":me=jt(ft.Seconds,1);break;case"ss":me=jt(ft.Seconds,2);break;case"S":me=jt(ft.FractionalSeconds,1);break;case"SS":me=jt(ft.FractionalSeconds,2);break;case"SSS":me=jt(ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":me=hi(nt.Short);break;case"ZZZZZ":me=hi(nt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":me=hi(nt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":me=hi(nt.Long);break;default:return null}return $t[Xe]=me,me}(Yt);bt+=xi?xi(Qe,J,ti):"''"===Yt?"'":Yt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bt}function Mt(Xe,me,J){const ne=new Date(0);return ne.setFullYear(Xe,me,J),ne.setHours(0,0,0),ne}function Zt(Xe,me){const J=function O(Xe){return(0,e.cg1)(Xe)[e.wAp.LocaleId]}(Xe);if(Ue[J]=Ue[J]||{},Ue[J][me])return Ue[J][me];let ne="";switch(me){case"shortDate":ne=ve(Xe,u.Short);break;case"mediumDate":ne=ve(Xe,u.Medium);break;case"longDate":ne=ve(Xe,u.Long);break;case"fullDate":ne=ve(Xe,u.Full);break;case"shortTime":ne=be(Xe,u.Short);break;case"mediumTime":ne=be(Xe,u.Medium);break;case"longTime":ne=be(Xe,u.Long);break;case"fullTime":ne=be(Xe,u.Full);break;case"short":const Qe=Zt(Xe,"shortTime"),Wt=Zt(Xe,"shortDate");ne=Ft(Re(Xe,u.Short),[Qe,Wt]);break;case"medium":const mi=Zt(Xe,"mediumTime"),Ct=Zt(Xe,"mediumDate");ne=Ft(Re(Xe,u.Medium),[mi,Ct]);break;case"long":const ti=Zt(Xe,"longTime"),bt=Zt(Xe,"longDate");ne=Ft(Re(Xe,u.Long),[ti,bt]);break;case"full":const Yt=Zt(Xe,"fullTime"),xi=Zt(Xe,"fullDate");ne=Ft(Re(Xe,u.Full),[Yt,xi])}return ne&&(Ue[J][me]=ne),ne}function Ft(Xe,me){return me&&(Xe=Xe.replace(/\{([^}]+)}/g,function(J,ne){return null!=me&&ne in me?me[ne]:J})),Xe}function Vt(Xe,me,J="-",ne,Qe){let Wt="";(Xe<0||Qe&&Xe<=0)&&(Qe?Xe=1-Xe:(Xe=-Xe,Wt=J));let mi=String(Xe);for(;mi.length0||Ct>-J)&&(Ct+=J),Xe===ft.Hours)0===Ct&&-12===J&&(Ct=12);else if(Xe===ft.FractionalSeconds)return function Ii(Xe,me){return Vt(Xe,3).substr(0,me)}(Ct,me);const ti=ze(mi,_.MinusSign);return Vt(Ct,me,ti,ne,Qe)}}function ki(Xe,me,J=a.Format,ne=!1){return function(Qe,Wt){return function ai(Xe,me,J,ne,Qe,Wt){switch(J){case it.Months:return function b(Xe,me,J){const ne=(0,e.cg1)(Xe),Wt=Le([ne[e.wAp.MonthsFormat],ne[e.wAp.MonthsStandalone]],me);return Le(Wt,J)}(me,Qe,ne)[Xe.getMonth()];case it.Days:return function r(Xe,me,J){const ne=(0,e.cg1)(Xe),Wt=Le([ne[e.wAp.DaysFormat],ne[e.wAp.DaysStandalone]],me);return Le(Wt,J)}(me,Qe,ne)[Xe.getDay()];case it.DayPeriods:const mi=Xe.getHours(),Ct=Xe.getMinutes();if(Wt){const bt=function Fe(Xe){const me=(0,e.cg1)(Xe);return vt(me),(me[e.wAp.ExtraData][2]||[]).map(ne=>"string"==typeof ne?Pe(ne):[Pe(ne[0]),Pe(ne[1])])}(me),Yt=function Ne(Xe,me,J){const ne=(0,e.cg1)(Xe);vt(ne);const Wt=Le([ne[e.wAp.ExtraData][0],ne[e.wAp.ExtraData][1]],me)||[];return Le(Wt,J)||[]}(me,Qe,ne),xi=bt.findIndex(Bi=>{if(Array.isArray(Bi)){const[yn,An]=Bi,Wi=mi>=yn.hours&&Ct>=yn.minutes,Cr=mi0?Math.floor(Qe/60):Math.ceil(Qe/60);switch(Xe){case nt.Short:return(Qe>=0?"+":"")+Vt(mi,2,Wt)+Vt(Math.abs(Qe%60),2,Wt);case nt.ShortGMT:return"GMT"+(Qe>=0?"+":"")+Vt(mi,1,Wt);case nt.Long:return"GMT"+(Qe>=0?"+":"")+Vt(mi,2,Wt)+":"+Vt(Math.abs(Qe%60),2,Wt);case nt.Extended:return 0===ne?"Z":(Qe>=0?"+":"")+Vt(mi,2,Wt)+":"+Vt(Math.abs(Qe%60),2,Wt);default:throw new Error(`Unknown zone width "${Xe}"`)}}}function pe(Xe){return Mt(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()+(4-Xe.getDay()))}function De(Xe,me=!1){return function(J,ne){let Qe;if(me){const Wt=new Date(J.getFullYear(),J.getMonth(),1).getDay()-1,mi=J.getDate();Qe=1+Math.floor((mi+Wt)/7)}else{const Wt=pe(J),mi=function Y(Xe){const me=Mt(Xe,0,1).getDay();return Mt(Xe,0,1+(me<=4?4:11)-me)}(Wt.getFullYear()),Ct=Wt.getTime()-mi.getTime();Qe=1+Math.round(Ct/6048e5)}return Vt(Qe,Xe,ze(ne,_.MinusSign))}}function et(Xe,me=!1){return function(J,ne){return Vt(pe(J).getFullYear(),Xe,ze(ne,_.MinusSign),me)}}const $t={};function Jt(Xe,me){Xe=Xe.replace(/:/g,"");const J=Date.parse("Jan 01, 1970 00:00:00 "+Xe)/6e4;return isNaN(J)?me:J}function st(Xe){return Xe instanceof Date&&!isNaN(Xe.valueOf())}const At=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Je(Xe){const me=parseInt(Xe);if(isNaN(me))throw new Error("Invalid integer literal when parsing "+Xe);return me}class St{}let yi=(()=>{class Xe extends St{constructor(J){super(),this.locale=J}getPluralCategory(J,ne){switch(Ze(ne||this.locale)(J)){case i.Zero:return"zero";case i.One:return"one";case i.Two:return"two";case i.Few:return"few";case i.Many:return"many";default:return"other"}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(e.soG))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();function Si(Xe,me){me=encodeURIComponent(me);for(const J of Xe.split(";")){const ne=J.indexOf("="),[Qe,Wt]=-1==ne?[J,""]:[J.slice(0,ne),J.slice(ne+1)];if(Qe.trim()===me)return decodeURIComponent(Wt)}return null}let qi=(()=>{class Xe{constructor(J,ne,Qe,Wt){this._iterableDiffers=J,this._keyValueDiffers=ne,this._ngEl=Qe,this._renderer=Wt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(J){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof J?J.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(J){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof J?J.split(/\s+/):J,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const J=this._iterableDiffer.diff(this._rawClass);J&&this._applyIterableChanges(J)}else if(this._keyValueDiffer){const J=this._keyValueDiffer.diff(this._rawClass);J&&this._applyKeyValueChanges(J)}}_applyKeyValueChanges(J){J.forEachAddedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),J.forEachChangedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),J.forEachRemovedItem(ne=>{ne.previousValue&&this._toggleClass(ne.key,!1)})}_applyIterableChanges(J){J.forEachAddedItem(ne=>{if("string"!=typeof ne.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(ne.item)}`);this._toggleClass(ne.item,!0)}),J.forEachRemovedItem(ne=>this._toggleClass(ne.item,!1))}_applyClasses(J){J&&(Array.isArray(J)||J instanceof Set?J.forEach(ne=>this._toggleClass(ne,!0)):Object.keys(J).forEach(ne=>this._toggleClass(ne,!!J[ne])))}_removeClasses(J){J&&(Array.isArray(J)||J instanceof Set?J.forEach(ne=>this._toggleClass(ne,!1)):Object.keys(J).forEach(ne=>this._toggleClass(ne,!1)))}_toggleClass(J,ne){(J=J.trim())&&J.split(/\s+/g).forEach(Qe=>{ne?this._renderer.addClass(this._ngEl.nativeElement,Qe):this._renderer.removeClass(this._ngEl.nativeElement,Qe)})}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Xe})();class Kt{constructor(me,J,ne,Qe){this.$implicit=me,this.ngForOf=J,this.index=ne,this.count=Qe}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 gt=(()=>{class Xe{constructor(J,ne,Qe){this._viewContainer=J,this._template=ne,this._differs=Qe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(J){this._ngForOf=J,this._ngForOfDirty=!0}set ngForTrackBy(J){this._trackByFn=J}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(J){J&&(this._template=J)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const J=this._ngForOf;if(!this._differ&&J)try{this._differ=this._differs.find(J).create(this.ngForTrackBy)}catch(ne){throw new Error(`Cannot find a differ supporting object '${J}' of type '${function ui(Xe){return Xe.name||typeof Xe}(J)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const J=this._differ.diff(this._ngForOf);J&&this._applyChanges(J)}}_applyChanges(J){const ne=[];J.forEachOperation((Qe,Wt,mi)=>{if(null==Qe.previousIndex){const Ct=this._viewContainer.createEmbeddedView(this._template,new Kt(null,this._ngForOf,-1,-1),null===mi?void 0:mi),ti=new Lt(Qe,Ct);ne.push(ti)}else if(null==mi)this._viewContainer.remove(null===Wt?void 0:Wt);else if(null!==Wt){const Ct=this._viewContainer.get(Wt);this._viewContainer.move(Ct,mi);const ti=new Lt(Qe,Ct);ne.push(ti)}});for(let Qe=0;Qe{this._viewContainer.get(Qe.currentIndex).context.$implicit=Qe.item})}_perViewChange(J,ne){J.context.$implicit=ne.item}static ngTemplateContextGuard(J,ne){return!0}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Xe})();class Lt{constructor(me,J){this.record=me,this.view=J}}let Ci=(()=>{class Xe{constructor(J,ne){this._viewContainer=J,this._context=new Yi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(J){this._context.$implicit=this._context.ngIf=J,this._updateView()}set ngIfThen(J){$i("ngIfThen",J),this._thenTemplateRef=J,this._thenViewRef=null,this._updateView()}set ngIfElse(J){$i("ngIfElse",J),this._elseTemplateRef=J,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(J,ne){return!0}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Xe})();class Yi{constructor(){this.$implicit=null,this.ngIf=null}}function $i(Xe,me){if(me&&!me.createEmbeddedView)throw new Error(`${Xe} must be a TemplateRef, but received '${(0,e.AaK)(me)}'.`)}class Cn{constructor(me,J){this._viewContainerRef=me,this._templateRef=J,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(me){me&&!this._created?this.create():!me&&this._created&&this.destroy()}}let Ln=(()=>{class Xe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(J){this._ngSwitch=J,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(J){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(J)}_matchCase(J){const ne=J==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(J){if(this._defaultViews&&J!==this._defaultUsed){this._defaultUsed=J;for(let ne=0;ne{class Xe{constructor(J,ne,Qe){this.ngSwitch=Qe,Qe._addCase(),this._view=new Cn(J,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ln,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Xe})(),kn=(()=>{class Xe{constructor(J,ne,Qe){Qe._addDefault(new Cn(J,ne))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ln,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchDefault",""]]}),Xe})(),dn=(()=>{class Xe{constructor(J,ne,Qe){this._ngEl=J,this._differs=ne,this._renderer=Qe,this._ngStyle=null,this._differ=null}set ngStyle(J){this._ngStyle=J,!this._differ&&J&&(this._differ=this._differs.find(J).create())}ngDoCheck(){if(this._differ){const J=this._differ.diff(this._ngStyle);J&&this._applyChanges(J)}}_setStyle(J,ne){const[Qe,Wt]=J.split(".");null!=(ne=null!=ne&&Wt?`${ne}${Wt}`:ne)?this._renderer.setStyle(this._ngEl.nativeElement,Qe,ne):this._renderer.removeStyle(this._ngEl.nativeElement,Qe)}_applyChanges(J){J.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),J.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),J.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Xe})(),Lr=(()=>{class Xe{constructor(J){this._viewContainerRef=J,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(J){if(J.ngTemplateOutlet){const ne=this._viewContainerRef;this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ne.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&J.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),Xe})();function Gn(Xe,me){return Error(`InvalidPipeArgument: '${me}' for pipe '${(0,e.AaK)(Xe)}'`)}class Or{createSubscription(me,J){return me.subscribe({next:J,error:ne=>{throw ne}})}dispose(me){me.unsubscribe()}onDestroy(me){me.unsubscribe()}}class Ra{createSubscription(me,J){return me.then(J,ne=>{throw ne})}dispose(me){}onDestroy(me){}}const Ma=new Ra,Fa=new Or;let xr=(()=>{class Xe{constructor(J){this._ref=J,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(J){return this._obj?J!==this._obj?(this._dispose(),this.transform(J)):this._latestValue:(J&&this._subscribe(J),this._latestValue)}_subscribe(J){this._obj=J,this._strategy=this._selectStrategy(J),this._subscription=this._strategy.createSubscription(J,ne=>this._updateLatestValue(J,ne))}_selectStrategy(J){if((0,e.QGY)(J))return Ma;if((0,e.F4k)(J))return Fa;throw Gn(Xe,J)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(J,ne){J===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.sBO,16))},Xe.\u0275pipe=e.Yjl({name:"async",type:Xe,pure:!1}),Xe})(),hs=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.toLowerCase()}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"lowercase",type:Xe,pure:!0}),Xe})();const ur=/(?:[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 pa=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.replace(ur,ne=>ne[0].toUpperCase()+ne.substr(1).toLowerCase())}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"titlecase",type:Xe,pure:!0}),Xe})(),ma=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.toUpperCase()}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"uppercase",type:Xe,pure:!0}),Xe})();const Ir=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ga=(()=>{class Xe{constructor(J,ne){this.locale=J,this.defaultTimezone=ne}transform(J,ne="mediumDate",Qe,Wt){var mi;if(null==J||""===J||J!=J)return null;try{return rt(J,ne,Wt||this.locale,null!==(mi=null!=Qe?Qe:this.defaultTimezone)&&void 0!==mi?mi:void 0)}catch(Ct){throw Gn(Xe,Ct.message)}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.soG,16),e.Y36(Ir,24))},Xe.\u0275pipe=e.Yjl({name:"date",type:Xe,pure:!0}),Xe})(),Kn=(()=>{class Xe{transform(J){return JSON.stringify(J,null,2)}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"json",type:Xe,pure:!1}),Xe})(),Qn=(()=>{class Xe{constructor(J){this.differs=J,this.keyValues=[],this.compareFn=Tr}transform(J,ne=Tr){if(!J||!(J instanceof Map)&&"object"!=typeof J)return null;this.differ||(this.differ=this.differs.find(J).create());const Qe=this.differ.diff(J),Wt=ne!==this.compareFn;return Qe&&(this.keyValues=[],Qe.forEachItem(mi=>{this.keyValues.push(function vn(Xe,me){return{key:Xe,value:me}}(mi.key,mi.currentValue))})),(Qe||Wt)&&(this.keyValues.sort(ne),this.compareFn=ne),this.keyValues}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.aQg,16))},Xe.\u0275pipe=e.Yjl({name:"keyvalue",type:Xe,pure:!1}),Xe})();function Tr(Xe,me){const J=Xe.key,ne=me.key;if(J===ne)return 0;if(void 0===J)return 1;if(void 0===ne)return-1;if(null===J)return 1;if(null===ne)return-1;if("string"==typeof J&&"string"==typeof ne)return J{class Xe{constructor(J){this._locale=J}transform(J,ne,Qe){if(!function la(Xe){return!(null==Xe||""===Xe||Xe!=Xe)}(J))return null;Qe=Qe||this._locale;try{return function _t(Xe,me,J){return function Di(Xe,me,J,ne,Qe,Wt,mi=!1){let Ct="",ti=!1;if(isFinite(Xe)){let bt=function yt(Xe){let ne,Qe,Wt,mi,Ct,me=Math.abs(Xe)+"",J=0;for((Qe=me.indexOf("."))>-1&&(me=me.replace(".","")),(Wt=me.search(/e/i))>0?(Qe<0&&(Qe=Wt),Qe+=+me.slice(Wt+1),me=me.substring(0,Wt)):Qe<0&&(Qe=me.length),Wt=0;"0"===me.charAt(Wt);Wt++);if(Wt===(Ct=me.length))ne=[0],Qe=1;else{for(Ct--;"0"===me.charAt(Ct);)Ct--;for(Qe-=Wt,ne=[],mi=0;Wt<=Ct;Wt++,mi++)ne[mi]=Number(me.charAt(Wt))}return Qe>22&&(ne=ne.splice(0,21),J=Qe-1,Qe=1),{digits:ne,exponent:J,integerLen:Qe}}(Xe);mi&&(bt=function qe(Xe){if(0===Xe.digits[0])return Xe;const me=Xe.digits.length-Xe.integerLen;return Xe.exponent?Xe.exponent+=2:(0===me?Xe.digits.push(0,0):1===me&&Xe.digits.push(0),Xe.integerLen+=2),Xe}(bt));let Yt=me.minInt,xi=me.minFrac,Bi=me.maxFrac;if(Wt){const Rn=Wt.match(At);if(null===Rn)throw new Error(`${Wt} is not a valid digit info`);const _a=Rn[1],Mr=Rn[3],ds=Rn[5];null!=_a&&(Yt=Je(_a)),null!=Mr&&(xi=Je(Mr)),null!=ds?Bi=Je(ds):null!=Mr&&xi>Bi&&(Bi=xi)}!function ue(Xe,me,J){if(me>J)throw new Error(`The minimum number of digits after fraction (${me}) is higher than the maximum (${J}).`);let ne=Xe.digits,Qe=ne.length-Xe.integerLen;const Wt=Math.min(Math.max(me,Qe),J);let mi=Wt+Xe.integerLen,Ct=ne[mi];if(mi>0){ne.splice(Math.max(Xe.integerLen,mi));for(let xi=mi;xi=5)if(mi-1<0){for(let xi=0;xi>mi;xi--)ne.unshift(0),Xe.integerLen++;ne.unshift(1),Xe.integerLen++}else ne[mi-1]++;for(;Qe=bt?An.pop():ti=!1),Bi>=10?1:0},0);Yt&&(ne.unshift(Yt),Xe.integerLen++)}(bt,xi,Bi);let yn=bt.digits,An=bt.integerLen;const Wi=bt.exponent;let Cr=[];for(ti=yn.every(Rn=>!Rn);An0?Cr=yn.splice(An,yn.length):(Cr=yn,yn=[0]);const Un=[];for(yn.length>=me.lgSize&&Un.unshift(yn.splice(-me.lgSize,yn.length).join(""));yn.length>me.gSize;)Un.unshift(yn.splice(-me.gSize,yn.length).join(""));yn.length&&Un.unshift(yn.join("")),Ct=Un.join(ze(J,ne)),Cr.length&&(Ct+=ze(J,Qe)+Cr.join("")),Wi&&(Ct+=ze(J,_.Exponential)+"+"+Wi)}else Ct=ze(J,_.Infinity);return Ct=Xe<0&&!ti?me.negPre+Ct+me.negSuf:me.posPre+Ct+me.posSuf,Ct}(Xe,function _e(Xe,me="-"){const J={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ne=Xe.split(";"),Qe=ne[0],Wt=ne[1],mi=-1!==Qe.indexOf(".")?Qe.split("."):[Qe.substring(0,Qe.lastIndexOf("0")+1),Qe.substring(Qe.lastIndexOf("0")+1)],Ct=mi[0],ti=mi[1]||"";J.posPre=Ct.substr(0,Ct.indexOf("#"));for(let Yt=0;Yt{class Xe{transform(J,ne,Qe){if(null==J)return null;if(!this.supports(J))throw Gn(Xe,J);return J.slice(ne,Qe)}supports(J){return"string"==typeof J||Array.isArray(J)}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"slice",type:Xe,pure:!1}),Xe})(),wa=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275mod=e.oAB({type:Xe}),Xe.\u0275inj=e.cJS({providers:[{provide:St,useClass:yi}]}),Xe})();const Nr="browser";function ha(Xe){return Xe===Nr}function pr(Xe){return"server"===Xe}let ra=(()=>{class Xe{}return Xe.\u0275prov=(0,e.Yz7)({token:Xe,providedIn:"root",factory:()=>new Gr((0,e.LFG)(l),window)}),Xe})();class Gr{constructor(me,J){this.document=me,this.window=J,this.offset=()=>[0,0]}setOffset(me){this.offset=Array.isArray(me)?()=>me:me}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(me){this.supportsScrolling()&&this.window.scrollTo(me[0],me[1])}scrollToAnchor(me){if(!this.supportsScrolling())return;const J=function Zn(Xe,me){const J=Xe.getElementById(me)||Xe.getElementsByName(me)[0];if(J)return J;if("function"==typeof Xe.createTreeWalker&&Xe.body&&(Xe.body.createShadowRoot||Xe.body.attachShadow)){const ne=Xe.createTreeWalker(Xe.body,NodeFilter.SHOW_ELEMENT);let Qe=ne.currentNode;for(;Qe;){const Wt=Qe.shadowRoot;if(Wt){const mi=Wt.getElementById(me)||Wt.querySelector(`[name="${me}"]`);if(mi)return mi}Qe=ne.nextNode()}}return null}(this.document,me);J&&(this.scrollToElement(J),this.attemptFocus(J))}setHistoryScrollRestoration(me){if(this.supportScrollRestoration()){const J=this.window.history;J&&J.scrollRestoration&&(J.scrollRestoration=me)}}scrollToElement(me){const J=me.getBoundingClientRect(),ne=J.left+this.window.pageXOffset,Qe=J.top+this.window.pageYOffset,Wt=this.offset();this.window.scrollTo(ne-Wt[0],Qe-Wt[1])}attemptFocus(me){return me.focus(),this.document.activeElement===me}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const me=Ha(this.window.history)||Ha(Object.getPrototypeOf(this.window.history));return!(!me||!me.writable&&!me.set)}catch(me){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(me){return!1}}}function Ha(Xe){return Object.getOwnPropertyDescriptor(Xe,"scrollRestoration")}class ja{}},8138:(Ge,Q,m)=>{"use strict";m.d(Q,{TP:()=>O,eN:()=>_,JF:()=>Le,LE:()=>j});var e=m(9808),t=m(5e3),y=m(9646),C=m(8306),o=m(4351),M=m(9300),l=m(4004);class R{}class s{}class L{constructor(oe){this.normalizedNames=new Map,this.lazyUpdate=null,oe?this.lazyInit="string"==typeof oe?()=>{this.headers=new Map,oe.split("\n").forEach(Ce=>{const Ue=Ce.indexOf(":");if(Ue>0){const lt=Ce.slice(0,Ue),nt=lt.toLowerCase(),ft=Ce.slice(Ue+1).trim();this.maybeSetNormalizedName(lt,nt),this.headers.has(nt)?this.headers.get(nt).push(ft):this.headers.set(nt,[ft])}})}:()=>{this.headers=new Map,Object.keys(oe).forEach(Ce=>{let Ue=oe[Ce];const lt=Ce.toLowerCase();"string"==typeof Ue&&(Ue=[Ue]),Ue.length>0&&(this.headers.set(lt,Ue),this.maybeSetNormalizedName(Ce,lt))})}:this.headers=new Map}has(oe){return this.init(),this.headers.has(oe.toLowerCase())}get(oe){this.init();const Ce=this.headers.get(oe.toLowerCase());return Ce&&Ce.length>0?Ce[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(oe){return this.init(),this.headers.get(oe.toLowerCase())||null}append(oe,Ce){return this.clone({name:oe,value:Ce,op:"a"})}set(oe,Ce){return this.clone({name:oe,value:Ce,op:"s"})}delete(oe,Ce){return this.clone({name:oe,value:Ce,op:"d"})}maybeSetNormalizedName(oe,Ce){this.normalizedNames.has(Ce)||this.normalizedNames.set(Ce,oe)}init(){this.lazyInit&&(this.lazyInit instanceof L?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(oe=>this.applyUpdate(oe)),this.lazyUpdate=null))}copyFrom(oe){oe.init(),Array.from(oe.headers.keys()).forEach(Ce=>{this.headers.set(Ce,oe.headers.get(Ce)),this.normalizedNames.set(Ce,oe.normalizedNames.get(Ce))})}clone(oe){const Ce=new L;return Ce.lazyInit=this.lazyInit&&this.lazyInit instanceof L?this.lazyInit:this,Ce.lazyUpdate=(this.lazyUpdate||[]).concat([oe]),Ce}applyUpdate(oe){const Ce=oe.name.toLowerCase();switch(oe.op){case"a":case"s":let Ue=oe.value;if("string"==typeof Ue&&(Ue=[Ue]),0===Ue.length)return;this.maybeSetNormalizedName(oe.name,Ce);const lt=("a"===oe.op?this.headers.get(Ce):void 0)||[];lt.push(...Ue),this.headers.set(Ce,lt);break;case"d":const nt=oe.value;if(nt){let ft=this.headers.get(Ce);if(!ft)return;ft=ft.filter(it=>-1===nt.indexOf(it)),0===ft.length?(this.headers.delete(Ce),this.normalizedNames.delete(Ce)):this.headers.set(Ce,ft)}else this.headers.delete(Ce),this.normalizedNames.delete(Ce)}}forEach(oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ce=>oe(this.normalizedNames.get(Ce),this.headers.get(Ce)))}}class I{encodeKey(oe){return w(oe)}encodeValue(oe){return w(oe)}decodeKey(oe){return decodeURIComponent(oe)}decodeValue(oe){return decodeURIComponent(oe)}}const E=/%(\d[a-f0-9])/gi,P={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function w($){return encodeURIComponent($).replace(E,(oe,Ce)=>{var Ue;return null!==(Ue=P[Ce])&&void 0!==Ue?Ue:oe})}function V($){return`${$}`}class j{constructor(oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=oe.encoder||new I,oe.fromString){if(oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function A($,oe){const Ce=new Map;return $.length>0&&$.replace(/^\?/,"").split("&").forEach(lt=>{const nt=lt.indexOf("="),[ft,it]=-1==nt?[oe.decodeKey(lt),""]:[oe.decodeKey(lt.slice(0,nt)),oe.decodeValue(lt.slice(nt+1))],rt=Ce.get(ft)||[];rt.push(it),Ce.set(ft,rt)}),Ce}(oe.fromString,this.encoder)}else oe.fromObject?(this.map=new Map,Object.keys(oe.fromObject).forEach(Ce=>{const Ue=oe.fromObject[Ce];this.map.set(Ce,Array.isArray(Ue)?Ue:[Ue])})):this.map=null}has(oe){return this.init(),this.map.has(oe)}get(oe){this.init();const Ce=this.map.get(oe);return Ce?Ce[0]:null}getAll(oe){return this.init(),this.map.get(oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(oe,Ce){return this.clone({param:oe,value:Ce,op:"a"})}appendAll(oe){const Ce=[];return Object.keys(oe).forEach(Ue=>{const lt=oe[Ue];Array.isArray(lt)?lt.forEach(nt=>{Ce.push({param:Ue,value:nt,op:"a"})}):Ce.push({param:Ue,value:lt,op:"a"})}),this.clone(Ce)}set(oe,Ce){return this.clone({param:oe,value:Ce,op:"s"})}delete(oe,Ce){return this.clone({param:oe,value:Ce,op:"d"})}toString(){return this.init(),this.keys().map(oe=>{const Ce=this.encoder.encodeKey(oe);return this.map.get(oe).map(Ue=>Ce+"="+this.encoder.encodeValue(Ue)).join("&")}).filter(oe=>""!==oe).join("&")}clone(oe){const Ce=new j({encoder:this.encoder});return Ce.cloneFrom=this.cloneFrom||this,Ce.updates=(this.updates||[]).concat(oe),Ce}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(oe=>this.map.set(oe,this.cloneFrom.map.get(oe))),this.updates.forEach(oe=>{switch(oe.op){case"a":case"s":const Ce=("a"===oe.op?this.map.get(oe.param):void 0)||[];Ce.push(V(oe.value)),this.map.set(oe.param,Ce);break;case"d":if(void 0===oe.value){this.map.delete(oe.param);break}{let Ue=this.map.get(oe.param)||[];const lt=Ue.indexOf(V(oe.value));-1!==lt&&Ue.splice(lt,1),Ue.length>0?this.map.set(oe.param,Ue):this.map.delete(oe.param)}}}),this.cloneFrom=this.updates=null)}}class te{constructor(){this.map=new Map}set(oe,Ce){return this.map.set(oe,Ce),this}get(oe){return this.map.has(oe)||this.map.set(oe,oe.defaultValue()),this.map.get(oe)}delete(oe){return this.map.delete(oe),this}keys(){return this.map.keys()}}function ge($){return"undefined"!=typeof ArrayBuffer&&$ instanceof ArrayBuffer}function le($){return"undefined"!=typeof Blob&&$ instanceof Blob}function re($){return"undefined"!=typeof FormData&&$ instanceof FormData}class se{constructor(oe,Ce,Ue,lt){let nt;if(this.url=Ce,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=oe.toUpperCase(),function ee($){switch($){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||lt?(this.body=void 0!==Ue?Ue:null,nt=lt):nt=Ue,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new L),this.context||(this.context=new te),this.params){const ft=this.params.toString();if(0===ft.length)this.urlWithParams=Ce;else{const it=Ce.indexOf("?");this.urlWithParams=Ce+(-1===it?"?":itVt.set(Ii,oe.setHeaders[Ii]),Mt)),oe.setParams&&(Zt=Object.keys(oe.setParams).reduce((Vt,Ii)=>Vt.set(Ii,oe.setParams[Ii]),Zt)),new se(Ue,lt,ft,{params:Zt,headers:Mt,context:Ft,reportProgress:rt,responseType:nt,withCredentials:it})}}var ye=(()=>((ye=ye||{})[ye.Sent=0]="Sent",ye[ye.UploadProgress=1]="UploadProgress",ye[ye.ResponseHeader=2]="ResponseHeader",ye[ye.DownloadProgress=3]="DownloadProgress",ye[ye.Response=4]="Response",ye[ye.User=5]="User",ye))();class v{constructor(oe,Ce=200,Ue="OK"){this.headers=oe.headers||new L,this.status=void 0!==oe.status?oe.status:Ce,this.statusText=oe.statusText||Ue,this.url=oe.url||null,this.ok=this.status>=200&&this.status<300}}class i extends v{constructor(oe={}){super(oe),this.type=ye.ResponseHeader}clone(oe={}){return new i({headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class a extends v{constructor(oe={}){super(oe),this.type=ye.Response,this.body=void 0!==oe.body?oe.body:null}clone(oe={}){return new a({body:void 0!==oe.body?oe.body:this.body,headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class p extends v{constructor(oe){super(oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${oe.url||"(unknown url)"}`:`Http failure response for ${oe.url||"(unknown url)"}: ${oe.status} ${oe.statusText}`,this.error=oe.error||null}}function u($,oe){return{body:oe,headers:$.headers,context:$.context,observe:$.observe,params:$.params,reportProgress:$.reportProgress,responseType:$.responseType,withCredentials:$.withCredentials}}let _=(()=>{class ${constructor(Ce){this.handler=Ce}request(Ce,Ue,lt={}){let nt;if(Ce instanceof se)nt=Ce;else{let rt,Mt;rt=lt.headers instanceof L?lt.headers:new L(lt.headers),lt.params&&(Mt=lt.params instanceof j?lt.params:new j({fromObject:lt.params})),nt=new se(Ce,Ue,void 0!==lt.body?lt.body:null,{headers:rt,context:lt.context,params:Mt,reportProgress:lt.reportProgress,responseType:lt.responseType||"json",withCredentials:lt.withCredentials})}const ft=(0,y.of)(nt).pipe((0,o.b)(rt=>this.handler.handle(rt)));if(Ce instanceof se||"events"===lt.observe)return ft;const it=ft.pipe((0,M.h)(rt=>rt instanceof a));switch(lt.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return rt.body}));case"blob":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof Blob))throw new Error("Response is not a Blob.");return rt.body}));case"text":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&"string"!=typeof rt.body)throw new Error("Response is not a string.");return rt.body}));default:return it.pipe((0,l.U)(rt=>rt.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${lt.observe}}`)}}delete(Ce,Ue={}){return this.request("DELETE",Ce,Ue)}get(Ce,Ue={}){return this.request("GET",Ce,Ue)}head(Ce,Ue={}){return this.request("HEAD",Ce,Ue)}jsonp(Ce,Ue){return this.request("JSONP",Ce,{params:(new j).append(Ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ce,Ue={}){return this.request("OPTIONS",Ce,Ue)}patch(Ce,Ue,lt={}){return this.request("PATCH",Ce,u(lt,Ue))}post(Ce,Ue,lt={}){return this.request("POST",Ce,u(lt,Ue))}put(Ce,Ue,lt={}){return this.request("PUT",Ce,u(lt,Ue))}}return $.\u0275fac=function(Ce){return new(Ce||$)(t.LFG(R))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();class D{constructor(oe,Ce){this.next=oe,this.interceptor=Ce}handle(oe){return this.interceptor.intercept(oe,this.next)}}const O=new t.OlP("HTTP_INTERCEPTORS");let x=(()=>{class ${intercept(Ce,Ue){return Ue.handle(Ce)}}return $.\u0275fac=function(Ce){return new(Ce||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();const Re=/^\)\]\}',?\n/;let Oe=(()=>{class ${constructor(Ce){this.xhrFactory=Ce}handle(Ce){if("JSONP"===Ce.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new C.y(Ue=>{const lt=this.xhrFactory.build();if(lt.open(Ce.method,Ce.urlWithParams),Ce.withCredentials&&(lt.withCredentials=!0),Ce.headers.forEach((Ii,jt)=>lt.setRequestHeader(Ii,jt.join(","))),Ce.headers.has("Accept")||lt.setRequestHeader("Accept","application/json, text/plain, */*"),!Ce.headers.has("Content-Type")){const Ii=Ce.detectContentTypeHeader();null!==Ii&<.setRequestHeader("Content-Type",Ii)}if(Ce.responseType){const Ii=Ce.responseType.toLowerCase();lt.responseType="json"!==Ii?Ii:"text"}const nt=Ce.serializeBody();let ft=null;const it=()=>{if(null!==ft)return ft;const Ii=1223===lt.status?204:lt.status,jt=lt.statusText||"OK",ei=new L(lt.getAllResponseHeaders()),ki=function ze($){return"responseURL"in $&&$.responseURL?$.responseURL:/^X-Request-URL:/m.test($.getAllResponseHeaders())?$.getResponseHeader("X-Request-URL"):null}(lt)||Ce.url;return ft=new i({headers:ei,status:Ii,statusText:jt,url:ki}),ft},rt=()=>{let{headers:Ii,status:jt,statusText:ei,url:ki}=it(),ai=null;204!==jt&&(ai=void 0===lt.response?lt.responseText:lt.response),0===jt&&(jt=ai?200:0);let hi=jt>=200&&jt<300;if("json"===Ce.responseType&&"string"==typeof ai){const Ve=ai;ai=ai.replace(Re,"");try{ai=""!==ai?JSON.parse(ai):null}catch(Ee){ai=Ve,hi&&(hi=!1,ai={error:Ee,text:ai})}}hi?(Ue.next(new a({body:ai,headers:Ii,status:jt,statusText:ei,url:ki||void 0})),Ue.complete()):Ue.error(new p({error:ai,headers:Ii,status:jt,statusText:ei,url:ki||void 0}))},Mt=Ii=>{const{url:jt}=it(),ei=new p({error:Ii,status:lt.status||0,statusText:lt.statusText||"Unknown Error",url:jt||void 0});Ue.error(ei)};let Zt=!1;const Ft=Ii=>{Zt||(Ue.next(it()),Zt=!0);let jt={type:ye.DownloadProgress,loaded:Ii.loaded};Ii.lengthComputable&&(jt.total=Ii.total),"text"===Ce.responseType&&!!lt.responseText&&(jt.partialText=lt.responseText),Ue.next(jt)},Vt=Ii=>{let jt={type:ye.UploadProgress,loaded:Ii.loaded};Ii.lengthComputable&&(jt.total=Ii.total),Ue.next(jt)};return lt.addEventListener("load",rt),lt.addEventListener("error",Mt),lt.addEventListener("timeout",Mt),lt.addEventListener("abort",Mt),Ce.reportProgress&&(lt.addEventListener("progress",Ft),null!==nt&<.upload&<.upload.addEventListener("progress",Vt)),lt.send(nt),Ue.next({type:ye.Sent}),()=>{lt.removeEventListener("error",Mt),lt.removeEventListener("abort",Mt),lt.removeEventListener("load",rt),lt.removeEventListener("timeout",Mt),Ce.reportProgress&&(lt.removeEventListener("progress",Ft),null!==nt&<.upload&<.upload.removeEventListener("progress",Vt)),lt.readyState!==lt.DONE&<.abort()}})}}return $.\u0275fac=function(Ce){return new(Ce||$)(t.LFG(e.JF))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();const K=new t.OlP("XSRF_COOKIE_NAME"),Me=new t.OlP("XSRF_HEADER_NAME");class we{}let z=(()=>{class ${constructor(Ce,Ue,lt){this.doc=Ce,this.platform=Ue,this.cookieName=lt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ce=this.doc.cookie||"";return Ce!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(Ce,this.cookieName),this.lastCookieString=Ce),this.lastToken}}return $.\u0275fac=function(Ce){return new(Ce||$)(t.LFG(e.K0),t.LFG(t.Lbi),t.LFG(K))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),Ze=(()=>{class ${constructor(Ce,Ue){this.tokenService=Ce,this.headerName=Ue}intercept(Ce,Ue){const lt=Ce.url.toLowerCase();if("GET"===Ce.method||"HEAD"===Ce.method||lt.startsWith("http://")||lt.startsWith("https://"))return Ue.handle(Ce);const nt=this.tokenService.getToken();return null!==nt&&!Ce.headers.has(this.headerName)&&(Ce=Ce.clone({headers:Ce.headers.set(this.headerName,nt)})),Ue.handle(Ce)}}return $.\u0275fac=function(Ce){return new(Ce||$)(t.LFG(we),t.LFG(Me))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),vt=(()=>{class ${constructor(Ce,Ue){this.backend=Ce,this.injector=Ue,this.chain=null}handle(Ce){if(null===this.chain){const Ue=this.injector.get(O,[]);this.chain=Ue.reduceRight((lt,nt)=>new D(lt,nt),this.backend)}return this.chain.handle(Ce)}}return $.\u0275fac=function(Ce){return new(Ce||$)(t.LFG(s),t.LFG(t.zs3))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),ce=(()=>{class ${static disable(){return{ngModule:$,providers:[{provide:Ze,useClass:x}]}}static withOptions(Ce={}){return{ngModule:$,providers:[Ce.cookieName?{provide:K,useValue:Ce.cookieName}:[],Ce.headerName?{provide:Me,useValue:Ce.headerName}:[]]}}}return $.\u0275fac=function(Ce){return new(Ce||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[Ze,{provide:O,useExisting:Ze,multi:!0},{provide:we,useClass:z},{provide:K,useValue:"XSRF-TOKEN"},{provide:Me,useValue:"X-XSRF-TOKEN"}]}),$})(),Le=(()=>{class ${}return $.\u0275fac=function(Ce){return new(Ce||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[_,{provide:R,useClass:vt},Oe,{provide:s,useExisting:Oe}],imports:[[ce.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),$})()},5e3:(Ge,Q,m)=>{"use strict";m.d(Q,{deG:()=>fc,tb:()=>Vm,AFp:()=>zm,ip1:()=>_p,CZH:()=>$u,hGG:()=>x5,z2F:()=>k4,sBO:()=>Qg,Sil:()=>yp,_Vd:()=>T4,EJc:()=>Ym,SBq:()=>S4,qLn:()=>Ec,vpe:()=>lc,tBr:()=>Ho,XFs:()=>ce,OlP:()=>Yr,zs3:()=>Rs,ZZ4:()=>W3,aQg:()=>j3,soG:()=>G3,YKP:()=>qp,h0i:()=>Qu,PXZ:()=>Zg,R0b:()=>So,FiY:()=>zo,Lbi:()=>Zm,g9A:()=>Um,n_E:()=>B3,Qsj:()=>D8,FYo:()=>Gp,JOm:()=>os,q3G:()=>ua,PiD:()=>Bl,tp0:()=>qs,Rgc:()=>I4,dDg:()=>qm,GfV:()=>Yp,s_b:()=>z3,ifc:()=>ft,eFA:()=>Jm,Ez6:()=>Re,G48:()=>Kg,Gpc:()=>I,f3M:()=>cl,X6Q:()=>qg,_c5:()=>p5,VLi:()=>Hg,c2e:()=>Gm,zSh:()=>y2,wAp:()=>wn,vHH:()=>w,EiD:()=>Eh,mCW:()=>hl,qzn:()=>sr,JVY:()=>Wo,pB0:()=>w0,eBb:()=>xc,L6k:()=>fo,LAX:()=>jo,cg1:()=>l0,kL8:()=>Gu,yhl:()=>Na,dqk:()=>Ft,sIi:()=>zc,CqO:()=>xu,QGY:()=>H2,F4k:()=>bu,RDi:()=>ra,AaK:()=>R,z3N:()=>ya,qOj:()=>A2,TTD:()=>Jr,_Bn:()=>Up,xp6:()=>R1,uIk:()=>S2,Tol:()=>e0,Gre:()=>a0,ekj:()=>rc,Suo:()=>vm,Xpm:()=>De,lG2:()=>at,Yz7:()=>be,cJS:()=>ze,oAB:()=>ct,Yjl:()=>st,Y36:()=>Zc,_UZ:()=>R2,GkF:()=>vu,BQk:()=>B2,ynx:()=>F2,qZA:()=>J1,TgZ:()=>N2,EpF:()=>yu,n5z:()=>so,Ikx:()=>ih,LFG:()=>ka,$8M:()=>t1,$Z:()=>_u,NdJ:()=>X1,CRH:()=>ym,kcU:()=>Pn,O4$:()=>on,oxw:()=>U2,ALo:()=>om,lcZ:()=>lm,xi3:()=>cm,Dn7:()=>hm,Hsn:()=>Mu,F$t:()=>Cu,Q6J:()=>P2,s9C:()=>Vc,MGl:()=>yr,DdM:()=>Xp,VKq:()=>$p,WLB:()=>em,kEZ:()=>tm,iGM:()=>gm,MAs:()=>au,Jf7:()=>Hh,CHM:()=>zs,oJD:()=>T0,LSH:()=>S0,kYT:()=>ke,Udp:()=>wl,WFA:()=>z2,d8E:()=>Zu,YNc:()=>ru,W1O:()=>Mm,_uU:()=>X2,Oqu:()=>Kr,hij:()=>Al,AsE:()=>$s,lnq:()=>Iu,HOy:()=>$2,Gf:()=>_m});var e=m(7579),t=m(727),y=m(8306),C=m(6451),o=m(3099);function M(c){for(let h in c)if(c[h]===M)return h;throw Error("Could not find renamed property on target object.")}function l(c,h){for(const g in h)h.hasOwnProperty(g)&&!c.hasOwnProperty(g)&&(c[g]=h[g])}function R(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(R).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return`${c.overriddenName}`;if(c.name)return`${c.name}`;const h=c.toString();if(null==h)return""+h;const g=h.indexOf("\n");return-1===g?h:h.substring(0,g)}function s(c,h){return null==c||""===c?null===h?"":h:null==h||""===h?c:c+" "+h}const L=M({__forward_ref__:M});function I(c){return c.__forward_ref__=I,c.toString=function(){return R(this())},c}function A(c){return E(c)?c():c}function E(c){return"function"==typeof c&&c.hasOwnProperty(L)&&c.__forward_ref__===I}class w extends Error{constructor(h,g){super(function j(c,h){return`${c?`NG0${c}: `:""}${h}`}(h,g)),this.code=h}}function W(c){return"string"==typeof c?c:null==c?"":String(c)}function te(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():W(c)}function re(c,h){const g=h?` in ${h}`:"";throw new w("201",`No provider for ${te(c)} found${g}`)}function b(c,h){null==c&&function Z(c,h,g,S){throw new Error(`ASSERTION ERROR: ${c}`+(null==S?"":` [Expected=> ${g} ${S} ${h} <=Actual]`))}(h,c,null,"!=")}function be(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}const Re=be;function ze(c){return{providers:c.providers||[],imports:c.imports||[]}}function Oe(c){return K(c,Ze)||K(c,Fe)}function K(c,h){return c.hasOwnProperty(h)?c[h]:null}function z(c){return c&&(c.hasOwnProperty(vt)||c.hasOwnProperty(Ne))?c[vt]:null}const Ze=M({\u0275prov:M}),vt=M({\u0275inj:M}),Fe=M({ngInjectableDef:M}),Ne=M({ngInjectorDef:M});var ce=(()=>((ce=ce||{})[ce.Default=0]="Default",ce[ce.Host=1]="Host",ce[ce.Self=2]="Self",ce[ce.SkipSelf=4]="SkipSelf",ce[ce.Optional=8]="Optional",ce))();let Le;function q(c){const h=Le;return Le=c,h}function $(c,h,g){const S=Oe(c);return S&&"root"==S.providedIn?void 0===S.value?S.value=S.factory():S.value:g&ce.Optional?null:void 0!==h?h:void re(R(c),"Injector")}function Ce(c){return{toString:c}.toString()}var Ue=(()=>((Ue=Ue||{})[Ue.OnPush=0]="OnPush",Ue[Ue.Default=1]="Default",Ue))(),ft=(()=>{return(c=ft||(ft={}))[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom",ft;var c})();const it="undefined"!=typeof globalThis&&globalThis,rt="undefined"!=typeof window&&window,Mt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ft=it||"undefined"!=typeof global&&global||rt||Mt,jt={},ei=[],ki=M({\u0275cmp:M}),ai=M({\u0275dir:M}),hi=M({\u0275pipe:M}),Ve=M({\u0275mod:M}),Ee=M({\u0275fac:M}),Y=M({__NG_ELEMENT_ID__:M});let pe=0;function De(c){return Ce(()=>{const g={},S={type:c.type,providersResolver:null,decls:c.decls,vars:c.vars,factory:null,template:c.template||null,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===Ue.OnPush,directiveDefs:null,pipeDefs:null,selectors:c.selectors||ei,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||ft.Emulated,id:"c",styles:c.styles||ei,_:null,setInput:null,schemas:c.schemas||null,tView:null},F=c.directives,G=c.features,fe=c.pipes;return S.id+=pe++,S.inputs=Be(c.inputs,g),S.outputs=Be(c.outputs),G&&G.forEach(Ie=>Ie(S)),S.directiveDefs=F?()=>("function"==typeof F?F():F).map($t):null,S.pipeDefs=fe?()=>("function"==typeof fe?fe():fe).map(Nt):null,S})}function $t(c){return At(c)||function li(c){return c[ai]||null}(c)}function Nt(c){return function Bt(c){return c[hi]||null}(c)}const Jt={};function ct(c){return Ce(()=>{const h={type:c.type,bootstrap:c.bootstrap||ei,declarations:c.declarations||ei,imports:c.imports||ei,exports:c.exports||ei,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null};return null!=c.id&&(Jt[c.id]=c.type),h})}function ke(c,h){return Ce(()=>{const g=Rt(c,!0);g.declarations=h.declarations||ei,g.imports=h.imports||ei,g.exports=h.exports||ei})}function Be(c,h){if(null==c)return jt;const g={};for(const S in c)if(c.hasOwnProperty(S)){let F=c[S],G=F;Array.isArray(F)&&(G=F[1],F=F[0]),g[F]=S,h&&(h[F]=G)}return g}const at=De;function st(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,onDestroy:c.type.prototype.ngOnDestroy||null}}function At(c){return c[ki]||null}function Rt(c,h){const g=c[Ve]||null;if(!g&&!0===h)throw new Error(`Type ${R(c)} does not have '\u0275mod' property.`);return g}function _n(c){return Array.isArray(c)&&"object"==typeof c[1]}function kn(c){return Array.isArray(c)&&!0===c[1]}function dr(c){return 0!=(8&c.flags)}function wi(c){return 2==(2&c.flags)}function Fi(c){return 1==(1&c.flags)}function dn(c){return null!==c.template}function Lr(c){return 0!=(512&c[2])}function kr(c,h){return c.hasOwnProperty(Ee)?c[Ee]:null}class la{constructor(h,g,S){this.previousValue=h,this.currentValue=g,this.firstChange=S}isFirstChange(){return this.firstChange}}function Jr(){return ga}function ga(c){return c.type.prototype.ngOnChanges&&(c.setInput=wa),$n}function $n(){const c=ca(this),h=null==c?void 0:c.current;if(h){const g=c.previous;if(g===jt)c.previous=h;else for(let S in h)g[S]=h[S];c.current=null,this.ngOnChanges(h)}}function wa(c,h,g,S){const F=ca(c)||function Aa(c,h){return c[Nr]=h}(c,{previous:jt,current:null}),G=F.current||(F.current={}),fe=F.previous,Ie=this.declaredInputs[g],We=fe[Ie];G[Ie]=new la(We&&We.currentValue,h,fe===jt),c[S]=h}Jr.ngInherit=!0;const Nr="__ngSimpleChanges__";function ca(c){return c[Nr]||null}const Sr="http://www.w3.org/2000/svg";let Oa;function ra(c){Oa=c}function Gr(){return void 0!==Oa?Oa:"undefined"!=typeof document?document:void 0}function Zn(c){return!!c.listen}const ns={createRenderer:(c,h)=>Gr()};function Xe(c){for(;Array.isArray(c);)c=c[0];return c}function ne(c,h){return Xe(h[c])}function Qe(c,h){return Xe(h[c.index])}function mi(c,h){return c.data[h]}function Ct(c,h){return c[h]}function ti(c,h){const g=h[c];return _n(g)?g:g[0]}function bt(c){return 4==(4&c[2])}function Yt(c){return 128==(128&c[2])}function Bi(c,h){return null==h?null:c[h]}function yn(c){c[18]=0}function An(c,h){c[5]+=h;let g=c,S=c[3];for(;null!==S&&(1===h&&1===g[5]||-1===h&&0===g[5]);)S[5]+=h,g=S,S=S[3]}const Wi={lFrame:gn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Mr(){return Wi.bindingsEnabled}function Pi(){return Wi.lFrame.lView}function Nn(){return Wi.lFrame.tView}function zs(c){return Wi.lFrame.contextLView=c,c[8]}function fr(){let c=Us();for(;null!==c&&64===c.type;)c=c.parent;return c}function Us(){return Wi.lFrame.currentTNode}function xt(c,h){const g=Wi.lFrame;g.currentTNode=c,g.isParent=h}function ie(){return Wi.lFrame.isParent}function he(){Wi.lFrame.isParent=!1}function Pt(){return Wi.isInCheckNoChangesMode}function Qt(c){Wi.isInCheckNoChangesMode=c}function Xt(){const c=Wi.lFrame;let h=c.bindingRootIndex;return-1===h&&(h=c.bindingRootIndex=c.tView.bindingStartIndex),h}function pi(){return Wi.lFrame.bindingIndex}function Zi(){return Wi.lFrame.bindingIndex++}function tn(c){const h=Wi.lFrame,g=h.bindingIndex;return h.bindingIndex=h.bindingIndex+c,g}function tt(c,h){const g=Wi.lFrame;g.bindingIndex=g.bindingRootIndex=c,It(h)}function It(c){Wi.lFrame.currentDirectiveIndex=c}function zt(c){const h=Wi.lFrame.currentDirectiveIndex;return-1===h?null:c[h]}function ri(){return Wi.lFrame.currentQueryIndex}function vi(c){Wi.lFrame.currentQueryIndex=c}function Mi(c){const h=c[1];return 2===h.type?h.declTNode:1===h.type?c[6]:null}function Ai(c,h,g){if(g&ce.SkipSelf){let F=h,G=c;for(;!(F=F.parent,null!==F||g&ce.Host||(F=Mi(G),null===F||(G=G[15],10&F.type))););if(null===F)return!1;h=F,c=G}const S=Wi.lFrame=un();return S.currentTNode=h,S.lView=c,!0}function Ki(c){const h=un(),g=c[1];Wi.lFrame=h,h.currentTNode=g.firstChild,h.lView=c,h.tView=g,h.contextLView=c,h.bindingIndex=g.bindingStartIndex,h.inI18n=!1}function un(){const c=Wi.lFrame,h=null===c?null:c.child;return null===h?gn(c):h}function gn(c){const h={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:c,child:null,inI18n:!1};return null!==c&&(c.child=h),h}function En(){const c=Wi.lFrame;return Wi.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}const zn=En;function Rr(){const c=En();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function Vn(){return Wi.lFrame.selectedIndex}function mr(c){Wi.lFrame.selectedIndex=c}function Hi(){const c=Wi.lFrame;return mi(c.tView,c.selectedIndex)}function on(){Wi.lFrame.currentNamespace=Sr}function Pn(){!function jn(){Wi.lFrame.currentNamespace=null}()}function $r(c,h){for(let g=h.directiveStart,S=h.directiveEnd;g=S)break}else h[We]<0&&(c[18]+=65536),(Ie>11>16&&(3&c[2])===h){c[2]+=2048;try{G.call(Ie)}finally{}}}else try{G.call(Ie)}finally{}}class us{constructor(h,g,S){this.factory=h,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=S}}function Lo(c,h,g){const S=Zn(c);let F=0;for(;Fh){fe=G-1;break}}}for(;G>16}(c),S=h;for(;g>0;)S=S[15],g--;return S}let rl=!0;function al(c){const h=rl;return rl=c,h}let $e=0;function Ot(c,h){const g=ii(c,h);if(-1!==g)return g;const S=h[1];S.firstCreatePass&&(c.injectorIndex=h.length,qt(S.data,c),qt(h,null),qt(S.blueprint,null));const F=Ei(c,h),G=c.injectorIndex;if(Io(F)){const fe=ro(F),Ie=Gs(F,h),We=Ie[1].data;for(let ut=0;ut<8;ut++)h[G+ut]=Ie[fe+ut]|We[fe+ut]}return h[G+8]=F,G}function qt(c,h){c.push(0,0,0,0,0,0,0,0,h)}function ii(c,h){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===h[c.injectorIndex+8]?-1:c.injectorIndex}function Ei(c,h){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;let g=0,S=null,F=h;for(;null!==F;){const G=F[1],fe=G.type;if(S=2===fe?G.declTNode:1===fe?F[6]:null,null===S)return-1;if(g++,F=F[15],-1!==S.injectorIndex)return S.injectorIndex|g<<16}return-1}function an(c,h,g){!function dt(c,h,g){let S;"string"==typeof g?S=g.charCodeAt(0)||0:g.hasOwnProperty(Y)&&(S=g[Y]),null==S&&(S=g[Y]=$e++);const F=255&S;h.data[c+(F>>5)]|=1<=0?255&h:ea:h}(g);if("function"==typeof G){if(!Ai(h,c,S))return S&ce.Host?xn(F,g,S):er(h,g,S,F);try{const fe=G(S);if(null!=fe||S&ce.Optional)return fe;re(g)}finally{zn()}}else if("number"==typeof G){let fe=null,Ie=ii(c,h),We=-1,ut=S&ce.Host?h[16][6]:null;for((-1===Ie||S&ce.SkipSelf)&&(We=-1===Ie?Ei(c,h):h[Ie+8],-1!==We&&Ol(S,!1)?(fe=h[1],Ie=ro(We),h=Gs(We,h)):Ie=-1);-1!==Ie;){const Tt=h[1];if(Ea(G,Ie,Tt.data)){const Gt=ys(Ie,h,g,fe,S,ut);if(Gt!==ao)return Gt}We=h[Ie+8],-1!==We&&Ol(S,h[1].data[Ie+8]===ut)&&Ea(G,Ie,h)?(fe=Tt,Ie=ro(We),h=Gs(We,h)):Ie=-1}}}return er(h,g,S,F)}const ao={};function ea(){return new yo(fr(),Pi())}function ys(c,h,g,S,F,G){const fe=h[1],Ie=fe.data[c+8],Tt=fs(Ie,fe,g,null==S?wi(Ie)&&rl:S!=fe&&0!=(3&Ie.type),F&ce.Host&&G===Ie);return null!==Tt?ks(h,fe,Tt,Ie):ao}function fs(c,h,g,S,F){const G=c.providerIndexes,fe=h.data,Ie=1048575&G,We=c.directiveStart,Tt=G>>20,oi=F?Ie+Tt:c.directiveEnd;for(let gi=S?Ie:Ie+Tt;gi=We&&Oi.type===g)return gi}if(F){const gi=fe[We];if(gi&&dn(gi)&&gi.type===g)return We}return null}function ks(c,h,g,S){let F=c[g];const G=h.data;if(function Jc(c){return c instanceof us}(F)){const fe=F;fe.resolving&&function ee(c,h){const g=h?`. Dependency path: ${h.join(" > ")} > ${c}`:"";throw new w("200",`Circular dependency in DI detected for ${c}${g}`)}(te(G[g]));const Ie=al(fe.canSeeViewProviders);fe.resolving=!0;const We=fe.injectImpl?q(fe.injectImpl):null;Ai(c,S,ce.Default);try{F=c[g]=fe.factory(void 0,G,c,S),h.firstCreatePass&&g>=S.directiveStart&&function Xr(c,h,g){const{ngOnChanges:S,ngOnInit:F,ngDoCheck:G}=h.type.prototype;if(S){const fe=ga(h);(g.preOrderHooks||(g.preOrderHooks=[])).push(c,fe),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(c,fe)}F&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-c,F),G&&((g.preOrderHooks||(g.preOrderHooks=[])).push(c,G),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(c,G))}(g,G[g],h)}finally{null!==We&&q(We),al(Ie),fe.resolving=!1,zn()}}return F}function Ea(c,h,g){return!!(g[h+(c>>5)]&1<{const h=c.prototype.constructor,g=h[Ee]||e1(h),S=Object.prototype;let F=Object.getPrototypeOf(c.prototype).constructor;for(;F&&F!==S;){const G=F[Ee]||e1(F);if(G&&G!==g)return G;F=Object.getPrototypeOf(F)}return G=>new G})}function e1(c){return E(c)?()=>{const h=e1(A(c));return h&&h()}:kr(c)}function t1(c){return function Wn(c,h){if("class"===h)return c.classes;if("style"===h)return c.styles;const g=c.attrs;if(g){const S=g.length;let F=0;for(;F{const S=function uc(c){return function(...g){if(c){const S=c(...g);for(const F in S)this[F]=S[F]}}}(h);function F(...G){if(this instanceof F)return S.apply(this,G),this;const fe=new F(...G);return Ie.annotation=fe,Ie;function Ie(We,ut,Tt){const Gt=We.hasOwnProperty(ko)?We[ko]:Object.defineProperty(We,ko,{value:[]})[ko];for(;Gt.length<=Tt;)Gt.push(null);return(Gt[Tt]=Gt[Tt]||[]).push(fe),We}}return g&&(F.prototype=Object.create(g.prototype)),F.prototype.ngMetadataName=c,F.annotationCls=F,F})}class Yr{constructor(h,g){this._desc=h,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=be({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const fc=new Yr("AnalyzeForEntryComponents");function ps(c,h){void 0===h&&(h=c);for(let g=0;gArray.isArray(g)?xs(g,h):h(g))}function s1(c,h,g){h>=c.length?c.push(g):c.splice(h,0,g)}function Il(c,h){return h>=c.length-1?c.pop():c.splice(h,1)[0]}function Ws(c,h){const g=[];for(let S=0;S=0?c[1|S]=g:(S=~S,function m0(c,h,g,S){let F=c.length;if(F==h)c.push(g,S);else if(1===F)c.push(S,c[0]),c[0]=g;else{for(F--,c.push(c[F-1],c[F]);F>h;)c[F]=c[F-2],F--;c[h]=g,c[h+1]=S}}(c,S,h,g)),S}function kl(c,h){const g=as(c,h);if(g>=0)return c[1|g]}function as(c,h){return function Nl(c,h,g){let S=0,F=c.length>>g;for(;F!==S;){const G=S+(F-S>>1),fe=c[G<h?F=G:S=G+1}return~(F<({token:c})),-1),zo=Bo(bo("Optional"),8),Bl=Bo(bo("Self"),2),qs=Bo(bo("SkipSelf"),4);let Yo,Hl;function ho(c){var h;return(null===(h=function g1(){if(void 0===Yo&&(Yo=null,Ft.trustedTypes))try{Yo=Ft.trustedTypes.createPolicy("angular",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch(c){}return Yo}())||void 0===h?void 0:h.createHTML(c))||c}function He(c){var h;return(null===(h=function X(){if(void 0===Hl&&(Hl=null,Ft.trustedTypes))try{Hl=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch(c){}return Hl}())||void 0===h?void 0:h.createHTML(c))||c}class pt{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class fi extends pt{getTypeName(){return"HTML"}}class In extends pt{getTypeName(){return"Style"}}class tr extends pt{getTypeName(){return"Script"}}class Fn extends pt{getTypeName(){return"URL"}}class Br extends pt{getTypeName(){return"ResourceURL"}}function ya(c){return c instanceof pt?c.changingThisBreaksApplicationSecurity:c}function sr(c,h){const g=Na(c);if(null!=g&&g!==h){if("ResourceURL"===g&&"URL"===h)return!0;throw new Error(`Required a safe ${h}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===h}function Na(c){return c instanceof pt&&c.getTypeName()||null}function Wo(c){return new fi(c)}function fo(c){return new In(c)}function xc(c){return new tr(c)}function jo(c){return new Fn(c)}function w0(c){return new Br(c)}class N4{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h=""+h;try{const g=(new window.DOMParser).parseFromString(ho(h),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(h):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class R4{constructor(h){if(this.defaultDoc=h,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const S=this.inertDocument.createElement("body");g.appendChild(S)}}getInertBodyElement(h){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=ho(h),g;const S=this.inertDocument.createElement("body");return S.innerHTML=ho(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(S),S}stripCustomNsAttrs(h){const g=h.attributes;for(let F=g.length-1;0hl(h.trim())).join(", ")),this.buf.push(" ",fe,'="',Ah(We),'"')}var c;return this.buf.push(">"),!0}endElement(h){const g=h.nodeName.toLowerCase();ul.hasOwnProperty(g)&&!tf.hasOwnProperty(g)&&(this.buf.push(""))}chars(h){this.buf.push(Ah(h))}checkClobberedElement(h,g){if(g&&(h.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${h.outerHTML}`);return g}}const Cc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mc=/([^\#-~ |!])/g;function Ah(c){return c.replace(/&/g,"&").replace(Cc,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(Mc,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(//g,">")}let y1;function Eh(c,h){let g=null;try{y1=y1||function ef(c){const h=new R4(c);return function F4(){try{return!!(new window.DOMParser).parseFromString(ho(""),"text/html")}catch(c){return!1}}()?new N4(h):h}(c);let S=h?String(h):"";g=y1.getInertBodyElement(S);let F=5,G=S;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,S=G,G=g.innerHTML,g=y1.getInertBodyElement(S)}while(S!==G);return ho((new rf).sanitizeChildren(E0(g)||g))}finally{if(g){const S=E0(g)||g;for(;S.firstChild;)S.removeChild(S.firstChild)}}}function E0(c){return"content"in c&&function af(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}var ua=(()=>((ua=ua||{})[ua.NONE=0]="NONE",ua[ua.HTML=1]="HTML",ua[ua.STYLE=2]="STYLE",ua[ua.SCRIPT=3]="SCRIPT",ua[ua.URL=4]="URL",ua[ua.RESOURCE_URL=5]="RESOURCE_URL",ua))();function T0(c){const h=wc();return h?He(h.sanitize(ua.HTML,c)||""):sr(c,"HTML")?He(ya(c)):Eh(Gr(),W(c))}function S0(c){const h=wc();return h?h.sanitize(ua.URL,c)||"":sr(c,"URL")?ya(c):hl(W(c))}function wc(){const c=Pi();return c&&c[12]}const Lh="__ngContext__";function ss(c,h){c[Lh]=h}function b1(c){const h=function Ac(c){return c[Lh]||null}(c);return h?Array.isArray(h)?h:h.lView:null}function P0(c){return c.ngOriginalError}function yf(c,...h){c.error(...h)}class Ec{constructor(){this._console=console}handleError(h){const g=this._findOriginalError(h),S=function kh(c){return c&&c.ngErrorLogger||yf}(h);S(this._console,"ERROR",h),g&&S(this._console,"ORIGINAL ERROR",g)}_findOriginalError(h){let g=h&&P0(h);for(;g&&P0(g);)g=P0(g);return g||null}}const Bh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ft))();function Hh(c){return c.ownerDocument.defaultView}function po(c){return c instanceof Function?c():c}var os=(()=>((os=os||{})[os.Important=1]="Important",os[os.DashCase=2]="DashCase",os))();function C1(c,h){return undefined(c,h)}function Tc(c){const h=c[3];return kn(h)?h[3]:h}function M1(c){return If(c[13])}function R0(c){return If(c[4])}function If(c){for(;null!==c&&!kn(c);)c=c[4];return c}function fl(c,h,g,S,F){if(null!=S){let G,fe=!1;kn(S)?G=S:_n(S)&&(fe=!0,S=S[0]);const Ie=Xe(S);0===c&&null!==g?null==F?z0(h,g,Ie):Ms(h,g,Ie,F||null,!0):1===c&&null!==g?Ms(h,g,Ie,F||null,!0):2===c?function G0(c,h,g){const S=T1(c,h);S&&function E1(c,h,g,S){Zn(c)?c.removeChild(h,g,S):h.removeChild(g)}(c,S,h,g)}(h,Ie,fe):3===c&&h.destroyNode(Ie),null!=G&&function Y0(c,h,g,S,F){const G=g[7];G!==Xe(g)&&fl(h,c,S,G,F);for(let Ie=10;Ie0&&(c[g-1][4]=S[4]);const G=Il(c,10+h);!function Zl(c,h){Vl(c,h,h[11],2,null,null),h[0]=null,h[6]=null}(S[1],S);const fe=G[19];null!==fe&&fe.detachView(G[1]),S[3]=null,S[4]=null,S[2]&=-129}return S}function pl(c,h){if(!(256&h[2])){const g=h[11];Zn(g)&&g.destroyNode&&Vl(c,h,g,3,null,null),function Nf(c){let h=c[13];if(!h)return Yh(c[1],c);for(;h;){let g=null;if(_n(h))g=h[13];else{const S=h[10];S&&(g=S)}if(!g){for(;h&&!h[4]&&h!==c;)_n(h)&&Yh(h[1],h),h=h[3];null===h&&(h=c),_n(h)&&Yh(h[1],h),g=h&&h[4]}h=g}}(h)}}function Yh(c,h){if(!(256&h[2])){h[2]&=-129,h[2]|=256,function Bf(c,h){let g;if(null!=c&&null!=(g=c.destroyHooks))for(let S=0;S=0?S[F=ut]():S[F=-ut].unsubscribe(),G+=2}else{const fe=S[F=g[G+1]];g[G].call(fe)}if(null!==S){for(let G=F+1;GG?"":F[Gt+1].toLowerCase();const gi=8&S?oi:null;if(gi&&-1!==Jh(gi,ut,0)||2&S&&ut!==oi){if(Er(S))return!1;fe=!0}}}}else{if(!fe&&!Er(S)&&!Er(We))return!1;if(fe&&Er(We))continue;fe=!1,S=We|1&S}}return Er(S)||fe}function Er(c){return 0==(1&c)}function ed(c,h,g,S){if(null===h)return-1;let F=0;if(S||!g){let G=!1;for(;F-1)for(g++;g0?'="'+Ie+'"':"")+"]"}else 8&S?F+="."+fe:4&S&&(F+=" "+fe);else""!==F&&!Er(fe)&&(h+=N1(G,F),F=""),S=fe,G=G||!Er(S);g++}return""!==F&&(h+=N1(G,F)),h}const Sn={};function R1(c){F1(Nn(),Pi(),Vn()+c,Pt())}function F1(c,h,g,S){if(!S)if(3==(3&h[2])){const G=c.preOrderCheckHooks;null!==G&&Yn(h,G,g)}else{const G=c.preOrderHooks;null!==G&&io(h,G,0,g)}mr(g)}function B1(c,h){return c<<17|h<<2}function ws(c){return c>>17&32767}function rd(c){return 2|c}function Ks(c){return(131068&c)>>2}function Jn(c,h){return-131069&c|h<<2}function H1(c){return 1|c}function hd(c,h){const g=c.contentQueries;if(null!==g)for(let S=0;S20&&F1(c,h,20,Pt()),g(S,F)}finally{mr(G)}}function ud(c,h,g){if(dr(h)){const F=h.directiveEnd;for(let G=h.directiveStart;G0;){const g=c[--h];if("number"==typeof g&&g<0)return g}return 0})(Ie)!=We&&Ie.push(We),Ie.push(S,F,fe)}}function xd(c,h){null!==c.hostBindings&&c.hostBindings(1,h)}function Cd(c,h){h.flags|=2,(c.components||(c.components=[])).push(h.index)}function a6(c,h,g){if(g){if(h.exportAs)for(let S=0;S0&&f2(g)}}function f2(c){for(let S=M1(c);null!==S;S=R0(S))for(let F=10;F0&&f2(G)}const g=c[1].components;if(null!==g)for(let S=0;S0&&f2(F)}}function h6(c,h){const g=ti(h,c),S=g[1];(function d6(c,h){for(let g=h.length;gPromise.resolve(null))();function _2(c){return c[7]||(c[7]=[])}function Dd(c){return c.cleanup||(c.cleanup=[])}function Ld(c,h,g){return(null===c||dn(c))&&(g=function me(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(g[h.index])),g[11]}function Od(c,h){const g=c[9],S=g?g.get(Ec,null):null;S&&S.handleError(h)}function Id(c,h,g,S,F){for(let G=0;Gthis.processProvider(Ie,h,g)),xs([h],Ie=>this.processInjectorType(Ie,[],G)),this.records.set(v2,jl(void 0,this));const fe=this.records.get(y2);this.scope=null!=fe?fe.value:null,this.source=F||("object"==typeof h?null:R(h))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(h=>h.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(h,g=za,S=ce.Default){this.assertNotDestroyed();const F=ll(this),G=q(void 0);try{if(!(S&ce.SkipSelf)){let Ie=this.records.get(h);if(void 0===Ie){const We=function E6(c){return"function"==typeof c||"object"==typeof c&&c instanceof Yr}(h)&&Oe(h);Ie=We&&this.injectableDefInScope(We)?jl(C2(h),Hc):null,this.records.set(h,Ie)}if(null!=Ie)return this.hydrate(h,Ie)}return(S&ce.Self?kd():this.parent).get(h,g=S&ce.Optional&&g===za?null:g)}catch(fe){if("NullInjectorError"===fe.name){if((fe[Ns]=fe[Ns]||[]).unshift(R(h)),F)throw fe;return function ph(c,h,g,S){const F=c[Ns];throw h[Fl]&&F.unshift(h[Fl]),c.message=function f1(c,h,g,S=null){c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.substr(2):c;let F=R(h);if(Array.isArray(h))F=h.map(R).join(" -> ");else if("object"==typeof h){let G=[];for(let fe in h)if(h.hasOwnProperty(fe)){let Ie=h[fe];G.push(fe+":"+("string"==typeof Ie?JSON.stringify(Ie):R(Ie)))}F=`{${G.join(", ")}}`}return`${g}${S?"("+S+")":""}[${F}]: ${c.replace(h1,"\n ")}`}("\n"+c.message,F,g,S),c.ngTokenPath=F,c[Ns]=null,c}(fe,h,"R3InjectorError",this.source)}throw fe}finally{q(G),ll(F)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(h=>this.get(h))}toString(){const h=[];return this.records.forEach((S,F)=>h.push(R(F))),`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(h,g,S){if(!(h=A(h)))return!1;let F=z(h);const G=null==F&&h.ngModule||void 0,fe=void 0===G?h:G,Ie=-1!==S.indexOf(fe);if(void 0!==G&&(F=z(G)),null==F)return!1;if(null!=F.imports&&!Ie){let Tt;S.push(fe);try{xs(F.imports,Gt=>{this.processInjectorType(Gt,g,S)&&(void 0===Tt&&(Tt=[]),Tt.push(Gt))})}finally{}if(void 0!==Tt)for(let Gt=0;Gtthis.processProvider(Oi,oi,gi||ei))}}this.injectorDefTypes.add(fe);const We=kr(fe)||(()=>new fe);this.records.set(fe,jl(We,Hc));const ut=F.providers;if(null!=ut&&!Ie){const Tt=h;xs(ut,Gt=>this.processProvider(Gt,Tt,ut))}return void 0!==G&&void 0!==h.providers}processProvider(h,g,S){let F=Hr(h=A(h))?h:A(h&&h.provide);const G=function x6(c,h,g){return Fd(c)?jl(void 0,c.useValue):jl(Rd(c),Hc)}(h);if(Hr(h)||!0!==h.multi)this.records.get(F);else{let fe=this.records.get(F);fe||(fe=jl(void 0,Hc,!0),fe.factory=()=>d1(fe.multi),this.records.set(F,fe)),F=h,fe.multi.push(h)}this.records.set(F,G)}hydrate(h,g){return g.value===Hc&&(g.value=v6,g.value=g.factory()),"object"==typeof g.value&&g.value&&function A6(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(h){if(!h.providedIn)return!1;const g=A(h.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function C2(c){const h=Oe(c),g=null!==h?h.factory:kr(c);if(null!==g)return g;if(c instanceof Yr)throw new Error(`Token ${R(c)} is missing a \u0275prov definition.`);if(c instanceof Function)return function b6(c){const h=c.length;if(h>0){const S=Ws(h,"?");throw new Error(`Can't resolve all parameters for ${R(c)}: (${S.join(", ")}).`)}const g=function Me(c){const h=c&&(c[Ze]||c[Fe]);if(h){const g=function we(c){if(c.hasOwnProperty("name"))return c.name;const h=(""+c).match(/^function\s*([^\s(]+)/);return null===h?"":h[1]}(c);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.`),h}return null}(c);return null!==g?()=>g.factory(c):()=>new c}(c);throw new Error("unreachable")}function Rd(c,h,g){let S;if(Hr(c)){const F=A(c);return kr(F)||C2(F)}if(Fd(c))S=()=>A(c.useValue);else if(function M6(c){return!(!c||!c.useFactory)}(c))S=()=>c.useFactory(...d1(c.deps||[]));else if(function C6(c){return!(!c||!c.useExisting)}(c))S=()=>ka(A(c.useExisting));else{const F=A(c&&(c.useClass||c.provide));if(!function w6(c){return!!c.deps}(c))return kr(F)||C2(F);S=()=>new F(...d1(c.deps))}return S}function jl(c,h,g=!1){return{factory:c,value:h,multi:g?[]:void 0}}function Fd(c){return null!==c&&"object"==typeof c&&yc in c}function Hr(c){return"function"==typeof c}let Rs=(()=>{class c{static create(g,S){var F;if(Array.isArray(g))return x2({name:""},S,g,"");{const G=null!==(F=g.name)&&void 0!==F?F:"";return x2({name:G},g.parent,g.providers,G)}}}return c.THROW_IF_NOT_FOUND=za,c.NULL=new Pd,c.\u0275prov=be({token:c,providedIn:"any",factory:()=>ka(v2)}),c.__NG_ELEMENT_ID__=-1,c})();function P6(c,h){$r(b1(c)[1],fr())}function A2(c){let h=function qd(c){return Object.getPrototypeOf(c.prototype).constructor}(c.type),g=!0;const S=[c];for(;h;){let F;if(dn(c))F=h.\u0275cmp||h.\u0275dir;else{if(h.\u0275cmp)throw new Error("Directives cannot inherit Components");F=h.\u0275dir}if(F){if(g){S.push(F);const fe=c;fe.inputs=E2(c.inputs),fe.declaredInputs=E2(c.declaredInputs),fe.outputs=E2(c.outputs);const Ie=F.hostBindings;Ie&&F6(c,Ie);const We=F.viewQuery,ut=F.contentQueries;if(We&&N6(c,We),ut&&R6(c,ut),l(c.inputs,F.inputs),l(c.declaredInputs,F.declaredInputs),l(c.outputs,F.outputs),dn(F)&&F.data.animation){const Tt=c.data;Tt.animation=(Tt.animation||[]).concat(F.data.animation)}}const G=F.features;if(G)for(let fe=0;fe=0;S--){const F=c[S];F.hostVars=h+=F.hostVars,F.hostAttrs=Oo(F.hostAttrs,g=Oo(g,F.hostAttrs))}}(S)}function E2(c){return c===jt?{}:c===ei?[]:c}function N6(c,h){const g=c.viewQuery;c.viewQuery=g?(S,F)=>{h(S,F),g(S,F)}:h}function R6(c,h){const g=c.contentQueries;c.contentQueries=g?(S,F,G)=>{h(S,F,G),g(S,F,G)}:h}function F6(c,h){const g=c.hostBindings;c.hostBindings=g?(S,F)=>{h(S,F),g(S,F)}:h}let q1=null;function ql(){if(!q1){const c=Ft.Symbol;if(c&&c.iterator)q1=c.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gIe(Xe(rr[S.index])):S.index;if(Zn(g)){let rr=null;if(!Ie&&We&&(rr=function f4(c,h,g,S){const F=c.cleanup;if(null!=F)for(let G=0;GWe?Ie[We]:null}"string"==typeof fe&&(G+=2)}return null}(c,h,F,S.index)),null!==rr)(rr.__ngLastListenerFn__||rr).__ngNextListenerFn__=G,rr.__ngLastListenerFn__=G,gi=!1;else{G=$1(S,h,Gt,G,!1);const Ur=g.listen(pn,F,G);oi.push(G,Ur),Tt&&Tt.push(F,Tn,Ri,Ri+1)}}else G=$1(S,h,Gt,G,!0),pn.addEventListener(F,G,fe),oi.push(G),Tt&&Tt.push(F,Tn,Ri,fe)}else G=$1(S,h,Gt,G,!1);const Oi=S.outputs;let Ji;if(gi&&null!==Oi&&(Ji=Oi[F])){const rn=Ji.length;if(rn)for(let pn=0;pn0;)h=h[15],c--;return h}(c,Wi.lFrame.contextLView))[8]}(c)}function Es(c,h){let g=null;const S=function P1(c){const h=c.attrs;if(null!=h){const g=h.indexOf(5);if(0==(1&g))return h[g+1]}return null}(c);for(let F=0;F=0}const ir={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bs(c){return c.substring(ir.key,ir.keyEnd)}function V2(c,h){const g=ir.textEnd;return g===h?-1:(h=ir.keyEnd=function Ua(c,h,g){for(;h32;)h++;return h}(c,ir.key=h,g),Cl(c,h,g))}function Cl(c,h,g){for(;h=0;g=V2(h,g))Ka(c,Bs(h),!0)}function Ss(c,h,g,S){const F=Pi(),G=Nn(),fe=tn(2);G.firstUpdatePass&&W2(G,c,fe,S),h!==Sn&&ls(F,fe,h)&&K2(G,G.data[Vn()],F,F[11],c,F[fe+1]=function Hs(c,h){return null==c||("string"==typeof h?c+=h:"object"==typeof c&&(c=R(ya(c)))),c}(h,g),S,fe)}function Ds(c,h,g,S){const F=Nn(),G=tn(2);F.firstUpdatePass&&W2(F,null,G,S);const fe=Pi();if(g!==Sn&&ls(fe,G,g)){const Ie=F.data[Vn()];if(qr(Ie,S)&&!Y2(F,G)){let We=S?Ie.classesWithoutHost:Ie.stylesWithoutHost;null!==We&&(g=s(We,g||"")),k2(F,Ie,fe,g,S)}else!function Ou(c,h,g,S,F,G,fe,Ie){F===Sn&&(F=ei);let We=0,ut=0,Tt=0=c.expandoStartIndex}function W2(c,h,g,S){const F=c.data;if(null===F[g+1]){const G=F[Vn()],fe=Y2(c,g);qr(G,S)&&null===h&&!fe&&(h=!1),h=function Du(c,h,g,S){const F=zt(c);let G=S?h.residualClasses:h.residualStyles;if(null===F)0===(S?h.classBindings:h.styleBindings)&&(g=Eo(g=Yc(null,c,h,g,S),h.attrs,S),G=null);else{const fe=h.directiveStylingLast;if(-1===fe||c[fe]!==F)if(g=Yc(F,c,h,g,S),null===G){let We=function t0(c,h,g){const S=g?h.classBindings:h.styleBindings;if(0!==Ks(S))return c[ws(S)]}(c,h,S);void 0!==We&&Array.isArray(We)&&(We=Yc(null,c,h,We[1],S),We=Eo(We,h.attrs,S),function j2(c,h,g,S){c[ws(g?h.classBindings:h.styleBindings)]=S}(c,h,S,We))}else G=function Lu(c,h,g){let S;const F=h.directiveEnd;for(let G=1+h.directiveStylingLast;G0)&&(ut=!0)}else Tt=g;if(F)if(0!==We){const oi=ws(c[Ie+1]);c[S+1]=B1(oi,Ie),0!==oi&&(c[oi+1]=Jn(c[oi+1],S)),c[Ie+1]=function K0(c,h){return 131071&c|h<<17}(c[Ie+1],S)}else c[S+1]=B1(Ie,0),0!==Ie&&(c[Ie+1]=Jn(c[Ie+1],S)),Ie=S;else c[S+1]=B1(We,0),0===Ie?Ie=S:c[We+1]=Jn(c[We+1],S),We=S;ut&&(c[S+1]=rd(c[S+1])),Xa(c,Tt,S,!0),Xa(c,Tt,S,!1),function Eu(c,h,g,S,F){const G=F?c.residualClasses:c.residualStyles;null!=G&&"string"==typeof h&&as(G,h)>=0&&(g[S+1]=H1(g[S+1]))}(h,Tt,c,S,G),fe=B1(Ie,We),G?h.classBindings=fe:h.styleBindings=fe}(F,G,h,g,fe,S)}}function Yc(c,h,g,S,F){let G=null;const fe=g.directiveEnd;let Ie=g.directiveStylingLast;for(-1===Ie?Ie=g.directiveStart:Ie++;Ie0;){const We=c[F],ut=Array.isArray(We),Tt=ut?We[1]:We,Gt=null===Tt;let oi=g[F+1];oi===Sn&&(oi=Gt?ei:void 0);let gi=Gt?kl(oi,S):Tt===S?oi:void 0;if(ut&&!J2(gi)&&(gi=kl(We,S)),J2(gi)&&(Ie=gi,fe))return Ie;const Oi=c[F+1];F=fe?ws(Oi):Ks(Oi)}if(null!==h){let We=G?h.residualClasses:h.residualStyles;null!=We&&(Ie=kl(We,S))}return Ie}function J2(c){return void 0!==c}function qr(c,h){return 0!=(c.flags&(h?16:32))}function X2(c,h=""){const g=Pi(),S=Nn(),F=c+20,G=S.firstCreatePass?Wl(S,F,1,h,null):S.data[F],fe=g[F]=function F0(c,h){return Zn(c)?c.createText(h):c.createTextNode(h)}(g[11],h);Dc(S,g,fe,G),xt(G,!1)}function Kr(c){return Al("",c,""),Kr}function Al(c,h,g){const S=Pi(),F=Ql(S,c,h,g);return F!==Sn&&Mo(S,Vn(),F),Al}function $s(c,h,g,S,F){const G=Pi(),fe=function Jl(c,h,g,S,F,G){const Ie=bl(c,pi(),g,F);return tn(2),Ie?h+W(g)+S+W(F)+G:Sn}(G,c,h,g,S,F);return fe!==Sn&&Mo(G,Vn(),fe),$s}function Iu(c,h,g,S,F,G,fe){const Ie=Pi(),We=function Xl(c,h,g,S,F,G,fe,Ie){const ut=K1(c,pi(),g,F,fe);return tn(3),ut?h+W(g)+S+W(F)+G+W(fe)+Ie:Sn}(Ie,c,h,g,S,F,G,fe);return We!==Sn&&Mo(Ie,Vn(),We),Iu}function $2(c,h,g,S,F,G,fe,Ie,We){const ut=Pi(),Tt=$l(ut,c,h,g,S,F,G,fe,Ie,We);return Tt!==Sn&&Mo(ut,Vn(),Tt),$2}function a0(c,h,g){Ds(Ka,ts,Ql(Pi(),c,h,g),!0)}function ih(c,h,g){const S=Pi();return ls(S,Zi(),h)&&As(Nn(),Hi(),S,c,h,S[11],g,!0),ih}function Zu(c,h,g){const S=Pi();if(ls(S,Zi(),h)){const G=Nn(),fe=Hi();As(G,fe,S,c,h,Ld(zt(G.data),fe,S),g,!0)}return Zu}const El=void 0;var D3=["en",[["a","p"],["AM","PM"],El],[["AM","PM"],El,El],[["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"]],El,[["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"]],El,[["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}",El,"{1} 'at' {0}",El],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Vu(c){const g=Math.floor(Math.abs(c)),S=c.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===S?1:5}];let sc={};function l0(c){const h=function L3(c){return c.toLowerCase().replace(/_/g,"-")}(c);let g=b4(h);if(g)return g;const S=h.split("-")[0];if(g=b4(S),g)return g;if("en"===S)return D3;throw new Error(`Missing locale data for the locale "${c}".`)}function Gu(c){return l0(c)[wn.PluralCase]}function b4(c){return c in sc||(sc[c]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[c]),sc[c]}var wn=(()=>((wn=wn||{})[wn.LocaleId=0]="LocaleId",wn[wn.DayPeriodsFormat=1]="DayPeriodsFormat",wn[wn.DayPeriodsStandalone=2]="DayPeriodsStandalone",wn[wn.DaysFormat=3]="DaysFormat",wn[wn.DaysStandalone=4]="DaysStandalone",wn[wn.MonthsFormat=5]="MonthsFormat",wn[wn.MonthsStandalone=6]="MonthsStandalone",wn[wn.Eras=7]="Eras",wn[wn.FirstDayOfWeek=8]="FirstDayOfWeek",wn[wn.WeekendRange=9]="WeekendRange",wn[wn.DateFormat=10]="DateFormat",wn[wn.TimeFormat=11]="TimeFormat",wn[wn.DateTimeFormat=12]="DateTimeFormat",wn[wn.NumberSymbols=13]="NumberSymbols",wn[wn.NumberFormats=14]="NumberFormats",wn[wn.CurrencyCode=15]="CurrencyCode",wn[wn.CurrencySymbol=16]="CurrencySymbol",wn[wn.CurrencyName=17]="CurrencyName",wn[wn.Currencies=18]="Currencies",wn[wn.Directionality=19]="Directionality",wn[wn.PluralCase=20]="PluralCase",wn[wn.ExtraData=21]="ExtraData",wn))();const c0="en-US";let rh=c0;function X3(c,h,g,S,F){if(c=A(c),Array.isArray(c))for(let G=0;G>20;if(Hr(c)||!c.multi){const gi=new us(We,F,Zc),Oi=ep(Ie,h,F?Tt:Tt+oi,Gt);-1===Oi?(an(Ot(ut,fe),G,Ie),$3(G,c,h.length),h.push(Ie),ut.directiveStart++,ut.directiveEnd++,F&&(ut.providerIndexes+=1048576),g.push(gi),fe.push(gi)):(g[Oi]=gi,fe[Oi]=gi)}else{const gi=ep(Ie,h,Tt+oi,Gt),Oi=ep(Ie,h,Tt,Tt+oi),Ji=gi>=0&&g[gi],rn=Oi>=0&&g[Oi];if(F&&!rn||!F&&!Ji){an(Ot(ut,fe),G,Ie);const pn=function M8(c,h,g,S,F){const G=new us(c,g,Zc);return G.multi=[],G.index=h,G.componentProviders=0,zp(G,F,S&&!g),G}(F?C8:x8,g.length,F,S,We);!F&&rn&&(g[Oi].providerFactory=pn),$3(G,c,h.length,0),h.push(Ie),ut.directiveStart++,ut.directiveEnd++,F&&(ut.providerIndexes+=1048576),g.push(pn),fe.push(pn)}else $3(G,c,gi>-1?gi:Oi,zp(g[F?Oi:gi],We,!F&&S));!F&&S&&rn&&g[Oi].componentProviders++}}}function $3(c,h,g,S){const F=Hr(h),G=function j1(c){return!!c.useClass}(h);if(F||G){const We=(G?A(h.useClass):h).prototype.ngOnDestroy;if(We){const ut=c.destroyHooks||(c.destroyHooks=[]);if(!F&&h.multi){const Tt=ut.indexOf(g);-1===Tt?ut.push(g,[S,We]):ut[Tt+1].push(S,We)}else ut.push(g,We)}}}function zp(c,h,g){return g&&c.componentProviders++,c.multi.push(h)-1}function ep(c,h,g,S){for(let F=g;F{g.providersResolver=(S,F)=>function b8(c,h,g){const S=Nn();if(S.firstCreatePass){const F=dn(c);X3(g,S.data,S.blueprint,F,!0),X3(h,S.data,S.blueprint,F,!1)}}(S,F?F(c):c,h)}}class Zp{}class E8{resolveComponentFactory(h){throw function A8(c){const h=Error(`No component factory found for ${R(c)}. Did you add it to @NgModule.entryComponents?`);return h.ngComponent=c,h}(h)}}let T4=(()=>{class c{}return c.NULL=new E8,c})();function T8(){return Ku(fr(),Pi())}function Ku(c,h){return new S4(Qe(c,h))}let S4=(()=>{class c{constructor(g){this.nativeElement=g}}return c.__NG_ELEMENT_ID__=T8,c})();function S8(c){return c instanceof S4?c.nativeElement:c}class Gp{}let D8=(()=>{class c{}return c.__NG_ELEMENT_ID__=()=>function O8(){const c=Pi(),g=ti(fr().index,c);return function L8(c){return c[11]}(_n(g)?g:c)}(),c})(),I8=(()=>{class c{}return c.\u0275prov=be({token:c,providedIn:"root",factory:()=>null}),c})();class Yp{constructor(h){this.full=h,this.major=h.split(".")[0],this.minor=h.split(".")[1],this.patch=h.split(".").slice(2).join(".")}}const P8=new Yp("13.0.3"),ip={};function F3(c,h,g,S,F=!1){for(;null!==g;){const G=h[g.index];if(null!==G&&S.push(Xe(G)),kn(G))for(let Ie=10;Ie-1&&(A1(h,S),Il(g,S))}this._attachedToViewContainer=!1}pl(this._lView[1],this._lView)}onDestroy(h){gd(this._lView[1],this._lView,null,h)}markForCheck(){Y1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){m2(this._lView[1],this._lView,this.context)}checkNoChanges(){!function f6(c,h,g){Qt(!0);try{m2(c,h,g)}finally{Qt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kf(c,h){Vl(c,h,h[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(h){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=h}}class k8 extends D4{constructor(h){super(h),this._view=h}detectChanges(){Sd(this._view)}checkNoChanges(){!function p6(c){Qt(!0);try{Sd(c)}finally{Qt(!1)}}(this._view)}get context(){return null}}class Wp extends T4{constructor(h){super(),this.ngModule=h}resolveComponentFactory(h){const g=At(h);return new np(g,this.ngModule)}}function jp(c){const h=[];for(let g in c)c.hasOwnProperty(g)&&h.push({propName:c[g],templateName:g});return h}const R8=new Yr("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Bh});class np extends Zp{constructor(h,g){super(),this.componentDef=h,this.ngModule=g,this.componentType=h.type,this.selector=function id(c){return c.map(zf).join(",")}(h.selectors),this.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return jp(this.componentDef.inputs)}get outputs(){return jp(this.componentDef.outputs)}create(h,g,S,F){const G=(F=F||this.ngModule)?function F8(c,h){return{get:(g,S,F)=>{const G=c.get(g,ip,F);return G!==ip||S===ip?G:h.get(g,S,F)}}}(h,F.injector):h,fe=G.get(Gp,ns),Ie=G.get(I8,null),We=fe.createRenderer(null,this.componentDef),ut=this.componentDef.selectors[0][0]||"div",Tt=S?function md(c,h,g){if(Zn(c))return c.selectRootElement(h,g===ft.ShadowDom);let S="string"==typeof h?c.querySelector(h):h;return S.textContent="",S}(We,S,this.componentDef.encapsulation):w1(fe.createRenderer(null,this.componentDef),ut,function N8(c){const h=c.toLowerCase();return"svg"===h?Sr:"math"===h?"http://www.w3.org/1998/MathML/":null}(ut)),Gt=this.componentDef.onPush?576:528,oi=function jd(c,h){return{components:[],scheduler:c||Bh,clean:m6,playerHandler:h||null,flags:0}}(),gi=Fc(0,null,null,1,0,null,null,null,null,null),Oi=kc(null,gi,oi,Gt,null,null,fe,We,Ie,G);let Ji,rn;Ki(Oi);try{const pn=function Yd(c,h,g,S,F,G){const fe=g[1];g[20]=c;const We=Wl(fe,20,2,"#host",null),ut=We.mergedAttrs=h.hostAttrs;null!==ut&&(W1(We,ut,!0),null!==c&&(Lo(F,c,ut),null!==We.classes&&W0(F,c,We.classes),null!==We.styles&&Qh(F,c,We.styles)));const Tt=S.createRenderer(c,h),Gt=kc(g,fd(h),null,h.onPush?64:16,g[20],We,S,Tt,G||null,null);return fe.firstCreatePass&&(an(Ot(We,g),fe,h.type),Cd(fe,We),Md(We,g.length,1)),G1(g,Gt),g[20]=Gt}(Tt,this.componentDef,Oi,fe,We);if(Tt)if(S)Lo(We,Tt,["ng-version",P8.full]);else{const{attrs:Ri,classes:Tn}=function nd(c){const h=[],g=[];let S=1,F=2;for(;S0&&W0(We,Tt,Tn.join(" "))}if(rn=mi(gi,20),void 0!==g){const Ri=rn.projection=[];for(let Tn=0;TnWe(fe,h)),h.contentQueries){const We=fr();h.contentQueries(1,fe,We.directiveStart)}const Ie=fr();return!G.firstCreatePass||null===h.hostBindings&&null===h.hostAttrs||(mr(Ie.index),u2(g[1],Ie,0,Ie.directiveStart,Ie.directiveEnd,h),xd(h,fe)),fe}(pn,this.componentDef,Oi,oi,[P6]),Jo(gi,Oi,null)}finally{Rr()}return new H8(this.componentType,Ji,Ku(rn,Oi),Oi,rn)}}class H8 extends class w8{}{constructor(h,g,S,F,G){super(),this.location=S,this._rootLView=F,this._tNode=G,this.instance=g,this.hostView=this.changeDetectorRef=new k8(F),this.componentType=h}get injector(){return new yo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(h){this.hostView.onDestroy(h)}}class Qu{}class qp{}const Ju=new Map;class Jp extends Qu{constructor(h,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Wp(this);const S=Rt(h);this._bootstrapComponents=po(S.bootstrap),this._r3Injector=Nd(h,g,[{provide:Qu,useValue:this},{provide:T4,useValue:this.componentFactoryResolver}],R(h)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(h)}get(h,g=Rs.THROW_IF_NOT_FOUND,S=ce.Default){return h===Rs||h===Qu||h===v2?this:this._r3Injector.get(h,g,S)}destroy(){const h=this._r3Injector;!h.destroyed&&h.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(h){this.destroyCbs.push(h)}}class rp extends qp{constructor(h){super(),this.moduleType=h,null!==Rt(h)&&function U8(c){const h=new Set;!function g(S){const F=Rt(S,!0),G=F.id;null!==G&&(function Kp(c,h,g){if(h&&h!==g)throw new Error(`Duplicate module registered for ${c} - ${R(h)} vs ${R(h.name)}`)}(G,Ju.get(G),S),Ju.set(G,S));const fe=po(F.imports);for(const Ie of fe)h.has(Ie)||(h.add(Ie),g(Ie))}(c)}(h)}create(h){return new Jp(this.moduleType,h)}}function Xp(c,h,g){const S=Xt()+c,F=Pi();return F[S]===Sn?_o(F,S,g?h.call(g):h()):function Uc(c,h){return c[h]}(F,S)}function $p(c,h,g,S){return im(Pi(),Xt(),c,h,g,S)}function em(c,h,g,S,F){return nm(Pi(),Xt(),c,h,g,S,F)}function tm(c,h,g,S,F,G){return rm(Pi(),Xt(),c,h,g,S,F,G)}function L4(c,h){const g=c[h];return g===Sn?void 0:g}function im(c,h,g,S,F,G){const fe=h+g;return ls(c,fe,F)?_o(c,fe+1,G?S.call(G,F):S(F)):L4(c,fe+1)}function nm(c,h,g,S,F,G,fe){const Ie=h+g;return bl(c,Ie,F,G)?_o(c,Ie+2,fe?S.call(fe,F,G):S(F,G)):L4(c,Ie+2)}function rm(c,h,g,S,F,G,fe,Ie){const We=h+g;return K1(c,We,F,G,fe)?_o(c,We+3,Ie?S.call(Ie,F,G,fe):S(F,G,fe)):L4(c,We+3)}function om(c,h){const g=Nn();let S;const F=c+20;g.firstCreatePass?(S=function q8(c,h){if(h)for(let g=h.length-1;g>=0;g--){const S=h[g];if(c===S.name)return S}}(h,g.pipeRegistry),g.data[F]=S,S.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(F,S.onDestroy)):S=g.data[F];const G=S.factory||(S.factory=kr(S.type)),fe=q(Zc);try{const Ie=al(!1),We=G();return al(Ie),function Y6(c,h,g,S){g>=c.data.length&&(c.data[g]=null,c.blueprint[g]=null),h[g]=S}(g,Pi(),F,We),We}finally{q(fe)}}function lm(c,h,g){const S=c+20,F=Pi(),G=Ct(F,S);return O4(F,S)?im(F,Xt(),h,G.transform,g,G):G.transform(g)}function cm(c,h,g,S){const F=c+20,G=Pi(),fe=Ct(G,F);return O4(G,F)?nm(G,Xt(),h,fe.transform,g,S,fe):fe.transform(g,S)}function hm(c,h,g,S,F){const G=c+20,fe=Pi(),Ie=Ct(fe,G);return O4(fe,G)?rm(fe,Xt(),h,Ie.transform,g,S,F,Ie):Ie.transform(g,S,F)}function O4(c,h){return c[1].data[h].pure}function ap(c){return h=>{setTimeout(c,void 0,h)}}const lc=class J8 extends e.x{constructor(h=!1){super(),this.__isAsync=h}emit(h){super.next(h)}subscribe(h,g,S){var F,G,fe;let Ie=h,We=g||(()=>null),ut=S;if(h&&"object"==typeof h){const Gt=h;Ie=null===(F=Gt.next)||void 0===F?void 0:F.bind(Gt),We=null===(G=Gt.error)||void 0===G?void 0:G.bind(Gt),ut=null===(fe=Gt.complete)||void 0===fe?void 0:fe.bind(Gt)}this.__isAsync&&(We=ap(We),Ie&&(Ie=ap(Ie)),ut&&(ut=ap(ut)));const Tt=super.subscribe({next:Ie,error:We,complete:ut});return h instanceof t.w0&&h.add(Tt),Tt}};function X8(){return this._results[ql()]()}class B3{constructor(h=!1){this._emitDistinctChangesOnly=h,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=ql(),S=B3.prototype;S[g]||(S[g]=X8)}get changes(){return this._changes||(this._changes=new lc)}get(h){return this._results[h]}map(h){return this._results.map(h)}filter(h){return this._results.filter(h)}find(h){return this._results.find(h)}reduce(h,g){return this._results.reduce(h,g)}forEach(h){this._results.forEach(h)}some(h){return this._results.some(h)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(h,g){const S=this;S.dirty=!1;const F=ps(h);(this._changesDetected=!function Ys(c,h,g){if(c.length!==h.length)return!1;for(let S=0;S{class c{}return c.__NG_ELEMENT_ID__=tg,c})();const $8=I4,eg=class extends $8{constructor(h,g,S){super(),this._declarationLView=h,this._declarationTContainer=g,this.elementRef=S}createEmbeddedView(h){const g=this._declarationTContainer.tViews,S=kc(this._declarationLView,g,h,16,null,g.declTNode,null,null,null,null);S[17]=this._declarationLView[this._declarationTContainer.index];const G=this._declarationLView[19];return null!==G&&(S[19]=G.createEmbeddedView(g)),Jo(g,S,h),new D4(S)}};function tg(){return H3(fr(),Pi())}function H3(c,h){return 4&c.type?new eg(h,c,Ku(c,h)):null}let z3=(()=>{class c{}return c.__NG_ELEMENT_ID__=ig,c})();function ig(){return fm(fr(),Pi())}const ng=z3,dm=class extends ng{constructor(h,g,S){super(),this._lContainer=h,this._hostTNode=g,this._hostLView=S}get element(){return Ku(this._hostTNode,this._hostLView)}get injector(){return new yo(this._hostTNode,this._hostLView)}get parentInjector(){const h=Ei(this._hostTNode,this._hostLView);if(Io(h)){const g=Gs(h,this._hostLView),S=ro(h);return new yo(g[1].data[S+8],g)}return new yo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(h){const g=um(this._lContainer);return null!==g&&g[h]||null}get length(){return this._lContainer.length-10}createEmbeddedView(h,g,S){const F=h.createEmbeddedView(g||{});return this.insert(F,S),F}createComponent(h,g,S,F,G){const fe=h&&!function oo(c){return"function"==typeof c}(h);let Ie;if(fe)Ie=g;else{const Gt=g||{};Ie=Gt.index,S=Gt.injector,F=Gt.projectableNodes,G=Gt.ngModuleRef}const We=fe?h:new np(At(h)),ut=S||this.parentInjector;if(!G&&null==We.ngModule&&ut){const Gt=ut.get(Qu,null);Gt&&(G=Gt)}const Tt=We.create(ut,F,void 0,G);return this.insert(Tt.hostView,Ie),Tt}insert(h,g){const S=h._lView,F=S[1];if(function xi(c){return kn(c[3])}(S)){const Tt=this.indexOf(h);if(-1!==Tt)this.detach(Tt);else{const Gt=S[3],oi=new dm(Gt,Gt[6],Gt[3]);oi.detach(oi.indexOf(h))}}const G=this._adjustIndex(g),fe=this._lContainer;!function Rf(c,h,g,S){const F=10+S,G=g.length;S>0&&(g[F-1][4]=h),S0)S.push(fe[Ie/2]);else{const ut=G[Ie+1],Tt=h[-We];for(let Gt=10;Gt{class c{constructor(g){this.appInits=g,this.resolve=V3,this.reject=V3,this.initialized=!1,this.done=!1,this.donePromise=new Promise((S,F)=>{this.resolve=S,this.reject=F})}runInitializers(){if(this.initialized)return;const g=[],S=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{G.subscribe({complete:Ie,error:We})});g.push(fe)}}Promise.all(g).then(()=>{S()}).catch(F=>{this.reject(F)}),0===g.length&&S(),this.initialized=!0}}return c.\u0275fac=function(g){return new(g||c)(ka(_p,8))},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();const zm=new Yr("AppId"),Dg={provide:zm,useFactory:function Sg(){return`${vp()}${vp()}${vp()}`},deps:[]};function vp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Um=new Yr("Platform Initializer"),Zm=new Yr("Platform ID"),Vm=new Yr("appBootstrapListener");let Gm=(()=>{class c{log(g){console.log(g)}warn(g){console.warn(g)}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();const G3=new Yr("LocaleId"),Ym=new Yr("DefaultCurrencyCode");class Lg{constructor(h,g){this.ngModuleFactory=h,this.componentFactories=g}}let yp=(()=>{class c{compileModuleSync(g){return new rp(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const S=this.compileModuleSync(g),G=po(Rt(g).declarations).reduce((fe,Ie)=>{const We=At(Ie);return We&&fe.push(new np(We)),fe},[]);return new Lg(S,G)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();const Ig=(()=>Promise.resolve(0))();function bp(c){"undefined"==typeof Zone?Ig.then(()=>{c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}class So{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:S=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lc(!1),this.onMicrotaskEmpty=new lc(!1),this.onStable=new lc(!1),this.onError=new lc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const F=this;F._nesting=0,F._outer=F._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!S&&g,F.shouldCoalesceRunChangeDetection=S,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function Pg(){let c=Ft.requestAnimationFrame,h=Ft.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&h){const g=c[Zone.__symbol__("OriginalDelegate")];g&&(c=g);const S=h[Zone.__symbol__("OriginalDelegate")];S&&(h=S)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function Rg(c){const h=()=>{!function Ng(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(Ft,()=>{c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{c.lastRequestAnimationFrameId=-1,Cp(c),c.isCheckStableRunning=!0,xp(c),c.isCheckStableRunning=!1},void 0,()=>{},()=>{})),c.fakeTopEventTask.invoke()}),Cp(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,S,F,G,fe,Ie)=>{try{return Wm(c),g.invokeTask(F,G,fe,Ie)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===G.type||c.shouldCoalesceRunChangeDetection)&&h(),jm(c)}},onInvoke:(g,S,F,G,fe,Ie,We)=>{try{return Wm(c),g.invoke(F,G,fe,Ie,We)}finally{c.shouldCoalesceRunChangeDetection&&h(),jm(c)}},onHasTask:(g,S,F,G)=>{g.hasTask(F,G),S===F&&("microTask"==G.change?(c._hasPendingMicrotasks=G.microTask,Cp(c),xp(c)):"macroTask"==G.change&&(c.hasPendingMacrotasks=G.macroTask))},onHandleError:(g,S,F,G)=>(g.handleError(F,G),c.runOutsideAngular(()=>c.onError.emit(G)),!1)})}(F)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!So.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(So.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(h,g,S){return this._inner.run(h,g,S)}runTask(h,g,S,F){const G=this._inner,fe=G.scheduleEventTask("NgZoneEvent: "+F,h,kg,V3,V3);try{return G.runTask(fe,g,S)}finally{G.cancelTask(fe)}}runGuarded(h,g,S){return this._inner.runGuarded(h,g,S)}runOutsideAngular(h){return this._outer.run(h)}}const kg={};function xp(c){if(0==c._nesting&&!c.hasPendingMicrotasks&&!c.isStable)try{c._nesting++,c.onMicrotaskEmpty.emit(null)}finally{if(c._nesting--,!c.hasPendingMicrotasks)try{c.runOutsideAngular(()=>c.onStable.emit(null))}finally{c.isStable=!0}}}function Cp(c){c.hasPendingMicrotasks=!!(c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId)}function Wm(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function jm(c){c._nesting--,xp(c)}class Fg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lc,this.onMicrotaskEmpty=new lc,this.onStable=new lc,this.onError=new lc}run(h,g,S){return h.apply(g,S)}runGuarded(h,g,S){return h.apply(g,S)}runOutsideAngular(h){return h()}runTask(h,g,S,F){return h.apply(g,S)}}let qm=(()=>{class c{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:()=>{So.assertNotInAngularZone(),bp(()=>{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())bp(()=>{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(S=>!S.updateCb||!S.updateCb(g)||(clearTimeout(S.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,S,F){let G=-1;S&&S>0&&(G=setTimeout(()=>{this._callbacks=this._callbacks.filter(fe=>fe.timeoutId!==G),g(this._didWork,this.getPendingTasks())},S)),this._callbacks.push({doneCb:g,timeoutId:G,updateCb:F})}whenStable(g,S,F){if(F&&!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,S,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,S,F){return[]}}return c.\u0275fac=function(g){return new(g||c)(ka(So))},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})(),Km=(()=>{class c{constructor(){this._applications=new Map,Mp.addToWindow(this)}registerApplication(g,S){this._applications.set(g,S)}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,S=!0){return Mp.findTestabilityInTree(this,g,S)}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();class Bg{addToWindow(h){}findTestabilityInTree(h,g,S){return null}}function Hg(c){Mp=c}let Dl,Mp=new Bg;const Qm=new Yr("AllowMultipleToken");class Zg{constructor(h,g){this.name=h,this.token=g}}function Jm(c,h,g=[]){const S=`Platform: ${h}`,F=new Yr(S);return(G=[])=>{let fe=Xm();if(!fe||fe.injector.get(Qm,!1))if(c)c(g.concat(G).concat({provide:F,useValue:!0}));else{const Ie=g.concat(G).concat({provide:F,useValue:!0},{provide:y2,useValue:"platform"});!function Vg(c){if(Dl&&!Dl.destroyed&&!Dl.injector.get(Qm,!1))throw new w("400","");Dl=c.get($m);const h=c.get(Um,null);h&&h.forEach(g=>g())}(Rs.create({providers:Ie,name:S}))}return function Gg(c){const h=Xm();if(!h)throw new w("401","");return h}()}}function Xm(){return Dl&&!Dl.destroyed?Dl:null}let $m=(()=>{class c{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,S){const Ie=function Yg(c,h){let g;return g="noop"===c?new Fg:("zone.js"===c?void 0:c)||new So({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==h?void 0:h.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==h?void 0:h.ngZoneRunCoalescing)}),g}(S?S.ngZone:void 0,{ngZoneEventCoalescing:S&&S.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:S&&S.ngZoneRunCoalescing||!1}),We=[{provide:So,useValue:Ie}];return Ie.run(()=>{const ut=Rs.create({providers:We,parent:this.injector,name:g.moduleType.name}),Tt=g.create(ut),Gt=Tt.injector.get(Ec,null);if(!Gt)throw new w("402","");return Ie.runOutsideAngular(()=>{const oi=Ie.onError.subscribe({next:gi=>{Gt.handleError(gi)}});Tt.onDestroy(()=>{wp(this._modules,Tt),oi.unsubscribe()})}),function Wg(c,h,g){try{const S=g();return H2(S)?S.catch(F=>{throw h.runOutsideAngular(()=>c.handleError(F)),F}):S}catch(S){throw h.runOutsideAngular(()=>c.handleError(S)),S}}(Gt,Ie,()=>{const oi=Tt.injector.get($u);return oi.runInitializers(),oi.donePromise.then(()=>(function Wu(c){b(c,"Expected localeId to be defined"),"string"==typeof c&&(rh=c.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(G3,c0)||c0),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule(g,S=[]){const F=e8({},S);return function zg(c,h,g){const S=new rp(g);return Promise.resolve(S)}(0,0,g).then(G=>this.bootstrapModuleFactory(G,F))}_moduleDoBootstrap(g){const S=g.injector.get(k4);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(F=>S.bootstrap(F));else{if(!g.instance.ngDoBootstrap)throw new w("403","");g.instance.ngDoBootstrap(S)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w("404","");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return c.\u0275fac=function(g){return new(g||c)(ka(Rs))},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();function e8(c,h){return Array.isArray(h)?h.reduce(e8,c):Object.assign(Object.assign({},c),h)}let k4=(()=>{class c{constructor(g,S,F,G,fe){this._zone=g,this._injector=S,this._exceptionHandler=F,this._componentFactoryResolver=G,this._initStatus=fe,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 Ie=new y.y(ut=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ut.next(this._stable),ut.complete()})}),We=new y.y(ut=>{let Tt;this._zone.runOutsideAngular(()=>{Tt=this._zone.onStable.subscribe(()=>{So.assertNotInAngularZone(),bp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ut.next(!0))})})});const Gt=this._zone.onUnstable.subscribe(()=>{So.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ut.next(!1)}))});return()=>{Tt.unsubscribe(),Gt.unsubscribe()}});this.isStable=(0,C.T)(Ie,We.pipe((0,o.B)()))}bootstrap(g,S){if(!this._initStatus.done)throw new w("405","");let F;F=g instanceof Zp?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(F.componentType);const G=function Ug(c){return c.isBoundToModule}(F)?void 0:this._injector.get(Qu),Ie=F.create(Rs.NULL,[],S||F.selector,G),We=Ie.location.nativeElement,ut=Ie.injector.get(qm,null),Tt=ut&&Ie.injector.get(Km);return ut&&Tt&&Tt.registerApplication(We,ut),Ie.onDestroy(()=>{this.detachView(Ie.hostView),wp(this.components,Ie),Tt&&Tt.unregisterApplication(We)}),this._loadComponent(Ie),Ie}tick(){if(this._runningTick)throw new w("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 S=g;this._views.push(S),S.attachToAppRef(this)}detachView(g){const S=g;wp(this._views,S),S.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Vm,[]).concat(this._bootstrapListeners).forEach(F=>F(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return c.\u0275fac=function(g){return new(g||c)(ka(So),ka(Rs),ka(Ec),ka(T4),ka($u))},c.\u0275prov=be({token:c,factory:c.\u0275fac}),c})();function wp(c,h){const g=c.indexOf(h);g>-1&&c.splice(g,1)}let i8=!0,n8=!1;function qg(){return n8=!0,i8}function Kg(){if(n8)throw new Error("Cannot enable prod mode after platform setup.");i8=!1}let Qg=(()=>{class c{}return c.__NG_ELEMENT_ID__=Jg,c})();function Jg(c){return function Xg(c,h,g){if(wi(c)&&!g){const S=ti(c.index,h);return new D4(S,S)}return 47&c.type?new D4(h[16],h):null}(fr(),Pi(),16==(16&c))}class c8{constructor(){}supports(h){return zc(h)}create(h){return new r5(h)}}const n5=(c,h)=>h;class r5{constructor(h){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=h||n5}forEachItem(h){let g;for(g=this._itHead;null!==g;g=g._next)h(g)}forEachOperation(h){let g=this._itHead,S=this._removalsHead,F=0,G=null;for(;g||S;){const fe=!S||g&&g.currentIndex{fe=this._trackByFn(F,Ie),null!==g&&Object.is(g.trackById,fe)?(S&&(g=this._verifyReinsertion(g,Ie,fe,F)),Object.is(g.item,Ie)||this._addIdentityChange(g,Ie)):(g=this._mismatch(g,Ie,fe,F),S=!0),g=g._next,F++}),this.length=F;return this._truncate(g),this.collection=h,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let h;for(h=this._previousItHead=this._itHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._additionsHead;null!==h;h=h._nextAdded)h.previousIndex=h.currentIndex;for(this._additionsHead=this._additionsTail=null,h=this._movesHead;null!==h;h=h._nextMoved)h.previousIndex=h.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(h,g,S,F){let G;return null===h?G=this._itTail:(G=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._reinsertAfter(h,G,F)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(S,F))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._moveAfter(h,G,F)):h=this._addAfter(new a5(g,S),G,F),h}_verifyReinsertion(h,g,S,F){let G=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null);return null!==G?h=this._reinsertAfter(G,h._prev,F):h.currentIndex!=F&&(h.currentIndex=F,this._addToMoves(h,F)),h}_truncate(h){for(;null!==h;){const g=h._next;this._addToRemovals(this._unlink(h)),h=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(h,g,S){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const F=h._prevRemoved,G=h._nextRemoved;return null===F?this._removalsHead=G:F._nextRemoved=G,null===G?this._removalsTail=F:G._prevRemoved=F,this._insertAfter(h,g,S),this._addToMoves(h,S),h}_moveAfter(h,g,S){return this._unlink(h),this._insertAfter(h,g,S),this._addToMoves(h,S),h}_addAfter(h,g,S){return this._insertAfter(h,g,S),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,g,S){const F=null===g?this._itHead:g._next;return h._next=F,h._prev=g,null===F?this._itTail=h:F._prev=h,null===g?this._itHead=h:g._next=h,null===this._linkedRecords&&(this._linkedRecords=new h8),this._linkedRecords.put(h),h.currentIndex=S,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const g=h._prev,S=h._next;return null===g?this._itHead=S:g._next=S,null===S?this._itTail=g:S._prev=g,h}_addToMoves(h,g){return h.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=h:this._movesTail._nextMoved=h),h}_addToRemovals(h){return null===this._unlinkedRecords&&(this._unlinkedRecords=new h8),this._unlinkedRecords.put(h),h.currentIndex=null,h._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=h,h._prevRemoved=null):(h._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=h),h}_addIdentityChange(h,g){return h.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=h:this._identityChangesTail._nextIdentityChange=h,h}}class a5{constructor(h,g){this.item=h,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 s5{constructor(){this._head=null,this._tail=null}add(h){null===this._head?(this._head=this._tail=h,h._nextDup=null,h._prevDup=null):(this._tail._nextDup=h,h._prevDup=this._tail,h._nextDup=null,this._tail=h)}get(h,g){let S;for(S=this._head;null!==S;S=S._nextDup)if((null===g||g<=S.currentIndex)&&Object.is(S.trackById,h))return S;return null}remove(h){const g=h._prevDup,S=h._nextDup;return null===g?this._head=S:g._nextDup=S,null===S?this._tail=g:S._prevDup=g,null===this._head}}class h8{constructor(){this.map=new Map}put(h){const g=h.trackById;let S=this.map.get(g);S||(S=new s5,this.map.set(g,S)),S.add(h)}get(h,g){const F=this.map.get(h);return F?F.get(h,g):null}remove(h){const g=h.trackById;return this.map.get(g).remove(h)&&this.map.delete(g),h}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function d8(c,h,g){const S=c.previousIndex;if(null===S)return S;let F=0;return g&&S{if(g&&g.key===F)this._maybeAddToChanges(g,S),this._appendAfter=g,g=g._next;else{const G=this._getOrCreateRecordForKey(F,S);g=this._insertBeforeOrAppend(g,G)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let S=g;null!==S;S=S._nextRemoved)S===this._mapHead&&(this._mapHead=null),this._records.delete(S.key),S._nextRemoved=S._next,S.previousValue=S.currentValue,S.currentValue=null,S._prev=null,S._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,g){if(h){const S=h._prev;return g._next=h,g._prev=S,h._prev=g,S&&(S._next=g),h===this._mapHead&&(this._mapHead=g),this._appendAfter=h,h}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(h,g){if(this._records.has(h)){const F=this._records.get(h);this._maybeAddToChanges(F,g);const G=F._prev,fe=F._next;return G&&(G._next=fe),fe&&(fe._prev=G),F._next=null,F._prev=null,F}const S=new l5(h);return this._records.set(h,S),S.currentValue=g,this._addToAdditions(S),S}_reset(){if(this.isDirty){let h;for(this._previousMapHead=this._mapHead,h=this._previousMapHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._changesHead;null!==h;h=h._nextChanged)h.previousValue=h.currentValue;for(h=this._additionsHead;null!=h;h=h._nextAdded)h.previousValue=h.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(h,g){Object.is(g,h.currentValue)||(h.previousValue=h.currentValue,h.currentValue=g,this._addToChanges(h))}_addToAdditions(h){null===this._additionsHead?this._additionsHead=this._additionsTail=h:(this._additionsTail._nextAdded=h,this._additionsTail=h)}_addToChanges(h){null===this._changesHead?this._changesHead=this._changesTail=h:(this._changesTail._nextChanged=h,this._changesTail=h)}_forEach(h,g){h instanceof Map?h.forEach(g):Object.keys(h).forEach(S=>g(h[S],S))}}class l5{constructor(h){this.key=h,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 f8(){return new W3([new c8])}let W3=(()=>{class c{constructor(g){this.factories=g}static create(g,S){if(null!=S){const F=S.factories.slice();g=g.concat(F)}return new c(g)}static extend(g){return{provide:c,useFactory:S=>c.create(g,S||f8()),deps:[[c,new qs,new zo]]}}find(g){const S=this.factories.find(F=>F.supports(g));if(null!=S)return S;throw new Error(`Cannot find a differ supporting object '${g}' of type '${function c5(c){return c.name||typeof c}(g)}'`)}}return c.\u0275prov=be({token:c,providedIn:"root",factory:f8}),c})();function p8(){return new j3([new u8])}let j3=(()=>{class c{constructor(g){this.factories=g}static create(g,S){if(S){const F=S.factories.slice();g=g.concat(F)}return new c(g)}static extend(g){return{provide:c,useFactory:S=>c.create(g,S||p8()),deps:[[c,new qs,new zo]]}}find(g){const S=this.factories.find(F=>F.supports(g));if(S)return S;throw new Error(`Cannot find a differ supporting object '${g}'`)}}return c.\u0275prov=be({token:c,providedIn:"root",factory:p8}),c})();const h5=[new u8],u5=new W3([new c8]),f5=new j3(h5),p5=Jm(null,"core",[{provide:Zm,useValue:"unknown"},{provide:$m,deps:[Rs]},{provide:Km,deps:[]},{provide:Gm,deps:[]}]),y5=[{provide:k4,useClass:k4,deps:[So,Rs,Ec,T4,$u]},{provide:R8,deps:[So],useFactory:function b5(c){let h=[];return c.onStable.subscribe(()=>{for(;h.length;)h.pop()()}),function(g){h.push(g)}}},{provide:$u,useClass:$u,deps:[[new zo,_p]]},{provide:yp,useClass:yp,deps:[]},Dg,{provide:W3,useFactory:function m5(){return u5},deps:[]},{provide:j3,useFactory:function g5(){return f5},deps:[]},{provide:G3,useFactory:function _5(c){return c||function v5(){return"undefined"!=typeof $localize&&$localize.locale||c0}()},deps:[[new Ho(G3),new zo,new qs]]},{provide:Ym,useValue:"USD"}];let x5=(()=>{class c{constructor(g){}}return c.\u0275fac=function(g){return new(g||c)(ka(k4))},c.\u0275mod=ct({type:c}),c.\u0275inj=ze({providers:y5}),c})()},9042:(Ge,Q,m)=>{"use strict";function e(L){for(let I in L){let A=L[I]||"";switch(I){case"display":L.display="flex"===A?["-webkit-flex","flex"]:"inline-flex"===A?["-webkit-inline-flex","inline-flex"]:A;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":L["-webkit-"+I]=A;break;case"flex-direction":A=A||"row",L["-webkit-flex-direction"]=A,L["flex-direction"]=A;break;case"order":L.order=L["-webkit-"+I]=isNaN(+A)?"0":A}}return L}m.d(Q,{iQ:()=>y,GK:()=>e,Ar:()=>C,kt:()=>s,tj:()=>M});const t="inline",y=["row","column","row-reverse","column-reverse"];function C(L){let[I,A,E]=o(L);return function R(L,I=null,A=!1){return{display:A?"inline-flex":"flex","box-sizing":"border-box","flex-direction":L,"flex-wrap":I||null}}(I,A,E)}function o(L){L=L?L.toLowerCase():"";let[I,A,E]=L.split(" ");return y.find(P=>P===I)||(I=y[0]),A===t&&(A=E!==t?E:"",E=t),[I,l(A),!!E]}function M(L){let[I]=o(L);return I.indexOf("row")>-1}function l(L){if(L)switch(L.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":L="wrap-reverse";break;case"no":case"none":case"nowrap":L="nowrap";break;default:L="wrap"}return L}function s(L,...I){if(null==L)throw TypeError("Cannot convert undefined or null to object");for(let A of I)if(null!=A)for(let E in A)A.hasOwnProperty(E)&&(L[E]=A[E]);return L}},3270:(Ge,Q,m)=>{"use strict";m.d(Q,{Bs:()=>te,iR:()=>Fe,IR:()=>E,g5:()=>V,WU:()=>j,yB:()=>Ze,wY:()=>W,QI:()=>ge,RK:()=>le,Ot:()=>Ue});var e=m(5e3),t=m(9808),y=m(1135),C=m(8306),o=m(6451),M=m(7579),l=m(9042),R=m(9300),s=m(8505);const I={provide:e.tb,useFactory:function L(nt,ft){return()=>{if((0,t.NF)(ft)){const it=Array.from(nt.querySelectorAll(`[class*=${A}]`)),rt=/\bflex-layout-.+?\b/g;it.forEach(Mt=>{Mt.classList.contains(`${A}ssr`)&&Mt.parentNode?Mt.parentNode.removeChild(Mt):Mt.className.replace(rt,"")})}}},deps:[t.K0,e.Lbi],multi:!0},A="flex-layout-";let E=(()=>{class nt{}return nt.\u0275fac=function(it){return new(it||nt)},nt.\u0275mod=e.oAB({type:nt}),nt.\u0275inj=e.cJS({providers:[I]}),nt})();class P{constructor(ft=!1,it="all",rt="",Mt="",Zt=0){this.matches=ft,this.mediaQuery=it,this.mqAlias=rt,this.suffix=Mt,this.priority=Zt,this.property=""}clone(){return new P(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let w=(()=>{class nt{constructor(){this.stylesheet=new Map}addStyleToElement(it,rt,Mt){const Zt=this.stylesheet.get(it);Zt?Zt.set(rt,Mt):this.stylesheet.set(it,new Map([[rt,Mt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(it,rt){const Mt=this.stylesheet.get(it);let Zt="";if(Mt){const Ft=Mt.get(rt);("number"==typeof Ft||"string"==typeof Ft)&&(Zt=Ft+"")}return Zt}}return nt.\u0275fac=function(it){return new(it||nt)},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const V={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},j=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>V}),W=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),te=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(nt,ft){return nt=nt?nt.clone():new P,ft&&(nt.mqAlias=ft.alias,nt.mediaQuery=ft.mediaQuery,nt.suffix=ft.suffix,nt.priority=ft.priority),nt}class ge{constructor(){this.shouldCache=!0}sideEffect(ft,it,rt){}}let le=(()=>{class nt{constructor(it,rt,Mt,Zt){this._serverStylesheet=it,this._serverModuleLoaded=rt,this._platformId=Mt,this.layoutConfig=Zt}applyStyleToElement(it,rt,Mt=null){let Zt={};"string"==typeof rt&&(Zt[rt]=Mt,rt=Zt),Zt=this.layoutConfig.disableVendorPrefixes?rt:(0,l.GK)(rt),this._applyMultiValueStyleToElement(Zt,it)}applyStyleToElements(it,rt=[]){const Mt=this.layoutConfig.disableVendorPrefixes?it:(0,l.GK)(it);rt.forEach(Zt=>{this._applyMultiValueStyleToElement(Mt,Zt)})}getFlowDirection(it){const rt="flex-direction";let Mt=this.lookupStyle(it,rt);return[Mt||"row",this.lookupInlineStyle(it,rt)||(0,t.PM)(this._platformId)&&this._serverModuleLoaded?Mt:""]}hasWrap(it){return"wrap"===this.lookupStyle(it,"flex-wrap")}lookupAttributeValue(it,rt){return it.getAttribute(rt)||""}lookupInlineStyle(it,rt){return(0,t.NF)(this._platformId)?it.style.getPropertyValue(rt):this._getServerStyle(it,rt)}lookupStyle(it,rt,Mt=!1){let Zt="";return it&&((Zt=this.lookupInlineStyle(it,rt))||((0,t.NF)(this._platformId)?Mt||(Zt=getComputedStyle(it).getPropertyValue(rt)):this._serverModuleLoaded&&(Zt=this._serverStylesheet.getStyleForElement(it,rt)))),Zt?Zt.trim():""}_applyMultiValueStyleToElement(it,rt){Object.keys(it).sort().forEach(Mt=>{const Zt=it[Mt],Ft=Array.isArray(Zt)?Zt:[Zt];Ft.sort();for(let Vt of Ft)Vt=Vt?Vt+"":"",(0,t.NF)(this._platformId)||!this._serverModuleLoaded?(0,t.NF)(this._platformId)?rt.style.setProperty(Mt,Vt):this._setServerStyle(rt,Mt,Vt):this._serverStylesheet.addStyleToElement(rt,Mt,Vt)})}_setServerStyle(it,rt,Mt){rt=rt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Zt=this._readStyleAttribute(it);Zt[rt]=Mt||"",this._writeStyleAttribute(it,Zt)}_getServerStyle(it,rt){return this._readStyleAttribute(it)[rt]||""}_readStyleAttribute(it){const rt={},Mt=it.getAttribute("style");if(Mt){const Zt=Mt.split(/;+/g);for(let Ft=0;Ft0){const Ii=Vt.indexOf(":");if(-1===Ii)throw new Error(`Invalid CSS style: ${Vt}`);rt[Vt.substr(0,Ii).trim()]=Vt.substr(Ii+1).trim()}}}return rt}_writeStyleAttribute(it,rt){let Mt="";for(const Zt in rt)rt[Zt]&&(Mt+=Zt+":"+rt[Zt]+";");it.setAttribute("style",Mt)}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(w),e.LFG(W),e.LFG(e.Lbi),e.LFG(j))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function re(nt,ft){return(ft&&ft.priority||0)-(nt&&nt.priority||0)}function de(nt,ft){return(nt.priority||0)-(ft.priority||0)}let se=(()=>{class nt{constructor(it,rt,Mt){this._zone=it,this._platformId=rt,this._document=Mt,this.source=new y.X(new P(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const it=[];return this.registry.forEach((rt,Mt)=>{rt.matches&&it.push(Mt)}),it}isActive(it){const rt=this.registry.get(it);return rt?rt.matches:this.registerQuery(it).some(Mt=>Mt.matches)}observe(it,rt=!1){if(it&&it.length){const Mt=this._observable$.pipe((0,R.h)(Ft=>!rt||it.indexOf(Ft.mediaQuery)>-1)),Zt=new C.y(Ft=>{const Vt=this.registerQuery(it);if(Vt.length){const Ii=Vt.pop();Vt.forEach(jt=>{Ft.next(jt)}),this.source.next(Ii)}Ft.complete()});return(0,o.T)(Zt,Mt)}return this._observable$}registerQuery(it){const rt=Array.isArray(it)?it:[it],Mt=[];return function v(nt,ft){const it=nt.filter(rt=>!ye[rt]);if(it.length>0){const rt=it.join(", ");try{const Mt=ft.createElement("style");Mt.setAttribute("type","text/css"),Mt.styleSheet||Mt.appendChild(ft.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${rt} {.fx-query-test{ }}\n`)),ft.head.appendChild(Mt),it.forEach(Zt=>ye[Zt]=Mt)}catch(Mt){console.error(Mt)}}}(rt,this._document),rt.forEach(Zt=>{const Ft=Ii=>{this._zone.run(()=>this.source.next(new P(Ii.matches,Zt)))};let Vt=this.registry.get(Zt);Vt||(Vt=this.buildMQL(Zt),Vt.addListener(Ft),this.pendingRemoveListenerFns.push(()=>Vt.removeListener(Ft)),this.registry.set(Zt,Vt)),Vt.matches&&Mt.push(new P(!0,Zt))}),Mt}ngOnDestroy(){let it;for(;it=this.pendingRemoveListenerFns.pop();)it()}buildMQL(it){return function i(nt,ft){return ft&&window.matchMedia("all").addListener?window.matchMedia(nt):{matches:"all"===nt||""===nt,media:nt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(it,(0,t.NF)(this._platformId))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(t.K0))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const ye={},a=[{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}],p="(orientation: portrait) and (max-width: 599.98px)",u="(orientation: landscape) and (max-width: 959.98px)",_="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",D="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",O="(orientation: portrait) and (min-width: 840px)",x="(orientation: landscape) and (min-width: 1280px)",r={HANDSET:`${p}, ${u}`,TABLET:`${_} , ${D}`,WEB:`${O}, ${x} `,HANDSET_PORTRAIT:`${p}`,TABLET_PORTRAIT:`${_} `,WEB_PORTRAIT:`${O}`,HANDSET_LANDSCAPE:`${u}`,TABLET_LANDSCAPE:`${D}`,WEB_LANDSCAPE:`${x}`},b=[{alias:"handset",priority:2e3,mediaQuery:r.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:r.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:r.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:r.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:r.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:r.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:r.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:r.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:r.WEB_PORTRAIT,overlapping:!0}],Z=/(\.|-|_)/g;function N(nt){let ft=nt.length>0?nt.charAt(0):"",it=nt.length>1?nt.slice(1):"";return ft.toUpperCase()+it}const Re=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const nt=(0,e.f3M)(te),ft=(0,e.f3M)(j),it=[].concat.apply([],(nt||[]).map(Mt=>Array.isArray(Mt)?Mt:[Mt]));return function be(nt,ft=[]){const it={};return nt.forEach(rt=>{it[rt.alias]=rt}),ft.forEach(rt=>{it[rt.alias]?(0,l.kt)(it[rt.alias],rt):it[rt.alias]=rt}),function ve(nt){return nt.forEach(ft=>{ft.suffix||(ft.suffix=function U(nt){return nt.replace(Z,"|").split("|").map(N).join("")}(ft.alias),ft.overlapping=!!ft.overlapping)}),nt}(Object.keys(it).map(rt=>it[rt]))}((ft.disableDefaultBps?[]:a).concat(ft.addOrientationBps?b:[]),it)}});let ze=(()=>{class nt{constructor(it){this.findByMap=new Map,this.items=[...it].sort(de)}findByAlias(it){return it?this.findWithPredicate(it,rt=>rt.alias==it):null}findByQuery(it){return this.findWithPredicate(it,rt=>rt.mediaQuery==it)}get overlappings(){return this.items.filter(it=>1==it.overlapping)}get aliases(){return this.items.map(it=>it.alias)}get suffixes(){return this.items.map(it=>it.suffix?it.suffix:"")}findWithPredicate(it,rt){let Mt=this.findByMap.get(it);return Mt||(Mt=this.items.find(rt)||null,this.findByMap.set(it,Mt)),Mt||null}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(Re))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Oe="print",K={alias:Oe,mediaQuery:Oe,priority:1e3};let Me=(()=>{class nt{constructor(it,rt,Mt){this.breakpoints=it,this.layoutConfig=rt,this._document=Mt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new we,this.deactivations=[]}withPrintQuery(it){return[...it,Oe]}isPrintEvent(it){return it.mediaQuery.startsWith(Oe)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(it=>this.breakpoints.findByAlias(it)).filter(it=>null!==it)}getEventBreakpoints({mediaQuery:it}){const rt=this.breakpoints.findByQuery(it);return(rt?[...this.printBreakPoints,rt]:this.printBreakPoints).sort(re)}updateEvent(it){let rt=this.breakpoints.findByQuery(it.mediaQuery);return this.isPrintEvent(it)&&(rt=this.getEventBreakpoints(it)[0],it.mediaQuery=rt?rt.mediaQuery:""),ee(it,rt)}registerBeforeAfterPrintHooks(it){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const rt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(it,this.getEventBreakpoints(new P(!0,Oe))),it.updateStyles())},Mt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(it),it.updateStyles())};this._document.defaultView.addEventListener("beforeprint",rt),this._document.defaultView.addEventListener("afterprint",Mt),this.beforePrintEventListeners.push(rt),this.afterPrintEventListeners.push(Mt)}interceptEvents(it){return this.registerBeforeAfterPrintHooks(it),rt=>{this.isPrintEvent(rt)?rt.matches&&!this.isPrinting?(this.startPrinting(it,this.getEventBreakpoints(rt)),it.updateStyles()):!rt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(it),it.updateStyles()):this.collectActivations(rt)}}blockPropagation(){return it=>!(this.isPrinting||this.isPrintEvent(it))}startPrinting(it,rt){this.isPrinting=!0,it.activatedBreakpoints=this.queue.addPrintBreakpoints(rt)}stopPrinting(it){it.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(it){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(it.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const rt=this.breakpoints.findByQuery(it.mediaQuery);rt&&(this.deactivations.push(rt),this.deactivations.sort(re))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(it=>this._document.defaultView.removeEventListener("beforeprint",it)),this.afterPrintEventListeners.forEach(it=>this._document.defaultView.removeEventListener("afterprint",it)))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(ze),e.LFG(j),e.LFG(t.K0))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();class we{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(ft){return ft.push(K),ft.sort(re),ft.forEach(it=>this.addBreakpoint(it)),this.printBreakpoints}addBreakpoint(ft){ft&&void 0===this.printBreakpoints.find(rt=>rt.mediaQuery===ft.mediaQuery)&&(this.printBreakpoints=function z(nt){return!!nt&&nt.mediaQuery.startsWith(Oe)}(ft)?[ft,...this.printBreakpoints]:[...this.printBreakpoints,ft])}clear(){this.printBreakpoints=[]}}let Ze=(()=>{class nt{constructor(it,rt,Mt){this.matchMedia=it,this.breakpoints=rt,this.hook=Mt,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 M.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(it){const rt=this.findByQuery(it.mediaQuery);rt&&((it=ee(it,rt)).matches&&-1===this.activatedBreakpoints.indexOf(rt)?(this.activatedBreakpoints.push(rt),this.activatedBreakpoints.sort(re),this.updateStyles()):!it.matches&&-1!==this.activatedBreakpoints.indexOf(rt)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(rt),1),this.activatedBreakpoints.sort(re),this.updateStyles()))}init(it,rt,Mt,Zt,Ft=[]){vt(this.updateMap,it,rt,Mt),vt(this.clearMap,it,rt,Zt),this.buildElementKeyMap(it,rt),this.watchExtraTriggers(it,rt,Ft)}getValue(it,rt,Mt){const Zt=this.elementMap.get(it);if(Zt){const Ft=void 0!==Mt?Zt.get(Mt):this.getActivatedValues(Zt,rt);if(Ft)return Ft.get(rt)}}hasValue(it,rt){const Mt=this.elementMap.get(it);if(Mt){const Zt=this.getActivatedValues(Mt,rt);if(Zt)return void 0!==Zt.get(rt)||!1}return!1}setValue(it,rt,Mt,Zt){let Ft=this.elementMap.get(it);if(Ft){const Ii=(Ft.get(Zt)||new Map).set(rt,Mt);Ft.set(Zt,Ii),this.elementMap.set(it,Ft)}else Ft=(new Map).set(Zt,(new Map).set(rt,Mt)),this.elementMap.set(it,Ft);const Vt=this.getValue(it,rt);void 0!==Vt&&this.updateElement(it,rt,Vt)}trackValue(it,rt){return this.subject.asObservable().pipe((0,R.h)(Mt=>Mt.element===it&&Mt.key===rt))}updateStyles(){this.elementMap.forEach((it,rt)=>{const Mt=new Set(this.elementKeyMap.get(rt));let Zt=this.getActivatedValues(it);Zt&&Zt.forEach((Ft,Vt)=>{this.updateElement(rt,Vt,Ft),Mt.delete(Vt)}),Mt.forEach(Ft=>{if(Zt=this.getActivatedValues(it,Ft),Zt){const Vt=Zt.get(Ft);this.updateElement(rt,Ft,Vt)}else this.clearElement(rt,Ft)})})}clearElement(it,rt){const Mt=this.clearMap.get(it);if(Mt){const Zt=Mt.get(rt);Zt&&(Zt(),this.subject.next({element:it,key:rt,value:""}))}}updateElement(it,rt,Mt){const Zt=this.updateMap.get(it);if(Zt){const Ft=Zt.get(rt);Ft&&(Ft(Mt),this.subject.next({element:it,key:rt,value:Mt}))}}releaseElement(it){const rt=this.watcherMap.get(it);rt&&(rt.forEach(Zt=>Zt.unsubscribe()),this.watcherMap.delete(it));const Mt=this.elementMap.get(it);Mt&&(Mt.forEach((Zt,Ft)=>Mt.delete(Ft)),this.elementMap.delete(it))}triggerUpdate(it,rt){const Mt=this.elementMap.get(it);if(Mt){const Zt=this.getActivatedValues(Mt,rt);Zt&&(rt?this.updateElement(it,rt,Zt.get(rt)):Zt.forEach((Ft,Vt)=>this.updateElement(it,Vt,Ft)))}}buildElementKeyMap(it,rt){let Mt=this.elementKeyMap.get(it);Mt||(Mt=new Set,this.elementKeyMap.set(it,Mt)),Mt.add(rt)}watchExtraTriggers(it,rt,Mt){if(Mt&&Mt.length){let Zt=this.watcherMap.get(it);if(Zt||(Zt=new Map,this.watcherMap.set(it,Zt)),!Zt.get(rt)){const Vt=(0,o.T)(...Mt).subscribe(()=>{const Ii=this.getValue(it,rt);this.updateElement(it,rt,Ii)});Zt.set(rt,Vt)}}}findByQuery(it){return this.breakpoints.findByQuery(it)}getActivatedValues(it,rt){for(let Zt=0;ZtMt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(rt)).pipe((0,s.b)(this.hook.interceptEvents(this)),(0,R.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(se),e.LFG(ze),e.LFG(Me))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function vt(nt,ft,it,rt){if(void 0!==rt){let Mt=nt.get(ft);Mt||(Mt=new Map,nt.set(ft,Mt)),Mt.set(it,rt)}}let Fe=(()=>{class nt{constructor(it,rt,Mt,Zt){this.elementRef=it,this.styleBuilder=rt,this.styler=Mt,this.marshal=Zt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M.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(it){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,this.marshal.activatedAlias)}ngOnChanges(it){Object.keys(it).forEach(rt=>{if(-1!==this.inputs.indexOf(rt)){const Mt=rt.split(".").slice(1).join(".");this.setValue(it[rt].currentValue,Mt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(it=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),it)}addStyles(it,rt){const Mt=this.styleBuilder,Zt=Mt.shouldCache;let Ft=this.styleCache.get(it);(!Ft||!Zt)&&(Ft=Mt.buildStyles(it,rt),Zt&&this.styleCache.set(it,Ft)),this.mru=Object.assign({},Ft),this.applyStyleToElement(Ft),Mt.sideEffect(it,Ft,rt)}clearStyles(){Object.keys(this.mru).forEach(it=>{this.mru[it]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(it,rt=!1){if(it){const[Mt,Zt]=this.styler.getFlowDirection(it);if(!Zt&&rt){const Ft=(0,l.Ar)(Mt);this.styler.applyStyleToElements(Ft,[it])}return Mt.trim()}return"row"}hasWrap(it){return this.styler.hasWrap(it)}applyStyleToElement(it,rt,Mt=this.nativeElement){this.styler.applyStyleToElement(Mt,it,rt)}setValue(it,rt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,rt)}updateWithValue(it){this.currentValue!==it&&(this.addStyles(it),this.currentValue=it)}}return nt.\u0275fac=function(it){return new(it||nt)(e.Y36(e.SBq),e.Y36(ge),e.Y36(le),e.Y36(Ze))},nt.\u0275dir=e.lG2({type:nt,features:[e.TTD]}),nt})();function Ue(nt,ft="1",it="1"){let rt=[ft,it,nt],Mt=nt.indexOf("calc");if(Mt>0){rt[2]=lt(nt.substring(Mt).trim());let Zt=nt.substr(0,Mt).trim().split(" ");2==Zt.length&&(rt[0]=Zt[0],rt[1]=Zt[1])}else if(0==Mt)rt[2]=lt(nt.trim());else{let Zt=nt.split(" ");rt=3===Zt.length?Zt:[ft,it,nt]}return rt}function lt(nt){return nt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}},3322:(Ge,Q,m)=>{"use strict";m.d(Q,{oO:()=>V,Zl:()=>D,aT:()=>r});var e=m(5e3),t=m(3270),y=m(9808),M=(m(3191),m(2722),m(2313));let E=(()=>{class b extends t.iR{constructor(N,U,ve,be,Re,ze,Oe){super(N,null,U,ve),this.ngClassInstance=Oe,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new y.mk(be,Re,N,ze)),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 b.\u0275fac=function(N){return new(N||b)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(y.mk,10))},b.\u0275dir=e.lG2({type:b,inputs:{klass:["class","klass"]},features:[e.qOj]}),b})();const P=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let V=(()=>{class b extends E{constructor(){super(...arguments),this.inputs=P}}return b.\u0275fac=function(){let Z;return function(U){return(Z||(Z=e.n5z(b)))(U||b)}}(),b.\u0275dir=e.lG2({type:b,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[e.qOj]}),b})();class re{constructor(Z,N,U=!0){this.key=Z,this.value=N,this.key=U?Z.replace(/['"]/g,"").trim():Z.trim(),this.value=U?N.replace(/['"]/g,"").trim():N.trim(),this.value=this.value.replace(/;/,"")}}function de(b){let Z=typeof b;return"object"===Z?b.constructor===Array?"array":b.constructor===Set?"set":"object":Z}function i(b){const[Z,...N]=b.split(":");return new re(Z,N.join(":"))}function a(b,Z){return Z.key&&(b[Z.key]=Z.value),b}let p=(()=>{class b extends t.iR{constructor(N,U,ve,be,Re,ze,Oe,K,Me){super(N,null,U,ve),this.sanitizer=be,this.ngStyleInstance=Oe,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new y.PC(N,Re,ze)),this.init();const we=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(we),this.isServer=K&&(0,y.PM)(Me)}updateWithValue(N){const U=this.buildStyleMap(N);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),U),this.isServer&&this.applyStyleToElement(U),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(N){const U=ve=>this.sanitizer.sanitize(e.q3G.STYLE,ve)||"";if(N)switch(de(N)){case"string":return O(function se(b,Z=";"){return String(b).trim().split(Z).map(N=>N.trim()).filter(N=>""!==N)}(N),U);case"array":return O(N,U);default:return function v(b,Z){let N=[];return"set"===de(b)?b.forEach(U=>N.push(U)):Object.keys(b).forEach(U=>{N.push(`${U}:${b[U]}`)}),function ye(b,Z){return b.map(i).filter(U=>!!U).map(U=>(Z&&(U.value=Z(U.value)),U)).reduce(a,{})}(N,Z)}(N,U)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return b.\u0275fac=function(N){return new(N||b)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(M.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(y.PC,10),e.Y36(t.wY),e.Y36(e.Lbi))},b.\u0275dir=e.lG2({type:b,features:[e.qOj]}),b})();const u=["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 D=(()=>{class b extends p{constructor(){super(...arguments),this.inputs=u}}return b.\u0275fac=function(){let Z;return function(U){return(Z||(Z=e.n5z(b)))(U||b)}}(),b.\u0275dir=e.lG2({type:b,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[e.qOj]}),b})();function O(b,Z){return b.map(i).filter(U=>!!U).map(U=>(Z&&(U.value=Z(U.value)),U)).reduce(a,{})}let r=(()=>{class b{}return b.\u0275fac=function(N){return new(N||b)},b.\u0275mod=e.oAB({type:b}),b.\u0275inj=e.cJS({imports:[[t.IR]]}),b})()},7093:(Ge,Q,m)=>{"use strict";m.d(Q,{yH:()=>_,Wh:()=>rt,xw:()=>I,ae:()=>hi});var e=m(5e3),t=m(226),y=m(3270),C=m(9042),M=(m(7579),m(2722));let l=(()=>{class Ve extends y.QI{buildStyles(Y){return(0,C.Ar)(Y)}}return Ve.\u0275fac=function(){let Ee;return function(pe){return(Ee||(Ee=e.n5z(Ve)))(pe||Ve)}}(),Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const R=["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 L=(()=>{class Ve extends y.iR{constructor(Y,pe,De,et){super(Y,De,pe,et),this.DIRECTIVE_KEY="layout",this.styleCache=A,this.init()}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(l),e.Y36(y.yB))},Ve.\u0275dir=e.lG2({type:Ve,features:[e.qOj]}),Ve})(),I=(()=>{class Ve extends L{constructor(){super(...arguments),this.inputs=R}}return Ve.\u0275fac=function(){let Ee;return function(pe){return(Ee||(Ee=e.n5z(Ve)))(pe||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[e.qOj]}),Ve})();const A=new Map;let i=(()=>{class Ve extends y.QI{constructor(Y){super(),this.layoutConfig=Y}buildStyles(Y,pe){let[De,et,...$t]=Y.split(" "),Nt=$t.join(" ");const Jt=pe.direction.indexOf("column")>-1?"column":"row",ct=(0,C.tj)(Jt)?"max-width":"max-height",ke=(0,C.tj)(Jt)?"min-width":"min-height",Be=String(Nt).indexOf("calc")>-1,at=Be||"auto"===Nt,st=String(Nt).indexOf("%")>-1&&!Be,At=String(Nt).indexOf("px")>-1||String(Nt).indexOf("rem")>-1||String(Nt).indexOf("em")>-1||String(Nt).indexOf("vw")>-1||String(Nt).indexOf("vh")>-1;let li=Be||At;De="0"==De?0:De,et="0"==et?0:et;const Bt=!De&&!et;let Rt={};const Li={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Nt||""){case"":const si=!1!==this.layoutConfig.useColumnBasisZero;Nt="row"===Jt?"0%":si?"0.000000001px":"auto";break;case"initial":case"nogrow":De=0,Nt="auto";break;case"grow":Nt="100%";break;case"noshrink":et=0,Nt="auto";break;case"auto":break;case"none":De=0,et=0,Nt="auto";break;default:!li&&!st&&!isNaN(Nt)&&(Nt+="%"),"0%"===Nt&&(li=!0),"0px"===Nt&&(Nt="0%"),Rt=(0,C.kt)(Li,Be?{"flex-grow":De,"flex-shrink":et,"flex-basis":li?Nt:"100%"}:{flex:`${De} ${et} ${li?Nt:"100%"}`})}return Rt.flex||Rt["flex-grow"]||(Rt=(0,C.kt)(Li,Be?{"flex-grow":De,"flex-shrink":et,"flex-basis":Nt}:{flex:`${De} ${et} ${Nt}`})),"0%"!==Nt&&"0px"!==Nt&&"0.000000001px"!==Nt&&"auto"!==Nt&&(Rt[ke]=Bt||li&&De?Nt:null,Rt[ct]=Bt||!at&&et?Nt:null),Rt[ke]||Rt[ct]?pe.hasWrap&&(Rt[Be?"flex-basis":"flex"]=Rt[ct]?Be?Rt[ct]:`${De} ${et} ${Rt[ct]}`:Be?Rt[ke]:`${De} ${et} ${Rt[ke]}`):Rt=(0,C.kt)(Li,Be?{"flex-grow":De,"flex-shrink":et,"flex-basis":Nt}:{flex:`${De} ${et} ${Nt}`}),(0,C.kt)(Rt,{"box-sizing":"border-box"})}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.LFG(y.WU))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const a=["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 u=(()=>{class Ve extends y.iR{constructor(Y,pe,De,et,$t){super(Y,et,pe,$t),this.layoutConfig=De,this.marshal=$t,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(Y){this.flexShrink=Y||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Y){this.flexGrow=Y||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,M.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Y){const De=Y.value.split(" ");this.direction=De[0],this.wrap=void 0!==De[1]&&"wrap"===De[1],this.triggerUpdate()}updateWithValue(Y){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 De=this.direction,et=De.startsWith("row"),$t=this.wrap;et&&$t?this.styleCache=x:et&&!$t?this.styleCache=D:!et&&$t?this.styleCache=r:!et&&!$t&&(this.styleCache=O);const Nt=String(Y).replace(";",""),Jt=(0,y.Ot)(Nt,this.flexGrow,this.flexShrink);this.addStyles(Jt.join(" "),{direction:De,hasWrap:$t})}triggerReflow(){const Y=this.activatedValue;if(void 0!==Y){const pe=(0,y.Ot)(Y+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,pe.join(" "))}}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(y.WU),e.Y36(i),e.Y36(y.yB))},Ve.\u0275dir=e.lG2({type:Ve,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),Ve})(),_=(()=>{class Ve extends u{constructor(){super(...arguments),this.inputs=a}}return Ve.\u0275fac=function(){let Ee;return function(pe){return(Ee||(Ee=e.n5z(Ve)))(pe||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[e.qOj]}),Ve})();const D=new Map,O=new Map,x=new Map,r=new Map;let lt=(()=>{class Ve extends y.QI{buildStyles(Y,pe){const De={},[et,$t]=Y.split(" ");switch(et){case"center":De["justify-content"]="center";break;case"space-around":De["justify-content"]="space-around";break;case"space-between":De["justify-content"]="space-between";break;case"space-evenly":De["justify-content"]="space-evenly";break;case"end":case"flex-end":De["justify-content"]="flex-end";break;default:De["justify-content"]="flex-start"}switch($t){case"start":case"flex-start":De["align-items"]=De["align-content"]="flex-start";break;case"center":De["align-items"]=De["align-content"]="center";break;case"end":case"flex-end":De["align-items"]=De["align-content"]="flex-end";break;case"space-between":De["align-content"]="space-between",De["align-items"]="stretch";break;case"space-around":De["align-content"]="space-around",De["align-items"]="stretch";break;case"baseline":De["align-content"]="stretch",De["align-items"]="baseline";break;default:De["align-items"]=De["align-content"]="stretch"}return(0,C.kt)(De,{display:pe.inline?"inline-flex":"flex","flex-direction":pe.layout,"box-sizing":"border-box","max-width":"stretch"===$t?(0,C.tj)(pe.layout)?null:"100%":null,"max-height":"stretch"===$t&&(0,C.tj)(pe.layout)?"100%":null})}}return Ve.\u0275fac=function(){let Ee;return function(pe){return(Ee||(Ee=e.n5z(Ve)))(pe||Ve)}}(),Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const nt=["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 it=(()=>{class Ve extends y.iR{constructor(Y,pe,De,et){super(Y,De,pe,et),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Y){const pe=this.layout||"row",De=this.inline;"row"===pe&&De?this.styleCache=Ii:"row"!==pe||De?"row-reverse"===pe&&De?this.styleCache=ei:"row-reverse"!==pe||De?"column"===pe&&De?this.styleCache=jt:"column"!==pe||De?"column-reverse"===pe&&De?this.styleCache=ki:"column-reverse"===pe&&!De&&(this.styleCache=Vt):this.styleCache=Zt:this.styleCache=Ft:this.styleCache=Mt,this.addStyles(Y,{layout:pe,inline:De})}onLayoutChange(Y){const pe=Y.value.split(" ");this.layout=pe[0],this.inline=Y.value.includes("inline"),C.iQ.find(De=>De===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(lt),e.Y36(y.yB))},Ve.\u0275dir=e.lG2({type:Ve,features:[e.qOj]}),Ve})(),rt=(()=>{class Ve extends it{constructor(){super(...arguments),this.inputs=nt}}return Ve.\u0275fac=function(){let Ee;return function(pe){return(Ee||(Ee=e.n5z(Ve)))(pe||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[e.qOj]}),Ve})();const Mt=new Map,Zt=new Map,Ft=new Map,Vt=new Map,Ii=new Map,jt=new Map,ei=new Map,ki=new Map;let hi=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[y.IR,t.vT]]}),Ve})()},3075:(Ge,Q,m)=>{"use strict";m.d(Q,{Zs:()=>$n,Fj:()=>P,qu:()=>ja,NI:()=>Ui,oH:()=>dr,u:()=>Ma,sg:()=>Fi,u5:()=>Ha,Fd:()=>Ba,qQ:()=>kr,Cf:()=>j,JU:()=>R,a5:()=>we,JJ:()=>Ne,JL:()=>ce,F:()=>_e,On:()=>qi,wV:()=>gt,UX:()=>Zn,Q7:()=>ga,kI:()=>ee,_Y:()=>ot});var e=m(5e3),t=m(9808),y=m(457),C=m(4128),o=m(4004);let M=(()=>{class me{constructor(ne,Qe){this._renderer=ne,this._elementRef=Qe,this.onChange=Wt=>{},this.onTouched=()=>{}}setProperty(ne,Qe){this._renderer.setProperty(this._elementRef.nativeElement,ne,Qe)}registerOnTouched(ne){this.onTouched=ne}registerOnChange(ne){this.onChange=ne}setDisabledState(ne){this.setProperty("disabled",ne)}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(e.Qsj),e.Y36(e.SBq))},me.\u0275dir=e.lG2({type:me}),me})(),l=(()=>{class me extends M{}return me.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(me)))(Qe||me)}}(),me.\u0275dir=e.lG2({type:me,features:[e.qOj]}),me})();const R=new e.OlP("NgValueAccessor"),I={provide:R,useExisting:(0,e.Gpc)(()=>P),multi:!0},E=new e.OlP("CompositionEventMode");let P=(()=>{class me extends M{constructor(ne,Qe,Wt){super(ne,Qe),this._compositionMode=Wt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function A(){const me=(0,t.q)()?(0,t.q)().getUserAgent():"";return/android (\d+)/.test(me.toLowerCase())}())}writeValue(ne){this.setProperty("value",null==ne?"":ne)}_handleInput(ne){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ne)}_compositionStart(){this._composing=!0}_compositionEnd(ne){this._composing=!1,this._compositionMode&&this.onChange(ne)}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(E,8))},me.\u0275dir=e.lG2({type:me,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("input",function(mi){return Qe._handleInput(mi.target.value)})("blur",function(){return Qe.onTouched()})("compositionstart",function(){return Qe._compositionStart()})("compositionend",function(mi){return Qe._compositionEnd(mi.target.value)})},features:[e._Bn([I]),e.qOj]}),me})();function w(me){return null==me||0===me.length}function V(me){return null!=me&&"number"==typeof me.length}const j=new e.OlP("NgValidators"),W=new e.OlP("NgAsyncValidators"),te=/^(?=.{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 ee{static min(J){return ge(J)}static max(J){return le(J)}static required(J){return re(J)}static requiredTrue(J){return de(J)}static email(J){return function se(me){return w(me.value)||te.test(me.value)?null:{email:!0}}(J)}static minLength(J){return function ye(me){return J=>w(J.value)||!V(J.value)?null:J.value.lengthV(J.value)&&J.value.length>me?{maxlength:{requiredLength:me,actualLength:J.value.length}}:null}(J)}static pattern(J){return function i(me){if(!me)return a;let J,ne;return"string"==typeof me?(ne="","^"!==me.charAt(0)&&(ne+="^"),ne+=me,"$"!==me.charAt(me.length-1)&&(ne+="$"),J=new RegExp(ne)):(ne=me.toString(),J=me),Qe=>{if(w(Qe.value))return null;const Wt=Qe.value;return J.test(Wt)?null:{pattern:{requiredPattern:ne,actualValue:Wt}}}}(J)}static nullValidator(J){return null}static compose(J){return r(J)}static composeAsync(J){return Z(J)}}function ge(me){return J=>{if(w(J.value)||w(me))return null;const ne=parseFloat(J.value);return!isNaN(ne)&&ne{if(w(J.value)||w(me))return null;const ne=parseFloat(J.value);return!isNaN(ne)&&ne>me?{max:{max:me,actual:J.value}}:null}}function re(me){return w(me.value)?{required:!0}:null}function de(me){return!0===me.value?null:{required:!0}}function a(me){return null}function p(me){return null!=me}function u(me){const J=(0,e.QGY)(me)?(0,y.D)(me):me;return(0,e.CqO)(J),J}function _(me){let J={};return me.forEach(ne=>{J=null!=ne?Object.assign(Object.assign({},J),ne):J}),0===Object.keys(J).length?null:J}function D(me,J){return J.map(ne=>ne(me))}function x(me){return me.map(J=>function O(me){return!me.validate}(J)?J:ne=>J.validate(ne))}function r(me){if(!me)return null;const J=me.filter(p);return 0==J.length?null:function(ne){return _(D(ne,J))}}function b(me){return null!=me?r(x(me)):null}function Z(me){if(!me)return null;const J=me.filter(p);return 0==J.length?null:function(ne){const Qe=D(ne,J).map(u);return(0,C.D)(Qe).pipe((0,o.U)(_))}}function N(me){return null!=me?Z(x(me)):null}function U(me,J){return null===me?[J]:Array.isArray(me)?[...me,J]:[me,J]}function ve(me){return me._rawValidators}function be(me){return me._rawAsyncValidators}function Re(me){return me?Array.isArray(me)?me:[me]:[]}function ze(me,J){return Array.isArray(me)?me.includes(J):me===J}function Oe(me,J){const ne=Re(J);return Re(me).forEach(Wt=>{ze(ne,Wt)||ne.push(Wt)}),ne}function K(me,J){return Re(J).filter(ne=>!ze(me,ne))}class Me{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(J){this._rawValidators=J||[],this._composedValidatorFn=b(this._rawValidators)}_setAsyncValidators(J){this._rawAsyncValidators=J||[],this._composedAsyncValidatorFn=N(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(J){this._onDestroyCallbacks.push(J)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(J=>J()),this._onDestroyCallbacks=[]}reset(J){this.control&&this.control.reset(J)}hasError(J,ne){return!!this.control&&this.control.hasError(J,ne)}getError(J,ne){return this.control?this.control.getError(J,ne):null}}class we extends Me{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class z extends Me{get formDirective(){return null}get path(){return null}}class Ze{constructor(J){this._cd=J}is(J){var ne,Qe,Wt;return"submitted"===J?!!(null===(ne=this._cd)||void 0===ne?void 0:ne.submitted):!!(null===(Wt=null===(Qe=this._cd)||void 0===Qe?void 0:Qe.control)||void 0===Wt?void 0:Wt[J])}}let Ne=(()=>{class me extends Ze{constructor(ne){super(ne)}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(we,2))},me.\u0275dir=e.lG2({type:me,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))},features:[e.qOj]}),me})(),ce=(()=>{class me extends Ze{constructor(ne){super(ne)}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(z,10))},me.\u0275dir=e.lG2({type:me,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))("ng-submitted",Qe.is("submitted"))},features:[e.qOj]}),me})();function Mt(me,J){return[...J.path,me]}function Zt(me,J){jt(me,J),J.valueAccessor.writeValue(me.value),function ki(me,J){J.valueAccessor.registerOnChange(ne=>{me._pendingValue=ne,me._pendingChange=!0,me._pendingDirty=!0,"change"===me.updateOn&&hi(me,J)})}(me,J),function Ve(me,J){const ne=(Qe,Wt)=>{J.valueAccessor.writeValue(Qe),Wt&&J.viewToModelUpdate(Qe)};me.registerOnChange(ne),J._registerOnDestroy(()=>{me._unregisterOnChange(ne)})}(me,J),function ai(me,J){J.valueAccessor.registerOnTouched(()=>{me._pendingTouched=!0,"blur"===me.updateOn&&me._pendingChange&&hi(me,J),"submit"!==me.updateOn&&me.markAsTouched()})}(me,J),function Ii(me,J){if(J.valueAccessor.setDisabledState){const ne=Qe=>{J.valueAccessor.setDisabledState(Qe)};me.registerOnDisabledChange(ne),J._registerOnDestroy(()=>{me._unregisterOnDisabledChange(ne)})}}(me,J)}function Ft(me,J,ne=!0){const Qe=()=>{};J.valueAccessor&&(J.valueAccessor.registerOnChange(Qe),J.valueAccessor.registerOnTouched(Qe)),ei(me,J),me&&(J._invokeOnDestroyCallbacks(),me._registerOnCollectionChange(()=>{}))}function Vt(me,J){me.forEach(ne=>{ne.registerOnValidatorChange&&ne.registerOnValidatorChange(J)})}function jt(me,J){const ne=ve(me);null!==J.validator?me.setValidators(U(ne,J.validator)):"function"==typeof ne&&me.setValidators([ne]);const Qe=be(me);null!==J.asyncValidator?me.setAsyncValidators(U(Qe,J.asyncValidator)):"function"==typeof Qe&&me.setAsyncValidators([Qe]);const Wt=()=>me.updateValueAndValidity();Vt(J._rawValidators,Wt),Vt(J._rawAsyncValidators,Wt)}function ei(me,J){let ne=!1;if(null!==me){if(null!==J.validator){const Wt=ve(me);if(Array.isArray(Wt)&&Wt.length>0){const mi=Wt.filter(Ct=>Ct!==J.validator);mi.length!==Wt.length&&(ne=!0,me.setValidators(mi))}}if(null!==J.asyncValidator){const Wt=be(me);if(Array.isArray(Wt)&&Wt.length>0){const mi=Wt.filter(Ct=>Ct!==J.asyncValidator);mi.length!==Wt.length&&(ne=!0,me.setAsyncValidators(mi))}}}const Qe=()=>{};return Vt(J._rawValidators,Qe),Vt(J._rawAsyncValidators,Qe),ne}function hi(me,J){me._pendingDirty&&me.markAsDirty(),me.setValue(me._pendingValue,{emitModelToViewChange:!1}),J.viewToModelUpdate(me._pendingValue),me._pendingChange=!1}function Ee(me,J){jt(me,J)}function et(me,J){if(!me.hasOwnProperty("model"))return!1;const ne=me.model;return!!ne.isFirstChange()||!Object.is(J,ne.currentValue)}function Nt(me,J){me._syncPendingControls(),J.forEach(ne=>{const Qe=ne.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(ne.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function Jt(me,J){if(!J)return null;let ne,Qe,Wt;return Array.isArray(J),J.forEach(mi=>{mi.constructor===P?ne=mi:function $t(me){return Object.getPrototypeOf(me.constructor)===l}(mi)?Qe=mi:Wt=mi}),Wt||Qe||ne||null}function ct(me,J){const ne=me.indexOf(J);ne>-1&&me.splice(ne,1)}const Be="VALID",at="INVALID",st="PENDING",At="DISABLED";function Bt(me){return(ci(me)?me.validators:me)||null}function Rt(me){return Array.isArray(me)?b(me):me||null}function Li(me,J){return(ci(J)?J.asyncValidators:me)||null}function si(me){return Array.isArray(me)?N(me):me||null}function ci(me){return null!=me&&!Array.isArray(me)&&"object"==typeof me}class sn{constructor(J,ne){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=J,this._rawAsyncValidators=ne,this._composedValidatorFn=Rt(this._rawValidators),this._composedAsyncValidatorFn=si(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(J){this._rawValidators=this._composedValidatorFn=J}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(J){this._rawAsyncValidators=this._composedAsyncValidatorFn=J}get parent(){return this._parent}get valid(){return this.status===Be}get invalid(){return this.status===at}get pending(){return this.status==st}get disabled(){return this.status===At}get enabled(){return this.status!==At}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(J){this._rawValidators=J,this._composedValidatorFn=Rt(J)}setAsyncValidators(J){this._rawAsyncValidators=J,this._composedAsyncValidatorFn=si(J)}addValidators(J){this.setValidators(Oe(J,this._rawValidators))}addAsyncValidators(J){this.setAsyncValidators(Oe(J,this._rawAsyncValidators))}removeValidators(J){this.setValidators(K(J,this._rawValidators))}removeAsyncValidators(J){this.setAsyncValidators(K(J,this._rawAsyncValidators))}hasValidator(J){return ze(this._rawValidators,J)}hasAsyncValidator(J){return ze(this._rawAsyncValidators,J)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(J={}){this.touched=!0,this._parent&&!J.onlySelf&&this._parent.markAsTouched(J)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(J=>J.markAllAsTouched())}markAsUntouched(J={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ne=>{ne.markAsUntouched({onlySelf:!0})}),this._parent&&!J.onlySelf&&this._parent._updateTouched(J)}markAsDirty(J={}){this.pristine=!1,this._parent&&!J.onlySelf&&this._parent.markAsDirty(J)}markAsPristine(J={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ne=>{ne.markAsPristine({onlySelf:!0})}),this._parent&&!J.onlySelf&&this._parent._updatePristine(J)}markAsPending(J={}){this.status=st,!1!==J.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!J.onlySelf&&this._parent.markAsPending(J)}disable(J={}){const ne=this._parentMarkedDirty(J.onlySelf);this.status=At,this.errors=null,this._forEachChild(Qe=>{Qe.disable(Object.assign(Object.assign({},J),{onlySelf:!0}))}),this._updateValue(),!1!==J.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},J),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(J={}){const ne=this._parentMarkedDirty(J.onlySelf);this.status=Be,this._forEachChild(Qe=>{Qe.enable(Object.assign(Object.assign({},J),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:J.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},J),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!1))}_updateAncestors(J){this._parent&&!J.onlySelf&&(this._parent.updateValueAndValidity(J),J.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(J){this._parent=J}updateValueAndValidity(J={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Be||this.status===st)&&this._runAsyncValidator(J.emitEvent)),!1!==J.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!J.onlySelf&&this._parent.updateValueAndValidity(J)}_updateTreeValidity(J={emitEvent:!0}){this._forEachChild(ne=>ne._updateTreeValidity(J)),this.updateValueAndValidity({onlySelf:!0,emitEvent:J.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?At:Be}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(J){if(this.asyncValidator){this.status=st,this._hasOwnPendingAsyncValidator=!0;const ne=u(this.asyncValidator(this));this._asyncValidationSubscription=ne.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:J})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(J,ne={}){this.errors=J,this._updateControlsErrors(!1!==ne.emitEvent)}get(J){return function li(me,J,ne){if(null==J||(Array.isArray(J)||(J=J.split(ne)),Array.isArray(J)&&0===J.length))return null;let Qe=me;return J.forEach(Wt=>{Qe=Qe instanceof Di?Qe.controls.hasOwnProperty(Wt)?Qe.controls[Wt]:null:Qe instanceof Xi&&Qe.at(Wt)||null}),Qe}(this,J,".")}getError(J,ne){const Qe=ne?this.get(ne):this;return Qe&&Qe.errors?Qe.errors[J]:null}hasError(J,ne){return!!this.getError(J,ne)}get root(){let J=this;for(;J._parent;)J=J._parent;return J}_updateControlsErrors(J){this.status=this._calculateStatus(),J&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(J)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?At:this.errors?at:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(st)?st:this._anyControlsHaveStatus(at)?at:Be}_anyControlsHaveStatus(J){return this._anyControls(ne=>ne.status===J)}_anyControlsDirty(){return this._anyControls(J=>J.dirty)}_anyControlsTouched(){return this._anyControls(J=>J.touched)}_updatePristine(J={}){this.pristine=!this._anyControlsDirty(),this._parent&&!J.onlySelf&&this._parent._updatePristine(J)}_updateTouched(J={}){this.touched=this._anyControlsTouched(),this._parent&&!J.onlySelf&&this._parent._updateTouched(J)}_isBoxedValue(J){return"object"==typeof J&&null!==J&&2===Object.keys(J).length&&"value"in J&&"disabled"in J}_registerOnCollectionChange(J){this._onCollectionChange=J}_setUpdateStrategy(J){ci(J)&&null!=J.updateOn&&(this._updateOn=J.updateOn)}_parentMarkedDirty(J){return!J&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ui extends sn{constructor(J=null,ne,Qe){super(Bt(ne),Li(Qe,ne)),this._onChange=[],this._applyFormState(J),this._setUpdateStrategy(ne),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(J,ne={}){this.value=this._pendingValue=J,this._onChange.length&&!1!==ne.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==ne.emitViewToModelChange)),this.updateValueAndValidity(ne)}patchValue(J,ne={}){this.setValue(J,ne)}reset(J=null,ne={}){this._applyFormState(J),this.markAsPristine(ne),this.markAsUntouched(ne),this.setValue(this.value,ne),this._pendingChange=!1}_updateValue(){}_anyControls(J){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(J){this._onChange.push(J)}_unregisterOnChange(J){ct(this._onChange,J)}registerOnDisabledChange(J){this._onDisabledChange.push(J)}_unregisterOnDisabledChange(J){ct(this._onDisabledChange,J)}_forEachChild(J){}_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(J){this._isBoxedValue(J)?(this.value=this._pendingValue=J.value,J.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=J}}class Di extends sn{constructor(J,ne,Qe){super(Bt(ne),Li(Qe,ne)),this.controls=J,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(J,ne){return this.controls[J]?this.controls[J]:(this.controls[J]=ne,ne.setParent(this),ne._registerOnCollectionChange(this._onCollectionChange),ne)}addControl(J,ne,Qe={}){this.registerControl(J,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(J,ne={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),delete this.controls[J],this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}setControl(J,ne,Qe={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),delete this.controls[J],ne&&this.registerControl(J,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(J){return this.controls.hasOwnProperty(J)&&this.controls[J].enabled}setValue(J,ne={}){this._checkAllValuesPresent(J),Object.keys(J).forEach(Qe=>{this._throwIfControlMissing(Qe),this.controls[Qe].setValue(J[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(J,ne={}){null!=J&&(Object.keys(J).forEach(Qe=>{this.controls[Qe]&&this.controls[Qe].patchValue(J[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(J={},ne={}){this._forEachChild((Qe,Wt)=>{Qe.reset(J[Wt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this._reduceChildren({},(J,ne,Qe)=>(J[Qe]=ne instanceof Ui?ne.value:ne.getRawValue(),J))}_syncPendingControls(){let J=this._reduceChildren(!1,(ne,Qe)=>!!Qe._syncPendingControls()||ne);return J&&this.updateValueAndValidity({onlySelf:!0}),J}_throwIfControlMissing(J){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[J])throw new Error(`Cannot find form control with name: ${J}.`)}_forEachChild(J){Object.keys(this.controls).forEach(ne=>{const Qe=this.controls[ne];Qe&&J(Qe,ne)})}_setUpControls(){this._forEachChild(J=>{J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(J){for(const ne of Object.keys(this.controls)){const Qe=this.controls[ne];if(this.contains(ne)&&J(Qe))return!0}return!1}_reduceValue(){return this._reduceChildren({},(J,ne,Qe)=>((ne.enabled||this.disabled)&&(J[Qe]=ne.value),J))}_reduceChildren(J,ne){let Qe=J;return this._forEachChild((Wt,mi)=>{Qe=ne(Qe,Wt,mi)}),Qe}_allControlsDisabled(){for(const J of Object.keys(this.controls))if(this.controls[J].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(J){this._forEachChild((ne,Qe)=>{if(void 0===J[Qe])throw new Error(`Must supply a value for form control with name: '${Qe}'.`)})}}class Xi extends sn{constructor(J,ne,Qe){super(Bt(ne),Li(Qe,ne)),this.controls=J,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(J){return this.controls[J]}push(J,ne={}){this.controls.push(J),this._registerControl(J),this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}insert(J,ne,Qe={}){this.controls.splice(J,0,ne),this._registerControl(ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(J,ne={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),this.updateValueAndValidity({emitEvent:ne.emitEvent})}setControl(J,ne,Qe={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),ne&&(this.controls.splice(J,0,ne),this._registerControl(ne)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(J,ne={}){this._checkAllValuesPresent(J),J.forEach((Qe,Wt)=>{this._throwIfControlMissing(Wt),this.at(Wt).setValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(J,ne={}){null!=J&&(J.forEach((Qe,Wt)=>{this.at(Wt)&&this.at(Wt).patchValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(J=[],ne={}){this._forEachChild((Qe,Wt)=>{Qe.reset(J[Wt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this.controls.map(J=>J instanceof Ui?J.value:J.getRawValue())}clear(J={}){this.controls.length<1||(this._forEachChild(ne=>ne._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:J.emitEvent}))}_syncPendingControls(){let J=this.controls.reduce((ne,Qe)=>!!Qe._syncPendingControls()||ne,!1);return J&&this.updateValueAndValidity({onlySelf:!0}),J}_throwIfControlMissing(J){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(J))throw new Error(`Cannot find form control at index ${J}`)}_forEachChild(J){this.controls.forEach((ne,Qe)=>{J(ne,Qe)})}_updateValue(){this.value=this.controls.filter(J=>J.enabled||this.disabled).map(J=>J.value)}_anyControls(J){return this.controls.some(ne=>ne.enabled&&J(ne))}_setUpControls(){this._forEachChild(J=>this._registerControl(J))}_checkAllValuesPresent(J){this._forEachChild((ne,Qe)=>{if(void 0===J[Qe])throw new Error(`Must supply a value for form control at index: ${Qe}.`)})}_allControlsDisabled(){for(const J of this.controls)if(J.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(J){J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange)}}const Ke={provide:z,useExisting:(0,e.Gpc)(()=>_e)},_t=(()=>Promise.resolve(null))();let _e=(()=>{class me extends z{constructor(ne,Qe){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new e.vpe,this.form=new Di({},b(ne),N(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);ne.control=Qe.registerControl(ne.name,ne.control),Zt(ne.control,ne),ne.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(ne)})}getControl(ne){return this.form.get(ne.path)}removeControl(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name),ct(this._directives,ne)})}addFormGroup(ne){_t.then(()=>{const Qe=this._findContainer(ne.path),Wt=new Di({});Ee(Wt,ne),Qe.registerControl(ne.name,Wt),Wt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name)})}getFormGroup(ne){return this.form.get(ne.path)}updateModel(ne,Qe){_t.then(()=>{this.form.get(ne.path).setValue(Qe)})}setValue(ne){this.control.setValue(ne)}onSubmit(ne){return this.submitted=!0,Nt(this.form,this._directives),this.ngSubmit.emit(ne),!1}onReset(){this.resetForm()}resetForm(ne){this.form.reset(ne),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ne){return ne.pop(),ne.length?this.form.get(ne):this.form}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(j,10),e.Y36(W,10))},me.\u0275dir=e.lG2({type:me,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ke]),e.qOj]}),me})();const Ni={provide:we,useExisting:(0,e.Gpc)(()=>qi)},Si=(()=>Promise.resolve(null))();let qi=(()=>{class me extends we{constructor(ne,Qe,Wt,mi){super(),this.control=new Ui,this._registered=!1,this.update=new e.vpe,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Wt),this.valueAccessor=Jt(0,mi)}ngOnChanges(ne){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in ne&&this._updateDisabled(ne),et(ne,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Mt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Zt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(ne){Si.then(()=>{this.control.setValue(ne,{emitViewToModelChange:!1})})}_updateDisabled(ne){const Qe=ne.isDisabled.currentValue,Wt=""===Qe||Qe&&"false"!==Qe;Si.then(()=>{Wt&&!this.control.disabled?this.control.disable():!Wt&&this.control.disabled&&this.control.enable()})}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(z,9),e.Y36(j,10),e.Y36(W,10),e.Y36(R,10))},me.\u0275dir=e.lG2({type:me,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([Ni]),e.qOj,e.TTD]}),me})(),ot=(()=>{class me{}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275dir=e.lG2({type:me,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),me})();const Kt={provide:R,useExisting:(0,e.Gpc)(()=>gt),multi:!0};let gt=(()=>{class me extends l{writeValue(ne){this.setProperty("value",null==ne?"":ne)}registerOnChange(ne){this.onChange=Qe=>{ne(""==Qe?null:parseFloat(Qe))}}}return me.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(me)))(Qe||me)}}(),me.\u0275dir=e.lG2({type:me,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("input",function(mi){return Qe.onChange(mi.target.value)})("blur",function(){return Qe.onTouched()})},features:[e._Bn([Kt]),e.qOj]}),me})(),Ci=(()=>{class me{}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({}),me})();const _n=new e.OlP("NgModelWithFormControlWarning"),kn={provide:we,useExisting:(0,e.Gpc)(()=>dr)};let dr=(()=>{class me extends we{constructor(ne,Qe,Wt,mi){super(),this._ngModelWarningConfig=mi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(ne),this._setAsyncValidators(Qe),this.valueAccessor=Jt(0,Wt)}set isDisabled(ne){}ngOnChanges(ne){if(this._isControlChanged(ne)){const Qe=ne.form.previousValue;Qe&&Ft(Qe,this,!1),Zt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}et(ne,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ft(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}_isControlChanged(ne){return ne.hasOwnProperty("form")}}return me._ngModelWarningSentOnce=!1,me.\u0275fac=function(ne){return new(ne||me)(e.Y36(j,10),e.Y36(W,10),e.Y36(R,10),e.Y36(_n,8))},me.\u0275dir=e.lG2({type:me,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([kn]),e.qOj,e.TTD]}),me})();const wi={provide:z,useExisting:(0,e.Gpc)(()=>Fi)};let Fi=(()=>{class me extends z{constructor(ne,Qe){super(),this.validators=ne,this.asyncValidators=Qe,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(ne),this._setAsyncValidators(Qe)}ngOnChanges(ne){this._checkFormPresent(),ne.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ei(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ne){const Qe=this.form.get(ne.path);return Zt(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(ne),Qe}getControl(ne){return this.form.get(ne.path)}removeControl(ne){Ft(ne.control||null,ne,!1),ct(this.directives,ne)}addFormGroup(ne){this._setUpFormContainer(ne)}removeFormGroup(ne){this._cleanUpFormContainer(ne)}getFormGroup(ne){return this.form.get(ne.path)}addFormArray(ne){this._setUpFormContainer(ne)}removeFormArray(ne){this._cleanUpFormContainer(ne)}getFormArray(ne){return this.form.get(ne.path)}updateModel(ne,Qe){this.form.get(ne.path).setValue(Qe)}onSubmit(ne){return this.submitted=!0,Nt(this.form,this.directives),this.ngSubmit.emit(ne),!1}onReset(){this.resetForm()}resetForm(ne){this.form.reset(ne),this.submitted=!1}_updateDomValue(){this.directives.forEach(ne=>{const Qe=ne.control,Wt=this.form.get(ne.path);Qe!==Wt&&(Ft(Qe||null,ne),Wt instanceof Ui&&(Zt(Wt,ne),ne.control=Wt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ne){const Qe=this.form.get(ne.path);Ee(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ne){if(this.form){const Qe=this.form.get(ne.path);Qe&&function Y(me,J){return ei(me,J)}(Qe,ne)&&Qe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jt(this.form,this),this._oldForm&&ei(this._oldForm,this)}_checkFormPresent(){}}return me.\u0275fac=function(ne){return new(ne||me)(e.Y36(j,10),e.Y36(W,10))},me.\u0275dir=e.lG2({type:me,selectors:[["","formGroup",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([wi]),e.qOj,e.TTD]}),me})();const Ra={provide:we,useExisting:(0,e.Gpc)(()=>Ma)};let Ma=(()=>{class me extends we{constructor(ne,Qe,Wt,mi,Ct){super(),this._ngModelWarningConfig=Ct,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Wt),this.valueAccessor=Jt(0,mi)}set isDisabled(ne){}ngOnChanges(ne){this._added||this._setUpControl(),et(ne,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}get path(){return Mt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return me._ngModelWarningSentOnce=!1,me.\u0275fac=function(ne){return new(ne||me)(e.Y36(z,13),e.Y36(j,10),e.Y36(W,10),e.Y36(R,10),e.Y36(_n,8))},me.\u0275dir=e.lG2({type:me,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Ra]),e.qOj,e.TTD]}),me})();function vn(me){return"number"==typeof me?me:parseFloat(me)}let Qn=(()=>{class me{constructor(){this._validator=a}ngOnChanges(ne){if(this.inputName in ne){const Qe=this.normalizeInput(ne[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(Qe):a,this._onChange&&this._onChange()}}validate(ne){return this._validator(ne)}registerOnValidatorChange(ne){this._onChange=ne}enabled(){return null!=this[this.inputName]}}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275dir=e.lG2({type:me,features:[e.TTD]}),me})();const Tr={provide:j,useExisting:(0,e.Gpc)(()=>Ba),multi:!0};let Ba=(()=>{class me extends Qn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=ne=>vn(ne),this.createValidator=ne=>le(ne)}}return me.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(me)))(Qe||me)}}(),me.\u0275dir=e.lG2({type:me,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("max",Qe.enabled()?Qe.max:null)},inputs:{max:"max"},features:[e._Bn([Tr]),e.qOj]}),me})();const Wa={provide:j,useExisting:(0,e.Gpc)(()=>kr),multi:!0};let kr=(()=>{class me extends Qn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=ne=>vn(ne),this.createValidator=ne=>ge(ne)}}return me.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(me)))(Qe||me)}}(),me.\u0275dir=e.lG2({type:me,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("min",Qe.enabled()?Qe.min:null)},inputs:{min:"min"},features:[e._Bn([Wa]),e.qOj]}),me})();const la={provide:j,useExisting:(0,e.Gpc)(()=>ga),multi:!0},Jr={provide:j,useExisting:(0,e.Gpc)(()=>$n),multi:!0};let ga=(()=>{class me{constructor(){this._required=!1}get required(){return this._required}set required(ne){this._required=null!=ne&&!1!==ne&&"false"!=`${ne}`,this._onChange&&this._onChange()}validate(ne){return this.required?re(ne):null}registerOnValidatorChange(ne){this._onChange=ne}}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275dir=e.lG2({type:me,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},inputs:{required:"required"},features:[e._Bn([la])]}),me})(),$n=(()=>{class me extends ga{validate(ne){return this.required?de(ne):null}}return me.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(me)))(Qe||me)}}(),me.\u0275dir=e.lG2({type:me,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},features:[e._Bn([Jr]),e.qOj]}),me})(),Gr=(()=>{class me{}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({imports:[[Ci]]}),me})(),Ha=(()=>{class me{}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({imports:[Gr]}),me})(),Zn=(()=>{class me{static withConfig(ne){return{ngModule:me,providers:[{provide:_n,useValue:ne.warnOnNgModelWithFormControl}]}}}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({imports:[Gr]}),me})(),ja=(()=>{class me{group(ne,Qe=null){const Wt=this._reduceControls(ne);let ti,mi=null,Ct=null;return null!=Qe&&(function ns(me){return void 0!==me.asyncValidators||void 0!==me.validators||void 0!==me.updateOn}(Qe)?(mi=null!=Qe.validators?Qe.validators:null,Ct=null!=Qe.asyncValidators?Qe.asyncValidators:null,ti=null!=Qe.updateOn?Qe.updateOn:void 0):(mi=null!=Qe.validator?Qe.validator:null,Ct=null!=Qe.asyncValidator?Qe.asyncValidator:null)),new Di(Wt,{asyncValidators:Ct,updateOn:ti,validators:mi})}control(ne,Qe,Wt){return new Ui(ne,Qe,Wt)}array(ne,Qe,Wt){const mi=ne.map(Ct=>this._createControl(Ct));return new Xi(mi,Qe,Wt)}_reduceControls(ne){const Qe={};return Object.keys(ne).forEach(Wt=>{Qe[Wt]=this._createControl(ne[Wt])}),Qe}_createControl(ne){return ne instanceof Ui||ne instanceof Di||ne instanceof Xi?ne:Array.isArray(ne)?this.control(ne[0],ne.length>1?ne[1]:null,ne.length>2?ne[2]:null):this.control(ne)}}return me.\u0275fac=function(ne){return new(ne||me)},me.\u0275prov=e.Yz7({token:me,factory:me.\u0275fac,providedIn:Zn}),me})()},1079:(Ge,Q,m)=>{"use strict";m.d(Q,{XC:()=>x,Bb:()=>Oe,ZL:()=>be});var e=m(5664),t=m(3191),y=m(5e3),C=m(508),o=m(727),M=m(7579),l=m(9770),R=m(6451),s=m(9646),L=m(4968),I=m(925),A=m(9808),E=m(9776),P=m(5303),w=m(1159),V=m(7429),j=m(3075),W=m(7322),te=m(5698),ee=m(3900),ge=m(9300),le=m(4004),re=m(8505),de=m(4086),se=m(226);const ye=["panel"];function v(K,Me){if(1&K&&(y.TgZ(0,"div",0,1),y.Hsn(2),y.qZA()),2&K){const we=Me.id,z=y.oxw();y.Q6J("id",z.id)("ngClass",z._classList),y.uIk("aria-label",z.ariaLabel||null)("aria-labelledby",z._getPanelAriaLabelledby(we))}}const i=["*"];let a=0;class p{constructor(Me,we){this.source=Me,this.option=we}}const u=(0,C.Kr)(class{}),_=new y.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function D(){return{autoActiveFirstOption:!1}}});let O=(()=>{class K extends u{constructor(we,z,Ze,vt){super(),this._changeDetectorRef=we,this._elementRef=z,this._activeOptionChanges=o.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new y.vpe,this.opened=new y.vpe,this.closed=new y.vpe,this.optionActivated=new y.vpe,this._classList={},this.id="mat-autocomplete-"+a++,this.inertGroups=(null==vt?void 0:vt.SAFARI)||!1,this._autoActiveFirstOption=!!Ze.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(we){this._autoActiveFirstOption=(0,t.Ig)(we)}set classList(we){this._classList=we&&we.length?(0,t.du)(we).reduce((z,Ze)=>(z[Ze]=!0,z),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(we=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[we]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(we){this.panel&&(this.panel.nativeElement.scrollTop=we)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(we){const z=new p(this,we);this.optionSelected.emit(z)}_getPanelAriaLabelledby(we){return this.ariaLabel?null:this.ariaLabelledby?(we?we+" ":"")+this.ariaLabelledby:we}_setVisibilityClasses(we){we[this._visibleClass]=this.showPanel,we[this._hiddenClass]=!this.showPanel}}return K.\u0275fac=function(we){return new(we||K)(y.Y36(y.sBO),y.Y36(y.SBq),y.Y36(_),y.Y36(I.t4))},K.\u0275dir=y.lG2({type:K,viewQuery:function(we,z){if(1&we&&(y.Gf(y.Rgc,7),y.Gf(ye,5)),2&we){let Ze;y.iGM(Ze=y.CRH())&&(z.template=Ze.first),y.iGM(Ze=y.CRH())&&(z.panel=Ze.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:[y.qOj]}),K})(),x=(()=>{class K extends O{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return K.\u0275fac=function(){let Me;return function(z){return(Me||(Me=y.n5z(K)))(z||K)}}(),K.\u0275cmp=y.Xpm({type:K,selectors:[["mat-autocomplete"]],contentQueries:function(we,z,Ze){if(1&we&&(y.Suo(Ze,C.K7,5),y.Suo(Ze,C.ey,5)),2&we){let vt;y.iGM(vt=y.CRH())&&(z.optionGroups=vt),y.iGM(vt=y.CRH())&&(z.options=vt)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[y._Bn([{provide:C.HF,useExisting:K}]),y.qOj],ngContentSelectors:i,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(we,z){1&we&&(y.F$t(),y.YNc(0,v,3,4,"ng-template"))},directives:[A.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),K})();const r=new y.OlP("mat-autocomplete-scroll-strategy"),Z={provide:r,deps:[E.aV],useFactory:function b(K){return()=>K.scrollStrategies.reposition()}},N={provide:j.JU,useExisting:(0,y.Gpc)(()=>be),multi:!0};let ve=(()=>{class K{constructor(we,z,Ze,vt,Fe,Ne,ce,Le,Pe,q,$){this._element=we,this._overlay=z,this._viewContainerRef=Ze,this._zone=vt,this._changeDetectorRef=Fe,this._dir=ce,this._formField=Le,this._document=Pe,this._viewportRuler=q,this._defaults=$,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=o.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new M.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,l.P)(()=>this.autocomplete&&this.autocomplete.options?(0,R.T)(...this.autocomplete.options.map(oe=>oe.onSelectionChange)):this._zone.onStable.pipe((0,te.q)(1),(0,ee.w)(()=>this.optionSelections))),this._scrollStrategy=Ne}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(we){this._autocompleteDisabled=(0,t.Ig)(we)}ngAfterViewInit(){const we=this._getWindow();void 0!==we&&this._zone.runOutsideAngular(()=>we.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(we){we.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const we=this._getWindow();void 0!==we&&we.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.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,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ge.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ge.h)(()=>this._overlayAttached)):(0,s.of)()).pipe((0,le.U)(we=>we instanceof C.rN?we:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,L.R)(this._document,"click"),(0,L.R)(this._document,"auxclick"),(0,L.R)(this._document,"touchend")).pipe((0,ge.h)(we=>{const z=(0,I.sA)(we),Ze=this._formField?this._formField._elementRef.nativeElement:null,vt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&z!==this._element.nativeElement&&(!Ze||!Ze.contains(z))&&(!vt||!vt.contains(z))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(z)}))}writeValue(we){Promise.resolve(null).then(()=>this._setTriggerValue(we))}registerOnChange(we){this._onChange=we}registerOnTouched(we){this._onTouched=we}setDisabledState(we){this._element.nativeElement.disabled=we}_handleKeydown(we){const z=we.keyCode;if(z===w.hY&&!(0,w.Vb)(we)&&we.preventDefault(),this.activeOption&&z===w.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),we.preventDefault();else if(this.autocomplete){const Ze=this.autocomplete._keyManager.activeItem,vt=z===w.LH||z===w.JH;this.panelOpen||z===w.Mf?this.autocomplete._keyManager.onKeydown(we):vt&&this._canOpen()&&this.openPanel(),(vt||this.autocomplete._keyManager.activeItem!==Ze)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(we){let z=we.target,Ze=z.value;"number"===z.type&&(Ze=""==Ze?null:parseFloat(Ze)),this._previousValue!==Ze&&(this._previousValue=Ze,this._onChange(Ze),this._canOpen()&&this._document.activeElement===we.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(we=!1){this._formField&&"auto"===this._formField.floatLabel&&(we?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const we=this._zone.onStable.pipe((0,te.q)(1)),z=this.autocomplete.options.changes.pipe((0,re.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,de.g)(0));return(0,R.T)(we,z).pipe((0,ee.w)(()=>{const Ze=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),Ze!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,te.q)(1)).subscribe(Ze=>this._setValueAndClose(Ze))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(we){const z=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(we):we,Ze=null!=z?z:"";this._formField?this._formField._control.value=Ze:this._element.nativeElement.value=Ze,this._previousValue=Ze}_setValueAndClose(we){we&&we.source&&(this._clearPreviousSelectedOption(we.source),this._setTriggerValue(we.source.value),this._onChange(we.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(we.source)),this.closePanel()}_clearPreviousSelectedOption(we){this.autocomplete.options.forEach(z=>{z!==we&&z.selected&&z.deselect()})}_attachOverlay(){var we;let z=this._overlayRef;z?(this._positionStrategy.setOrigin(this._getConnectedElement()),z.updateSize({width:this._getPanelWidth()})):(this._portal=new V.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(we=this._formField)||void 0===we?void 0:we.getLabelId()}),z=this._overlay.create(this._getOverlayConfig()),this._overlayRef=z,z.keydownEvents().subscribe(vt=>{(vt.keyCode===w.hY&&!(0,w.Vb)(vt)||vt.keyCode===w.LH&&(0,w.Vb)(vt,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),vt.stopPropagation(),vt.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&z&&z.updateSize({width:this._getPanelWidth()})})),z&&!z.hasAttached()&&(z.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Ze=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Ze!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var we;return new E.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(we=this._defaults)||void 0===we?void 0:we.overlayPanelClass})}_getOverlayPosition(){const we=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(we),this._positionStrategy=we,we}_setStrategyPositions(we){const z=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ze=this._aboveClass,vt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ze},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ze}];let Fe;Fe="above"===this.position?vt:"below"===this.position?z:[...z,...vt],we.withPositions(Fe)}_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 we=this.autocomplete;we.autoActiveFirstOption?we._keyManager.setFirstItemActive():we._keyManager.setActiveItem(-1)}_canOpen(){const we=this._element.nativeElement;return!we.readOnly&&!we.disabled&&!this._autocompleteDisabled}_getWindow(){var we;return(null===(we=this._document)||void 0===we?void 0:we.defaultView)||window}_scrollToOption(we){const z=this.autocomplete,Ze=(0,C.CB)(we,z.options,z.optionGroups);if(0===we&&1===Ze)z._setScrollTop(0);else if(z.panel){const vt=z.options.toArray()[we];if(vt){const Fe=vt._getHostElement(),Ne=(0,C.jH)(Fe.offsetTop,Fe.offsetHeight,z._getScrollTop(),z.panel.nativeElement.offsetHeight);z._setScrollTop(Ne)}}}}return K.\u0275fac=function(we){return new(we||K)(y.Y36(y.SBq),y.Y36(E.aV),y.Y36(y.s_b),y.Y36(y.R0b),y.Y36(y.sBO),y.Y36(r),y.Y36(se.Is,8),y.Y36(W.G_,9),y.Y36(A.K0,8),y.Y36(P.rL),y.Y36(_,8))},K.\u0275dir=y.lG2({type:K,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[y.TTD]}),K})(),be=(()=>{class K extends ve{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return K.\u0275fac=function(){let Me;return function(z){return(Me||(Me=y.n5z(K)))(z||K)}}(),K.\u0275dir=y.lG2({type:K,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(we,z){1&we&&y.NdJ("focusin",function(){return z._handleFocus()})("blur",function(){return z._onTouched()})("input",function(vt){return z._handleInput(vt)})("keydown",function(vt){return z._handleKeydown(vt)}),2&we&&y.uIk("autocomplete",z.autocompleteAttribute)("role",z.autocompleteDisabled?null:"combobox")("aria-autocomplete",z.autocompleteDisabled?null:"list")("aria-activedescendant",z.panelOpen&&z.activeOption?z.activeOption.id:null)("aria-expanded",z.autocompleteDisabled?null:z.panelOpen.toString())("aria-owns",z.autocompleteDisabled||!z.panelOpen||null==z.autocomplete?null:z.autocomplete.id)("aria-haspopup",!z.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[y._Bn([N]),y.qOj]}),K})(),Oe=(()=>{class K{}return K.\u0275fac=function(we){return new(we||K)},K.\u0275mod=y.oAB({type:K}),K.\u0275inj=y.cJS({providers:[Z],imports:[[E.U8,C.Ng,C.BQ,A.ez],P.ZD,C.Ng,C.BQ]}),K})()},7544:(Ge,Q,m)=>{"use strict";m.d(Q,{k:()=>s,g:()=>L});var e=m(5e3),t=m(508),y=m(5664),C=m(3191),o=m(6360);let M=0;const l=(0,t.Id)(class{}),R="mat-badge-content";let s=(()=>{class I extends l{constructor(E,P,w,V,j){super(),this._ngZone=E,this._elementRef=P,this._ariaDescriber=w,this._renderer=V,this._animationMode=j,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=M++,this._isInitialized=!1}get color(){return this._color}set color(E){this._setColor(E),this._color=E}get overlap(){return this._overlap}set overlap(E){this._overlap=(0,C.Ig)(E)}get content(){return this._content}set content(E){this._updateRenderedContent(E)}get description(){return this._description}set description(E){this._updateHostAriaDescription(E)}get hidden(){return this._hidden}set hidden(E){this._hidden=(0,C.Ig)(E)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const E=this._renderer.createElement("span"),P="mat-badge-active";return E.setAttribute("id",`mat-badge-content-${this._id}`),E.setAttribute("aria-hidden","true"),E.classList.add(R),"NoopAnimations"===this._animationMode&&E.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(E),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{E.classList.add(P)})}):E.classList.add(P),E}_updateRenderedContent(E){const P=`${null!=E?E:""}`.trim();this._isInitialized&&P&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=P),this._content=P}_updateHostAriaDescription(E){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),E&&this._ariaDescriber.describe(this._elementRef.nativeElement,E),this._description=E}_setColor(E){const P=this._elementRef.nativeElement.classList;P.remove(`mat-badge-${this._color}`),E&&P.add(`mat-badge-${E}`)}_clearExistingBadges(){const E=this._elementRef.nativeElement.querySelectorAll(`:scope > .${R}`);for(const P of Array.from(E))P!==this._badgeElement&&P.remove()}}return I.\u0275fac=function(E){return new(E||I)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(y.$s),e.Y36(e.Qsj),e.Y36(o.Qb,8))},I.\u0275dir=e.lG2({type:I,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(E,P){2&E&&e.ekj("mat-badge-overlap",P.overlap)("mat-badge-above",P.isAbove())("mat-badge-below",!P.isAbove())("mat-badge-before",!P.isAfter())("mat-badge-after",P.isAfter())("mat-badge-small","small"===P.size)("mat-badge-medium","medium"===P.size)("mat-badge-large","large"===P.size)("mat-badge-hidden",P.hidden||!P.content)("mat-badge-disabled",P.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),I})(),L=(()=>{class I{}return I.\u0275fac=function(E){return new(E||I)},I.\u0275mod=e.oAB({type:I}),I.\u0275inj=e.cJS({imports:[[y.rt,t.BQ],t.BQ]}),I})()},7423:(Ge,Q,m)=>{"use strict";m.d(Q,{lW:()=>I,ot:()=>E});var e=m(5e3),t=m(508),y=m(6360),C=m(5664);const o=["mat-button",""],M=["*"],s=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L=(0,t.pj)((0,t.Id)((0,t.Kr)(class{constructor(P){this._elementRef=P}})));let I=(()=>{class P extends L{constructor(V,j,W){super(V),this._focusMonitor=j,this._animationMode=W,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const te of s)this._hasHostAttributes(te)&&this._getHostElement().classList.add(te);V.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(V,j){V?this._focusMonitor.focusVia(this._getHostElement(),V,j):this._getHostElement().focus(j)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...V){return V.some(j=>this._getHostElement().hasAttribute(j))}}return P.\u0275fac=function(V){return new(V||P)(e.Y36(e.SBq),e.Y36(C.tE),e.Y36(y.Qb,8))},P.\u0275cmp=e.Xpm({type:P,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(V,j){if(1&V&&e.Gf(t.wG,5),2&V){let W;e.iGM(W=e.CRH())&&(j.ripple=W.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(V,j){2&V&&(e.uIk("disabled",j.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-button-disabled",j.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:o,ngContentSelectors:M,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(V,j){1&V&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&V&&(e.xp6(2),e.ekj("mat-button-ripple-round",j.isRoundButton||j.isIconButton),e.Q6J("matRippleDisabled",j._isRippleDisabled())("matRippleCentered",j.isIconButton)("matRippleTrigger",j._getHostElement()))},directives:[t.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;-moz-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;-moz-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;-moz-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;-moz-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}),P})(),E=(()=>{class P{}return P.\u0275fac=function(V){return new(V||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),P})()},9224:(Ge,Q,m)=>{"use strict";m.d(Q,{a8:()=>ge,dn:()=>L,dk:()=>le,QW:()=>de,$j:()=>A,n5:()=>I});var e=m(5e3),t=m(6360),y=m(508);const C=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],M=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let L=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275dir=e.lG2({type:se,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),se})(),I=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275dir=e.lG2({type:se,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),se})(),A=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275dir=e.lG2({type:se,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),se})(),ge=(()=>{class se{constructor(v){this._animationMode=v}}return se.\u0275fac=function(v){return new(v||se)(e.Y36(t.Qb,8))},se.\u0275cmp=e.Xpm({type:se,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(v,i){2&v&&e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(v,i){1&v&&(e.F$t(C),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.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}),se})(),le=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275cmp=e.Xpm({type:se,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(v,i){1&v&&(e.F$t(M),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),se})(),de=(()=>{class se{}return se.\u0275fac=function(v){return new(v||se)},se.\u0275mod=e.oAB({type:se}),se.\u0275inj=e.cJS({imports:[[y.BQ],y.BQ]}),se})()},7446:(Ge,Q,m)=>{"use strict";m.d(Q,{oG:()=>W,p9:()=>le});var e=m(3191),t=m(5e3),y=m(3075),C=m(508),o=m(6360),M=m(5664),l=m(7144);const R=["input"],s=function(re){return{enterDuration:re}},L=["*"],I=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:A});function A(){return{color:"accent",clickAction:"check-indeterminate"}}let E=0;const P=A(),w={provide:y.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class V{}const j=(0,C.sb)((0,C.pj)((0,C.Kr)((0,C.Id)(class{constructor(re){this._elementRef=re}}))));let W=(()=>{class re extends j{constructor(se,ye,v,i,a,p,u){super(se),this._changeDetectorRef=ye,this._focusMonitor=v,this._ngZone=i,this._animationMode=p,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++E,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||P,this.color=this.defaultColor=this._options.color||P.color,this.tabIndex=parseInt(a)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(se){this._required=(0,e.Ig)(se)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(se=>{se||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(se){se!=this.checked&&(this._checked=se,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(se){const ye=(0,e.Ig)(se);ye!==this.disabled&&(this._disabled=ye,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(se){const ye=se!=this._indeterminate;this._indeterminate=(0,e.Ig)(se),ye&&(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(se){this.checked=!!se}registerOnChange(se){this._controlValueAccessorChangeFn=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(se){let ye=this._currentCheckState,v=this._elementRef.nativeElement;if(ye!==se&&(this._currentAnimationClass.length>0&&v.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ye,se),this._currentCheckState=se,this._currentAnimationClass.length>0)){v.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{v.classList.remove(i)},1e3)})}}_emitChangeEvent(){const se=new V;se.source=this,se.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(se),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(se){var ye;const v=null===(ye=this._options)||void 0===ye?void 0:ye.clickAction;se.stopPropagation(),this.disabled||"noop"===v?!this.disabled&&"noop"===v&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==v&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(se,ye){se?this._focusMonitor.focusVia(this._inputElement,se,ye):this._inputElement.nativeElement.focus(ye)}_onInteractionEvent(se){se.stopPropagation()}_getAnimationClassForCheckStateTransition(se,ye){if("NoopAnimations"===this._animationMode)return"";let v="";switch(se){case 0:if(1===ye)v="unchecked-checked";else{if(3!=ye)return"";v="unchecked-indeterminate"}break;case 2:v=1===ye?"unchecked-checked":"unchecked-indeterminate";break;case 1:v=2===ye?"checked-unchecked":"checked-indeterminate";break;case 3:v=1===ye?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${v}`}_syncIndeterminate(se){const ye=this._inputElement;ye&&(ye.nativeElement.indeterminate=se)}}return re.\u0275fac=function(se){return new(se||re)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(M.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(o.Qb,8),t.Y36(I,8))},re.\u0275cmp=t.Xpm({type:re,selectors:[["mat-checkbox"]],viewQuery:function(se,ye){if(1&se&&(t.Gf(R,5),t.Gf(C.wG,5)),2&se){let v;t.iGM(v=t.CRH())&&(ye._inputElement=v.first),t.iGM(v=t.CRH())&&(ye.ripple=v.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(se,ye){2&se&&(t.Ikx("id",ye.id),t.uIk("tabindex",null),t.ekj("mat-checkbox-indeterminate",ye.indeterminate)("mat-checkbox-checked",ye.checked)("mat-checkbox-disabled",ye.disabled)("mat-checkbox-label-before","before"==ye.labelPosition)("_mat-animation-noopable","NoopAnimations"===ye._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:[t._Bn([w]),t.qOj],ngContentSelectors:L,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",0,"xml","space","preserve","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(se,ye){if(1&se&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"span",2),t.TgZ(3,"input",3,4),t.NdJ("change",function(i){return ye._onInteractionEvent(i)})("click",function(i){return ye._onInputClick(i)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA(),t.qZA(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return ye._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA(),t.qZA()),2&se){const v=t.MAs(1),i=t.MAs(13);t.uIk("for",ye.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(1),t.Q6J("id",ye.inputId)("required",ye.required)("checked",ye.checked)("disabled",ye.disabled)("tabIndex",ye.tabIndex),t.uIk("value",ye.value)("name",ye.name)("aria-label",ye.ariaLabel||null)("aria-labelledby",ye.ariaLabelledby)("aria-checked",ye._getAriaChecked())("aria-describedby",ye.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",v)("matRippleDisabled",ye._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,s,"NoopAnimations"===ye._animationMode?0:150))}},directives:[C.wG,l.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;-moz-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;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),re})(),ge=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})(),le=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({imports:[[C.si,C.BQ,l.Q8,ge],C.BQ,ge]}),re})()},508:(Ge,Q,m)=>{"use strict";m.d(Q,{yN:()=>te,mZ:()=>ee,_A:()=>r,rD:()=>Oe,sG:()=>b,K7:()=>Zt,HF:()=>ft,Y2:()=>oe,BQ:()=>de,X2:()=>K,uc:()=>z,XK:()=>Re,ey:()=>ei,Ng:()=>hi,rN:()=>Ii,nP:()=>lt,us:()=>nt,wG:()=>Ce,si:()=>Ue,LF:()=>U,IR:()=>Pe,CB:()=>ki,jH:()=>ai,pj:()=>a,Kr:()=>p,Id:()=>i,FD:()=>_,dB:()=>D,sb:()=>u,E0:()=>Me});var e=m(5e3),t=m(226),C=m(9808),o=m(925),M=m(5664),l=m(3191),R=m(7579),s=m(8306),L=m(8675),I=m(6360),A=m(1159);function w(Ve,Ee){if(1&Ve&&e._UZ(0,"mat-pseudo-checkbox",4),2&Ve){const Y=e.oxw();e.Q6J("state",Y.selected?"checked":"unchecked")("disabled",Y.disabled)}}function V(Ve,Ee){if(1&Ve&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Ve){const Y=e.oxw();e.xp6(1),e.hij("(",Y.group.label,")")}}const j=["*"];let te=(()=>{class Ve{}return Ve.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ve.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ve.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ve.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ve})(),ee=(()=>{class Ve{}return Ve.COMPLEX="375ms",Ve.ENTERING="225ms",Ve.EXITING="195ms",Ve})();const re=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function le(){return!0}});let de=(()=>{class Ve{constructor(Y,pe,De){this._sanityChecks=pe,this._document=De,this._hasDoneGlobalChecks=!1,Y._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Y){return!(0,o.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Y])}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.LFG(M.qm),e.LFG(re,8),e.LFG(C.K0))},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[t.vT],t.vT]}),Ve})();function i(Ve){return class extends Ve{constructor(...Ee){super(...Ee),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,l.Ig)(Ee)}}}function a(Ve,Ee){return class extends Ve{constructor(...Y){super(...Y),this.defaultColor=Ee,this.color=Ee}get color(){return this._color}set color(Y){const pe=Y||this.defaultColor;pe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),pe&&this._elementRef.nativeElement.classList.add(`mat-${pe}`),this._color=pe)}}}function p(Ve){return class extends Ve{constructor(...Ee){super(...Ee),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ee){this._disableRipple=(0,l.Ig)(Ee)}}}function u(Ve,Ee=0){return class extends Ve{constructor(...Y){super(...Y),this._tabIndex=Ee,this.defaultTabIndex=Ee}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Y){this._tabIndex=null!=Y?(0,l.su)(Y):this.defaultTabIndex}}}function _(Ve){return class extends Ve{constructor(...Ee){super(...Ee),this.stateChanges=new R.x,this.errorState=!1}updateErrorState(){const Ee=this.errorState,et=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);et!==Ee&&(this.errorState=et,this.stateChanges.next())}}}function D(Ve){return class extends Ve{constructor(...Ee){super(...Ee),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new s.y(Y=>{this._isInitialized?this._notifySubscriber(Y):this._pendingSubscribers.push(Y)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ee){Ee.next(),Ee.complete()}}}const O=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function x(){return(0,e.f3M)(e.soG)}});class r{constructor(){this._localeChanges=new R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Ee){return this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:null}deserialize(Ee){return null==Ee||this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:this.invalid()}setLocale(Ee){this.locale=Ee,this._localeChanges.next()}compareDate(Ee,Y){return this.getYear(Ee)-this.getYear(Y)||this.getMonth(Ee)-this.getMonth(Y)||this.getDate(Ee)-this.getDate(Y)}sameDate(Ee,Y){if(Ee&&Y){let pe=this.isValid(Ee),De=this.isValid(Y);return pe&&De?!this.compareDate(Ee,Y):pe==De}return Ee==Y}clampDate(Ee,Y,pe){return Y&&this.compareDate(Ee,Y)<0?Y:pe&&this.compareDate(Ee,pe)>0?pe:Ee}}const b=new e.OlP("mat-date-formats"),Z=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function N(Ve,Ee){const Y=Array(Ve);for(let pe=0;pe{class Ve extends r{constructor(Y,pe){super(),this.useUtcForDisplay=!1,super.setLocale(Y)}getYear(Y){return Y.getFullYear()}getMonth(Y){return Y.getMonth()}getDate(Y){return Y.getDate()}getDayOfWeek(Y){return Y.getDay()}getMonthNames(Y){const pe=new Intl.DateTimeFormat(this.locale,{month:Y,timeZone:"utc"});return N(12,De=>this._format(pe,new Date(2017,De,1)))}getDateNames(){const Y=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return N(31,pe=>this._format(Y,new Date(2017,0,pe+1)))}getDayOfWeekNames(Y){const pe=new Intl.DateTimeFormat(this.locale,{weekday:Y,timeZone:"utc"});return N(7,De=>this._format(pe,new Date(2017,0,De+1)))}getYearName(Y){const pe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(pe,Y)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Y){return this.getDate(this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y)+1,0))}clone(Y){return new Date(Y.getTime())}createDate(Y,pe,De){let et=this._createDateWithOverflow(Y,pe,De);return et.getMonth(),et}today(){return new Date}parse(Y){return"number"==typeof Y?new Date(Y):Y?new Date(Date.parse(Y)):null}format(Y,pe){if(!this.isValid(Y))throw Error("NativeDateAdapter: Cannot format invalid date.");const De=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},pe),{timeZone:"utc"}));return this._format(De,Y)}addCalendarYears(Y,pe){return this.addCalendarMonths(Y,12*pe)}addCalendarMonths(Y,pe){let De=this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y)+pe,this.getDate(Y));return this.getMonth(De)!=((this.getMonth(Y)+pe)%12+12)%12&&(De=this._createDateWithOverflow(this.getYear(De),this.getMonth(De),0)),De}addCalendarDays(Y,pe){return this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y),this.getDate(Y)+pe)}toIso8601(Y){return[Y.getUTCFullYear(),this._2digit(Y.getUTCMonth()+1),this._2digit(Y.getUTCDate())].join("-")}deserialize(Y){if("string"==typeof Y){if(!Y)return null;if(Z.test(Y)){let pe=new Date(Y);if(this.isValid(pe))return pe}}return super.deserialize(Y)}isDateInstance(Y){return Y instanceof Date}isValid(Y){return!isNaN(Y.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Y,pe,De){const et=new Date;return et.setFullYear(Y,pe,De),et.setHours(0,0,0,0),et}_2digit(Y){return("00"+Y).slice(-2)}_format(Y,pe){const De=new Date;return De.setUTCFullYear(pe.getFullYear(),pe.getMonth(),pe.getDate()),De.setUTCHours(pe.getHours(),pe.getMinutes(),pe.getSeconds(),pe.getMilliseconds()),Y.format(De)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.LFG(O,8),e.LFG(o.t4))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const ve={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 be=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({providers:[{provide:r,useClass:U}],imports:[[o.ud]]}),Ve})(),Re=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({providers:[{provide:b,useValue:ve}],imports:[[be]]}),Ve})(),Oe=(()=>{class Ve{isErrorState(Y,pe){return!!(Y&&Y.invalid&&(Y.touched||pe&&pe.submitted))}}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),K=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ve})();function Me(Ve,Ee,Y="mat"){Ve.changes.pipe((0,L.O)(Ve)).subscribe(({length:pe})=>{we(Ee,`${Y}-2-line`,!1),we(Ee,`${Y}-3-line`,!1),we(Ee,`${Y}-multi-line`,!1),2===pe||3===pe?we(Ee,`${Y}-${pe}-line`,!0):pe>3&&we(Ee,`${Y}-multi-line`,!0)})}function we(Ve,Ee,Y){Ve.nativeElement.classList.toggle(Ee,Y)}let z=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[de],de]}),Ve})();class Ze{constructor(Ee,Y,pe){this._renderer=Ee,this.element=Y,this.config=pe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const vt={enterDuration:225,exitDuration:150},Ne=(0,o.i$)({passive:!0}),ce=["mousedown","touchstart"],Le=["mouseup","mouseleave","touchend","touchcancel"];class Pe{constructor(Ee,Y,pe,De){this._target=Ee,this._ngZone=Y,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,De.isBrowser&&(this._containerElement=(0,l.fI)(pe))}fadeInRipple(Ee,Y,pe={}){const De=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),et=Object.assign(Object.assign({},vt),pe.animation);pe.centered&&(Ee=De.left+De.width/2,Y=De.top+De.height/2);const $t=pe.radius||function $(Ve,Ee,Y){const pe=Math.max(Math.abs(Ve-Y.left),Math.abs(Ve-Y.right)),De=Math.max(Math.abs(Ee-Y.top),Math.abs(Ee-Y.bottom));return Math.sqrt(pe*pe+De*De)}(Ee,Y,De),Nt=Ee-De.left,Jt=Y-De.top,ct=et.enterDuration,ke=document.createElement("div");ke.classList.add("mat-ripple-element"),ke.style.left=Nt-$t+"px",ke.style.top=Jt-$t+"px",ke.style.height=2*$t+"px",ke.style.width=2*$t+"px",null!=pe.color&&(ke.style.backgroundColor=pe.color),ke.style.transitionDuration=`${ct}ms`,this._containerElement.appendChild(ke),function q(Ve){window.getComputedStyle(Ve).getPropertyValue("opacity")}(ke),ke.style.transform="scale(1)";const Be=new Ze(this,ke,pe);return Be.state=0,this._activeRipples.add(Be),pe.persistent||(this._mostRecentTransientRipple=Be),this._runTimeoutOutsideZone(()=>{const at=Be===this._mostRecentTransientRipple;Be.state=1,!pe.persistent&&(!at||!this._isPointerDown)&&Be.fadeOut()},ct),Be}fadeOutRipple(Ee){const Y=this._activeRipples.delete(Ee);if(Ee===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!Y)return;const pe=Ee.element,De=Object.assign(Object.assign({},vt),Ee.config.animation);pe.style.transitionDuration=`${De.exitDuration}ms`,pe.style.opacity="0",Ee.state=2,this._runTimeoutOutsideZone(()=>{Ee.state=3,pe.remove()},De.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ee=>Ee.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ee=>{Ee.config.persistent||Ee.fadeOut()})}setupTriggerEvents(Ee){const Y=(0,l.fI)(Ee);!Y||Y===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Y,this._registerEvents(ce))}handleEvent(Ee){"mousedown"===Ee.type?this._onMousedown(Ee):"touchstart"===Ee.type?this._onTouchStart(Ee):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Le),this._pointerUpEventsRegistered=!0)}_onMousedown(Ee){const Y=(0,M.X6)(Ee),pe=this._lastTouchStartEvent&&Date.now(){!Ee.config.persistent&&(1===Ee.state||Ee.config.terminateOnPointerUp&&0===Ee.state)&&Ee.fadeOut()}))}_runTimeoutOutsideZone(Ee,Y=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ee,Y))}_registerEvents(Ee){this._ngZone.runOutsideAngular(()=>{Ee.forEach(Y=>{this._triggerElement.addEventListener(Y,this,Ne)})})}_removeTriggerEvents(){this._triggerElement&&(ce.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Ne)}),this._pointerUpEventsRegistered&&Le.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Ne)}))}}const oe=new e.OlP("mat-ripple-global-options");let Ce=(()=>{class Ve{constructor(Y,pe,De,et,$t){this._elementRef=Y,this._animationMode=$t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=et||{},this._rippleRenderer=new Pe(this,pe,Y,De)}get disabled(){return this._disabled}set disabled(Y){Y&&this.fadeOutAllNonPersistent(),this._disabled=Y,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Y){this._trigger=Y,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(Y,pe=0,De){return"number"==typeof Y?this._rippleRenderer.fadeInRipple(Y,pe,Object.assign(Object.assign({},this.rippleConfig),De)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Y))}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(o.t4),e.Y36(oe,8),e.Y36(I.Qb,8))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Y,pe){2&Y&&e.ekj("mat-ripple-unbounded",pe.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"]}),Ve})(),Ue=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[de,o.ud],de]}),Ve})(),lt=(()=>{class Ve{constructor(Y){this._animationMode=Y,this.state="unchecked",this.disabled=!1}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(I.Qb,8))},Ve.\u0275cmp=e.Xpm({type:Ve,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Y,pe){2&Y&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===pe.state)("mat-pseudo-checkbox-checked","checked"===pe.state)("mat-pseudo-checkbox-disabled",pe.disabled)("_mat-animation-noopable","NoopAnimations"===pe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Y,pe){},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}),Ve})(),nt=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[de]]}),Ve})();const ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),Zt=new e.OlP("MatOptgroup");let Vt=0;class Ii{constructor(Ee,Y=!1){this.source=Ee,this.isUserInput=Y}}let jt=(()=>{class Ve{constructor(Y,pe,De,et){this._element=Y,this._changeDetectorRef=pe,this._parent=De,this.group=et,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Vt++,this.onSelectionChange=new e.vpe,this._stateChanges=new R.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(Y){this._disabled=(0,l.Ig)(Y)}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(Y,pe){const De=this._getHostElement();"function"==typeof De.focus&&De.focus(pe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Y){(Y.keyCode===A.K5||Y.keyCode===A.L_)&&!(0,A.Vb)(Y)&&(this._selectViaInteraction(),Y.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 Y=this.viewValue;Y!==this._mostRecentViewValue&&(this._mostRecentViewValue=Y,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Y=!1){this.onSelectionChange.emit(new Ii(this,Y))}}return Ve.\u0275fac=function(Y){e.$Z()},Ve.\u0275dir=e.lG2({type:Ve,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ve})(),ei=(()=>{class Ve extends jt{constructor(Y,pe,De,et){super(Y,pe,De,et)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ft,8),e.Y36(Zt,8))},Ve.\u0275cmp=e.Xpm({type:Ve,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Y,pe){1&Y&&e.NdJ("click",function(){return pe._selectViaInteraction()})("keydown",function(et){return pe._handleKeydown(et)}),2&Y&&(e.Ikx("id",pe.id),e.uIk("tabindex",pe._getTabIndex())("aria-selected",pe._getAriaSelected())("aria-disabled",pe.disabled.toString()),e.ekj("mat-selected",pe.selected)("mat-option-multiple",pe.multiple)("mat-active",pe.active)("mat-option-disabled",pe.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:j,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(Y,pe){1&Y&&(e.F$t(),e.YNc(0,w,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,V,2,1,"span",2),e._UZ(4,"div",3)),2&Y&&(e.Q6J("ngIf",pe.multiple),e.xp6(3),e.Q6J("ngIf",pe.group&&pe.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",pe._getHostElement())("matRippleDisabled",pe.disabled||pe.disableRipple))},directives:[C.O5,Ce,lt],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;-moz-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}),Ve})();function ki(Ve,Ee,Y){if(Y.length){let pe=Ee.toArray(),De=Y.toArray(),et=0;for(let $t=0;$tY+pe?Math.max(0,Ve-pe+Ee):Y}let hi=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[[Ue,C.ez,de,nt]]}),Ve})()},6856:(Ge,Q,m)=>{"use strict";m.d(Q,{Mq:()=>Nt,hl:()=>st,FA:()=>_e,nW:()=>li});var e=m(5664),t=m(9776),y=m(7429),C=m(9808),o=m(5e3),M=m(7423),l=m(5303),R=m(508),s=m(7579),L=m(727),I=m(6451),A=m(9646),E=m(1159),P=m(5698),w=m(8675),V=m(9300),j=m(226),W=m(3191),te=m(925),ee=m(1777),ge=m(3075),le=m(7322),re=m(7531);const de=["mat-calendar-body",""];function se(qe,yt){if(1&qe&&(o.TgZ(0,"tr",2),o.TgZ(1,"td",3),o._uU(2),o.qZA(),o.qZA()),2&qe){const ue=o.oxw();o.xp6(1),o.Udp("padding-top",ue._cellPadding)("padding-bottom",ue._cellPadding),o.uIk("colspan",ue.numCols),o.xp6(1),o.hij(" ",ue.label," ")}}function ye(qe,yt){if(1&qe&&(o.TgZ(0,"td",3),o._uU(1),o.qZA()),2&qe){const ue=o.oxw(2);o.Udp("padding-top",ue._cellPadding)("padding-bottom",ue._cellPadding),o.uIk("colspan",ue._firstRowOffset),o.xp6(1),o.hij(" ",ue._firstRowOffset>=ue.labelMinRequiredCells?ue.label:""," ")}}function v(qe,yt){if(1&qe){const ue=o.EpF();o.TgZ(0,"td",7),o.NdJ("click",function(St){const yi=o.CHM(ue).$implicit;return o.oxw(2)._cellClicked(yi,St)}),o.TgZ(1,"div",8),o._uU(2),o.qZA(),o._UZ(3,"div",9),o.qZA()}if(2&qe){const ue=yt.$implicit,Je=yt.index,St=o.oxw().index,kt=o.oxw();o.Udp("width",kt._cellWidth)("padding-top",kt._cellPadding)("padding-bottom",kt._cellPadding),o.ekj("mat-calendar-body-disabled",!ue.enabled)("mat-calendar-body-active",kt._isActiveCell(St,Je))("mat-calendar-body-range-start",kt._isRangeStart(ue.compareValue))("mat-calendar-body-range-end",kt._isRangeEnd(ue.compareValue))("mat-calendar-body-in-range",kt._isInRange(ue.compareValue))("mat-calendar-body-comparison-bridge-start",kt._isComparisonBridgeStart(ue.compareValue,St,Je))("mat-calendar-body-comparison-bridge-end",kt._isComparisonBridgeEnd(ue.compareValue,St,Je))("mat-calendar-body-comparison-start",kt._isComparisonStart(ue.compareValue))("mat-calendar-body-comparison-end",kt._isComparisonEnd(ue.compareValue))("mat-calendar-body-in-comparison-range",kt._isInComparisonRange(ue.compareValue))("mat-calendar-body-preview-start",kt._isPreviewStart(ue.compareValue))("mat-calendar-body-preview-end",kt._isPreviewEnd(ue.compareValue))("mat-calendar-body-in-preview",kt._isInPreview(ue.compareValue)),o.Q6J("ngClass",ue.cssClasses)("tabindex",kt._isActiveCell(St,Je)?0:-1),o.uIk("data-mat-row",St)("data-mat-col",Je)("aria-label",ue.ariaLabel)("aria-disabled",!ue.enabled||null)("aria-selected",kt._isSelected(ue.compareValue))("aria-current",kt.todayValue===ue.compareValue?"date":null),o.xp6(1),o.ekj("mat-calendar-body-selected",kt._isSelected(ue.compareValue))("mat-calendar-body-comparison-identical",kt._isComparisonIdentical(ue.compareValue))("mat-calendar-body-today",kt.todayValue===ue.compareValue),o.xp6(1),o.hij(" ",ue.displayValue," ")}}function i(qe,yt){if(1&qe&&(o.TgZ(0,"tr",4),o.YNc(1,ye,2,6,"td",5),o.YNc(2,v,4,47,"td",6),o.qZA()),2&qe){const ue=yt.$implicit,Je=yt.index,St=o.oxw();o.xp6(1),o.Q6J("ngIf",0===Je&&St._firstRowOffset),o.xp6(1),o.Q6J("ngForOf",ue)}}function a(qe,yt){if(1&qe&&(o.TgZ(0,"th",5),o.TgZ(1,"abbr",6),o._uU(2),o.qZA(),o.qZA()),2&qe){const ue=yt.$implicit;o.uIk("aria-label",ue.long),o.xp6(1),o.uIk("title",ue.long),o.xp6(1),o.Oqu(ue.narrow)}}const p=["*"];function u(qe,yt){}function _(qe,yt){if(1&qe){const ue=o.EpF();o.TgZ(0,"mat-month-view",5),o.NdJ("activeDateChange",function(St){return o.CHM(ue),o.oxw().activeDate=St})("_userSelection",function(St){return o.CHM(ue),o.oxw()._dateSelected(St)}),o.qZA()}if(2&qe){const ue=o.oxw();o.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)("comparisonStart",ue.comparisonStart)("comparisonEnd",ue.comparisonEnd)}}function D(qe,yt){if(1&qe){const ue=o.EpF();o.TgZ(0,"mat-year-view",6),o.NdJ("activeDateChange",function(St){return o.CHM(ue),o.oxw().activeDate=St})("monthSelected",function(St){return o.CHM(ue),o.oxw()._monthSelectedInYearView(St)})("selectedChange",function(St){return o.CHM(ue),o.oxw()._goToDateInView(St,"month")}),o.qZA()}if(2&qe){const ue=o.oxw();o.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)}}function O(qe,yt){if(1&qe){const ue=o.EpF();o.TgZ(0,"mat-multi-year-view",7),o.NdJ("activeDateChange",function(St){return o.CHM(ue),o.oxw().activeDate=St})("yearSelected",function(St){return o.CHM(ue),o.oxw()._yearSelectedInMultiYearView(St)})("selectedChange",function(St){return o.CHM(ue),o.oxw()._goToDateInView(St,"year")}),o.qZA()}if(2&qe){const ue=o.oxw();o.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)}}function x(qe,yt){}const r=["button"];function b(qe,yt){1&qe&&(o.O4$(),o.TgZ(0,"svg",3),o._UZ(1,"path",4),o.qZA())}const Z=[[["","matDatepickerToggleIcon",""]]],N=["[matDatepickerToggleIcon]"];class ze{constructor(yt,ue,Je,St,kt={},yi=yt,Ni){this.value=yt,this.displayValue=ue,this.ariaLabel=Je,this.enabled=St,this.cssClasses=kt,this.compareValue=yi,this.rawValue=Ni}}let Oe=(()=>{class qe{constructor(ue,Je){this._elementRef=ue,this._ngZone=Je,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new o.vpe,this.previewChange=new o.vpe,this._enterHandler=St=>{if(this._skipNextFocus&&"focus"===St.type)this._skipNextFocus=!1;else if(St.target&&this.isRange){const kt=this._getCellFromElement(St.target);kt&&this._ngZone.run(()=>this.previewChange.emit({value:kt.enabled?kt:null,event:St}))}},this._leaveHandler=St=>{null!==this.previewEnd&&this.isRange&&St.target&&K(St.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:St}))},Je.runOutsideAngular(()=>{const St=ue.nativeElement;St.addEventListener("mouseenter",this._enterHandler,!0),St.addEventListener("focus",this._enterHandler,!0),St.addEventListener("mouseleave",this._leaveHandler,!0),St.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(ue,Je){ue.enabled&&this.selectedValueChange.emit({value:ue.value,event:Je})}_isSelected(ue){return this.startValue===ue||this.endValue===ue}ngOnChanges(ue){const Je=ue.numCols,{rows:St,numCols:kt}=this;(ue.rows||Je)&&(this._firstRowOffset=St&&St.length&&St[0].length?kt-St[0].length:0),(ue.cellAspectRatio||Je||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/kt+"%"),(Je||!this._cellWidth)&&(this._cellWidth=100/kt+"%")}ngOnDestroy(){const ue=this._elementRef.nativeElement;ue.removeEventListener("mouseenter",this._enterHandler,!0),ue.removeEventListener("focus",this._enterHandler,!0),ue.removeEventListener("mouseleave",this._leaveHandler,!0),ue.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(ue,Je){let St=ue*this.numCols+Je;return ue&&(St-=this._firstRowOffset),St==this.activeCell}_focusActiveCell(ue=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{const Je=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Je&&(ue||(this._skipNextFocus=!0),Je.focus())})})}_isRangeStart(ue){return Me(ue,this.startValue,this.endValue)}_isRangeEnd(ue){return we(ue,this.startValue,this.endValue)}_isInRange(ue){return z(ue,this.startValue,this.endValue,this.isRange)}_isComparisonStart(ue){return Me(ue,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(ue,Je,St){if(!this._isComparisonStart(ue)||this._isRangeStart(ue)||!this._isInRange(ue))return!1;let kt=this.rows[Je][St-1];if(!kt){const yi=this.rows[Je-1];kt=yi&&yi[yi.length-1]}return kt&&!this._isRangeEnd(kt.compareValue)}_isComparisonBridgeEnd(ue,Je,St){if(!this._isComparisonEnd(ue)||this._isRangeEnd(ue)||!this._isInRange(ue))return!1;let kt=this.rows[Je][St+1];if(!kt){const yi=this.rows[Je+1];kt=yi&&yi[0]}return kt&&!this._isRangeStart(kt.compareValue)}_isComparisonEnd(ue){return we(ue,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(ue){return z(ue,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(ue){return this.comparisonStart===this.comparisonEnd&&ue===this.comparisonStart}_isPreviewStart(ue){return Me(ue,this.previewStart,this.previewEnd)}_isPreviewEnd(ue){return we(ue,this.previewStart,this.previewEnd)}_isInPreview(ue){return z(ue,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(ue){let Je;if(K(ue)?Je=ue:K(ue.parentNode)&&(Je=ue.parentNode),Je){const St=Je.getAttribute("data-mat-row"),kt=Je.getAttribute("data-mat-col");if(St&&kt)return this.rows[parseInt(St)][parseInt(kt)]}return null}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(o.SBq),o.Y36(o.R0b))},qe.\u0275cmp=o.Xpm({type:qe,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:[o.TTD],attrs:de,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",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(ue,Je){1&ue&&(o.YNc(0,se,3,6,"tr",0),o.YNc(1,i,3,2,"tr",1)),2&ue&&(o.Q6J("ngIf",Je._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.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}),qe})();function K(qe){return"TD"===qe.nodeName}function Me(qe,yt,ue){return null!==ue&&yt!==ue&&qe=yt&&qe===ue}function z(qe,yt,ue,Je){return Je&&null!==yt&&null!==ue&&yt!==ue&&qe>=yt&&qe<=ue}class Ze{constructor(yt,ue){this.start=yt,this.end=ue}}let vt=(()=>{class qe{constructor(ue,Je){this.selection=ue,this._adapter=Je,this._selectionChanged=new s.x,this.selectionChanged=this._selectionChanged,this.selection=ue}updateSelection(ue,Je){const St=this.selection;this.selection=ue,this._selectionChanged.next({selection:ue,source:Je,oldValue:St})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(ue){return this._adapter.isDateInstance(ue)&&this._adapter.isValid(ue)}}return qe.\u0275fac=function(ue){o.$Z()},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),Fe=(()=>{class qe extends vt{constructor(ue){super(null,ue)}add(ue){super.updateSelection(ue,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const ue=new qe(this._adapter);return ue.updateSelection(this.selection,this),ue}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.LFG(R._A))},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Le={provide:vt,deps:[[new o.FiY,new o.tp0,vt],R._A],useFactory:function ce(qe,yt){return qe||new Fe(yt)}},$=new o.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let nt=(()=>{class qe{constructor(ue,Je,St,kt,yi){this._changeDetectorRef=ue,this._dateFormats=Je,this._dateAdapter=St,this._dir=kt,this._rangeStrategy=yi,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new o.vpe,this._userSelection=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){const Je=this._activeDate,St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._hasSameMonthAndYear(Je,this._activeDate)||this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Ze?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnChanges(ue){const Je=ue.comparisonStart||ue.comparisonEnd;Je&&!Je.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(ue){const Je=ue.value,St=this._dateAdapter.getYear(this.activeDate),kt=this._dateAdapter.getMonth(this.activeDate),yi=this._dateAdapter.createDate(St,kt,Je);let Ni,Si;this._selected instanceof Ze?(Ni=this._getDateInCurrentMonth(this._selected.start),Si=this._getDateInCurrentMonth(this._selected.end)):Ni=Si=this._getDateInCurrentMonth(this._selected),(Ni!==Je||Si!==Je)&&this.selectedChange.emit(yi),this._userSelection.emit({value:yi,event:ue.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(ue){const Je=this._activeDate,St=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case E.Ku:this.activeDate=ue.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case E.VM:this.activeDate=ue.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case E.K5:case E.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&ue.preventDefault());case E.hY:return void(null!=this._previewEnd&&!(0,E.Vb)(ue)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:ue}),ue.preventDefault(),ue.stopPropagation()));default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let ue=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(ue)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(ue){this._matCalendarBody._focusActiveCell(ue)}_previewChanged({event:ue,value:Je}){if(this._rangeStrategy){const kt=this._rangeStrategy.createPreview(Je?Je.rawValue:null,this.selected,ue);this._previewStart=this._getCellCompareValue(kt.start),this._previewEnd=this._getCellCompareValue(kt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const ue=this._dateAdapter.getFirstDayOfWeek(),Je=this._dateAdapter.getDayOfWeekNames("narrow");let kt=this._dateAdapter.getDayOfWeekNames("long").map((yi,Ni)=>({long:yi,narrow:Je[Ni]}));this._weekdays=kt.slice(ue).concat(kt.slice(0,ue))}_createWeekCells(){const ue=this._dateAdapter.getNumDaysInMonth(this.activeDate),Je=this._dateAdapter.getDateNames();this._weeks=[[]];for(let St=0,kt=this._firstWeekOffset;St=0)&&(!this.maxDate||this._dateAdapter.compareDate(ue,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(ue))}_getDateInCurrentMonth(ue){return ue&&this._hasSameMonthAndYear(ue,this.activeDate)?this._dateAdapter.getDate(ue):null}_hasSameMonthAndYear(ue,Je){return!(!ue||!Je||this._dateAdapter.getMonth(ue)!=this._dateAdapter.getMonth(Je)||this._dateAdapter.getYear(ue)!=this._dateAdapter.getYear(Je))}_getCellCompareValue(ue){if(ue){const Je=this._dateAdapter.getYear(ue),St=this._dateAdapter.getMonth(ue),kt=this._dateAdapter.getDate(ue);return new Date(Je,St,kt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(ue){ue instanceof Ze?(this._rangeStart=this._getCellCompareValue(ue.start),this._rangeEnd=this._getCellCompareValue(ue.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(ue),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(ue){return!this.dateFilter||this.dateFilter(ue)}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(o.sBO),o.Y36(R.sG,8),o.Y36(R._A,8),o.Y36(j.Is,8),o.Y36($,8))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-month-view"]],viewQuery:function(ue,Je){if(1&ue&&o.Gf(Oe,5),2&ue){let St;o.iGM(St=o.CRH())&&(Je._matCalendarBody=St.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:[o.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,"mat-calendar-abbr"]],template:function(ue,Je){1&ue&&(o.TgZ(0,"table",0),o.TgZ(1,"thead",1),o.TgZ(2,"tr"),o.YNc(3,a,3,3,"th",2),o.qZA(),o.TgZ(4,"tr"),o._UZ(5,"th",3),o.qZA(),o.qZA(),o.TgZ(6,"tbody",4),o.NdJ("selectedValueChange",function(kt){return Je._dateSelected(kt)})("previewChange",function(kt){return Je._previewChanged(kt)})("keyup",function(kt){return Je._handleCalendarBodyKeyup(kt)})("keydown",function(kt){return Je._handleCalendarBodyKeydown(kt)}),o.qZA(),o.qZA()),2&ue&&(o.xp6(3),o.Q6J("ngForOf",Je._weekdays),o.xp6(3),o.Q6J("label",Je._monthLabel)("rows",Je._weeks)("todayValue",Je._todayDate)("startValue",Je._rangeStart)("endValue",Je._rangeEnd)("comparisonStart",Je._comparisonRangeStart)("comparisonEnd",Je._comparisonRangeEnd)("previewStart",Je._previewStart)("previewEnd",Je._previewEnd)("isRange",Je._isRange)("labelMinRequiredCells",3)("activeCell",Je._dateAdapter.getDate(Je.activeDate)-1))},directives:[C.sg,Oe],encapsulation:2,changeDetection:0}),qe})(),rt=(()=>{class qe{constructor(ue,Je,St){this._changeDetectorRef=ue,this._dateAdapter=Je,this._dir=St,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new o.vpe,this.yearSelected=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){let Je=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),Mt(this._dateAdapter,Je,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Ze?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setSelectedYear(ue)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Je=this._dateAdapter.getYear(this._activeDate)-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let St=0,kt=[];St<24;St++)kt.push(Je+St),4==kt.length&&(this._years.push(kt.map(yi=>this._createCellForYear(yi))),kt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(ue){const Je=ue.value;this.yearSelected.emit(this._dateAdapter.createDate(Je,0,1));let St=this._dateAdapter.getMonth(this.activeDate),kt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Je,St,1));this.selectedChange.emit(this._dateAdapter.createDate(Je,St,Math.min(this._dateAdapter.getDate(this.activeDate),kt)))}_handleCalendarBodyKeydown(ue){const Je=this._activeDate,St=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?-240:-24);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?240:24);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_getActiveCell(){return Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(ue){const Je=this._dateAdapter.createDate(ue,0,1),St=this._dateAdapter.getYearName(Je),kt=this.dateClass?this.dateClass(Je,"multi-year"):void 0;return new ze(ue,St,St,this._shouldEnableYear(ue),kt)}_shouldEnableYear(ue){if(null==ue||this.maxDate&&ue>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ue{class qe{constructor(ue,Je,St,kt){this._changeDetectorRef=ue,this._dateFormats=Je,this._dateAdapter=St,this._dir=kt,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new o.vpe,this.monthSelected=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){let Je=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._dateAdapter.getYear(Je)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Ze?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setSelectedMonth(ue)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(ue){const Je=ue.value,St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Je,1);this.monthSelected.emit(St);const kt=this._dateAdapter.getNumDaysInMonth(St);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Je,Math.min(this._dateAdapter.getDate(this.activeDate),kt)))}_handleCalendarBodyKeydown(ue){const Je=this._activeDate,St=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?-10:-1);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?10:1);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let ue=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Je=>Je.map(St=>this._createCellForMonth(St,ue[St]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(ue){return ue&&this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(ue):null}_createCellForMonth(ue,Je){const St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ue,1),kt=this._dateAdapter.format(St,this._dateFormats.display.monthYearA11yLabel),yi=this.dateClass?this.dateClass(St,"year"):void 0;return new ze(ue,Je.toLocaleUpperCase(),kt,this._shouldEnableMonth(ue),yi)}_shouldEnableMonth(ue){const Je=this._dateAdapter.getYear(this.activeDate);if(null==ue||this._isYearAndMonthAfterMaxDate(Je,ue)||this._isYearAndMonthBeforeMinDate(Je,ue))return!1;if(!this.dateFilter)return!0;for(let kt=this._dateAdapter.createDate(Je,ue,1);this._dateAdapter.getMonth(kt)==ue;kt=this._dateAdapter.addCalendarDays(kt,1))if(this.dateFilter(kt))return!0;return!1}_isYearAndMonthAfterMaxDate(ue,Je){if(this.maxDate){const St=this._dateAdapter.getYear(this.maxDate),kt=this._dateAdapter.getMonth(this.maxDate);return ue>St||ue===St&&Je>kt}return!1}_isYearAndMonthBeforeMinDate(ue,Je){if(this.minDate){const St=this._dateAdapter.getYear(this.minDate),kt=this._dateAdapter.getMonth(this.minDate);return ue{class qe{constructor(){this.changes=new s.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(ue,Je){return`${ue} \u2013 ${Je}`}}return qe.\u0275fac=function(ue){return new(ue||qe)},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ei=0,ki=(()=>{class qe{constructor(ue,Je,St,kt,yi){this._intl=ue,this.calendar=Je,this._dateAdapter=St,this._dateFormats=kt,this._buttonDescriptionId="mat-calendar-button-"+ei++,this.calendar.stateChanges.subscribe(()=>yi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Je=this._dateAdapter.getYear(this.calendar.activeDate)-Zt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),St=Je+24-1,kt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Je,0,1)),yi=this._dateAdapter.getYearName(this._dateAdapter.createDate(St,0,1));return this._intl.formatYearRange(kt,yi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(ue,Je){return"month"==this.calendar.currentView?this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(Je)&&this._dateAdapter.getMonth(ue)==this._dateAdapter.getMonth(Je):"year"==this.calendar.currentView?this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(Je):Mt(this._dateAdapter,ue,Je,this.calendar.minDate,this.calendar.maxDate)}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(jt),o.Y36((0,o.Gpc)(()=>ai)),o.Y36(R._A,8),o.Y36(R.sG,8),o.Y36(o.sBO))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:p,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(ue,Je){1&ue&&(o.F$t(),o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return Je.currentPeriodClicked()}),o.TgZ(3,"span"),o._uU(4),o.qZA(),o.O4$(),o.TgZ(5,"svg",3),o._UZ(6,"polygon",4),o.qZA(),o.qZA(),o.kcU(),o._UZ(7,"div",5),o.Hsn(8),o.TgZ(9,"button",6),o.NdJ("click",function(){return Je.previousClicked()}),o.qZA(),o.TgZ(10,"button",7),o.NdJ("click",function(){return Je.nextClicked()}),o.qZA(),o.qZA(),o.qZA()),2&ue&&(o.xp6(2),o.uIk("aria-label",Je.periodButtonLabel)("aria-describedby",Je._buttonDescriptionId),o.xp6(1),o.uIk("id",Je._buttonDescriptionId),o.xp6(1),o.Oqu(Je.periodButtonText),o.xp6(1),o.ekj("mat-calendar-invert","month"!==Je.calendar.currentView),o.xp6(4),o.Q6J("disabled",!Je.previousEnabled()),o.uIk("aria-label",Je.prevButtonLabel),o.xp6(1),o.Q6J("disabled",!Je.nextEnabled()),o.uIk("aria-label",Je.nextButtonLabel))},directives:[M.lW,e.Qr],encapsulation:2,changeDetection:0}),qe})(),ai=(()=>{class qe{constructor(ue,Je,St,kt){this._dateAdapter=Je,this._dateFormats=St,this._changeDetectorRef=kt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.vpe,this.yearSelected=new o.vpe,this.monthSelected=new o.vpe,this.viewChanged=new o.vpe(!0),this._userSelection=new o.vpe,this.stateChanges=new s.x,this._intlChanges=ue.changes.subscribe(()=>{kt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(ue){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof Ze?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get activeDate(){return this._clampedActiveDate}set activeDate(ue){this._clampedActiveDate=this._dateAdapter.clampDate(ue,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(ue){const Je=this._currentView!==ue?ue:null;this._currentView=ue,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Je&&this.viewChanged.emit(Je)}ngAfterContentInit(){this._calendarHeaderPortal=new y.C5(this.headerComponent||ki),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(ue){const Je=ue.minDate||ue.maxDate||ue.dateFilter;if(Je&&!Je.firstChange){const St=this._getCurrentViewComponent();St&&(this._changeDetectorRef.detectChanges(),St._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(ue){const Je=ue.value;(this.selected instanceof Ze||Je&&!this._dateAdapter.sameDate(Je,this.selected))&&this.selectedChange.emit(Je),this._userSelection.emit(ue)}_yearSelectedInMultiYearView(ue){this.yearSelected.emit(ue)}_monthSelectedInYearView(ue){this.monthSelected.emit(ue)}_goToDateInView(ue,Je){this.activeDate=ue,this.currentView=Je}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(jt),o.Y36(R._A,8),o.Y36(R.sG,8),o.Y36(o.sBO))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-calendar"]],viewQuery:function(ue,Je){if(1&ue&&(o.Gf(nt,5),o.Gf(Ii,5),o.Gf(rt,5)),2&ue){let St;o.iGM(St=o.CRH())&&(Je.monthView=St.first),o.iGM(St=o.CRH())&&(Je.yearView=St.first),o.iGM(St=o.CRH())&&(Je.multiYearView=St.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:[o._Bn([Le]),o.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(ue,Je){1&ue&&(o.YNc(0,u,0,0,"ng-template",0),o.TgZ(1,"div",1),o.YNc(2,_,1,8,"mat-month-view",2),o.YNc(3,D,1,6,"mat-year-view",3),o.YNc(4,O,1,6,"mat-multi-year-view",4),o.qZA()),2&ue&&(o.Q6J("cdkPortalOutlet",Je._calendarHeaderPortal),o.xp6(1),o.Q6J("ngSwitch",Je.currentView),o.xp6(1),o.Q6J("ngSwitchCase","month"),o.xp6(1),o.Q6J("ngSwitchCase","year"),o.xp6(1),o.Q6J("ngSwitchCase","multi-year"))},directives:[y.Pl,e.kH,C.RF,C.n9,nt,Ii,rt],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}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),qe})();const hi={transformPanel:(0,ee.X$)("transformPanel",[(0,ee.eR)("void => enter-dropdown",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ee.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ee.eR)("void => enter-dialog",(0,ee.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0.7)"}),(0,ee.oB)({transform:"none",opacity:1})]))),(0,ee.eR)("* => void",(0,ee.jt)("100ms linear",(0,ee.oB)({opacity:0})))]),fadeInCalendar:(0,ee.X$)("fadeInCalendar",[(0,ee.SB)("void",(0,ee.oB)({opacity:0})),(0,ee.SB)("enter",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",(0,ee.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ve=0;const Ee=new o.OlP("mat-datepicker-scroll-strategy"),pe={provide:Ee,deps:[t.aV],useFactory:function Y(qe){return()=>qe.scrollStrategies.reposition()}},De=(0,R.pj)(class{constructor(qe){this._elementRef=qe}});let et=(()=>{class qe extends De{constructor(ue,Je,St,kt,yi,Ni){super(ue),this._changeDetectorRef=Je,this._globalModel=St,this._dateAdapter=kt,this._rangeSelectionStrategy=yi,this._subscriptions=new L.w0,this._animationDone=new s.x,this._actionsPortal=null,this._closeButtonText=Ni.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(ue){const Je=this._model.selection,St=ue.value,kt=Je instanceof Ze;if(kt&&this._rangeSelectionStrategy){const yi=this._rangeSelectionStrategy.selectionFinished(St,Je,ue.event);this._model.updateSelection(yi,this)}else St&&(kt||!this._dateAdapter.sameDate(St,Je))&&this._model.add(St);(!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 qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(vt),o.Y36(R._A),o.Y36($,8),o.Y36(jt))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker-content"]],viewQuery:function(ue,Je){if(1&ue&&o.Gf(ai,5),2&ue){let St;o.iGM(St=o.CRH())&&(Je._calendar=St.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(ue,Je){1&ue&&o.WFA("@transformPanel.done",function(){return Je._animationDone.next()}),2&ue&&(o.d8E("@transformPanel",Je._animationState),o.ekj("mat-datepicker-content-touch",Je.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(ue,Je){1&ue&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-calendar",1),o.NdJ("yearSelected",function(kt){return Je.datepicker._selectYear(kt)})("monthSelected",function(kt){return Je.datepicker._selectMonth(kt)})("viewChanged",function(kt){return Je.datepicker._viewChanged(kt)})("_userSelection",function(kt){return Je._handleUserSelection(kt)}),o.qZA(),o.YNc(2,x,0,0,"ng-template",2),o.TgZ(3,"button",3),o.NdJ("focus",function(){return Je._closeButtonFocused=!0})("blur",function(){return Je._closeButtonFocused=!1})("click",function(){return Je.datepicker.close()}),o._uU(4),o.qZA(),o.qZA()),2&ue&&(o.ekj("mat-datepicker-content-container-with-actions",Je._actionsPortal),o.xp6(1),o.Q6J("id",Je.datepicker.id)("ngClass",Je.datepicker.panelClass)("startAt",Je.datepicker.startAt)("startView",Je.datepicker.startView)("minDate",Je.datepicker._getMinDate())("maxDate",Je.datepicker._getMaxDate())("dateFilter",Je.datepicker._getDateFilter())("headerComponent",Je.datepicker.calendarHeaderComponent)("selected",Je._getSelected())("dateClass",Je.datepicker.dateClass)("comparisonStart",Je.comparisonStart)("comparisonEnd",Je.comparisonEnd)("@fadeInCalendar","enter"),o.xp6(1),o.Q6J("cdkPortalOutlet",Je._actionsPortal),o.xp6(1),o.ekj("cdk-visually-hidden",!Je._closeButtonFocused),o.Q6J("color",Je.color||"primary"),o.xp6(1),o.Oqu(Je._closeButtonText))},directives:[e.mK,ai,C.mk,y.Pl,M.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.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:[hi.transformPanel,hi.fadeInCalendar]},changeDetection:0}),qe})(),$t=(()=>{class qe{constructor(ue,Je,St,kt,yi,Ni,Si){this._overlay=ue,this._ngZone=Je,this._viewContainerRef=St,this._dateAdapter=yi,this._dir=Ni,this._model=Si,this._inputStateChanges=L.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new o.vpe,this.monthSelected=new o.vpe,this.viewChanged=new o.vpe(!0),this.openedStream=new o.vpe,this.closedStream=new o.vpe,this._opened=!1,this.id="mat-datepicker-"+Ve++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new s.x,this._scrollStrategy=kt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(ue){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(ue){this._color=ue}get touchUi(){return this._touchUi}set touchUi(ue){this._touchUi=(0,W.Ig)(ue)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(ue){const Je=(0,W.Ig)(ue);Je!==this._disabled&&(this._disabled=Je,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(ue){this._restoreFocus=(0,W.Ig)(ue)}get panelClass(){return this._panelClass}set panelClass(ue){this._panelClass=(0,W.du)(ue)}get opened(){return this._opened}set opened(ue){(0,W.Ig)(ue)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(ue){const Je=ue.xPosition||ue.yPosition;if(Je&&!Je.firstChange&&this._overlayRef){const St=this._overlayRef.getConfig().positionStrategy;St instanceof t._G&&(this._setConnectedPositions(St),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(ue){this._model.add(ue)}_selectYear(ue){this.yearSelected.emit(ue)}_selectMonth(ue){this.monthSelected.emit(ue)}_viewChanged(ue){this.viewChanged.emit(ue)}registerInput(ue){return this._inputStateChanges.unsubscribe(),this.datepickerInput=ue,this._inputStateChanges=ue.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(ue){this._actionsPortal=ue}removeActions(ue){ue===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,te.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Je=this._componentRef.instance;Je._startExitAnimation(),Je._animationDone.pipe((0,P.q)(1)).subscribe(()=>this._destroyOverlay())}const ue=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(ue)):ue()}_applyPendingSelection(){var ue,Je;null===(Je=null===(ue=this._componentRef)||void 0===ue?void 0:ue.instance)||void 0===Je||Je._applyPendingSelection()}_forwardContentValues(ue){ue.datepicker=this,ue.color=this.color,ue._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const ue=this.touchUi,Je=this.datepickerInput.getOverlayLabelId(),St=new y.C5(et,this._viewContainerRef),kt=this._overlayRef=this._overlay.create(new t.X_({positionStrategy:ue?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[ue?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:ue?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(ue?"dialog":"popup")})),yi=kt.overlayElement;yi.setAttribute("role","dialog"),Je&&yi.setAttribute("aria-labelledby",Je),ue&&yi.setAttribute("aria-modal","true"),this._getCloseStream(kt).subscribe(Ni=>{Ni&&Ni.preventDefault(),this.close()}),this._componentRef=kt.attach(St),this._forwardContentValues(this._componentRef.instance),ue||this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>kt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const ue=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(ue)}_setConnectedPositions(ue){const Je="end"===this.xPosition?"end":"start",St="start"===Je?"end":"start",kt="above"===this.yPosition?"bottom":"top",yi="top"===kt?"bottom":"top";return ue.withPositions([{originX:Je,originY:yi,overlayX:Je,overlayY:kt},{originX:Je,originY:kt,overlayX:Je,overlayY:yi},{originX:St,originY:yi,overlayX:St,overlayY:kt},{originX:St,originY:kt,overlayX:St,overlayY:yi}])}_getCloseStream(ue){return(0,I.T)(ue.backdropClick(),ue.detachments(),ue.keydownEvents().pipe((0,V.h)(Je=>Je.keyCode===E.hY&&!(0,E.Vb)(Je)||this.datepickerInput&&(0,E.Vb)(Je,"altKey")&&Je.keyCode===E.LH)))}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(t.aV),o.Y36(o.R0b),o.Y36(o.s_b),o.Y36(Ee),o.Y36(R._A,8),o.Y36(j.Is,8),o.Y36(vt))},qe.\u0275dir=o.lG2({type:qe,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:[o.TTD]}),qe})(),Nt=(()=>{class qe extends $t{}return qe.\u0275fac=function(){let yt;return function(Je){return(yt||(yt=o.n5z(qe)))(Je||qe)}}(),qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o._Bn([Le,{provide:$t,useExisting:qe}]),o.qOj],decls:0,vars:0,template:function(ue,Je){},encapsulation:2,changeDetection:0}),qe})();class Jt{constructor(yt,ue){this.target=yt,this.targetElement=ue,this.value=this.target.value}}let ct=(()=>{class qe{constructor(ue,Je,St){this._elementRef=ue,this._dateAdapter=Je,this._dateFormats=St,this.dateChange=new o.vpe,this.dateInput=new o.vpe,this.stateChanges=new s.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=L.w0.EMPTY,this._localeSubscription=L.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=kt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kt.value));return!yi||this._matchesFilter(yi)?null:{matDatepickerFilter:!0}},this._minValidator=kt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kt.value)),Ni=this._getMinDate();return!Ni||!yi||this._dateAdapter.compareDate(Ni,yi)<=0?null:{matDatepickerMin:{min:Ni,actual:yi}}},this._maxValidator=kt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kt.value)),Ni=this._getMaxDate();return!Ni||!yi||this._dateAdapter.compareDate(Ni,yi)>=0?null:{matDatepickerMax:{max:Ni,actual:yi}}},this._lastValueValid=!1,this._localeSubscription=Je.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(ue){this._assignValueProgrammatically(ue)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(ue){const Je=(0,W.Ig)(ue),St=this._elementRef.nativeElement;this._disabled!==Je&&(this._disabled=Je,this.stateChanges.next(void 0)),Je&&this._isInitialized&&St.blur&&St.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(ue){this._model=ue,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Je=>{if(this._shouldHandleChangeEvent(Je)){const St=this._getValueFromModel(Je.selection);this._lastValueValid=this._isValidValue(St),this._cvaOnChange(St),this._onTouched(),this._formatValue(St),this.dateInput.emit(new Jt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Jt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(ue){(function ke(qe,yt){const ue=Object.keys(qe);for(let Je of ue){const{previousValue:St,currentValue:kt}=qe[Je];if(!yt.isDateInstance(St)||!yt.isDateInstance(kt))return!0;if(!yt.sameDate(St,kt))return!0}return!1})(ue,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(ue){this._validatorOnChange=ue}validate(ue){return this._validator?this._validator(ue):null}writeValue(ue){this._assignValueProgrammatically(ue)}registerOnChange(ue){this._cvaOnChange=ue}registerOnTouched(ue){this._onTouched=ue}setDisabledState(ue){this.disabled=ue}_onKeydown(ue){ue.altKey&&ue.keyCode===E.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),ue.preventDefault())}_onInput(ue){const Je=this._lastValueValid;let St=this._dateAdapter.parse(ue,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(St),St=this._dateAdapter.getValidDateOrNull(St),this._dateAdapter.sameDate(St,this.value)?(ue&&!this.value&&this._cvaOnChange(St),Je!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(St),this._cvaOnChange(St),this.dateInput.emit(new Jt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Jt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(ue){this._elementRef.nativeElement.value=ue?this._dateAdapter.format(ue,this._dateFormats.display.dateInput):""}_assignValue(ue){this._model?(this._assignValueToModel(ue),this._pendingValue=null):this._pendingValue=ue}_isValidValue(ue){return!ue||this._dateAdapter.isValid(ue)}_parentDisabled(){return!1}_assignValueProgrammatically(ue){ue=this._dateAdapter.deserialize(ue),this._lastValueValid=this._isValidValue(ue),ue=this._dateAdapter.getValidDateOrNull(ue),this._assignValue(ue),this._formatValue(ue)}_matchesFilter(ue){const Je=this._getDateFilter();return!Je||Je(ue)}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(o.SBq),o.Y36(R._A,8),o.Y36(R.sG,8))},qe.\u0275dir=o.lG2({type:qe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.TTD]}),qe})();const Be={provide:ge.JU,useExisting:(0,o.Gpc)(()=>st),multi:!0},at={provide:ge.Cf,useExisting:(0,o.Gpc)(()=>st),multi:!0};let st=(()=>{class qe extends ct{constructor(ue,Je,St,kt){super(ue,Je,St),this._formField=kt,this._closedSubscription=L.w0.EMPTY,this._validator=ge.kI.compose(super._getValidators())}set matDatepicker(ue){ue&&(this._datepicker=ue,this._closedSubscription=ue.closedStream.subscribe(()=>this._onTouched()),this._registerModel(ue.registerInput(this)))}get min(){return this._min}set min(ue){const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue));this._dateAdapter.sameDate(Je,this._min)||(this._min=Je,this._validatorOnChange())}get max(){return this._max}set max(ue){const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue));this._dateAdapter.sameDate(Je,this._max)||(this._max=Je,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(ue){const Je=this._matchesFilter(this.value);this._dateFilter=ue,this._matchesFilter(this.value)!==Je&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(ue){return ue}_assignValueToModel(ue){this._model&&this._model.updateSelection(ue,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(ue){return ue.source!==this}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(o.SBq),o.Y36(R._A,8),o.Y36(R.sG,8),o.Y36(le.G_,8))},qe.\u0275dir=o.lG2({type:qe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(ue,Je){1&ue&&o.NdJ("input",function(kt){return Je._onInput(kt.target.value)})("change",function(){return Je._onChange()})("blur",function(){return Je._onBlur()})("keydown",function(kt){return Je._onKeydown(kt)}),2&ue&&(o.Ikx("disabled",Je.disabled),o.uIk("aria-haspopup",Je._datepicker?"dialog":null)("aria-owns",(null==Je._datepicker?null:Je._datepicker.opened)&&Je._datepicker.id||null)("min",Je.min?Je._dateAdapter.toIso8601(Je.min):null)("max",Je.max?Je._dateAdapter.toIso8601(Je.max):null)("data-mat-calendar",Je._datepicker?Je._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[o._Bn([Be,at,{provide:re.Jk,useExisting:qe}]),o.qOj]}),qe})(),At=(()=>{class qe{}return qe.\u0275fac=function(ue){return new(ue||qe)},qe.\u0275dir=o.lG2({type:qe,selectors:[["","matDatepickerToggleIcon",""]]}),qe})(),li=(()=>{class qe{constructor(ue,Je,St){this._intl=ue,this._changeDetectorRef=Je,this._stateChanges=L.w0.EMPTY;const kt=Number(St);this.tabIndex=kt||0===kt?kt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(ue){this._disabled=(0,W.Ig)(ue)}ngOnChanges(ue){ue.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(ue){this.datepicker&&!this.disabled&&(this.datepicker.open(),ue.stopPropagation())}_watchStateChanges(){const ue=this.datepicker?this.datepicker.stateChanges:(0,A.of)(),Je=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,A.of)(),St=this.datepicker?(0,I.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,A.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,I.T)(this._intl.changes,ue,Je,St).subscribe(()=>this._changeDetectorRef.markForCheck())}}return qe.\u0275fac=function(ue){return new(ue||qe)(o.Y36(jt),o.Y36(o.sBO),o.$8M("tabindex"))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(ue,Je,St){if(1&ue&&o.Suo(St,At,5),2&ue){let kt;o.iGM(kt=o.CRH())&&(Je._customIcon=kt.first)}},viewQuery:function(ue,Je){if(1&ue&&o.Gf(r,5),2&ue){let St;o.iGM(St=o.CRH())&&(Je._button=St.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(ue,Je){1&ue&&o.NdJ("click",function(kt){return Je._open(kt)}),2&ue&&(o.uIk("tabindex",null)("data-mat-calendar",Je.datepicker?Je.datepicker.id:null),o.ekj("mat-datepicker-toggle-active",Je.datepicker&&Je.datepicker.opened)("mat-accent",Je.datepicker&&"accent"===Je.datepicker.color)("mat-warn",Je.datepicker&&"warn"===Je.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[o.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(ue,Je){1&ue&&(o.F$t(Z),o.TgZ(0,"button",0,1),o.YNc(2,b,2,0,"svg",2),o.Hsn(3),o.qZA()),2&ue&&(o.Q6J("disabled",Je.disabled)("disableRipple",Je.disableRipple),o.uIk("aria-haspopup",Je.datepicker?"dialog":null)("aria-label",Je.ariaLabel||Je._intl.openCalendarLabel)("tabindex",Je.disabled?-1:Je.tabIndex),o.xp6(2),o.Q6J("ngIf",!Je._customIcon))},directives:[M.lW,C.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}),qe})(),_e=(()=>{class qe{}return qe.\u0275fac=function(ue){return new(ue||qe)},qe.\u0275mod=o.oAB({type:qe}),qe.\u0275inj=o.cJS({providers:[jt,pe],imports:[[C.ez,M.ot,t.U8,e.rt,y.eL,R.BQ],l.ZD]}),qe})()},8966:(Ge,Q,m)=>{"use strict";m.d(Q,{WI:()=>i,Bq:()=>a,uw:()=>x,ZT:()=>Z,Is:()=>Re,so:()=>ye});var e=m(9776),t=m(7429),y=m(5e3),C=m(508),o=m(226),M=m(7579),l=m(9770),R=m(727),s=m(9646),L=m(9300),I=m(5698),A=m(8675),E=m(925),P=m(9808),w=m(1777),V=m(5664),j=m(1159),W=m(6360);function te(ze,Oe){}class ee{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.closeOnNavigation=!0}}const ge={dialogContainer:(0,w.X$)("dialogContainer",[(0,w.SB)("void, exit",(0,w.oB)({opacity:0,transform:"scale(0.7)"})),(0,w.SB)("enter",(0,w.oB)({transform:"none"})),(0,w.eR)("* => enter",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({transform:"none",opacity:1}))),(0,w.eR)("* => void, * => exit",(0,w.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,w.oB)({opacity:0})))])};let re=(()=>{class ze extends t.en{constructor(K,Me,we,z,Ze,vt,Fe,Ne){super(),this._elementRef=K,this._focusTrapFactory=Me,this._changeDetectorRef=we,this._config=Ze,this._interactivityChecker=vt,this._ngZone=Fe,this._focusMonitor=Ne,this._animationStateChanged=new y.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ce=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(ce)),this._ariaLabelledBy=Ze.ariaLabelledBy||null,this._document=z}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(K){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(K)}attachTemplatePortal(K){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(K)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(K,Me){this._interactivityChecker.isFocusable(K)||(K.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{K.addEventListener("blur",()=>K.removeAttribute("tabindex")),K.addEventListener("mousedown",()=>K.removeAttribute("tabindex"))})),K.focus(Me)}_focusByCssSelector(K,Me){let we=this._elementRef.nativeElement.querySelector(K);we&&this._forceFocus(we,Me)}_trapFocus(){const K=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||K.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Me=>{Me||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 K=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&K&&"function"==typeof K.focus){const Me=(0,E.ht)(),we=this._elementRef.nativeElement;(!Me||Me===this._document.body||Me===we||we.contains(Me))&&(this._focusMonitor?(this._focusMonitor.focusVia(K,this._closeInteractionType),this._closeInteractionType=null):K.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,E.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const K=this._elementRef.nativeElement,Me=(0,E.ht)();return K===Me||K.contains(Me)}}return ze.\u0275fac=function(K){return new(K||ze)(y.Y36(y.SBq),y.Y36(V.qV),y.Y36(y.sBO),y.Y36(P.K0,8),y.Y36(ee),y.Y36(V.ic),y.Y36(y.R0b),y.Y36(V.tE))},ze.\u0275dir=y.lG2({type:ze,viewQuery:function(K,Me){if(1&K&&y.Gf(t.Pl,7),2&K){let we;y.iGM(we=y.CRH())&&(Me._portalOutlet=we.first)}},features:[y.qOj]}),ze})(),de=(()=>{class ze extends re{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:K,totalTime:Me}){"enter"===K?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Me})):"exit"===K&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Me}))}_onAnimationStart({toState:K,totalTime:Me}){"enter"===K?this._animationStateChanged.next({state:"opening",totalTime:Me}):("exit"===K||"void"===K)&&this._animationStateChanged.next({state:"closing",totalTime:Me})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return ze.\u0275fac=function(){let Oe;return function(Me){return(Oe||(Oe=y.n5z(ze)))(Me||ze)}}(),ze.\u0275cmp=y.Xpm({type:ze,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(K,Me){1&K&&y.WFA("@dialogContainer.start",function(z){return Me._onAnimationStart(z)})("@dialogContainer.done",function(z){return Me._onAnimationDone(z)}),2&K&&(y.Ikx("id",Me._id),y.uIk("role",Me._config.role)("aria-labelledby",Me._config.ariaLabel?null:Me._ariaLabelledBy)("aria-label",Me._config.ariaLabel)("aria-describedby",Me._config.ariaDescribedBy||null),y.d8E("@dialogContainer",Me._state))},features:[y.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,Me){1&K&&y.YNc(0,te,0,0,"ng-template",0)},directives:[t.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:[ge.dialogContainer]}}),ze})(),se=0;class ye{constructor(Oe,K,Me="mat-dialog-"+se++){this._overlayRef=Oe,this._containerInstance=K,this.id=Me,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new M.x,this._afterClosed=new M.x,this._beforeClosed=new M.x,this._state=0,K._id=Me,K._animationStateChanged.pipe((0,L.h)(we=>"opened"===we.state),(0,I.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),K._animationStateChanged.pipe((0,L.h)(we=>"closed"===we.state),(0,I.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Oe.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Oe.keydownEvents().pipe((0,L.h)(we=>we.keyCode===j.hY&&!this.disableClose&&!(0,j.Vb)(we))).subscribe(we=>{we.preventDefault(),v(this,"keyboard")}),Oe.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():v(this,"mouse")})}close(Oe){this._result=Oe,this._containerInstance._animationStateChanged.pipe((0,L.h)(K=>"closing"===K.state),(0,I.q)(1)).subscribe(K=>{this._beforeClosed.next(Oe),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),K.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(Oe){let K=this._getPositionStrategy();return Oe&&(Oe.left||Oe.right)?Oe.left?K.left(Oe.left):K.right(Oe.right):K.centerHorizontally(),Oe&&(Oe.top||Oe.bottom)?Oe.top?K.top(Oe.top):K.bottom(Oe.bottom):K.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Oe="",K=""){return this._overlayRef.updateSize({width:Oe,height:K}),this._overlayRef.updatePosition(),this}addPanelClass(Oe){return this._overlayRef.addPanelClass(Oe),this}removePanelClass(Oe){return this._overlayRef.removePanelClass(Oe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function v(ze,Oe,K){return void 0!==ze._containerInstance&&(ze._containerInstance._closeInteractionType=Oe),ze.close(K)}const i=new y.OlP("MatDialogData"),a=new y.OlP("mat-dialog-default-options"),p=new y.OlP("mat-dialog-scroll-strategy"),D={provide:p,deps:[e.aV],useFactory:function _(ze){return()=>ze.scrollStrategies.block()}};let O=(()=>{class ze{constructor(K,Me,we,z,Ze,vt,Fe,Ne,ce,Le){this._overlay=K,this._injector=Me,this._defaultOptions=we,this._parentDialog=z,this._overlayContainer=Ze,this._dialogRefConstructor=Fe,this._dialogContainerType=Ne,this._dialogDataToken=ce,this._animationMode=Le,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new M.x,this._afterOpenedAtThisLevel=new M.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,l.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,A.O)(void 0))),this._scrollStrategy=vt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const K=this._parentDialog;return K?K._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(K,Me){if(Me=function r(ze,Oe){return Object.assign(Object.assign({},Oe),ze)}(Me,this._defaultOptions||new ee),Me.id&&this.getDialogById(Me.id),this._dialogAnimatingOpen)return this._lastDialogRef;const we=this._createOverlay(Me),z=this._attachDialogContainer(we,Me);if("NoopAnimations"!==this._animationMode){const vt=z._animationStateChanged.subscribe(Fe=>{"opening"===Fe.state&&(this._dialogAnimatingOpen=!0),"opened"===Fe.state&&(this._dialogAnimatingOpen=!1,vt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new R.w0),this._animationStateSubscriptions.add(vt)}const Ze=this._attachDialogContent(K,z,we,Me);return this._lastDialogRef=Ze,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ze),Ze.afterClosed().subscribe(()=>this._removeOpenDialog(Ze)),this.afterOpened.next(Ze),z._initializeWithAttachedContent(),Ze}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(K){return this.openDialogs.find(Me=>Me.id===K)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(K){const Me=this._getOverlayConfig(K);return this._overlay.create(Me)}_getOverlayConfig(K){const Me=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:K.scrollStrategy||this._scrollStrategy(),panelClass:K.panelClass,hasBackdrop:K.hasBackdrop,direction:K.direction,minWidth:K.minWidth,minHeight:K.minHeight,maxWidth:K.maxWidth,maxHeight:K.maxHeight,disposeOnNavigation:K.closeOnNavigation});return K.backdropClass&&(Me.backdropClass=K.backdropClass),Me}_attachDialogContainer(K,Me){const z=y.zs3.create({parent:Me&&Me.viewContainerRef&&Me.viewContainerRef.injector||this._injector,providers:[{provide:ee,useValue:Me}]}),Ze=new t.C5(this._dialogContainerType,Me.viewContainerRef,z,Me.componentFactoryResolver);return K.attach(Ze).instance}_attachDialogContent(K,Me,we,z){const Ze=new this._dialogRefConstructor(we,Me,z.id);if(K instanceof y.Rgc)Me.attachTemplatePortal(new t.UE(K,null,{$implicit:z.data,dialogRef:Ze}));else{const vt=this._createInjector(z,Ze,Me),Fe=Me.attachComponentPortal(new t.C5(K,z.viewContainerRef,vt));Ze.componentInstance=Fe.instance}return Ze.updateSize(z.width,z.height).updatePosition(z.position),Ze}_createInjector(K,Me,we){const z=K&&K.viewContainerRef&&K.viewContainerRef.injector,Ze=[{provide:this._dialogContainerType,useValue:we},{provide:this._dialogDataToken,useValue:K.data},{provide:this._dialogRefConstructor,useValue:Me}];return K.direction&&(!z||!z.get(o.Is,null,y.XFs.Optional))&&Ze.push({provide:o.Is,useValue:{value:K.direction,change:(0,s.of)()}}),y.zs3.create({parent:z||this._injector,providers:Ze})}_removeOpenDialog(K){const Me=this.openDialogs.indexOf(K);Me>-1&&(this.openDialogs.splice(Me,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((we,z)=>{we?z.setAttribute("aria-hidden",we):z.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const K=this._overlayContainer.getContainerElement();if(K.parentElement){const Me=K.parentElement.children;for(let we=Me.length-1;we>-1;we--){let z=Me[we];z!==K&&"SCRIPT"!==z.nodeName&&"STYLE"!==z.nodeName&&!z.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(z,z.getAttribute("aria-hidden")),z.setAttribute("aria-hidden","true"))}}}_closeDialogs(K){let Me=K.length;for(;Me--;)K[Me].close()}}return ze.\u0275fac=function(K){y.$Z()},ze.\u0275dir=y.lG2({type:ze}),ze})(),x=(()=>{class ze extends O{constructor(K,Me,we,z,Ze,vt,Fe,Ne){super(K,Me,z,vt,Fe,Ze,ye,de,i,Ne)}}return ze.\u0275fac=function(K){return new(K||ze)(y.LFG(e.aV),y.LFG(y.zs3),y.LFG(P.Ye,8),y.LFG(a,8),y.LFG(p),y.LFG(ze,12),y.LFG(e.Xj),y.LFG(W.Qb,8))},ze.\u0275prov=y.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),Z=(()=>{class ze{constructor(K,Me,we){this.dialogRef=K,this._elementRef=Me,this._dialog=we,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function be(ze,Oe){let K=ze.nativeElement.parentElement;for(;K&&!K.classList.contains("mat-dialog-container");)K=K.parentElement;return K?Oe.find(Me=>Me.id===K.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(K){const Me=K._matDialogClose||K._matDialogCloseResult;Me&&(this.dialogResult=Me.currentValue)}_onButtonClick(K){v(this.dialogRef,0===K.screenX&&0===K.screenY?"keyboard":"mouse",this.dialogResult)}}return ze.\u0275fac=function(K){return new(K||ze)(y.Y36(ye,8),y.Y36(y.SBq),y.Y36(x))},ze.\u0275dir=y.lG2({type:ze,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(K,Me){1&K&&y.NdJ("click",function(z){return Me._onButtonClick(z)}),2&K&&y.uIk("aria-label",Me.ariaLabel||null)("type",Me.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[y.TTD]}),ze})(),Re=(()=>{class ze{}return ze.\u0275fac=function(K){return new(K||ze)},ze.\u0275mod=y.oAB({type:ze}),ze.\u0275inj=y.cJS({providers:[x,D],imports:[[e.U8,t.eL,C.BQ],C.BQ]}),ze})()},4834:(Ge,Q,m)=>{"use strict";m.d(Q,{d:()=>C,t:()=>o});var e=m(5e3),t=m(3191),y=m(508);let C=(()=>{class M{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(R){this._vertical=(0,t.Ig)(R)}get inset(){return this._inset}set inset(R){this._inset=(0,t.Ig)(R)}}return M.\u0275fac=function(R){return new(R||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(R,s){2&R&&(e.uIk("aria-orientation",s.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",s.vertical)("mat-divider-horizontal",!s.vertical)("mat-divider-inset",s.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(R,s){},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}),M})(),o=(()=>{class M{}return M.\u0275fac=function(R){return new(R||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[y.BQ],y.BQ]}),M})()},1125:(Ge,Q,m)=>{"use strict";m.d(Q,{pp:()=>Oe,To:()=>K,ib:()=>Z,u4:()=>Re,yz:()=>be,yK:()=>ze});var e=m(5e3),t=m(3191),y=m(7579),C=m(727),o=m(449);let M=0;const l=new e.OlP("CdkAccordion");let R=(()=>{class Me{constructor(){this._stateChanges=new y.x,this._openCloseAllActions=new y.x,this.id="cdk-accordion-"+M++,this._multi=!1}get multi(){return this._multi}set multi(z){this._multi=(0,t.Ig)(z)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(z){this._stateChanges.next(z)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:l,useExisting:Me}]),e.TTD]}),Me})(),s=0,L=(()=>{class Me{constructor(z,Ze,vt){this.accordion=z,this._changeDetectorRef=Ze,this._expansionDispatcher=vt,this._openCloseAllSubscription=C.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+s++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=vt.listen((Fe,Ne)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ne&&this.id!==Fe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(z){z=(0,t.Ig)(z),this._expanded!==z&&(this._expanded=z,this.expandedChange.emit(z),z?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(z){this._disabled=(0,t.Ig)(z)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(z=>{this.disabled||(this.expanded=z)})}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(l,12),e.Y36(e.sBO),e.Y36(o.A8))},Me.\u0275dir=e.lG2({type:Me,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:l,useValue:void 0}])]}),Me})(),I=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({}),Me})();var A=m(7429),E=m(9808),P=m(508),w=m(5664),V=m(1884),j=m(8675),W=m(9300),te=m(5698),ee=m(1159),ge=m(6360),le=m(515),re=m(6451),de=m(1777);const se=["body"];function ye(Me,we){}const v=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function a(Me,we){if(1&Me&&e._UZ(0,"span",2),2&Me){const z=e.oxw();e.Q6J("@indicatorRotate",z._getExpandedState())}}const p=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],u=["mat-panel-title","mat-panel-description","*"],_=new e.OlP("MAT_ACCORDION"),D="225ms cubic-bezier(0.4,0.0,0.2,1)",O={indicatorRotate:(0,de.X$)("indicatorRotate",[(0,de.SB)("collapsed, void",(0,de.oB)({transform:"rotate(0deg)"})),(0,de.SB)("expanded",(0,de.oB)({transform:"rotate(180deg)"})),(0,de.eR)("expanded <=> collapsed, void => collapsed",(0,de.jt)(D))]),bodyExpansion:(0,de.X$)("bodyExpansion",[(0,de.SB)("collapsed, void",(0,de.oB)({height:"0px",visibility:"hidden"})),(0,de.SB)("expanded",(0,de.oB)({height:"*",visibility:"visible"})),(0,de.eR)("expanded <=> collapsed, void => collapsed",(0,de.jt)(D))])};let x=(()=>{class Me{constructor(z){this._template=z}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(e.Rgc))},Me.\u0275dir=e.lG2({type:Me,selectors:[["ng-template","matExpansionPanelContent",""]]}),Me})(),r=0;const b=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Z=(()=>{class Me extends L{constructor(z,Ze,vt,Fe,Ne,ce,Le){super(z,Ze,vt),this._viewContainerRef=Fe,this._animationMode=ce,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new y.x,this._headerId="mat-expansion-panel-header-"+r++,this._bodyAnimationDone=new y.x,this.accordion=z,this._document=Ne,this._bodyAnimationDone.pipe((0,V.x)((Pe,q)=>Pe.fromState===q.fromState&&Pe.toState===q.toState)).subscribe(Pe=>{"void"!==Pe.fromState&&("expanded"===Pe.toState?this.afterExpand.emit():"collapsed"===Pe.toState&&this.afterCollapse.emit())}),Le&&(this.hideToggle=Le.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(z){this._hideToggle=(0,t.Ig)(z)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(z){this._togglePosition=z}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,j.O)(null),(0,W.h)(()=>this.expanded&&!this._portal),(0,te.q)(1)).subscribe(()=>{this._portal=new A.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(z){this._inputChanges.next(z)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const z=this._document.activeElement,Ze=this._body.nativeElement;return z===Ze||Ze.contains(z)}return!1}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(_,12),e.Y36(e.sBO),e.Y36(o.A8),e.Y36(e.s_b),e.Y36(E.K0),e.Y36(ge.Qb,8),e.Y36(b,8))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-expansion-panel"]],contentQueries:function(z,Ze,vt){if(1&z&&e.Suo(vt,x,5),2&z){let Fe;e.iGM(Fe=e.CRH())&&(Ze._lazyContent=Fe.first)}},viewQuery:function(z,Ze){if(1&z&&e.Gf(se,5),2&z){let vt;e.iGM(vt=e.CRH())&&(Ze._body=vt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(z,Ze){2&z&&e.ekj("mat-expanded",Ze.expanded)("_mat-animation-noopable","NoopAnimations"===Ze._animationMode)("mat-expansion-panel-spacing",Ze._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:_,useValue:void 0}]),e.qOj,e.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(z,Ze){1&z&&(e.F$t(v),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Fe){return Ze._bodyAnimationDone.next(Fe)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,ye,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("@bodyExpansion",Ze._getExpandedState())("id",Ze.id),e.uIk("aria-labelledby",Ze._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",Ze._portal))},directives:[A.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[O.bodyExpansion]},changeDetection:0}),Me})();class U{}const ve=(0,P.sb)(U);let be=(()=>{class Me extends ve{constructor(z,Ze,vt,Fe,Ne,ce,Le){super(),this.panel=z,this._element=Ze,this._focusMonitor=vt,this._changeDetectorRef=Fe,this._animationMode=ce,this._parentChangeSubscription=C.w0.EMPTY;const Pe=z.accordion?z.accordion._stateChanges.pipe((0,W.h)(q=>!(!q.hideToggle&&!q.togglePosition))):le.E;this.tabIndex=parseInt(Le||"")||0,this._parentChangeSubscription=(0,re.T)(z.opened,z.closed,Pe,z._inputChanges.pipe((0,W.h)(q=>!!(q.hideToggle||q.disabled||q.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),z.closed.pipe((0,W.h)(()=>z._containsFocus())).subscribe(()=>vt.focusVia(Ze,"program")),Ne&&(this.expandedHeight=Ne.expandedHeight,this.collapsedHeight=Ne.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const z=this._isExpanded();return z&&this.expandedHeight?this.expandedHeight:!z&&this.collapsedHeight?this.collapsedHeight:null}_keydown(z){switch(z.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(z)||(z.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(z))}}focus(z,Ze){z?this._focusMonitor.focusVia(this._element,z,Ze):this._element.nativeElement.focus(Ze)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(z=>{z&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(Z,1),e.Y36(e.SBq),e.Y36(w.tE),e.Y36(e.sBO),e.Y36(b,8),e.Y36(ge.Qb,8),e.$8M("tabindex"))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(z,Ze){1&z&&e.NdJ("click",function(){return Ze._toggle()})("keydown",function(Fe){return Ze._keydown(Fe)}),2&z&&(e.uIk("id",Ze.panel._headerId)("tabindex",Ze.tabIndex)("aria-controls",Ze._getPanelId())("aria-expanded",Ze._isExpanded())("aria-disabled",Ze.panel.disabled),e.Udp("height",Ze._getHeaderHeight()),e.ekj("mat-expanded",Ze._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ze._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ze._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ze._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:u,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(z,Ze){1&z&&(e.F$t(p),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,a,1,1,"span",1)),2&z&&(e.xp6(4),e.Q6J("ngIf",Ze._showToggle()))},directives:[E.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[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}),Me})(),Re=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Me})(),ze=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Me})(),Oe=(()=>{class Me extends R{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(z){this._hideToggle=(0,t.Ig)(z)}ngAfterContentInit(){this._headers.changes.pipe((0,j.O)(this._headers)).subscribe(z=>{this._ownHeaders.reset(z.filter(Ze=>Ze.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new w.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(z){this._keyManager.onKeydown(z)}_handleHeaderFocus(z){this._keyManager.updateActiveItem(z)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Me.\u0275fac=function(){let we;return function(Ze){return(we||(we=e.n5z(Me)))(Ze||Me)}}(),Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-accordion"]],contentQueries:function(z,Ze,vt){if(1&z&&e.Suo(vt,be,5),2&z){let Fe;e.iGM(Fe=e.CRH())&&(Ze._headers=Fe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(z,Ze){2&z&&e.ekj("mat-accordion-multi",Ze.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:_,useExisting:Me}]),e.qOj]}),Me})(),K=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({imports:[[E.ez,P.BQ,I,A.eL]]}),Me})()},7322:(Ge,Q,m)=>{"use strict";m.d(Q,{G_:()=>ce,TO:()=>O,KE:()=>Le,Eo:()=>r,lN:()=>Pe,bx:()=>be,R9:()=>we});var e=m(7144),t=m(9808),y=m(5e3),C=m(508),o=m(3191),M=m(7579),l=m(6451),R=m(4968),s=m(8675),L=m(2722),I=m(5698),A=m(1777),E=m(6360),P=m(226),w=m(925);const V=["connectionContainer"],j=["inputContainer"],W=["label"];function te(q,$){1&q&&(y.ynx(0),y.TgZ(1,"div",14),y._UZ(2,"div",15),y._UZ(3,"div",16),y._UZ(4,"div",17),y.qZA(),y.TgZ(5,"div",18),y._UZ(6,"div",15),y._UZ(7,"div",16),y._UZ(8,"div",17),y.qZA(),y.BQk())}function ee(q,$){if(1&q){const oe=y.EpF();y.TgZ(0,"div",19),y.NdJ("cdkObserveContent",function(){return y.CHM(oe),y.oxw().updateOutlineGap()}),y.Hsn(1,1),y.qZA()}if(2&q){const oe=y.oxw();y.Q6J("cdkObserveContentDisabled","outline"!=oe.appearance)}}function ge(q,$){if(1&q&&(y.ynx(0),y.Hsn(1,2),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.BQk()),2&q){const oe=y.oxw(2);y.xp6(3),y.Oqu(oe._control.placeholder)}}function le(q,$){1&q&&y.Hsn(0,3,["*ngSwitchCase","true"])}function re(q,$){1&q&&(y.TgZ(0,"span",23),y._uU(1," *"),y.qZA())}function de(q,$){if(1&q){const oe=y.EpF();y.TgZ(0,"label",20,21),y.NdJ("cdkObserveContent",function(){return y.CHM(oe),y.oxw().updateOutlineGap()}),y.YNc(2,ge,4,1,"ng-container",12),y.YNc(3,le,1,0,"ng-content",12),y.YNc(4,re,2,0,"span",22),y.qZA()}if(2&q){const oe=y.oxw();y.ekj("mat-empty",oe._control.empty&&!oe._shouldAlwaysFloat())("mat-form-field-empty",oe._control.empty&&!oe._shouldAlwaysFloat())("mat-accent","accent"==oe.color)("mat-warn","warn"==oe.color),y.Q6J("cdkObserveContentDisabled","outline"!=oe.appearance)("id",oe._labelId)("ngSwitch",oe._hasLabel()),y.uIk("for",oe._control.id)("aria-owns",oe._control.id),y.xp6(2),y.Q6J("ngSwitchCase",!1),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngIf",!oe.hideRequiredMarker&&oe._control.required&&!oe._control.disabled)}}function se(q,$){1&q&&(y.TgZ(0,"div",24),y.Hsn(1,4),y.qZA())}function ye(q,$){if(1&q&&(y.TgZ(0,"div",25),y._UZ(1,"span",26),y.qZA()),2&q){const oe=y.oxw();y.xp6(1),y.ekj("mat-accent","accent"==oe.color)("mat-warn","warn"==oe.color)}}function v(q,$){if(1&q&&(y.TgZ(0,"div"),y.Hsn(1,5),y.qZA()),2&q){const oe=y.oxw();y.Q6J("@transitionMessages",oe._subscriptAnimationState)}}function i(q,$){if(1&q&&(y.TgZ(0,"div",30),y._uU(1),y.qZA()),2&q){const oe=y.oxw(2);y.Q6J("id",oe._hintLabelId),y.xp6(1),y.Oqu(oe.hintLabel)}}function a(q,$){if(1&q&&(y.TgZ(0,"div",27),y.YNc(1,i,2,2,"div",28),y.Hsn(2,6),y._UZ(3,"div",29),y.Hsn(4,7),y.qZA()),2&q){const oe=y.oxw();y.Q6J("@transitionMessages",oe._subscriptAnimationState),y.xp6(1),y.Q6J("ngIf",oe.hintLabel)}}const p=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],u=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let _=0;const D=new y.OlP("MatError");let O=(()=>{class q{constructor(oe,Ce){this.id="mat-error-"+_++,oe||Ce.nativeElement.setAttribute("aria-live","polite")}}return q.\u0275fac=function(oe){return new(oe||q)(y.$8M("aria-live"),y.Y36(y.SBq))},q.\u0275dir=y.lG2({type:q,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(oe,Ce){2&oe&&y.uIk("id",Ce.id)},inputs:{id:"id"},features:[y._Bn([{provide:D,useExisting:q}])]}),q})();const x={transitionMessages:(0,A.X$)("transitionMessages",[(0,A.SB)("enter",(0,A.oB)({opacity:1,transform:"translateY(0%)"})),(0,A.eR)("void => enter",[(0,A.oB)({opacity:0,transform:"translateY(-5px)"}),(0,A.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let r=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=y.lG2({type:q}),q})(),U=0;const ve=new y.OlP("MatHint");let be=(()=>{class q{constructor(){this.align="start",this.id="mat-hint-"+U++}}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(oe,Ce){2&oe&&(y.uIk("id",Ce.id)("align",null),y.ekj("mat-form-field-hint-end","end"===Ce.align))},inputs:{align:"align",id:"id"},features:[y._Bn([{provide:ve,useExisting:q}])]}),q})(),Re=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-label"]]}),q})(),ze=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-placeholder"]]}),q})();const Oe=new y.OlP("MatPrefix"),Me=new y.OlP("MatSuffix");let we=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=y.lG2({type:q,selectors:[["","matSuffix",""]],features:[y._Bn([{provide:Me,useExisting:q}])]}),q})(),z=0;const Fe=(0,C.pj)(class{constructor(q){this._elementRef=q}},"primary"),Ne=new y.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ce=new y.OlP("MatFormField");let Le=(()=>{class q extends Fe{constructor(oe,Ce,Ue,lt,nt,ft,it){super(oe),this._changeDetectorRef=Ce,this._dir=Ue,this._defaults=lt,this._platform=nt,this._ngZone=ft,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new M.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+z++,this._labelId="mat-form-field-label-"+z++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==it,this.appearance=lt&<.appearance?lt.appearance:"legacy",this._hideRequiredMarker=!(!lt||null==lt.hideRequiredMarker)&<.hideRequiredMarker}get appearance(){return this._appearance}set appearance(oe){const Ce=this._appearance;this._appearance=oe||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&Ce!==oe&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(oe){this._hideRequiredMarker=(0,o.Ig)(oe)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(oe){this._hintLabel=oe,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(oe){oe!==this._floatLabel&&(this._floatLabel=oe||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(oe){this._explicitFormFieldControl=oe}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const oe=this._control;oe.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${oe.controlType}`),oe.stateChanges.pipe((0,s.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),oe.ngControl&&oe.ngControl.valueChanges&&oe.ngControl.valueChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,s.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,s.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,L.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(oe){const Ce=this._control?this._control.ngControl:null;return Ce&&Ce[oe]}_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,R.R)(this._label.nativeElement,"transitionend").pipe((0,I.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 oe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&oe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Ce=this._hintChildren?this._hintChildren.find(lt=>"start"===lt.align):null,Ue=this._hintChildren?this._hintChildren.find(lt=>"end"===lt.align):null;Ce?oe.push(Ce.id):this._hintLabel&&oe.push(this._hintLabelId),Ue&&oe.push(Ue.id)}else this._errorChildren&&oe.push(...this._errorChildren.map(Ce=>Ce.id));this._control.setDescribedByIds(oe)}}_validateControlChild(){}updateOutlineGap(){const oe=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&oe&&oe.children.length&&oe.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Ce=0,Ue=0;const lt=this._connectionContainerRef.nativeElement,nt=lt.querySelectorAll(".mat-form-field-outline-start"),ft=lt.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const it=lt.getBoundingClientRect();if(0===it.width&&0===it.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const rt=this._getStartEnd(it),Mt=oe.children,Zt=this._getStartEnd(Mt[0].getBoundingClientRect());let Ft=0;for(let Vt=0;Vt0?.75*Ft+10:0}for(let it=0;it{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275mod=y.oAB({type:q}),q.\u0275inj=y.cJS({imports:[[t.ez,C.BQ,e.Q8],C.BQ]}),q})()},3954:(Ge,Q,m)=>{"use strict";m.d(Q,{Il:()=>se,N6:()=>ye,DX:()=>A});var e=m(5e3),t=m(508),y=m(3191),C=m(226);const o=["*"];class s{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const a=Math.max(...this.tracker);return a>1?this.rowCount+a-1:this.rowCount}update(a,p){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=p.map(u=>this._trackTile(u))}_trackTile(a){const p=this._findMatchingGap(a.colspan);return this._markTilePosition(p,a),this.columnIndex=p+a.colspan,new L(this.rowIndex,p)}_findMatchingGap(a){let p=-1,u=-1;do{this.columnIndex+a>this.tracker.length?(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)):(p=this.tracker.indexOf(0,this.columnIndex),-1!=p?(u=this._findGapEndIndex(p),this.columnIndex=p+1):(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)))}while(u-p{class i{constructor(p,u){this._element=p,this._gridList=u,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(p){this._rowspan=Math.round((0,y.su)(p))}get colspan(){return this._colspan}set colspan(p){this._colspan=Math.round((0,y.su)(p))}_setStyle(p,u){this._element.nativeElement.style[p]=u}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(I,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(p,u){2&p&&e.uIk("rowspan",u.rowspan)("colspan",u.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:o,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(p,u){1&p&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),i})();const j=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class W{constructor(){this._rows=0,this._rowspan=0}init(a,p,u,_){this._gutterSize=re(a),this._rows=p.rowCount,this._rowspan=p.rowspan,this._cols=u,this._direction=_}getBaseTileSize(a,p){return`(${a}% - (${this._gutterSize} * ${p}))`}getTilePosition(a,p){return 0===p?"0":le(`(${a} + ${this._gutterSize}) * ${p}`)}getTileSize(a,p){return`(${a} * ${p}) + (${p-1} * ${this._gutterSize})`}setStyle(a,p,u){let _=100/this._cols,D=(this._cols-1)/this._cols;this.setColStyles(a,u,_,D),this.setRowStyles(a,p,_,D)}setColStyles(a,p,u,_){let D=this.getBaseTileSize(u,_);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(D,p)),a._setStyle("width",le(this.getTileSize(D,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class te extends W{constructor(a){super(),this.fixedRowHeight=a}init(a,p,u,_){super.init(a,p,u,_),this.fixedRowHeight=re(this.fixedRowHeight),j.test(this.fixedRowHeight)}setRowStyles(a,p){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,p)),a._setStyle("height",le(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",le(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}class ee extends W{constructor(a){super(),this._parseRatio(a)}setRowStyles(a,p,u,_){this.baseTileHeight=this.getBaseTileSize(u/this.rowHeightRatio,_),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,p)),a._setStyle("paddingTop",le(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",le(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(p=>{p._setStyle("marginTop",null),p._setStyle("paddingTop",null)})}_parseRatio(a){const p=a.split(":");this.rowHeightRatio=parseFloat(p[0])/parseFloat(p[1])}}class ge extends W{setRowStyles(a,p){let D=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(D,p)),a._setStyle("height",le(this.getTileSize(D,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}function le(i){return`calc(${i})`}function re(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let se=(()=>{class i{constructor(p,u){this._element=p,this._dir=u,this._gutter="1px"}get cols(){return this._cols}set cols(p){this._cols=Math.max(1,Math.round((0,y.su)(p)))}get gutterSize(){return this._gutter}set gutterSize(p){this._gutter=`${null==p?"":p}`}get rowHeight(){return this._rowHeight}set rowHeight(p){const u=`${null==p?"":p}`;u!==this._rowHeight&&(this._rowHeight=u,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(p){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===p?new ge:p&&p.indexOf(":")>-1?new ee(p):new te(p)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new s);const p=this._tileCoordinator,u=this._tiles.filter(D=>!D._gridList||D._gridList===this),_=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,u),this._tileStyler.init(this.gutterSize,p,this.cols,_),u.forEach((D,O)=>{const x=p.positions[O];this._tileStyler.setStyle(D,x.row,x.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(p){p&&(this._element.nativeElement.style[p[0]]=p[1])}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(C.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(p,u,_){if(1&p&&e.Suo(_,A,5),2&p){let D;e.iGM(D=e.CRH())&&(u._tiles=D)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(p,u){2&p&&e.uIk("cols",u.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[e._Bn([{provide:I,useExisting:i}])],ngContentSelectors:o,decls:2,vars:0,template:function(p,u){1&p&&(e.F$t(),e.TgZ(0,"div"),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),i})(),ye=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[t.uc,t.BQ],t.uc,t.BQ]}),i})()},5245:(Ge,Q,m)=>{"use strict";m.d(Q,{Hw:()=>Z,Ps:()=>N});var e=m(5e3),t=m(508),y=m(3191),C=m(9808),o=m(9646),M=m(2843),l=m(4128),R=m(727),s=m(8505),L=m(4004),I=m(262),A=m(8746),E=m(3099),P=m(5698),w=m(8138),V=m(2313);const j=["*"];let W;function ee(U){var ve;return(null===(ve=function te(){if(void 0===W&&(W=null,"undefined"!=typeof window)){const U=window;void 0!==U.trustedTypes&&(W=U.trustedTypes.createPolicy("angular#components",{createHTML:ve=>ve}))}return W}())||void 0===ve?void 0:ve.createHTML(U))||U}function ge(U){return Error(`Unable to find icon with the name "${U}"`)}function re(U){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${U}".`)}function de(U){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${U}".`)}class se{constructor(ve,be,Re){this.url=ve,this.svgText=be,this.options=Re}}let ye=(()=>{class U{constructor(be,Re,ze,Oe){this._httpClient=be,this._sanitizer=Re,this._errorHandler=Oe,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=ze}addSvgIcon(be,Re,ze){return this.addSvgIconInNamespace("",be,Re,ze)}addSvgIconLiteral(be,Re,ze){return this.addSvgIconLiteralInNamespace("",be,Re,ze)}addSvgIconInNamespace(be,Re,ze,Oe){return this._addSvgIconConfig(be,Re,new se(ze,null,Oe))}addSvgIconResolver(be){return this._resolvers.push(be),this}addSvgIconLiteralInNamespace(be,Re,ze,Oe){const K=this._sanitizer.sanitize(e.q3G.HTML,ze);if(!K)throw de(ze);const Me=ee(K);return this._addSvgIconConfig(be,Re,new se("",Me,Oe))}addSvgIconSet(be,Re){return this.addSvgIconSetInNamespace("",be,Re)}addSvgIconSetLiteral(be,Re){return this.addSvgIconSetLiteralInNamespace("",be,Re)}addSvgIconSetInNamespace(be,Re,ze){return this._addSvgIconSetConfig(be,new se(Re,null,ze))}addSvgIconSetLiteralInNamespace(be,Re,ze){const Oe=this._sanitizer.sanitize(e.q3G.HTML,Re);if(!Oe)throw de(Re);const K=ee(Oe);return this._addSvgIconSetConfig(be,new se("",K,ze))}registerFontClassAlias(be,Re=be){return this._fontCssClassesByAlias.set(be,Re),this}classNameForFontAlias(be){return this._fontCssClassesByAlias.get(be)||be}setDefaultFontSetClass(be){return this._defaultFontSetClass=be,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(be){const Re=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,be);if(!Re)throw re(be);const ze=this._cachedIconsByUrl.get(Re);return ze?(0,o.of)(a(ze)):this._loadSvgIconFromConfig(new se(be,null)).pipe((0,s.b)(Oe=>this._cachedIconsByUrl.set(Re,Oe)),(0,L.U)(Oe=>a(Oe)))}getNamedSvgIcon(be,Re=""){const ze=p(Re,be);let Oe=this._svgIconConfigs.get(ze);if(Oe)return this._getSvgFromConfig(Oe);if(Oe=this._getIconConfigFromResolvers(Re,be),Oe)return this._svgIconConfigs.set(ze,Oe),this._getSvgFromConfig(Oe);const K=this._iconSetConfigs.get(Re);return K?this._getSvgFromIconSetConfigs(be,K):(0,M._)(ge(ze))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(be){return be.svgText?(0,o.of)(a(this._svgElementFromConfig(be))):this._loadSvgIconFromConfig(be).pipe((0,L.U)(Re=>a(Re)))}_getSvgFromIconSetConfigs(be,Re){const ze=this._extractIconWithNameFromAnySet(be,Re);if(ze)return(0,o.of)(ze);const Oe=Re.filter(K=>!K.svgText).map(K=>this._loadSvgIconSetFromConfig(K).pipe((0,I.K)(Me=>{const z=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,K.url)} failed: ${Me.message}`;return this._errorHandler.handleError(new Error(z)),(0,o.of)(null)})));return(0,l.D)(Oe).pipe((0,L.U)(()=>{const K=this._extractIconWithNameFromAnySet(be,Re);if(!K)throw ge(be);return K}))}_extractIconWithNameFromAnySet(be,Re){for(let ze=Re.length-1;ze>=0;ze--){const Oe=Re[ze];if(Oe.svgText&&Oe.svgText.toString().indexOf(be)>-1){const K=this._svgElementFromConfig(Oe),Me=this._extractSvgIconFromSet(K,be,Oe.options);if(Me)return Me}}return null}_loadSvgIconFromConfig(be){return this._fetchIcon(be).pipe((0,s.b)(Re=>be.svgText=Re),(0,L.U)(()=>this._svgElementFromConfig(be)))}_loadSvgIconSetFromConfig(be){return be.svgText?(0,o.of)(null):this._fetchIcon(be).pipe((0,s.b)(Re=>be.svgText=Re))}_extractSvgIconFromSet(be,Re,ze){const Oe=be.querySelector(`[id="${Re}"]`);if(!Oe)return null;const K=Oe.cloneNode(!0);if(K.removeAttribute("id"),"svg"===K.nodeName.toLowerCase())return this._setSvgAttributes(K,ze);if("symbol"===K.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(K),ze);const Me=this._svgElementFromString(ee(""));return Me.appendChild(K),this._setSvgAttributes(Me,ze)}_svgElementFromString(be){const Re=this._document.createElement("DIV");Re.innerHTML=be;const ze=Re.querySelector("svg");if(!ze)throw Error(" tag not found");return ze}_toSvgElement(be){const Re=this._svgElementFromString(ee("")),ze=be.attributes;for(let Oe=0;Oeee(Ze)),(0,A.x)(()=>this._inProgressUrlFetches.delete(Me)),(0,E.B)());return this._inProgressUrlFetches.set(Me,z),z}_addSvgIconConfig(be,Re,ze){return this._svgIconConfigs.set(p(be,Re),ze),this}_addSvgIconSetConfig(be,Re){const ze=this._iconSetConfigs.get(be);return ze?ze.push(Re):this._iconSetConfigs.set(be,[Re]),this}_svgElementFromConfig(be){if(!be.svgElement){const Re=this._svgElementFromString(be.svgText);this._setSvgAttributes(Re,be.options),be.svgElement=Re}return be.svgElement}_getIconConfigFromResolvers(be,Re){for(let ze=0;zeve?ve.pathname+ve.search:""}}}),x=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],r=x.map(U=>`[${U}]`).join(", "),b=/^url\(['"]?#(.*?)['"]?\)$/;let Z=(()=>{class U extends _{constructor(be,Re,ze,Oe,K){super(be),this._iconRegistry=Re,this._location=Oe,this._errorHandler=K,this._inline=!1,this._currentIconFetch=R.w0.EMPTY,ze||be.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(be){this._inline=(0,y.Ig)(be)}get svgIcon(){return this._svgIcon}set svgIcon(be){be!==this._svgIcon&&(be?this._updateSvgIcon(be):this._svgIcon&&this._clearSvgElement(),this._svgIcon=be)}get fontSet(){return this._fontSet}set fontSet(be){const Re=this._cleanupFontValue(be);Re!==this._fontSet&&(this._fontSet=Re,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(be){const Re=this._cleanupFontValue(be);Re!==this._fontIcon&&(this._fontIcon=Re,this._updateFontIconClasses())}_splitIconName(be){if(!be)return["",""];const Re=be.split(":");switch(Re.length){case 1:return["",Re[0]];case 2:return Re;default:throw Error(`Invalid icon name: "${be}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const be=this._elementsWithExternalReferences;if(be&&be.size){const Re=this._location.getPathname();Re!==this._previousPath&&(this._previousPath=Re,this._prependPathToReferences(Re))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(be){this._clearSvgElement();const Re=be.querySelectorAll("style");for(let Oe=0;Oe{ze.forEach(K=>{Oe.setAttribute(K.name,`url('${be}#${K.value}')`)})})}_cacheChildrenWithExternalReferences(be){const Re=be.querySelectorAll(r),ze=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Oe=0;Oe{const Me=Re[Oe],we=Me.getAttribute(K),z=we?we.match(b):null;if(z){let Ze=ze.get(Me);Ze||(Ze=[],ze.set(Me,Ze)),Ze.push({name:K,value:z[1]})}})}_updateSvgIcon(be){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),be){const[Re,ze]=this._splitIconName(be);Re&&(this._svgNamespace=Re),ze&&(this._svgName=ze),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ze,Re).pipe((0,P.q)(1)).subscribe(Oe=>this._setSvgElement(Oe),Oe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Re}:${ze}! ${Oe.message}`))})}}}return U.\u0275fac=function(be){return new(be||U)(e.Y36(e.SBq),e.Y36(ye),e.$8M("aria-hidden"),e.Y36(D),e.Y36(e.qLn))},U.\u0275cmp=e.Xpm({type:U,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(be,Re){2&be&&(e.uIk("data-mat-icon-type",Re._usingFontIcon()?"font":"svg")("data-mat-icon-name",Re._svgName||Re.fontIcon)("data-mat-icon-namespace",Re._svgNamespace||Re.fontSet),e.ekj("mat-icon-inline",Re.inline)("mat-icon-no-color","primary"!==Re.color&&"accent"!==Re.color&&"warn"!==Re.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(be,Re){1&be&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-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}),U})(),N=(()=>{class U{}return U.\u0275fac=function(be){return new(be||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),U})()},7531:(Ge,Q,m)=>{"use strict";m.d(Q,{Jk:()=>w,Nt:()=>te,c:()=>ee});var e=m(3191),t=m(925),y=m(5e3),C=m(3075),o=m(508),M=m(7322),l=m(7579),R=m(515);const s=(0,t.i$)({passive:!0});let L=(()=>{class ge{constructor(re,de){this._platform=re,this._ngZone=de,this._monitoredElements=new Map}monitor(re){if(!this._platform.isBrowser)return R.E;const de=(0,e.fI)(re),se=this._monitoredElements.get(de);if(se)return se.subject;const ye=new l.x,v="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||de.classList.contains(v)?"cdk-text-field-autofill-end"===a.animationName&&de.classList.contains(v)&&(de.classList.remove(v),this._ngZone.run(()=>ye.next({target:a.target,isAutofilled:!1}))):(de.classList.add(v),this._ngZone.run(()=>ye.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{de.addEventListener("animationstart",i,s),de.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(de,{subject:ye,unlisten:()=>{de.removeEventListener("animationstart",i,s)}}),ye}stopMonitoring(re){const de=(0,e.fI)(re),se=this._monitoredElements.get(de);se&&(se.unlisten(),se.subject.complete(),de.classList.remove("cdk-text-field-autofill-monitored"),de.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(de))}ngOnDestroy(){this._monitoredElements.forEach((re,de)=>this.stopMonitoring(de))}}return ge.\u0275fac=function(re){return new(re||ge)(y.LFG(t.t4),y.LFG(y.R0b))},ge.\u0275prov=y.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})(),E=(()=>{class ge{}return ge.\u0275fac=function(re){return new(re||ge)},ge.\u0275mod=y.oAB({type:ge}),ge.\u0275inj=y.cJS({imports:[[t.ud]]}),ge})();const w=new y.OlP("MAT_INPUT_VALUE_ACCESSOR"),V=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let j=0;const W=(0,o.FD)(class{constructor(ge,le,re,de){this._defaultErrorStateMatcher=ge,this._parentForm=le,this._parentFormGroup=re,this.ngControl=de}});let te=(()=>{class ge extends W{constructor(re,de,se,ye,v,i,a,p,u,_){super(i,ye,v,se),this._elementRef=re,this._platform=de,this._autofillMonitor=p,this._formField=_,this._uid="mat-input-"+j++,this.focused=!1,this.stateChanges=new l.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(x=>(0,t.qK)().has(x));const D=this._elementRef.nativeElement,O=D.nodeName.toLowerCase();this._inputValueAccessor=a||D,this._previousNativeValue=this.value,this.id=this.id,de.IOS&&u.runOutsideAngular(()=>{re.nativeElement.addEventListener("keyup",x=>{const r=x.target;!r.value&&0===r.selectionStart&&0===r.selectionEnd&&(r.setSelectionRange(1,1),r.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===O,this._isTextarea="textarea"===O,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=D.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(re){this._disabled=(0,e.Ig)(re),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(re){this._id=re||this._uid}get required(){var re,de,se,ye;return null!==(ye=null!==(re=this._required)&&void 0!==re?re:null===(se=null===(de=this.ngControl)||void 0===de?void 0:de.control)||void 0===se?void 0:se.hasValidator(C.kI.required))&&void 0!==ye&&ye}set required(re){this._required=(0,e.Ig)(re)}get type(){return this._type}set type(re){this._type=re||"text",this._validateType(),!this._isTextarea&&(0,t.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(re){re!==this.value&&(this._inputValueAccessor.value=re,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(re){this._readonly=(0,e.Ig)(re)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(re=>{this.autofilled=re.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(re){this._elementRef.nativeElement.focus(re)}_focusChanged(re){re!==this.focused&&(this.focused=re,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var re,de;const se=(null===(de=null===(re=this._formField)||void 0===re?void 0:re._hideControlPlaceholder)||void 0===de?void 0:de.call(re))?null:this.placeholder;if(se!==this._previousPlaceholder){const ye=this._elementRef.nativeElement;this._previousPlaceholder=se,se?ye.setAttribute("placeholder",se):ye.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const re=this._elementRef.nativeElement.value;this._previousNativeValue!==re&&(this._previousNativeValue=re,this.stateChanges.next())}_validateType(){V.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let re=this._elementRef.nativeElement.validity;return re&&re.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const re=this._elementRef.nativeElement,de=re.options[0];return this.focused||re.multiple||!this.empty||!!(re.selectedIndex>-1&&de&&de.label)}return this.focused||!this.empty}setDescribedByIds(re){re.length?this._elementRef.nativeElement.setAttribute("aria-describedby",re.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const re=this._elementRef.nativeElement;return this._isNativeSelect&&(re.multiple||re.size>1)}}return ge.\u0275fac=function(re){return new(re||ge)(y.Y36(y.SBq),y.Y36(t.t4),y.Y36(C.a5,10),y.Y36(C.F,8),y.Y36(C.sg,8),y.Y36(o.rD),y.Y36(w,10),y.Y36(L),y.Y36(y.R0b),y.Y36(M.G_,8))},ge.\u0275dir=y.lG2({type:ge,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(re,de){1&re&&y.NdJ("focus",function(){return de._focusChanged(!0)})("blur",function(){return de._focusChanged(!1)})("input",function(){return de._onInput()}),2&re&&(y.Ikx("disabled",de.disabled)("required",de.required),y.uIk("id",de.id)("data-placeholder",de.placeholder)("readonly",de.readonly&&!de._isNativeSelect||null)("aria-invalid",de.empty&&de.required?null:de.errorState)("aria-required",de.required),y.ekj("mat-input-server",de._isServer)("mat-native-select-inline",de._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[y._Bn([{provide:M.Eo,useExisting:ge}]),y.qOj,y.TTD]}),ge})(),ee=(()=>{class ge{}return ge.\u0275fac=function(re){return new(re||ge)},ge.\u0275mod=y.oAB({type:ge}),ge.\u0275inj=y.cJS({providers:[o.rD],imports:[[E,M.lN,o.BQ],E,M.lN]}),ge})()},4623:(Ge,Q,m)=>{"use strict";m.d(Q,{i$:()=>ye,Tg:()=>p,ie:()=>b});var e=m(9808),t=m(5e3),y=m(508),C=m(3191),o=m(7579),M=m(2722),A=(m(8675),m(5664),m(449),m(1159),m(3075),m(4834));const E=["*"],w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],V=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],ge=(0,y.Id)((0,y.Kr)(class{})),le=(0,y.Kr)(class{}),re=new t.OlP("MatList"),de=new t.OlP("MatNavList");let ye=(()=>{class Z extends ge{constructor(U){super(),this._elementRef=U,this._stateChanges=new o.x,"action-list"===this._getListType()&&U.nativeElement.classList.add("mat-action-list")}_getListType(){const U=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===U?"list":"mat-action-list"===U?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Z.\u0275fac=function(U){return new(U||Z)(t.Y36(t.SBq))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:re,useExisting:Z}]),t.qOj,t.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(U,ve){1&U&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin: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{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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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}),Z})(),v=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275dir=t.lG2({type:Z,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Z})(),i=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275dir=t.lG2({type:Z,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Z})(),p=(()=>{class Z extends le{constructor(U,ve,be,Re){super(),this._element=U,this._isInteractiveList=!1,this._destroyed=new o.x,this._disabled=!1,this._isInteractiveList=!!(be||Re&&"action-list"===Re._getListType()),this._list=be||Re;const ze=this._getHostElement();"button"===ze.nodeName.toLowerCase()&&!ze.hasAttribute("type")&&ze.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,M.R)(this._destroyed)).subscribe(()=>{ve.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(U){this._disabled=(0,C.Ig)(U)}ngAfterContentInit(){(0,y.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 Z.\u0275fac=function(U){return new(U||Z)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(de,8),t.Y36(re,8))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(U,ve,be){if(1&U&&(t.Suo(be,v,5),t.Suo(be,i,5),t.Suo(be,y.X2,5)),2&U){let Re;t.iGM(Re=t.CRH())&&(ve._avatar=Re.first),t.iGM(Re=t.CRH())&&(ve._icon=Re.first),t.iGM(Re=t.CRH())&&(ve._lines=Re)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(U,ve){2&U&&t.ekj("mat-list-item-disabled",ve.disabled)("mat-list-item-avatar",ve._avatar||ve._icon)("mat-list-item-with-avatar",ve._avatar||ve._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:V,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(U,ve){1&U&&(t.F$t(w),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.Hsn(2),t.TgZ(3,"div",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&U&&(t.xp6(1),t.Q6J("matRippleTrigger",ve._getHostElement())("matRippleDisabled",ve._isRippleDisabled()))},directives:[y.wG],encapsulation:2,changeDetection:0}),Z})(),b=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=t.oAB({type:Z}),Z.\u0275inj=t.cJS({imports:[[y.uc,y.si,y.BQ,y.us,e.ez],y.uc,y.BQ,y.us,A.t]}),Z})()},2181:(Ge,Q,m)=>{"use strict";m.d(Q,{VK:()=>Oe,OP:()=>U,Tx:()=>Ne,p6:()=>Fe});var e=m(5664),t=m(3191),y=m(1159),C=m(5e3),o=m(7579),M=m(727),l=m(6451),R=m(9646),s=m(3101),L=m(8675),I=m(3900),A=m(5698),E=m(9300),P=m(2722),w=m(4086),V=m(1777),j=m(7429),W=m(9808),te=m(508),ee=m(9776),ge=m(925),le=m(226),re=m(5303);const de=["mat-menu-item",""];function se(ce,Le){1&ce&&(C.O4$(),C.TgZ(0,"svg",2),C._UZ(1,"polygon",3),C.qZA())}const ye=["*"];function v(ce,Le){if(1&ce){const Pe=C.EpF();C.TgZ(0,"div",0),C.NdJ("keydown",function($){return C.CHM(Pe),C.oxw()._handleKeydown($)})("click",function(){return C.CHM(Pe),C.oxw().closed.emit("click")})("@transformMenu.start",function($){return C.CHM(Pe),C.oxw()._onAnimationStart($)})("@transformMenu.done",function($){return C.CHM(Pe),C.oxw()._onAnimationDone($)}),C.TgZ(1,"div",1),C.Hsn(2),C.qZA(),C.qZA()}if(2&ce){const Pe=C.oxw();C.Q6J("id",Pe.panelId)("ngClass",Pe._classList)("@transformMenu",Pe._panelAnimationState),C.uIk("aria-label",Pe.ariaLabel||null)("aria-labelledby",Pe.ariaLabelledby||null)("aria-describedby",Pe.ariaDescribedby||null)}}const i={transformMenu:(0,V.X$)("transformMenu",[(0,V.SB)("void",(0,V.oB)({opacity:0,transform:"scale(0.8)"})),(0,V.eR)("void => enter",(0,V.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({opacity:1,transform:"scale(1)"}))),(0,V.eR)("* => void",(0,V.jt)("100ms 25ms linear",(0,V.oB)({opacity:0})))]),fadeInItems:(0,V.X$)("fadeInItems",[(0,V.SB)("showing",(0,V.oB)({opacity:1})),(0,V.eR)("void => *",[(0,V.oB)({opacity:0}),(0,V.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},u=new C.OlP("MatMenuContent"),Z=new C.OlP("MAT_MENU_PANEL"),N=(0,te.Kr)((0,te.Id)(class{}));let U=(()=>{class ce extends N{constructor(Pe,q,$,oe,Ce){super(),this._elementRef=Pe,this._focusMonitor=$,this._parentMenu=oe,this._changeDetectorRef=Ce,this.role="menuitem",this._hovered=new o.x,this._focused=new o.x,this._highlighted=!1,this._triggersSubmenu=!1,oe&&oe.addItem&&oe.addItem(this)}focus(Pe,q){this._focusMonitor&&Pe?this._focusMonitor.focusVia(this._getHostElement(),Pe,q):this._getHostElement().focus(q),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(Pe){this.disabled&&(Pe.preventDefault(),Pe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var Pe;const q=this._elementRef.nativeElement.cloneNode(!0),$=q.querySelectorAll("mat-icon, .material-icons");for(let oe=0;oe<$.length;oe++)$[oe].remove();return(null===(Pe=q.textContent)||void 0===Pe?void 0:Pe.trim())||""}_setHighlighted(Pe){var q;this._highlighted=Pe,null===(q=this._changeDetectorRef)||void 0===q||q.markForCheck()}}return ce.\u0275fac=function(Pe){return new(Pe||ce)(C.Y36(C.SBq),C.Y36(W.K0),C.Y36(e.tE),C.Y36(Z,8),C.Y36(C.sBO))},ce.\u0275cmp=C.Xpm({type:ce,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(Pe,q){1&Pe&&C.NdJ("click",function(oe){return q._checkDisabled(oe)})("mouseenter",function(){return q._handleMouseEnter()}),2&Pe&&(C.uIk("role",q.role)("tabindex",q._getTabIndex())("aria-disabled",q.disabled.toString())("disabled",q.disabled||null),C.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",q._highlighted)("mat-menu-item-submenu-trigger",q._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[C.qOj],attrs:de,ngContentSelectors:ye,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(Pe,q){1&Pe&&(C.F$t(),C.Hsn(0),C._UZ(1,"div",0),C.YNc(2,se,2,0,"svg",1)),2&Pe&&(C.xp6(1),C.Q6J("matRippleDisabled",q.disableRipple||q.disabled)("matRippleTrigger",q._getHostElement()),C.xp6(1),C.Q6J("ngIf",q._triggersSubmenu))},directives:[te.wG,W.O5],encapsulation:2,changeDetection:0}),ce})();const ve=new C.OlP("mat-menu-default-options",{providedIn:"root",factory:function be(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Re=0,ze=(()=>{class ce{constructor(Pe,q,$){this._elementRef=Pe,this._ngZone=q,this._defaultOptions=$,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new C.n_E,this._tabSubscription=M.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new C.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Re++}get xPosition(){return this._xPosition}set xPosition(Pe){this._xPosition=Pe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Pe){this._yPosition=Pe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Pe){this._overlapTrigger=(0,t.Ig)(Pe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Pe){this._hasBackdrop=(0,t.Ig)(Pe)}set panelClass(Pe){const q=this._previousPanelClass;q&&q.length&&q.split(" ").forEach($=>{this._classList[$]=!1}),this._previousPanelClass=Pe,Pe&&Pe.length&&(Pe.split(" ").forEach($=>{this._classList[$]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Pe){this.panelClass=Pe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,I.w)(Pe=>(0,l.T)(...Pe.map(q=>q._focused)))).subscribe(Pe=>this._keyManager.updateActiveItem(Pe))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,I.w)(q=>(0,l.T)(...q.map($=>$._hovered))))}addItem(Pe){}removeItem(Pe){}_handleKeydown(Pe){const q=Pe.keyCode,$=this._keyManager;switch(q){case y.hY:(0,y.Vb)(Pe)||(Pe.preventDefault(),this.closed.emit("keydown"));break;case y.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case y.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(q===y.LH||q===y.JH)&&$.setFocusOrigin("keyboard"),$.onKeydown(Pe)}}focusFirstItem(Pe="program"){this.lazyContent?this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>this._focusFirstItem(Pe)):this._focusFirstItem(Pe)}_focusFirstItem(Pe){const q=this._keyManager;if(q.setFocusOrigin(Pe).setFirstItemActive(),!q.activeItem&&this._directDescendantItems.length){let $=this._directDescendantItems.first._getHostElement().parentElement;for(;$;){if("menu"===$.getAttribute("role")){$.focus();break}$=$.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Pe){const q=Math.min(this._baseElevation+Pe,24),$=`${this._elevationPrefix}${q}`,oe=Object.keys(this._classList).find(Ce=>Ce.startsWith(this._elevationPrefix));(!oe||oe===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[$]=!0,this._previousElevation=$)}setPositionClasses(Pe=this.xPosition,q=this.yPosition){const $=this._classList;$["mat-menu-before"]="before"===Pe,$["mat-menu-after"]="after"===Pe,$["mat-menu-above"]="above"===q,$["mat-menu-below"]="below"===q}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Pe){this._animationDone.next(Pe),this._isAnimating=!1}_onAnimationStart(Pe){this._isAnimating=!0,"enter"===Pe.toState&&0===this._keyManager.activeItemIndex&&(Pe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,L.O)(this._allItems)).subscribe(Pe=>{this._directDescendantItems.reset(Pe.filter(q=>q._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ce.\u0275fac=function(Pe){return new(Pe||ce)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(ve))},ce.\u0275dir=C.lG2({type:ce,contentQueries:function(Pe,q,$){if(1&Pe&&(C.Suo($,u,5),C.Suo($,U,5),C.Suo($,U,4)),2&Pe){let oe;C.iGM(oe=C.CRH())&&(q.lazyContent=oe.first),C.iGM(oe=C.CRH())&&(q._allItems=oe),C.iGM(oe=C.CRH())&&(q.items=oe)}},viewQuery:function(Pe,q){if(1&Pe&&C.Gf(C.Rgc,5),2&Pe){let $;C.iGM($=C.CRH())&&(q.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"}}),ce})(),Oe=(()=>{class ce extends ze{constructor(Pe,q,$){super(Pe,q,$),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ce.\u0275fac=function(Pe){return new(Pe||ce)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(ve))},ce.\u0275cmp=C.Xpm({type:ce,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Pe,q){2&Pe&&C.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[C._Bn([{provide:Z,useExisting:ce}]),C.qOj],ngContentSelectors:ye,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Pe,q){1&Pe&&(C.F$t(),C.YNc(0,v,3,6,"ng-template"))},directives:[W.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-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]{pointer-events:none}.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}),ce})();const K=new C.OlP("mat-menu-scroll-strategy"),we={provide:K,deps:[ee.aV],useFactory:function Me(ce){return()=>ce.scrollStrategies.reposition()}},Ze=(0,ge.i$)({passive:!0});let vt=(()=>{class ce{constructor(Pe,q,$,oe,Ce,Ue,lt,nt){this._overlay=Pe,this._element=q,this._viewContainerRef=$,this._menuItemInstance=Ue,this._dir=lt,this._focusMonitor=nt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=M.w0.EMPTY,this._hoverSubscription=M.w0.EMPTY,this._menuCloseSubscription=M.w0.EMPTY,this._handleTouchStart=ft=>{(0,e.yG)(ft)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new C.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new C.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=oe,this._parentMaterialMenu=Ce instanceof ze?Ce:void 0,q.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ze),Ue&&(Ue._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Pe){this.menu=Pe}get menu(){return this._menu}set menu(Pe){Pe!==this._menu&&(this._menu=Pe,this._menuCloseSubscription.unsubscribe(),Pe&&(this._menuCloseSubscription=Pe.close.subscribe(q=>{this._destroyMenu(q),("click"===q||"tab"===q)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(q)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ze),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 Pe=this._createOverlay(),q=Pe.getConfig();this._setPosition(q.positionStrategy),q.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,Pe.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ze&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(Pe,q){this._focusMonitor&&Pe?this._focusMonitor.focusVia(this._element,Pe,q):this._element.nativeElement.focus(q)}updatePosition(){var Pe;null===(Pe=this._overlayRef)||void 0===Pe||Pe.updatePosition()}_destroyMenu(Pe){if(!this._overlayRef||!this.menuOpen)return;const q=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Pe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,q instanceof ze?(q._resetAnimation(),q.lazyContent?q._animationDone.pipe((0,E.h)($=>"void"===$.toState),(0,A.q)(1),(0,P.R)(q.lazyContent._attached)).subscribe({next:()=>q.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),q.lazyContent&&q.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 Pe=0,q=this.menu.parentMenu;for(;q;)Pe++,q=q.parentMenu;this.menu.setElevation(Pe)}}_setIsMenuOpen(Pe){this._menuOpen=Pe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Pe)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const Pe=this._getOverlayConfig();this._subscribeToPositions(Pe.positionStrategy),this._overlayRef=this._overlay.create(Pe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ee.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(Pe){this.menu.setPositionClasses&&Pe.positionChanges.subscribe(q=>{this.menu.setPositionClasses("start"===q.connectionPair.overlayX?"after":"before","top"===q.connectionPair.overlayY?"below":"above")})}_setPosition(Pe){let[q,$]="before"===this.menu.xPosition?["end","start"]:["start","end"],[oe,Ce]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ue,lt]=[oe,Ce],[nt,ft]=[q,$],it=0;this.triggersSubmenu()?(ft=q="before"===this.menu.xPosition?"start":"end",$=nt="end"===q?"start":"end",it="bottom"===oe?8:-8):this.menu.overlapTrigger||(Ue="top"===oe?"bottom":"top",lt="top"===Ce?"bottom":"top"),Pe.withPositions([{originX:q,originY:Ue,overlayX:nt,overlayY:oe,offsetY:it},{originX:$,originY:Ue,overlayX:ft,overlayY:oe,offsetY:it},{originX:q,originY:lt,overlayX:nt,overlayY:Ce,offsetY:-it},{originX:$,originY:lt,overlayX:ft,overlayY:Ce,offsetY:-it}])}_menuClosingActions(){const Pe=this._overlayRef.backdropClick(),q=this._overlayRef.detachments(),$=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,R.of)(),oe=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,E.h)(Ce=>Ce!==this._menuItemInstance),(0,E.h)(()=>this._menuOpen)):(0,R.of)();return(0,l.T)(Pe,$,oe,q)}_handleMousedown(Pe){(0,e.X6)(Pe)||(this._openedBy=0===Pe.button?"mouse":void 0,this.triggersSubmenu()&&Pe.preventDefault())}_handleKeydown(Pe){const q=Pe.keyCode;(q===y.K5||q===y.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(q===y.SV&&"ltr"===this.dir||q===y.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Pe){this.triggersSubmenu()?(Pe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,E.h)(Pe=>Pe===this._menuItemInstance&&!Pe.disabled),(0,w.g)(0,s.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,A.q)(1),(0,w.g)(0,s.E),(0,P.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new j.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ce.\u0275fac=function(Pe){return new(Pe||ce)(C.Y36(ee.aV),C.Y36(C.SBq),C.Y36(C.s_b),C.Y36(K),C.Y36(Z,8),C.Y36(U,10),C.Y36(le.Is,8),C.Y36(e.tE))},ce.\u0275dir=C.lG2({type:ce,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(Pe,q){1&Pe&&C.NdJ("click",function(oe){return q._handleClick(oe)})("mousedown",function(oe){return q._handleMousedown(oe)})("keydown",function(oe){return q._handleKeydown(oe)}),2&Pe&&C.uIk("aria-expanded",q.menuOpen||null)("aria-controls",q.menuOpen?q.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ce})(),Fe=(()=>{class ce extends vt{}return ce.\u0275fac=function(){let Le;return function(q){return(Le||(Le=C.n5z(ce)))(q||ce)}}(),ce.\u0275dir=C.lG2({type:ce,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[C.qOj]}),ce})(),Ne=(()=>{class ce{}return ce.\u0275fac=function(Pe){return new(Pe||ce)},ce.\u0275mod=C.oAB({type:ce}),ce.\u0275inj=C.cJS({providers:[we],imports:[[W.ez,te.BQ,te.si,ee.U8],re.ZD,te.BQ]}),ce})()},6087:(Ge,Q,m)=>{"use strict";m.d(Q,{NW:()=>de,ye:()=>V,TU:()=>se});var e=m(9808),t=m(5e3),y=m(508),C=m(7423),o=m(4107),M=m(7238),l=m(3191),R=m(7579),s=m(7322);function L(ye,v){if(1&ye&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&ye){const i=v.$implicit;t.Q6J("value",i),t.xp6(1),t.hij(" ",i," ")}}function I(ye,v){if(1&ye){const i=t.EpF();t.TgZ(0,"mat-form-field",16),t.TgZ(1,"mat-select",17),t.NdJ("selectionChange",function(p){return t.CHM(i),t.oxw(2)._changePageSize(p.value)}),t.YNc(2,L,2,2,"mat-option",18),t.qZA(),t.qZA()}if(2&ye){const i=t.oxw(2);t.Q6J("appearance",i._formFieldAppearance)("color",i.color),t.xp6(1),t.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",i._displayedPageSizeOptions)}}function A(ye,v){if(1&ye&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&ye){const i=t.oxw(2);t.xp6(1),t.Oqu(i.pageSize)}}function E(ye,v){if(1&ye&&(t.TgZ(0,"div",12),t.TgZ(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,I,3,6,"mat-form-field",14),t.YNc(4,A,2,1,"div",15),t.qZA()),2&ye){const i=t.oxw();t.xp6(2),t.hij(" ",i._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function P(ye,v){if(1&ye){const i=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){return t.CHM(i),t.oxw().firstPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA(),t.qZA()}if(2&ye){const i=t.oxw();t.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.firstPageLabel)}}function w(ye,v){if(1&ye){const i=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){return t.CHM(i),t.oxw().lastPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA(),t.qZA()}if(2&ye){const i=t.oxw();t.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.lastPageLabel)}}let V=(()=>{class ye{constructor(){this.changes=new R.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,a,p)=>{if(0==p||0==a)return`0 of ${p}`;const u=i*a;return`${u+1} \u2013 ${u<(p=Math.max(p,0))?Math.min(u+a,p):u+a} of ${p}`}}}return ye.\u0275fac=function(i){return new(i||ye)},ye.\u0275prov=t.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const W={provide:V,deps:[[new t.FiY,new t.tp0,V]],useFactory:function j(ye){return ye||new V}},ge=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),le=(0,y.Id)((0,y.dB)(class{}));let re=(()=>{class ye extends le{constructor(i,a,p){if(super(),this._intl=i,this._changeDetectorRef=a,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new t.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),p){const{pageSize:u,pageSizeOptions:_,hidePageSize:D,showFirstLastButtons:O}=p;null!=u&&(this._pageSize=u),null!=_&&(this._pageSizeOptions=_),null!=D&&(this._hidePageSize=D),null!=O&&(this._showFirstLastButtons=O)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,l.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,l.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,l.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(a=>(0,l.su)(a)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,l.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,l.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._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex--,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-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ye.\u0275fac=function(i){t.$Z()},ye.\u0275dir=t.lG2({type:ye,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[t.qOj]}),ye})(),de=(()=>{class ye extends re{constructor(i,a,p){super(i,a,p),p&&null!=p.formFieldAppearance&&(this._formFieldAppearance=p.formFieldAppearance)}}return ye.\u0275fac=function(i){return new(i||ye)(t.Y36(V),t.Y36(t.sBO),t.Y36(ge,8))},ye.\u0275cmp=t.Xpm({type:ye,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.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,a){1&i&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,E,5,3,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,P,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return a.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA(),t.qZA(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return a.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA(),t.qZA(),t.YNc(13,w,3,5,"button",11),t.qZA(),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.Q6J("ngIf",!a.hidePageSize),t.xp6(3),t.hij(" ",a._intl.getRangeLabel(a.pageIndex,a.pageSize,a.length)," "),t.xp6(1),t.Q6J("ngIf",a.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",a._intl.previousPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),t.uIk("aria-label",a._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",a._intl.nextPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),t.uIk("aria-label",a._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",a.showFirstLastButtons))},directives:[e.O5,C.lW,M.gM,s.KE,o.gD,e.sg,y.ey],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}),ye})(),se=(()=>{class ye{}return ye.\u0275fac=function(i){return new(i||ye)},ye.\u0275mod=t.oAB({type:ye}),ye.\u0275inj=t.cJS({providers:[W],imports:[[e.ez,C.ot,o.LD,M.AV,y.BQ]]}),ye})()},5899:(Ge,Q,m)=>{"use strict";m.d(Q,{pW:()=>w,Cv:()=>j});var e=m(5e3),t=m(9808),y=m(508),C=m(3191),o=m(6360),M=m(727),l=m(4968),R=m(9300);const s=["primaryValueBar"],L=(0,y.pj)(class{constructor(W){this._elementRef=W}},"primary"),I=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function A(){const W=(0,e.f3M)(t.K0),te=W?W.location:null;return{getPathname:()=>te?te.pathname+te.search:""}}}),E=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let P=0,w=(()=>{class W extends L{constructor(ee,ge,le,re,de){super(ee),this._ngZone=ge,this._animationMode=le,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=M.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+P++;const se=re?re.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${se}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===le,de&&(de.color&&(this.color=this.defaultColor=de.color),this.mode=de.mode||this.mode)}get value(){return this._value}set value(ee){this._value=V((0,C.su)(ee)||0)}get bufferValue(){return this._bufferValue}set bufferValue(ee){this._bufferValue=V(ee||0)}_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 ee=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,l.R)(ee,"transitionend").pipe((0,R.h)(ge=>ge.target===ee)).subscribe(()=>{("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return W.\u0275fac=function(ee){return new(ee||W)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(o.Qb,8),e.Y36(I,8),e.Y36(E,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-bar"]],viewQuery:function(ee,ge){if(1&ee&&e.Gf(s,5),2&ee){let le;e.iGM(le=e.CRH())&&(ge._primaryValueBar=le.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ee,ge){2&ee&&(e.uIk("aria-valuenow","indeterminate"===ge.mode||"query"===ge.mode?null:ge.value)("mode",ge.mode),e.ekj("_mat-animation-noopable",ge._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(ee,ge){1&ee&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.TgZ(2,"defs"),e.TgZ(3,"pattern",2),e._UZ(4,"circle",3),e.qZA(),e.qZA(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5),e._UZ(7,"div",6,7),e._UZ(9,"div",8),e.qZA()),2&ee&&(e.xp6(3),e.Q6J("id",ge.progressbarId),e.xp6(2),e.uIk("fill",ge._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",ge._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",ge._primaryTransform()))},directives:[t.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),W})();function V(W,te=0,ee=100){return Math.max(te,Math.min(ee,W))}let j=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[[t.ez,y.BQ],y.BQ]}),W})()},773:(Ge,Q,m)=>{"use strict";m.d(Q,{Cq:()=>ee,$g:()=>te});var e=m(5e3),t=m(9808),y=m(508),C=m(3191),o=m(925),M=m(6360);function l(ge,le){if(1&ge&&(e.O4$(),e._UZ(0,"circle",3)),2&ge){const re=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function R(ge,le){if(1&ge&&(e.O4$(),e._UZ(0,"circle",3)),2&ge){const re=e.oxw();e.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function s(ge,le){if(1&ge&&(e.O4$(),e._UZ(0,"circle",3)),2&ge){const re=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function L(ge,le){if(1&ge&&(e.O4$(),e._UZ(0,"circle",3)),2&ge){const re=e.oxw();e.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}const P=(0,y.pj)(class{constructor(ge){this._elementRef=ge}},"primary"),w=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function V(){return{diameter:100}}});class W extends P{constructor(le,re,de,se,ye){super(le),this._document=de,this._diameter=100,this._value=0,this.mode="determinate";const v=W._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),v.has(de.head)||v.set(de.head,new Set([100])),this._noopAnimations="NoopAnimations"===se&&!!ye&&!ye._forceAnimations,ye&&(ye.diameter&&(this.diameter=ye.diameter),ye.strokeWidth&&(this.strokeWidth=ye.strokeWidth))}get diameter(){return this._diameter}set diameter(le){this._diameter=(0,C.su)(le),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(le){this._strokeWidth=(0,C.su)(le)}get value(){return"determinate"===this.mode?this._value:0}set value(le){this._value=Math.max(0,Math.min(100,(0,C.su)(le)))}ngOnInit(){const le=this._elementRef.nativeElement;this._styleRoot=(0,o.kV)(le)||this._document.head,this._attachStyleNode(),le.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const le=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${le} ${le}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const le=this._styleRoot,re=this._diameter,de=W._diameters;let se=de.get(le);if(!se||!se.has(re)){const ye=this._document.createElement("style");ye.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),ye.textContent=this._getAnimationText(),le.appendChild(ye),se||(se=new Set,de.set(le,se)),se.add(re)}}_getAnimationText(){const le=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*le).replace(/END_VALUE/g,""+.2*le).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}W._diameters=new WeakMap,W.\u0275fac=function(le){return new(le||W)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(le,re){2&le&&(e.uIk("aria-valuemin","determinate"===re.mode?0:null)("aria-valuemax","determinate"===re.mode?100:null)("aria-valuenow","determinate"===re.mode?re.value:null)("mode",re.mode),e.Udp("width",re.diameter,"px")("height",re.diameter,"px"),e.ekj("_mat-animation-noopable",re._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(le,re){1&le&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,l,1,9,"circle",1),e.YNc(2,R,1,7,"circle",2),e.qZA()),2&le&&(e.Udp("width",re.diameter,"px")("height",re.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===re.mode),e.uIk("viewBox",re._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.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;transform-origin:center;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 te=(()=>{class ge extends W{constructor(re,de,se,ye,v){super(re,de,se,ye,v),this.mode="indeterminate"}}return ge.\u0275fac=function(re){return new(re||ge)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},ge.\u0275cmp=e.Xpm({type:ge,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(re,de){2&re&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.ekj("_mat-animation-noopable",de._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(re,de){1&re&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,s,1,9,"circle",1),e.YNc(2,L,1,7,"circle",2),e.qZA()),2&re&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===de.mode),e.uIk("viewBox",de._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.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;transform-origin:center;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}),ge})(),ee=(()=>{class ge{}return ge.\u0275fac=function(re){return new(re||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({imports:[[y.BQ,t.ez],y.BQ]}),ge})()},9814:(Ge,Q,m)=>{"use strict";m.d(Q,{U0:()=>le,VQ:()=>W,Fk:()=>re});var e=m(5e3),t=m(508),y=m(3191),C=m(3075),o=m(6360),M=m(5664),l=m(449);const R=["input"],s=function(de){return{enterDuration:de}},L=["*"],I=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function A(){return{color:"accent"}}});let E=0;const P={provide:C.JU,useExisting:(0,e.Gpc)(()=>W),multi:!0};class w{constructor(se,ye){this.source=se,this.value=ye}}const V=new e.OlP("MatRadioGroup");let j=(()=>{class de{constructor(ye){this._changeDetector=ye,this._value=null,this._name="mat-radio-group-"+E++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(ye){this._name=ye,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ye){this._labelPosition="before"===ye?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ye){this._value!==ye&&(this._value=ye,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ye){this._selected=ye,this.value=ye?ye.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ye){this._disabled=(0,y.Ig)(ye),this._markRadiosForCheck()}get required(){return this._required}set required(ye){this._required=(0,y.Ig)(ye),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ye=>{ye.name=this.name,ye._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(v=>{v.checked=this.value===v.value,v.checked&&(this._selected=v)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ye=>ye._markForCheck())}writeValue(ye){this.value=ye,this._changeDetector.markForCheck()}registerOnChange(ye){this._controlValueAccessorChangeFn=ye}registerOnTouched(ye){this.onTouched=ye}setDisabledState(ye){this.disabled=ye,this._changeDetector.markForCheck()}}return de.\u0275fac=function(ye){return new(ye||de)(e.Y36(e.sBO))},de.\u0275dir=e.lG2({type:de,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),de})(),W=(()=>{class de extends j{}return de.\u0275fac=function(){let se;return function(v){return(se||(se=e.n5z(de)))(v||de)}}(),de.\u0275dir=e.lG2({type:de,selectors:[["mat-radio-group"]],contentQueries:function(ye,v,i){if(1&ye&&e.Suo(i,le,5),2&ye){let a;e.iGM(a=e.CRH())&&(v._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([P,{provide:V,useExisting:de}]),e.qOj]}),de})();class te{constructor(se){this._elementRef=se}}const ee=(0,t.Kr)((0,t.sb)(te));let ge=(()=>{class de extends ee{constructor(ye,v,i,a,p,u,_,D){super(v),this._changeDetector=i,this._focusMonitor=a,this._radioDispatcher=p,this._providerOverride=_,this._uniqueId="mat-radio-"+ ++E,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ye,this._noopAnimations="NoopAnimations"===u,D&&(this.tabIndex=(0,y.su)(D,0)),this._removeUniqueSelectionListener=p.listen((O,x)=>{O!==this.id&&x===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ye){const v=(0,y.Ig)(ye);this._checked!==v&&(this._checked=v,v&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!v&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),v&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ye){this._value!==ye&&(this._value=ye,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ye),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ye){this._labelPosition=ye}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ye){this._setDisabled((0,y.Ig)(ye))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ye){this._required=(0,y.Ig)(ye)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ye){this._color=ye}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ye,v){v?this._focusMonitor.focusVia(this._inputElement,v,ye):this._inputElement.nativeElement.focus(ye)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ye=>{!ye&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new w(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ye){ye.stopPropagation()}_onInputInteraction(ye){if(ye.stopPropagation(),!this.checked&&!this.disabled){const v=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),v&&this.radioGroup._emitChangeEvent())}}_setDisabled(ye){this._disabled!==ye&&(this._disabled=ye,this._changeDetector.markForCheck())}}return de.\u0275fac=function(ye){e.$Z()},de.\u0275dir=e.lG2({type:de,viewQuery:function(ye,v){if(1&ye&&e.Gf(R,5),2&ye){let i;e.iGM(i=e.CRH())&&(v._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:[e.qOj]}),de})(),le=(()=>{class de extends ge{constructor(ye,v,i,a,p,u,_,D){super(ye,v,i,a,p,u,_,D)}}return de.\u0275fac=function(ye){return new(ye||de)(e.Y36(V,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(M.tE),e.Y36(l.A8),e.Y36(o.Qb,8),e.Y36(I,8),e.$8M("tabindex"))},de.\u0275cmp=e.Xpm({type:de,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ye,v){1&ye&&e.NdJ("focus",function(){return v._inputElement.nativeElement.focus()}),2&ye&&(e.uIk("tabindex",null)("id",v.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",v.checked)("mat-radio-disabled",v.disabled)("_mat-animation-noopable",v._noopAnimations)("mat-primary","primary"===v.color)("mat-accent","accent"===v.color)("mat-warn","warn"===v.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:L,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(ye,v){if(1&ye&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(a){return v._onInputInteraction(a)})("click",function(a){return v._onInputClick(a)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&ye){const i=e.MAs(1);e.uIk("for",v.inputId),e.xp6(5),e.Q6J("id",v.inputId)("checked",v.checked)("disabled",v.disabled)("tabIndex",v.tabIndex)("required",v.required),e.uIk("name",v.name)("value",v.value)("aria-label",v.ariaLabel)("aria-labelledby",v.ariaLabelledby)("aria-describedby",v.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",i)("matRippleDisabled",v._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,s,v._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==v.labelPosition)}},directives:[t.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-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;-moz-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{bottom:0;left:50%}.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}),de})(),re=(()=>{class de{}return de.\u0275fac=function(ye){return new(ye||de)},de.\u0275mod=e.oAB({type:de}),de.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),de})()},4107:(Ge,Q,m)=>{"use strict";m.d(Q,{gD:()=>Ne,LD:()=>ce,$L:()=>vt});var e=m(9776),t=m(9808),y=m(5e3),C=m(508),o=m(7322),M=m(5303),l=m(5664),R=m(3191),s=m(449),L=m(1159),I=m(3075),A=m(7579),E=m(9770),P=m(6451),w=m(8675),V=m(3900),j=m(5698),W=m(9300),te=m(4004),ee=m(1884),ge=m(2722),le=m(1777),re=m(226);const de=["trigger"],se=["panel"];function ye(Le,Pe){if(1&Le&&(y.TgZ(0,"span",8),y._uU(1),y.qZA()),2&Le){const q=y.oxw();y.xp6(1),y.Oqu(q.placeholder)}}function v(Le,Pe){if(1&Le&&(y.TgZ(0,"span",12),y._uU(1),y.qZA()),2&Le){const q=y.oxw(2);y.xp6(1),y.Oqu(q.triggerValue)}}function i(Le,Pe){1&Le&&y.Hsn(0,0,["*ngSwitchCase","true"])}function a(Le,Pe){if(1&Le&&(y.TgZ(0,"span",9),y.YNc(1,v,2,1,"span",10),y.YNc(2,i,1,0,"ng-content",11),y.qZA()),2&Le){const q=y.oxw();y.Q6J("ngSwitch",!!q.customTrigger),y.xp6(2),y.Q6J("ngSwitchCase",!0)}}function p(Le,Pe){if(1&Le){const q=y.EpF();y.TgZ(0,"div",13),y.TgZ(1,"div",14,15),y.NdJ("@transformPanel.done",function(oe){return y.CHM(q),y.oxw()._panelDoneAnimatingStream.next(oe.toState)})("keydown",function(oe){return y.CHM(q),y.oxw()._handleKeydown(oe)}),y.Hsn(3,1),y.qZA(),y.qZA()}if(2&Le){const q=y.oxw();y.Q6J("@transformPanelWrap",void 0),y.xp6(1),y.Gre("mat-select-panel ",q._getPanelTheme(),""),y.Udp("transform-origin",q._transformOrigin)("font-size",q._triggerFontSize,"px"),y.Q6J("ngClass",q.panelClass)("@transformPanel",q.multiple?"showing-multiple":"showing"),y.uIk("id",q.id+"-panel")("aria-multiselectable",q.multiple)("aria-label",q.ariaLabel||null)("aria-labelledby",q._getPanelAriaLabelledby())}}const u=[[["mat-select-trigger"]],"*"],_=["mat-select-trigger","*"],D={transformPanelWrap:(0,le.X$)("transformPanelWrap",[(0,le.eR)("* => void",(0,le.IO)("@transformPanel",[(0,le.pV)()],{optional:!0}))]),transformPanel:(0,le.X$)("transformPanel",[(0,le.SB)("void",(0,le.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,le.SB)("showing",(0,le.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,le.SB)("showing-multiple",(0,le.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,le.eR)("void => *",(0,le.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,le.eR)("* => void",(0,le.jt)("100ms 25ms linear",(0,le.oB)({opacity:0})))])};let b=0;const Z=256,ze=new y.OlP("mat-select-scroll-strategy"),K=new y.OlP("MAT_SELECT_CONFIG"),Me={provide:ze,deps:[e.aV],useFactory:function Oe(Le){return()=>Le.scrollStrategies.reposition()}};class we{constructor(Pe,q){this.source=Pe,this.value=q}}const z=(0,C.Kr)((0,C.sb)((0,C.Id)((0,C.FD)(class{constructor(Le,Pe,q,$,oe){this._elementRef=Le,this._defaultErrorStateMatcher=Pe,this._parentForm=q,this._parentFormGroup=$,this.ngControl=oe}})))),Ze=new y.OlP("MatSelectTrigger");let vt=(()=>{class Le{}return Le.\u0275fac=function(q){return new(q||Le)},Le.\u0275dir=y.lG2({type:Le,selectors:[["mat-select-trigger"]],features:[y._Bn([{provide:Ze,useExisting:Le}])]}),Le})(),Fe=(()=>{class Le extends z{constructor(q,$,oe,Ce,Ue,lt,nt,ft,it,rt,Mt,Zt,Ft,Vt){var Ii,jt,ei;super(Ue,Ce,nt,ft,rt),this._viewportRuler=q,this._changeDetectorRef=$,this._ngZone=oe,this._dir=lt,this._parentFormField=it,this._liveAnnouncer=Ft,this._defaultOptions=Vt,this._panelOpen=!1,this._compareWith=(ki,ai)=>ki===ai,this._uid="mat-select-"+b++,this._triggerAriaLabelledBy=null,this._destroy=new A.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+b++,this._panelDoneAnimatingStream=new A.x,this._overlayPanelClass=(null===(Ii=this._defaultOptions)||void 0===Ii?void 0:Ii.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ei=null===(jt=this._defaultOptions)||void 0===jt?void 0:jt.disableOptionCentering)&&void 0!==ei&&ei,this.ariaLabel="",this.optionSelectionChanges=(0,E.P)(()=>{const ki=this.options;return ki?ki.changes.pipe((0,w.O)(ki),(0,V.w)(()=>(0,P.T)(...ki.map(ai=>ai.onSelectionChange)))):this._ngZone.onStable.pipe((0,j.q)(1),(0,V.w)(()=>this.optionSelectionChanges))}),this.openedChange=new y.vpe,this._openedStream=this.openedChange.pipe((0,W.h)(ki=>ki),(0,te.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,W.h)(ki=>!ki),(0,te.U)(()=>{})),this.selectionChange=new y.vpe,this.valueChange=new y.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Vt?void 0:Vt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Vt.typeaheadDebounceInterval),this._scrollStrategyFactory=Zt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Mt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(q){this._placeholder=q,this.stateChanges.next()}get required(){var q,$,oe,Ce;return null!==(Ce=null!==(q=this._required)&&void 0!==q?q:null===(oe=null===($=this.ngControl)||void 0===$?void 0:$.control)||void 0===oe?void 0:oe.hasValidator(I.kI.required))&&void 0!==Ce&&Ce}set required(q){this._required=(0,R.Ig)(q),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(q){this._multiple=(0,R.Ig)(q)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(q){this._disableOptionCentering=(0,R.Ig)(q)}get compareWith(){return this._compareWith}set compareWith(q){this._compareWith=q,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(q){(q!==this._value||this._multiple&&Array.isArray(q))&&(this.options&&this._setSelectionByValue(q),this._value=q)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(q){this._typeaheadDebounceInterval=(0,R.su)(q)}get id(){return this._id}set id(q){this._id=q||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new s.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ee.x)(),(0,ge.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ge.R)(this._destroy)).subscribe(q=>{q.added.forEach($=>$.select()),q.removed.forEach($=>$.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,ge.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const q=this._getTriggerAriaLabelledby();if(q!==this._triggerAriaLabelledBy){const $=this._elementRef.nativeElement;this._triggerAriaLabelledBy=q,q?$.setAttribute("aria-labelledby",q):$.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(q){q.disabled&&this.stateChanges.next(),q.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(q){this.value=q}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var q,$;return this.multiple?(null===(q=this._selectionModel)||void 0===q?void 0:q.selected)||[]:null===($=this._selectionModel)||void 0===$?void 0:$.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const q=this._selectionModel.selected.map($=>$.viewValue);return this._isRtl()&&q.reverse(),q.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(q){this.disabled||(this.panelOpen?this._handleOpenKeydown(q):this._handleClosedKeydown(q))}_handleClosedKeydown(q){const $=q.keyCode,oe=$===L.JH||$===L.LH||$===L.oh||$===L.SV,Ce=$===L.K5||$===L.L_,Ue=this._keyManager;if(!Ue.isTyping()&&Ce&&!(0,L.Vb)(q)||(this.multiple||q.altKey)&&oe)q.preventDefault(),this.open();else if(!this.multiple){const lt=this.selected;Ue.onKeydown(q);const nt=this.selected;nt&<!==nt&&this._liveAnnouncer.announce(nt.viewValue,1e4)}}_handleOpenKeydown(q){const $=this._keyManager,oe=q.keyCode,Ce=oe===L.JH||oe===L.LH,Ue=$.isTyping();if(Ce&&q.altKey)q.preventDefault(),this.close();else if(Ue||oe!==L.K5&&oe!==L.L_||!$.activeItem||(0,L.Vb)(q))if(!Ue&&this._multiple&&oe===L.A&&q.ctrlKey){q.preventDefault();const lt=this.options.some(nt=>!nt.disabled&&!nt.selected);this.options.forEach(nt=>{nt.disabled||(lt?nt.select():nt.deselect())})}else{const lt=$.activeItemIndex;$.onKeydown(q),this._multiple&&Ce&&q.shiftKey&&$.activeItem&&$.activeItemIndex!==lt&&$.activeItem._selectViaInteraction()}else q.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,j.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(q){if(this._selectionModel.selected.forEach($=>$.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&q)Array.isArray(q),q.forEach($=>this._selectValue($)),this._sortValues();else{const $=this._selectValue(q);$?this._keyManager.updateActiveItem($):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(q){const $=this.options.find(oe=>{if(this._selectionModel.isSelected(oe))return!1;try{return null!=oe.value&&this._compareWith(oe.value,q)}catch(Ce){return!1}});return $&&this._selectionModel.select($),$}_initKeyManager(){this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ge.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,ge.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 q=(0,P.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ge.R)(q)).subscribe($=>{this._onSelect($.source,$.isUserInput),$.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,P.T)(...this.options.map($=>$._stateChanges)).pipe((0,ge.R)(q)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(q,$){const oe=this._selectionModel.isSelected(q);null!=q.value||this._multiple?(oe!==q.selected&&(q.selected?this._selectionModel.select(q):this._selectionModel.deselect(q)),$&&this._keyManager.setActiveItem(q),this.multiple&&(this._sortValues(),$&&this.focus())):(q.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(q.value)),oe!==this._selectionModel.isSelected(q)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const q=this.options.toArray();this._selectionModel.sort(($,oe)=>this.sortComparator?this.sortComparator($,oe,q):q.indexOf($)-q.indexOf(oe)),this.stateChanges.next()}}_propagateChanges(q){let $=null;$=this.multiple?this.selected.map(oe=>oe.value):this.selected?this.selected.value:q,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 q;return!this._panelOpen&&!this.disabled&&(null===(q=this.options)||void 0===q?void 0:q.length)>0}focus(q){this._elementRef.nativeElement.focus(q)}_getPanelAriaLabelledby(){var q;if(this.ariaLabel)return null;const $=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();return this.ariaLabelledby?($?$+" ":"")+this.ariaLabelledby:$}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var q;if(this.ariaLabel)return null;const $=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();let oe=($?$+" ":"")+this._valueId;return this.ariaLabelledby&&(oe+=" "+this.ariaLabelledby),oe}_panelDoneAnimating(q){this.openedChange.emit(q)}setDescribedByIds(q){this._ariaDescribedby=q.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Le.\u0275fac=function(q){return new(q||Le)(y.Y36(M.rL),y.Y36(y.sBO),y.Y36(y.R0b),y.Y36(C.rD),y.Y36(y.SBq),y.Y36(re.Is,8),y.Y36(I.F,8),y.Y36(I.sg,8),y.Y36(o.G_,8),y.Y36(I.a5,10),y.$8M("tabindex"),y.Y36(ze),y.Y36(l.Kd),y.Y36(K,8))},Le.\u0275dir=y.lG2({type:Le,viewQuery:function(q,$){if(1&q&&(y.Gf(de,5),y.Gf(se,5),y.Gf(e.pI,5)),2&q){let oe;y.iGM(oe=y.CRH())&&($.trigger=oe.first),y.iGM(oe=y.CRH())&&($.panel=oe.first),y.iGM(oe=y.CRH())&&($._overlayDir=oe.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:[y.qOj,y.TTD]}),Le})(),Ne=(()=>{class Le extends Fe{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(q,$,oe){const Ce=this._getItemHeight();return Math.min(Math.max(0,Ce*q-$+Ce/2),oe)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ge.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,j.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(q){const $=(0,C.CB)(q,this.options,this.optionGroups),oe=this._getItemHeight();this.panel.nativeElement.scrollTop=0===q&&1===$?0:(0,C.jH)((q+$)*oe,oe,this.panel.nativeElement.scrollTop,Z)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(q){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(q)}_getChangeEvent(q){return new we(this,q)}_calculateOverlayOffsetX(){const q=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),$=this._viewportRuler.getViewportSize(),oe=this._isRtl(),Ce=this.multiple?56:32;let Ue;if(this.multiple)Ue=40;else if(this.disableOptionCentering)Ue=16;else{let ft=this._selectionModel.selected[0]||this.options.first;Ue=ft&&ft.group?32:16}oe||(Ue*=-1);const lt=0-(q.left+Ue-(oe?Ce:0)),nt=q.right+Ue-$.width+(oe?0:Ce);lt>0?Ue+=lt+8:nt>0&&(Ue-=nt+8),this._overlayDir.offsetX=Math.round(Ue),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(q,$,oe){const Ce=this._getItemHeight(),Ue=(Ce-this._triggerRect.height)/2,lt=Math.floor(Z/Ce);let nt;return this.disableOptionCentering?0:(nt=0===this._scrollTop?q*Ce:this._scrollTop===oe?(q-(this._getItemCount()-lt))*Ce+(Ce-(this._getItemCount()*Ce-Z)%Ce):$-Ce/2,Math.round(-1*nt-Ue))}_checkOverlayWithinViewport(q){const $=this._getItemHeight(),oe=this._viewportRuler.getViewportSize(),Ce=this._triggerRect.top-8,Ue=oe.height-this._triggerRect.bottom-8,lt=Math.abs(this._offsetY),ft=Math.min(this._getItemCount()*$,Z)-lt-this._triggerRect.height;ft>Ue?this._adjustPanelUp(ft,Ue):lt>Ce?this._adjustPanelDown(lt,Ce,q):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(q,$){const oe=Math.round(q-$);this._scrollTop-=oe,this._offsetY-=oe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(q,$,oe){const Ce=Math.round(q-$);if(this._scrollTop+=Ce,this._offsetY+=Ce,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=oe)return this._scrollTop=oe,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const q=this._getItemHeight(),$=this._getItemCount(),oe=Math.min($*q,Z),Ue=$*q-oe;let lt;lt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),lt+=(0,C.CB)(lt,this.options,this.optionGroups);const nt=oe/2;this._scrollTop=this._calculateOverlayScroll(lt,nt,Ue),this._offsetY=this._calculateOverlayOffsetY(lt,nt,Ue),this._checkOverlayWithinViewport(Ue)}_getOriginBasedOnOption(){const q=this._getItemHeight(),$=(q-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-$+q/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Le.\u0275fac=function(){let Pe;return function($){return(Pe||(Pe=y.n5z(Le)))($||Le)}}(),Le.\u0275cmp=y.Xpm({type:Le,selectors:[["mat-select"]],contentQueries:function(q,$,oe){if(1&q&&(y.Suo(oe,Ze,5),y.Suo(oe,C.ey,5),y.Suo(oe,C.K7,5)),2&q){let Ce;y.iGM(Ce=y.CRH())&&($.customTrigger=Ce.first),y.iGM(Ce=y.CRH())&&($.options=Ce),y.iGM(Ce=y.CRH())&&($.optionGroups=Ce)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(q,$){1&q&&y.NdJ("keydown",function(Ce){return $._handleKeydown(Ce)})("focus",function(){return $._onFocus()})("blur",function(){return $._onBlur()}),2&q&&(y.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()),y.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:[y._Bn([{provide:o.Eo,useExisting:Le},{provide:C.HF,useExisting:Le}]),y.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(q,$){if(1&q&&(y.F$t(u),y.TgZ(0,"div",0,1),y.NdJ("click",function(){return $.toggle()}),y.TgZ(3,"div",2),y.YNc(4,ye,2,1,"span",3),y.YNc(5,a,3,2,"span",4),y.qZA(),y.TgZ(6,"div",5),y._UZ(7,"div",6),y.qZA(),y.qZA(),y.YNc(8,p,4,14,"ng-template",7),y.NdJ("backdropClick",function(){return $.close()})("attach",function(){return $._onAttached()})("detach",function(){return $.close()})),2&q){const oe=y.MAs(1);y.uIk("aria-owns",$.panelOpen?$.id+"-panel":null),y.xp6(3),y.Q6J("ngSwitch",$.empty),y.uIk("id",$._valueId),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngSwitchCase",!1),y.xp6(3),y.Q6J("cdkConnectedOverlayPanelClass",$._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",$._scrollStrategy)("cdkConnectedOverlayOrigin",oe)("cdkConnectedOverlayOpen",$.panelOpen)("cdkConnectedOverlayPositions",$._positions)("cdkConnectedOverlayMinWidth",null==$._triggerRect?null:$._triggerRect.width)("cdkConnectedOverlayOffsetY",$._offsetY)}},directives:[e.xu,t.RF,t.n9,e.pI,t.ED,t.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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-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;opacity:0}\n'],encapsulation:2,data:{animation:[D.transformPanelWrap,D.transformPanel]},changeDetection:0}),Le})(),ce=(()=>{class Le{}return Le.\u0275fac=function(q){return new(q||Le)},Le.\u0275mod=y.oAB({type:Le}),Le.\u0275inj=y.cJS({providers:[Me],imports:[[t.ez,e.U8,C.Ng,C.BQ],M.ZD,o.lN,C.Ng,C.BQ]}),Le})()},2638:(Ge,Q,m)=>{"use strict";m.d(Q,{JX:()=>be,TM:()=>Re,Rh:()=>ve,SJ:()=>ze});var e=m(925),t=m(5303),y=m(9808),C=m(5e3),o=m(508),M=m(3191),l=m(1159),R=m(7579),s=m(4968),L=m(6451),I=m(9300),A=m(4004),E=m(9718),P=m(2722),w=m(1884),V=m(5698),j=m(8675),W=m(8372),te=m(1777),ee=m(6360),ge=m(5664),le=m(226);const re=["*"];function de(Oe,K){if(1&Oe){const Me=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(Me),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Oe){const Me=C.oxw();C.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function se(Oe,K){1&Oe&&(C.TgZ(0,"mat-drawer-content"),C.Hsn(1,2),C.qZA())}const ye=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],v=["mat-drawer","mat-drawer-content","*"];function i(Oe,K){if(1&Oe){const Me=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(Me),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Oe){const Me=C.oxw();C.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function a(Oe,K){1&Oe&&(C.TgZ(0,"mat-sidenav-content",3),C.Hsn(1,2),C.qZA())}const p=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],u=["mat-sidenav","mat-sidenav-content","*"],D={transformDrawer:(0,te.X$)("transform",[(0,te.SB)("open, open-instant",(0,te.oB)({transform:"none",visibility:"visible"})),(0,te.SB)("void",(0,te.oB)({"box-shadow":"none",visibility:"hidden"})),(0,te.eR)("void => open-instant",(0,te.jt)("0ms")),(0,te.eR)("void <=> open, open-instant => void",(0,te.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},x=new C.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function b(){return!1}}),r=new C.OlP("MAT_DRAWER_CONTAINER");let Z=(()=>{class Oe extends t.PQ{constructor(Me,we,z,Ze,vt){super(z,Ze,vt),this._changeDetectorRef=Me,this._container=we}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>U)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Me,we){2&Me&&C.Udp("margin-left",we._container._contentMargins.left,"px")("margin-right",we._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,we){1&Me&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Oe})(),N=(()=>{class Oe{constructor(Me,we,z,Ze,vt,Fe,Ne,ce){this._elementRef=Me,this._focusTrapFactory=we,this._focusMonitor=z,this._platform=Ze,this._ngZone=vt,this._interactivityChecker=Fe,this._doc=Ne,this._container=ce,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new R.x,this._animationEnd=new R.x,this._animationState="void",this.openedChange=new C.vpe(!0),this._openedStream=this.openedChange.pipe((0,I.h)(Le=>Le),(0,A.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,I.h)(Le=>Le.fromState!==Le.toState&&0===Le.toState.indexOf("open")),(0,E.h)(void 0)),this._closedStream=this.openedChange.pipe((0,I.h)(Le=>!Le),(0,A.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,I.h)(Le=>Le.fromState!==Le.toState&&"void"===Le.toState),(0,E.h)(void 0)),this._destroyed=new R.x,this.onPositionChanged=new C.vpe,this._modeChanged=new R.x,this.openedChange.subscribe(Le=>{Le?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,s.R)(this._elementRef.nativeElement,"keydown").pipe((0,I.h)(Le=>Le.keyCode===l.hY&&!this.disableClose&&!(0,l.Vb)(Le)),(0,P.R)(this._destroyed)).subscribe(Le=>this._ngZone.run(()=>{this.close(),Le.stopPropagation(),Le.preventDefault()}))}),this._animationEnd.pipe((0,w.x)((Le,Pe)=>Le.fromState===Pe.fromState&&Le.toState===Pe.toState)).subscribe(Le=>{const{fromState:Pe,toState:q}=Le;(0===q.indexOf("open")&&"void"===Pe||"void"===q&&0===Pe.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Me){(Me="end"===Me?"end":"start")!=this._position&&(this._position=Me,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Me){this._mode=Me,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Me){this._disableClose=(0,M.Ig)(Me)}get autoFocus(){const Me=this._autoFocus;return null==Me?"side"===this.mode?"dialog":"first-tabbable":Me}set autoFocus(Me){("true"===Me||"false"===Me)&&(Me=(0,M.Ig)(Me)),this._autoFocus=Me}get opened(){return this._opened}set opened(Me){this.toggle((0,M.Ig)(Me))}_forceFocus(Me,we){this._interactivityChecker.isFocusable(Me)||(Me.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Me.addEventListener("blur",()=>Me.removeAttribute("tabindex")),Me.addEventListener("mousedown",()=>Me.removeAttribute("tabindex"))})),Me.focus(we)}_focusByCssSelector(Me,we){let z=this._elementRef.nativeElement.querySelector(Me);z&&this._forceFocus(z,we)}_takeFocus(){if(!this._focusTrap)return;const Me=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(we=>{!we&&"function"==typeof this._elementRef.nativeElement.focus&&Me.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Me){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Me):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){var Me;const we=null===(Me=this._doc)||void 0===Me?void 0:Me.activeElement;return!!we&&this._elementRef.nativeElement.contains(we)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Me){return this.toggle(!0,Me)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Me=!this.opened,we){Me&&we&&(this._openedVia=we);const z=this._setOpen(Me,!Me&&this._isFocusWithinDrawer(),this._openedVia||"program");return Me||(this._openedVia=null),z}_setOpen(Me,we,z){return this._opened=Me,Me?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",we&&this._restoreFocus(z)),this._updateFocusTrapState(),new Promise(Ze=>{this.openedChange.pipe((0,V.q)(1)).subscribe(vt=>Ze(vt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(C.SBq),C.Y36(ge.qV),C.Y36(ge.tE),C.Y36(e.t4),C.Y36(C.R0b),C.Y36(ge.ic),C.Y36(y.K0,8),C.Y36(r,8))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Me,we){1&Me&&C.WFA("@transform.start",function(Ze){return we._animationStarted.next(Ze)})("@transform.done",function(Ze){return we._animationEnd.next(Ze)}),2&Me&&(C.uIk("align",null),C.d8E("@transform",we._animationState),C.ekj("mat-drawer-end","end"===we.position)("mat-drawer-over","over"===we.mode)("mat-drawer-push","push"===we.mode)("mat-drawer-side","side"===we.mode)("mat-drawer-opened",we.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:re,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Me,we){1&Me&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[D.transformDrawer]},changeDetection:0}),Oe})(),U=(()=>{class Oe{constructor(Me,we,z,Ze,vt,Fe=!1,Ne){this._dir=Me,this._element=we,this._ngZone=z,this._changeDetectorRef=Ze,this._animationMode=Ne,this._drawers=new C.n_E,this.backdropClick=new C.vpe,this._destroyed=new R.x,this._doCheckSubject=new R.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new R.x,Me&&Me.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),vt.change().pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Fe}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Me){this._autosize=(0,M.Ig)(Me)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Me){this._backdropOverride=null==Me?null:(0,M.Ig)(Me)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,j.O)(this._allDrawers),(0,P.R)(this._destroyed)).subscribe(Me=>{this._drawers.reset(Me.filter(we=>!we._container||we._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,j.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Me=>{this._watchDrawerToggle(Me),this._watchDrawerPosition(Me),this._watchDrawerMode(Me)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,W.b)(10),(0,P.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(Me=>Me.open())}close(){this._drawers.forEach(Me=>Me.close())}updateContentMargins(){let Me=0,we=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Me+=this._left._getWidth();else if("push"==this._left.mode){const z=this._left._getWidth();Me+=z,we-=z}if(this._right&&this._right.opened)if("side"==this._right.mode)we+=this._right._getWidth();else if("push"==this._right.mode){const z=this._right._getWidth();we+=z,Me-=z}Me=Me||null,we=we||null,(Me!==this._contentMargins.left||we!==this._contentMargins.right)&&(this._contentMargins={left:Me,right:we},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Me){Me._animationStarted.pipe((0,I.h)(we=>we.fromState!==we.toState),(0,P.R)(this._drawers.changes)).subscribe(we=>{"open-instant"!==we.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Me.mode&&Me.openedChange.pipe((0,P.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Me.opened))}_watchDrawerPosition(Me){!Me||Me.onPositionChanged.pipe((0,P.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,V.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Me){Me&&Me._modeChanged.pipe((0,P.R)((0,L.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Me){const we=this._element.nativeElement.classList,z="mat-drawer-container-has-open";Me?we.add(z):we.remove(z)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Me=>{"end"==Me.position?this._end=Me:this._start=Me}),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(Me=>Me&&!Me.disableClose&&this._canHaveBackdrop(Me)).forEach(Me=>Me._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Me){return"side"!==Me.mode||!!this._backdropOverride}_isDrawerOpen(Me){return null!=Me&&Me.opened}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(le.Is,8),C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(C.sBO),C.Y36(t.rL),C.Y36(x),C.Y36(ee.Qb,8))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-drawer-container"]],contentQueries:function(Me,we,z){if(1&Me&&(C.Suo(z,Z,5),C.Suo(z,N,5)),2&Me){let Ze;C.iGM(Ze=C.CRH())&&(we._content=Ze.first),C.iGM(Ze=C.CRH())&&(we._allDrawers=Ze)}},viewQuery:function(Me,we){if(1&Me&&C.Gf(Z,5),2&Me){let z;C.iGM(z=C.CRH())&&(we._userContent=z.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Me,we){2&Me&&C.ekj("mat-drawer-container-explicit-backdrop",we._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[C._Bn([{provide:r,useExisting:Oe}])],ngContentSelectors:v,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(Me,we){1&Me&&(C.F$t(ye),C.YNc(0,de,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,se,2,0,"mat-drawer-content",1)),2&Me&&(C.Q6J("ngIf",we.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!we._content))},directives:[y.O5,Z],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Oe})(),ve=(()=>{class Oe extends Z{constructor(Me,we,z,Ze,vt){super(Me,we,z,Ze,vt)}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>Re)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Me,we){2&Me&&C.Udp("margin-left",we._container._contentMargins.left,"px")("margin-right",we._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,we){1&Me&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Oe})(),be=(()=>{class Oe extends N{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Me){this._fixedInViewport=(0,M.Ig)(Me)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Me){this._fixedTopGap=(0,M.su)(Me)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Me){this._fixedBottomGap=(0,M.su)(Me)}}return Oe.\u0275fac=function(){let K;return function(we){return(K||(K=C.n5z(Oe)))(we||Oe)}}(),Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Me,we){2&Me&&(C.uIk("align",null),C.Udp("top",we.fixedInViewport?we.fixedTopGap:null,"px")("bottom",we.fixedInViewport?we.fixedBottomGap:null,"px"),C.ekj("mat-drawer-end","end"===we.position)("mat-drawer-over","over"===we.mode)("mat-drawer-push","push"===we.mode)("mat-drawer-side","side"===we.mode)("mat-drawer-opened",we.opened)("mat-sidenav-fixed",we.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[C.qOj],ngContentSelectors:re,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Me,we){1&Me&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[D.transformDrawer]},changeDetection:0}),Oe})(),Re=(()=>{class Oe extends U{}return Oe.\u0275fac=function(){let K;return function(we){return(K||(K=C.n5z(Oe)))(we||Oe)}}(),Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-sidenav-container"]],contentQueries:function(Me,we,z){if(1&Me&&(C.Suo(z,ve,5),C.Suo(z,be,5)),2&Me){let Ze;C.iGM(Ze=C.CRH())&&(we._content=Ze.first),C.iGM(Ze=C.CRH())&&(we._allDrawers=Ze)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Me,we){2&Me&&C.ekj("mat-drawer-container-explicit-backdrop",we._backdropOverride)},exportAs:["matSidenavContainer"],features:[C._Bn([{provide:r,useExisting:Oe}]),C.qOj],ngContentSelectors:u,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(Me,we){1&Me&&(C.F$t(p),C.YNc(0,i,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,a,2,0,"mat-sidenav-content",1)),2&Me&&(C.Q6J("ngIf",we.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!we._content))},directives:[y.O5,ve,t.PQ],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Oe})(),ze=(()=>{class Oe{}return Oe.\u0275fac=function(Me){return new(Me||Oe)},Oe.\u0275mod=C.oAB({type:Oe}),Oe.\u0275inj=C.cJS({imports:[[y.ez,o.BQ,e.ud,t.ZD],t.ZD,o.BQ]}),Oe})()},2368:(Ge,Q,m)=>{"use strict";m.d(Q,{Rr:()=>W,rP:()=>le});var e=m(7144),t=m(5e3),y=m(508),C=m(3191),o=m(3075),M=m(6360),l=m(5664);const R=["thumbContainer"],s=["toggleBar"],L=["input"],I=function(re){return{enterDuration:re}},A=["*"],E=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const w={provide:o.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class V{constructor(de,se){this.source=de,this.checked=se}}const j=(0,y.sb)((0,y.pj)((0,y.Kr)((0,y.Id)(class{constructor(re){this._elementRef=re}}))));let W=(()=>{class re extends j{constructor(se,ye,v,i,a,p){super(se),this._focusMonitor=ye,this._changeDetectorRef=v,this.defaults=a,this._onChange=u=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++P,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 t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===p}get required(){return this._required}set required(se){this._required=(0,C.Ig)(se)}get checked(){return this._checked}set checked(se){this._checked=(0,C.Ig)(se),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(se=>{se||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(se){se.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(se){se.stopPropagation()}writeValue(se){this.checked=!!se}registerOnChange(se){this._onChange=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se,this._changeDetectorRef.markForCheck()}focus(se,ye){ye?this._focusMonitor.focusVia(this._inputElement,ye,se):this._inputElement.nativeElement.focus(se)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new V(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return re.\u0275fac=function(se){return new(se||re)(t.Y36(t.SBq),t.Y36(l.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(E),t.Y36(M.Qb,8))},re.\u0275cmp=t.Xpm({type:re,selectors:[["mat-slide-toggle"]],viewQuery:function(se,ye){if(1&se&&(t.Gf(R,5),t.Gf(s,5),t.Gf(L,5)),2&se){let v;t.iGM(v=t.CRH())&&(ye._thumbEl=v.first),t.iGM(v=t.CRH())&&(ye._thumbBarEl=v.first),t.iGM(v=t.CRH())&&(ye._inputElement=v.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(se,ye){2&se&&(t.Ikx("id",ye.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checked",ye.checked)("mat-disabled",ye.disabled)("mat-slide-toggle-label-before","before"==ye.labelPosition)("_mat-animation-noopable",ye._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:[t._Bn([w]),t.qOj],ngContentSelectors:A,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(se,ye){if(1&se&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"div",2,3),t.TgZ(4,"input",4,5),t.NdJ("change",function(i){return ye._onChangeEvent(i)})("click",function(i){return ye._onInputClick(i)}),t.qZA(),t.TgZ(6,"div",6,7),t._UZ(8,"div",8),t.TgZ(9,"div",9),t._UZ(10,"div",10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"span",11,12),t.NdJ("cdkObserveContent",function(){return ye._onLabelTextChange()}),t.TgZ(13,"span",13),t._uU(14,"\xa0"),t.qZA(),t.Hsn(15),t.qZA(),t.qZA()),2&se){const v=t.MAs(1),i=t.MAs(12);t.uIk("for",ye.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(2),t.Q6J("id",ye.inputId)("required",ye.required)("tabIndex",ye.tabIndex)("checked",ye.checked)("disabled",ye.disabled),t.uIk("name",ye.name)("aria-checked",ye.checked.toString())("aria-label",ye.ariaLabel)("aria-labelledby",ye.ariaLabelledby)("aria-describedby",ye.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",v)("matRippleDisabled",ye.disableRipple||ye.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,I,ye._noopAnimations?0:150))}},directives:[y.wG,e.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-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%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),re})(),ge=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})(),le=(()=>{class re{}return re.\u0275fac=function(se){return new(se||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({imports:[[ge,y.si,y.BQ,e.Q8],ge,y.BQ]}),re})()},7261:(Ge,Q,m)=>{"use strict";m.d(Q,{Ve:()=>de,ux:()=>ye,ZX:()=>re});var e=m(9776),t=m(7429),y=m(9808),C=m(5e3),o=m(508),M=m(7423),l=m(7579),R=m(5698),s=m(2722),L=m(1777),I=m(925),A=m(5113),E=m(5664);function P(v,i){if(1&v){const a=C.EpF();C.TgZ(0,"div",1),C.TgZ(1,"button",2),C.NdJ("click",function(){return C.CHM(a),C.oxw().action()}),C._uU(2),C.qZA(),C.qZA()}if(2&v){const a=C.oxw();C.xp6(2),C.Oqu(a.data.action)}}function w(v,i){}const V=new C.OlP("MatSnackBarData");class j{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const W=Math.pow(2,31)-1;class te{constructor(i,a){this._overlayRef=a,this._afterDismissed=new l.x,this._afterOpened=new l.x,this._onAction=new l.x,this._dismissedByAction=!1,this.containerInstance=i,this.onAction().subscribe(()=>this.dismiss()),i._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()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,W))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let ee=(()=>{class v{constructor(a,p){this.snackBarRef=a,this.data=p}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return v.\u0275fac=function(a){return new(a||v)(C.Y36(te),C.Y36(V))},v.\u0275cmp=C.Xpm({type:v,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(a,p){1&a&&(C.TgZ(0,"span"),C._uU(1),C.qZA(),C.YNc(2,P,3,1,"div",0)),2&a&&(C.xp6(1),C.Oqu(p.data.message),C.xp6(1),C.Q6J("ngIf",p.hasAction))},directives:[y.O5,M.lW],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}\n"],encapsulation:2,changeDetection:0}),v})();const ge={snackBarState:(0,L.X$)("state",[(0,L.SB)("void, hidden",(0,L.oB)({transform:"scale(0.8)",opacity:0})),(0,L.SB)("visible",(0,L.oB)({transform:"scale(1)",opacity:1})),(0,L.eR)("* => visible",(0,L.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,L.eR)("* => void, * => hidden",(0,L.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,L.oB)({opacity:0})))])};let le=(()=>{class v extends t.en{constructor(a,p,u,_,D){super(),this._ngZone=a,this._elementRef=p,this._changeDetectorRef=u,this._platform=_,this.snackBarConfig=D,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new l.x,this._onExit=new l.x,this._onEnter=new l.x,this._animationState="void",this.attachDomPortal=O=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(O)),this._live="assertive"!==D.politeness||D.announcementMessage?"off"===D.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}attachTemplatePortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}onAnimationEnd(a){const{fromState:p,toState:u}=a;if(("void"===u&&"void"!==p||"hidden"===u)&&this._completeExit(),"visible"===u){const _=this._onEnter;this._ngZone.run(()=>{_.next(),_.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return 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,R.q)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const a=this._elementRef.nativeElement,p=this.snackBarConfig.panelClass;p&&(Array.isArray(p)?p.forEach(u=>a.classList.add(u)):a.classList.add(p)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const a=this._elementRef.nativeElement.querySelector("[aria-hidden]"),p=this._elementRef.nativeElement.querySelector("[aria-live]");if(a&&p){let u=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)&&(u=document.activeElement),a.removeAttribute("aria-hidden"),p.appendChild(a),null==u||u.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return v.\u0275fac=function(a){return new(a||v)(C.Y36(C.R0b),C.Y36(C.SBq),C.Y36(C.sBO),C.Y36(I.t4),C.Y36(j))},v.\u0275cmp=C.Xpm({type:v,selectors:[["snack-bar-container"]],viewQuery:function(a,p){if(1&a&&C.Gf(t.Pl,7),2&a){let u;C.iGM(u=C.CRH())&&(p._portalOutlet=u.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,p){1&a&&C.WFA("@state.done",function(_){return p.onAnimationEnd(_)}),2&a&&C.d8E("@state",p._animationState)},features:[C.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,p){1&a&&(C.TgZ(0,"div",0),C.YNc(1,w,0,0,"ng-template",1),C.qZA(),C._UZ(2,"div")),2&a&&(C.xp6(2),C.uIk("aria-live",p._live)("role",p._role))},directives:[t.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:[ge.snackBarState]}}),v})(),re=(()=>{class v{}return v.\u0275fac=function(a){return new(a||v)},v.\u0275mod=C.oAB({type:v}),v.\u0275inj=C.cJS({imports:[[e.U8,t.eL,y.ez,M.ot,o.BQ],o.BQ]}),v})();const de=new C.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function se(){return new j}});let ye=(()=>{class v{constructor(a,p,u,_,D,O){this._overlay=a,this._live=p,this._injector=u,this._breakpointObserver=_,this._parentSnackBar=D,this._defaultConfig=O,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=ee,this.snackBarContainerComponent=le,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const a=this._parentSnackBar;return a?a._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(a){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=a:this._snackBarRefAtThisLevel=a}openFromComponent(a,p){return this._attach(a,p)}openFromTemplate(a,p){return this._attach(a,p)}open(a,p="",u){const _=Object.assign(Object.assign({},this._defaultConfig),u);return _.data={message:a,action:p},_.announcementMessage===a&&(_.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,_)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(a,p){const _=C.zs3.create({parent:p&&p.viewContainerRef&&p.viewContainerRef.injector||this._injector,providers:[{provide:j,useValue:p}]}),D=new t.C5(this.snackBarContainerComponent,p.viewContainerRef,_),O=a.attach(D);return O.instance.snackBarConfig=p,O.instance}_attach(a,p){const u=Object.assign(Object.assign(Object.assign({},new j),this._defaultConfig),p),_=this._createOverlay(u),D=this._attachSnackBarContainer(_,u),O=new te(D,_);if(a instanceof C.Rgc){const x=new t.UE(a,null,{$implicit:u.data,snackBarRef:O});O.instance=D.attachTemplatePortal(x)}else{const x=this._createInjector(u,O),r=new t.C5(a,void 0,x),b=D.attachComponentPortal(r);O.instance=b.instance}return this._breakpointObserver.observe(A.u3.HandsetPortrait).pipe((0,s.R)(_.detachments())).subscribe(x=>{_.overlayElement.classList.toggle(this.handsetCssClass,x.matches)}),u.announcementMessage&&D._onAnnounce.subscribe(()=>{this._live.announce(u.announcementMessage,u.politeness)}),this._animateSnackBar(O,u),this._openedSnackBarRef=O,this._openedSnackBarRef}_animateSnackBar(a,p){a.afterDismissed().subscribe(()=>{this._openedSnackBarRef==a&&(this._openedSnackBarRef=null),p.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter(),p.duration&&p.duration>0&&a.afterOpened().subscribe(()=>a._dismissAfter(p.duration))}_createOverlay(a){const p=new e.X_;p.direction=a.direction;let u=this._overlay.position().global();const _="rtl"===a.direction,D="left"===a.horizontalPosition||"start"===a.horizontalPosition&&!_||"end"===a.horizontalPosition&&_,O=!D&&"center"!==a.horizontalPosition;return D?u.left("0"):O?u.right("0"):u.centerHorizontally(),"top"===a.verticalPosition?u.top("0"):u.bottom("0"),p.positionStrategy=u,this._overlay.create(p)}_createInjector(a,p){return C.zs3.create({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:te,useValue:p},{provide:V,useValue:a.data}]})}}return v.\u0275fac=function(a){return new(a||v)(C.LFG(e.aV),C.LFG(E.Kd),C.LFG(C.zs3),C.LFG(A.Yg),C.LFG(v,12),C.LFG(de))},v.\u0275prov=C.Yz7({token:v,factory:v.\u0275fac,providedIn:re}),v})()},4847:(Ge,Q,m)=>{"use strict";m.d(Q,{YE:()=>de,nU:()=>v,JX:()=>i});var e=m(5e3),t=m(3191),y=m(1159),C=m(508),o=m(7579),M=m(6451),l=m(1777),R=m(5664),s=m(9808);const L=["mat-sort-header",""];function I(a,p){if(1&a){const u=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&a){const u=e.oxw();e.Q6J("@arrowOpacity",u._getArrowViewState())("@arrowPosition",u._getArrowViewState())("@allowChildren",u._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",u._getArrowDirectionState())}}const A=["*"],E=C.mZ.ENTERING+" "+C.yN.STANDARD_CURVE,P={indicator:(0,l.X$)("indicator",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"translateY(0px)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"translateY(10px)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),leftPointer:(0,l.X$)("leftPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),rightPointer:(0,l.X$)("rightPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),arrowOpacity:(0,l.X$)("arrowOpacity",[(0,l.SB)("desc-to-active, asc-to-active, active",(0,l.oB)({opacity:1})),(0,l.SB)("desc-to-hint, asc-to-hint, hint",(0,l.oB)({opacity:.54})),(0,l.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,l.oB)({opacity:0})),(0,l.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,l.jt)("0ms")),(0,l.eR)("* <=> *",(0,l.jt)(E))]),arrowPosition:(0,l.X$)("arrowPosition",[(0,l.eR)("* => desc-to-hint, * => desc-to-active",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(-25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-desc, * => active-to-desc",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(25%)"})]))),(0,l.eR)("* => asc-to-hint, * => asc-to-active",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-asc, * => active-to-asc",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(-25%)"})]))),(0,l.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,l.oB)({transform:"translateY(0)"})),(0,l.SB)("hint-to-desc, active-to-desc, desc",(0,l.oB)({transform:"translateY(-25%)"})),(0,l.SB)("hint-to-asc, active-to-asc, asc",(0,l.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,l.X$)("allowChildren",[(0,l.eR)("* <=> *",[(0,l.IO)("@*",(0,l.pV)(),{optional:!0})])])};let te=(()=>{class a{constructor(){this.changes=new o.x}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const ge={provide:te,deps:[[new e.FiY,new e.tp0,te]],useFactory:function ee(a){return a||new te}},le=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),re=(0,C.dB)((0,C.Id)(class{}));let de=(()=>{class a extends re{constructor(u){super(),this._defaultOptions=u,this.sortables=new Map,this._stateChanges=new o.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(u){this._direction=u}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}register(u){this.sortables.set(u.id,u)}deregister(u){this.sortables.delete(u.id)}sort(u){this.active!=u.id?(this.active=u.id,this.direction=u.start?u.start:this.start):this.direction=this.getNextSortDirection(u),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(u){var _,D,O;if(!u)return"";const x=null!==(D=null!==(_=null==u?void 0:u.disableClear)&&void 0!==_?_:this.disableClear)&&void 0!==D?D:!!(null===(O=this._defaultOptions)||void 0===O?void 0:O.disableClear);let r=function se(a,p){let u=["asc","desc"];return"desc"==a&&u.reverse(),p||u.push(""),u}(u.start||this.start,x),b=r.indexOf(this.direction)+1;return b>=r.length&&(b=0),r[b]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return a.\u0275fac=function(u){return new(u||a)(e.Y36(le,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),a})();const ye=(0,C.Id)(class{});let v=(()=>{class a extends ye{constructor(u,_,D,O,x,r,b){super(),this._intl=u,this._changeDetectorRef=_,this._sort=D,this._columnDef=O,this._focusMonitor=x,this._elementRef=r,this._ariaDescriber=b,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(u){this._updateSortActionDescription(u)}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}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('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(u=>{const _=!!u;_!==this._showIndicatorHint&&(this._setIndicatorHintVisible(_),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(u){this._isDisabled()&&u||(this._showIndicatorHint=u,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(u){this._viewState=u||{},this._disableViewStateAnimation&&(this._viewState={toState:u.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(u){!this._isDisabled()&&(u.keyCode===y.L_||u.keyCode===y.K5)&&(u.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 u=this._viewState.fromState;return(u?`${u}-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(u){var _,D;this._sortButton&&(null===(_=this._ariaDescriber)||void 0===_||_.removeDescription(this._sortButton,this._sortActionDescription),null===(D=this._ariaDescriber)||void 0===D||D.describe(this._sortButton,u)),this._sortActionDescription=u}_handleStateChanges(){this._rerenderSubscription=(0,M.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 a.\u0275fac=function(u){return new(u||a)(e.Y36(te),e.Y36(e.sBO),e.Y36(de,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(R.tE),e.Y36(e.SBq),e.Y36(R.$s,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(u,_){1&u&&e.NdJ("click",function(){return _._handleClick()})("keydown",function(O){return _._handleKeydown(O)})("mouseenter",function(){return _._setIndicatorHintVisible(!0)})("mouseleave",function(){return _._setIndicatorHintVisible(!1)}),2&u&&(e.uIk("aria-sort",_._getAriaSortAttribute()),e.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:[e.qOj],attrs:L,ngContentSelectors:A,decls:4,vars:6,consts:[["role","button",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(u,_){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,I,6,6,"div",2),e.qZA()),2&u&&(e.ekj("mat-sort-header-sorted",_._isSorted())("mat-sort-header-position-before","before"==_.arrowPosition),e.uIk("tabindex",_._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",_._renderArrow()))},directives:[s.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:[P.indicator,P.leftPointer,P.rightPointer,P.arrowOpacity,P.arrowPosition,P.allowChildren]},changeDetection:0}),a})(),i=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({providers:[ge],imports:[[s.ez,C.BQ]]}),a})()},5615:(Ge,Q,m)=>{"use strict";m.d(Q,{C0:()=>we,VY:()=>N,Vq:()=>Fe,z9:()=>K,T5:()=>Le,Ic:()=>Ne,fd:()=>ce});var e=m(7429),t=m(1555),y=m(9808),C=m(5e3),o=m(7423),M=m(508),l=m(5245),R=m(7579),s=m(727),L=m(5664),I=m(3900),A=m(4004),E=m(8675),P=m(2722),w=m(1884),V=m(1777),j=m(226);function W(Pe,q){if(1&Pe&&C.GkF(0,8),2&Pe){const $=C.oxw();C.Q6J("ngTemplateOutlet",$.iconOverrides[$.state])("ngTemplateOutletContext",$._getIconContext())}}function te(Pe,q){if(1&Pe&&(C.TgZ(0,"span"),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._getDefaultTextForState($.state))}}function ee(Pe,q){if(1&Pe&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._intl.completedLabel)}}function ge(Pe,q){if(1&Pe&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._intl.editableLabel)}}function le(Pe,q){if(1&Pe&&(C.TgZ(0,"mat-icon"),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._getDefaultTextForState($.state))}}function re(Pe,q){if(1&Pe&&(C.ynx(0,9),C.YNc(1,te,2,1,"span",10),C.YNc(2,ee,2,1,"span",11),C.YNc(3,ge,2,1,"span",11),C.YNc(4,le,2,1,"mat-icon",12),C.BQk()),2&Pe){const $=C.oxw();C.Q6J("ngSwitch",$.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===$.state),C.xp6(1),C.Q6J("ngIf","edit"===$.state)}}function de(Pe,q){if(1&Pe&&(C.TgZ(0,"div",14),C.GkF(1,15),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",$._templateLabel().template)}}function se(Pe,q){if(1&Pe&&(C.TgZ(0,"div",14),C._uU(1),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Oqu($.label)}}function ye(Pe,q){if(1&Pe&&(C.TgZ(0,"div",16),C._uU(1),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Oqu($._intl.optionalLabel)}}function v(Pe,q){if(1&Pe&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Oqu($.errorMessage)}}function i(Pe,q){}function a(Pe,q){if(1&Pe&&(C.Hsn(0),C.YNc(1,i,0,0,"ng-template",0)),2&Pe){const $=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",$._portal)}}const p=["*"];function u(Pe,q){1&Pe&&C._UZ(0,"div",9)}const _=function(Pe,q){return{step:Pe,i:q}};function D(Pe,q){if(1&Pe&&(C.ynx(0),C.GkF(1,7),C.YNc(2,u,1,0,"div",8),C.BQk()),2&Pe){const $=q.$implicit,oe=q.index,Ce=q.last;C.oxw(2);const Ue=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Ue)("ngTemplateOutletContext",C.WLB(3,_,$,oe)),C.xp6(1),C.Q6J("ngIf",!Ce)}}function O(Pe,q){if(1&Pe){const $=C.EpF();C.TgZ(0,"div",10),C.NdJ("@horizontalStepTransition.done",function(Ce){return C.CHM($),C.oxw(2)._animationDone.next(Ce)}),C.GkF(1,11),C.qZA()}if(2&Pe){const $=q.$implicit,oe=q.index,Ce=C.oxw(2);C.Q6J("@horizontalStepTransition",Ce._getAnimationDirection(oe))("id",Ce._getStepContentId(oe)),C.uIk("aria-labelledby",Ce._getStepLabelId(oe))("aria-expanded",Ce.selectedIndex===oe),C.xp6(1),C.Q6J("ngTemplateOutlet",$.content)}}function x(Pe,q){if(1&Pe&&(C.ynx(0),C.TgZ(1,"div",3),C.YNc(2,D,3,6,"ng-container",4),C.qZA(),C.TgZ(3,"div",5),C.YNc(4,O,2,5,"div",6),C.qZA(),C.BQk()),2&Pe){const $=C.oxw();C.xp6(2),C.Q6J("ngForOf",$.steps),C.xp6(2),C.Q6J("ngForOf",$.steps)}}function r(Pe,q){if(1&Pe){const $=C.EpF();C.TgZ(0,"div",13),C.GkF(1,7),C.TgZ(2,"div",14),C.TgZ(3,"div",15),C.NdJ("@verticalStepTransition.done",function(Ce){return C.CHM($),C.oxw(2)._animationDone.next(Ce)}),C.TgZ(4,"div",16),C.GkF(5,11),C.qZA(),C.qZA(),C.qZA(),C.qZA()}if(2&Pe){const $=q.$implicit,oe=q.index,Ce=q.last,Ue=C.oxw(2),lt=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",lt)("ngTemplateOutletContext",C.WLB(9,_,$,oe)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!Ce),C.xp6(1),C.Q6J("@verticalStepTransition",Ue._getAnimationDirection(oe))("id",Ue._getStepContentId(oe)),C.uIk("aria-labelledby",Ue._getStepLabelId(oe))("aria-expanded",Ue.selectedIndex===oe),C.xp6(2),C.Q6J("ngTemplateOutlet",$.content)}}function b(Pe,q){if(1&Pe&&(C.ynx(0),C.YNc(1,r,6,12,"div",12),C.BQk()),2&Pe){const $=C.oxw();C.xp6(1),C.Q6J("ngForOf",$.steps)}}function Z(Pe,q){if(1&Pe){const $=C.EpF();C.TgZ(0,"mat-step-header",17),C.NdJ("click",function(){return C.CHM($).step.select()})("keydown",function(Ce){return C.CHM($),C.oxw()._onKeydown(Ce)}),C.qZA()}if(2&Pe){const $=q.step,oe=q.i,Ce=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===Ce.orientation)("mat-vertical-stepper-header","vertical"===Ce.orientation),C.Q6J("tabIndex",Ce._getFocusIndex()===oe?0:-1)("id",Ce._getStepLabelId(oe))("index",oe)("state",Ce._getIndicatorType(oe,$.state))("label",$.stepLabel||$.label)("selected",Ce.selectedIndex===oe)("active",Ce._stepIsNavigable(oe,$))("optional",$.optional)("errorMessage",$.errorMessage)("iconOverrides",Ce._iconOverrides)("disableRipple",Ce.disableRipple||!Ce._stepIsNavigable(oe,$))("color",$.color||Ce.color),C.uIk("aria-posinset",oe+1)("aria-setsize",Ce.steps.length)("aria-controls",Ce._getStepContentId(oe))("aria-selected",Ce.selectedIndex==oe)("aria-label",$.ariaLabel||null)("aria-labelledby",!$.ariaLabel&&$.ariaLabelledby?$.ariaLabelledby:null)("aria-disabled",!Ce._stepIsNavigable(oe,$)||null)}}let N=(()=>{class Pe extends t.u6{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["","matStepLabel",""]],features:[C.qOj]}),Pe})(),U=(()=>{class Pe{constructor(){this.changes=new R.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Pe.\u0275fac=function($){return new($||Pe)},Pe.\u0275prov=C.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const be={provide:U,deps:[[new C.FiY,new C.tp0,U]],useFactory:function ve(Pe){return Pe||new U}},Re=(0,M.pj)(class extends t.KL{constructor(q){super(q)}},"primary");let ze=(()=>{class Pe extends Re{constructor($,oe,Ce,Ue){super(Ce),this._intl=$,this._focusMonitor=oe,this._intlSubscription=$.changes.subscribe(()=>Ue.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus($,oe){$?this._focusMonitor.focusVia(this._elementRef,$,oe):this._elementRef.nativeElement.focus(oe)}_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 Pe.\u0275fac=function($){return new($||Pe)(C.Y36(U),C.Y36(L.tE),C.Y36(C.SBq),C.Y36(C.sBO))},Pe.\u0275cmp=C.Xpm({type:Pe,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:[C.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"],[4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],[4,"ngSwitchDefault"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function($,oe){1&$&&(C._UZ(0,"div",0),C.TgZ(1,"div"),C.TgZ(2,"div",1),C.YNc(3,W,1,2,"ng-container",2),C.YNc(4,re,5,4,"ng-container",3),C.qZA(),C.qZA(),C.TgZ(5,"div",4),C.YNc(6,de,2,1,"div",5),C.YNc(7,se,2,1,"div",5),C.YNc(8,ye,2,1,"div",6),C.YNc(9,v,2,1,"div",7),C.qZA()),2&$&&(C.Q6J("matRippleTrigger",oe._getHostElement())("matRippleDisabled",oe.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",oe.state," mat-step-icon"),C.ekj("mat-step-icon-selected",oe.selected),C.xp6(1),C.Q6J("ngSwitch",!(!oe.iconOverrides||!oe.iconOverrides[oe.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",oe.active)("mat-step-label-selected",oe.selected)("mat-step-label-error","error"==oe.state),C.xp6(1),C.Q6J("ngIf",oe._templateLabel()),C.xp6(1),C.Q6J("ngIf",oe._stringLabel()),C.xp6(1),C.Q6J("ngIf",oe.optional&&"error"!=oe.state),C.xp6(1),C.Q6J("ngIf","error"==oe.state))},directives:[M.wG,y.RF,y.n9,y.ED,y.O5,y.tP,l.Hw],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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.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}),Pe})();const Oe={horizontalStepTransition:(0,V.X$)("horizontalStepTransition",[(0,V.SB)("previous",(0,V.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,V.SB)("current",(0,V.oB)({transform:"none",visibility:"inherit"})),(0,V.SB)("next",(0,V.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,V.eR)("* => *",(0,V.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,V.X$)("verticalStepTransition",[(0,V.SB)("previous",(0,V.oB)({height:"0px",visibility:"hidden"})),(0,V.SB)("next",(0,V.oB)({height:"0px",visibility:"hidden"})),(0,V.SB)("current",(0,V.oB)({height:"*",visibility:"inherit"})),(0,V.eR)("* <=> current",(0,V.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let K=(()=>{class Pe{constructor($){this.templateRef=$}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36(C.Rgc))},Pe.\u0275dir=C.lG2({type:Pe,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Pe})(),Me=(()=>{class Pe{constructor($){this._template=$}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36(C.Rgc))},Pe.\u0275dir=C.lG2({type:Pe,selectors:[["ng-template","matStepContent",""]]}),Pe})(),we=(()=>{class Pe extends t.be{constructor($,oe,Ce,Ue){super($,Ue),this._errorStateMatcher=oe,this._viewContainerRef=Ce,this._isSelected=s.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,I.w)(()=>this._stepper.selectionChange.pipe((0,A.U)($=>$.selectedStep===this),(0,E.O)(this._stepper.selected===this)))).subscribe($=>{$&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState($,oe){return this._errorStateMatcher.isErrorState($,oe)||!!($&&$.invalid&&this.interacted)}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36((0,C.Gpc)(()=>Fe)),C.Y36(M.rD,4),C.Y36(C.s_b),C.Y36(t.gx,8))},Pe.\u0275cmp=C.Xpm({type:Pe,selectors:[["mat-step"]],contentQueries:function($,oe,Ce){if(1&$&&(C.Suo(Ce,N,5),C.Suo(Ce,Me,5)),2&$){let Ue;C.iGM(Ue=C.CRH())&&(oe.stepLabel=Ue.first),C.iGM(Ue=C.CRH())&&(oe._lazyContent=Ue.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:M.rD,useExisting:Pe},{provide:t.be,useExisting:Pe}]),C.qOj],ngContentSelectors:p,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function($,oe){1&$&&(C.F$t(),C.YNc(0,a,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),Pe})(),z=(()=>{class Pe extends t.B8{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,features:[C.qOj]}),Pe})(),Ze=(()=>{class Pe extends z{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["mat-horizontal-stepper"]],features:[C.qOj]}),Pe})(),vt=(()=>{class Pe extends z{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["mat-vertical-stepper"]],features:[C.qOj]}),Pe})(),Fe=(()=>{class Pe extends t.B8{constructor($,oe,Ce,Ue){super($,oe,Ce,Ue),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new R.x;const lt=Ce.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===lt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:$,templateRef:oe})=>this._iconOverrides[$]=oe),this.steps.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,w.x)(($,oe)=>$.fromState===oe.fromState&&$.toState===oe.toState),(0,P.R)(this._destroyed)).subscribe($=>{"current"===$.toState&&this.animationDone.emit()})}_stepIsNavigable($,oe){return oe.completed||this.selectedIndex===$||!this.linear}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36(j.Is,8),C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(y.K0))},Pe.\u0275cmp=C.Xpm({type:Pe,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function($,oe,Ce){if(1&$&&(C.Suo(Ce,we,5),C.Suo(Ce,K,5)),2&$){let Ue;C.iGM(Ue=C.CRH())&&(oe._steps=Ue),C.iGM(Ue=C.CRH())&&(oe._icons=Ue)}},viewQuery:function($,oe){if(1&$&&C.Gf(ze,5),2&$){let Ce;C.iGM(Ce=C.CRH())&&(oe._stepHeader=Ce)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function($,oe){2&$&&(C.uIk("aria-orientation",oe.orientation),C.ekj("mat-stepper-horizontal","horizontal"===oe.orientation)("mat-stepper-vertical","vertical"===oe.orientation)("mat-stepper-label-position-end","horizontal"===oe.orientation&&"end"==oe.labelPosition)("mat-stepper-label-position-bottom","horizontal"===oe.orientation&&"bottom"==oe.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:t.B8,useExisting:Pe},{provide:Ze,useExisting:Pe},{provide:vt,useExisting:Pe}]),C.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($,oe){1&$&&(C.ynx(0,0),C.YNc(1,x,5,2,"ng-container",1),C.YNc(2,b,2,1,"ng-container",1),C.BQk(),C.YNc(3,Z,1,23,"ng-template",null,2,C.W1O)),2&$&&(C.Q6J("ngSwitch",oe.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},directives:[y.RF,y.n9,y.sg,y.tP,y.O5,ze],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:[Oe.horizontalStepTransition,Oe.verticalStepTransition]},changeDetection:0}),Pe})(),Ne=(()=>{class Pe extends t.st{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function($,oe){2&$&&C.Ikx("type",oe.type)},inputs:{type:"type"},features:[C.qOj]}),Pe})(),ce=(()=>{class Pe extends t.po{}return Pe.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(Pe)))(oe||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function($,oe){2&$&&C.Ikx("type",oe.type)},inputs:{type:"type"},features:[C.qOj]}),Pe})(),Le=(()=>{class Pe{}return Pe.\u0275fac=function($){return new($||Pe)},Pe.\u0275mod=C.oAB({type:Pe}),Pe.\u0275inj=C.cJS({providers:[be,M.rD],imports:[[M.BQ,y.ez,e.eL,o.ot,t.U5,l.Ps,M.si],M.BQ]}),Pe})()},2075:(Ge,Q,m)=>{"use strict";m.d(Q,{ev:()=>Be,Dz:()=>et,w1:()=>Jt,yh:()=>ke,mD:()=>Nt,Q2:()=>Bt,Ke:()=>st,ge:()=>ct,fO:()=>$t,XQ:()=>li,as:()=>at,Gk:()=>Rt,nj:()=>At,BZ:()=>De,by:()=>Xi,p0:()=>sn});var e=m(5e3),t=m(3191),y=m(449),C=m(9808),o=m(7579),M=m(457),l=m(1135),R=m(5191),s=m(9646),L=m(2722),I=m(5698),A=m(226),E=m(925),P=m(5303);const w=[[["caption"]],[["colgroup"],["col"]]],V=["caption","colgroup, col"];function te(Ke){return class extends Ke{constructor(..._t){super(..._t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(_t){const _e=this._sticky;this._sticky=(0,t.Ig)(_t),this._hasStickyChanged=_e!==this._sticky}hasStickyChanged(){const _t=this._hasStickyChanged;return this._hasStickyChanged=!1,_t}resetStickyChanged(){this._hasStickyChanged=!1}}}const ee=new e.OlP("CDK_TABLE");let le=(()=>{class Ke{constructor(_e){this.template=_e}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellDef",""]]}),Ke})(),re=(()=>{class Ke{constructor(_e){this.template=_e}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderCellDef",""]]}),Ke})(),de=(()=>{class Ke{constructor(_e){this.template=_e}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterCellDef",""]]}),Ke})();class se{}const ye=te(se);let v=(()=>{class Ke extends ye{constructor(_e){super(),this._table=_e,this._stickyEnd=!1}get name(){return this._name}set name(_e){this._setNameInput(_e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(_e){const qe=this._stickyEnd;this._stickyEnd=(0,t.Ig)(_e),this._hasStickyChanged=qe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(_e){_e&&(this._name=_e,this.cssClassFriendlyName=_e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkColumnDef",""]],contentQueries:function(_e,qe,yt){if(1&_e&&(e.Suo(yt,le,5),e.Suo(yt,re,5),e.Suo(yt,de,5)),2&_e){let ue;e.iGM(ue=e.CRH())&&(qe.cell=ue.first),e.iGM(ue=e.CRH())&&(qe.headerCell=ue.first),e.iGM(ue=e.CRH())&&(qe.footerCell=ue.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})();class i{constructor(_t,_e){const qe=_e.nativeElement.classList;for(const yt of _t._columnCssClassName)qe.add(yt)}}let a=(()=>{class Ke extends i{constructor(_e,qe){super(_e,qe)}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(v),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),Ke})(),p=(()=>{class Ke extends i{constructor(_e,qe){var yt;if(super(_e,qe),1===(null===(yt=_e._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const ue=_e._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===ue||"treegrid"===ue?"gridcell":"cell")}}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(v),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.qOj]}),Ke})(),u=(()=>{class Ke extends i{constructor(_e,qe){var yt;if(super(_e,qe),1===(null===(yt=_e._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const ue=_e._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===ue||"treegrid"===ue?"gridcell":"cell")}}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(v),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),Ke})();class _{constructor(){this.tasks=[],this.endTasks=[]}}const D=new e.OlP("_COALESCED_STYLE_SCHEDULER");let O=(()=>{class Ke{constructor(_e){this._ngZone=_e,this._currentSchedule=null,this._destroyed=new o.x}schedule(_e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(_e)}scheduleEnd(_e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(_e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new _,this._getScheduleObservable().pipe((0,L.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const _e=this._currentSchedule;this._currentSchedule=new _;for(const qe of _e.tasks)qe();for(const qe of _e.endTasks)qe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,M.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,I.q)(1))}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.LFG(e.R0b))},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),r=(()=>{class Ke{constructor(_e,qe){this.template=_e,this._differs=qe}ngOnChanges(_e){if(!this._columnsDiffer){const qe=_e.columns&&_e.columns.currentValue||[];this._columnsDiffer=this._differs.find(qe).create(),this._columnsDiffer.diff(qe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(_e){return this instanceof N?_e.headerCell.template:this instanceof be?_e.footerCell.template:_e.cell.template}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ke.\u0275dir=e.lG2({type:Ke,features:[e.TTD]}),Ke})();class b extends r{}const Z=te(b);let N=(()=>{class Ke extends Z{constructor(_e,qe,yt){super(_e,qe),this._table=yt}ngOnChanges(_e){super.ngOnChanges(_e)}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})();class U extends r{}const ve=te(U);let be=(()=>{class Ke extends ve{constructor(_e,qe,yt){super(_e,qe),this._table=yt}ngOnChanges(_e){super.ngOnChanges(_e)}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})(),Re=(()=>{class Ke extends r{constructor(_e,qe,yt){super(_e,qe),this._table=yt}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),Ke})(),ze=(()=>{class Ke{constructor(_e){this._viewContainer=_e,Ke.mostRecentCellOutlet=this}ngOnDestroy(){Ke.mostRecentCellOutlet===this&&(Ke.mostRecentCellOutlet=null)}}return Ke.mostRecentCellOutlet=null,Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.s_b))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellOutlet",""]]}),Ke})(),Oe=(()=>{class Ke{}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),K=(()=>{class Ke{}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Me=(()=>{class Ke{}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),we=(()=>{class Ke{constructor(_e){this.templateRef=_e,this._contentClassName="cdk-no-data-row"}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["ng-template","cdkNoDataRow",""]]}),Ke})();const z=["top","bottom","left","right"];class Ze{constructor(_t,_e,qe,yt,ue=!0,Je=!0,St){this._isNativeHtmlTable=_t,this._stickCellCss=_e,this.direction=qe,this._coalescedStyleScheduler=yt,this._isBrowser=ue,this._needsPositionStickyOnElement=Je,this._positionListener=St,this._cachedCellWidths=[],this._borderCellCss={top:`${_e}-border-elem-top`,bottom:`${_e}-border-elem-bottom`,left:`${_e}-border-elem-left`,right:`${_e}-border-elem-right`}}clearStickyPositioning(_t,_e){const qe=[];for(const yt of _t)if(yt.nodeType===yt.ELEMENT_NODE){qe.push(yt);for(let ue=0;ue{for(const yt of qe)this._removeStickyStyle(yt,_e)})}updateStickyColumns(_t,_e,qe,yt=!0){if(!_t.length||!this._isBrowser||!_e.some(qi=>qi)&&!qe.some(qi=>qi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const ue=_t[0],Je=ue.children.length,St=this._getCellWidths(ue,yt),kt=this._getStickyStartColumnPositions(St,_e),yi=this._getStickyEndColumnPositions(St,qe),Ni=_e.lastIndexOf(!0),Si=qe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const qi="rtl"===this.direction,ot=qi?"right":"left",Kt=qi?"left":"right";for(const gt of _t)for(let Lt=0;Lt_e[Lt]?gt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Si?[]:St.slice(Si).map((gt,Lt)=>qe[Lt+Si]?gt:null).reverse()}))})}stickRows(_t,_e,qe){if(!this._isBrowser)return;const yt="bottom"===qe?_t.slice().reverse():_t,ue="bottom"===qe?_e.slice().reverse():_e,Je=[],St=[],kt=[];for(let Ni=0,Si=0;Ni{var Ni,Si;for(let qi=0;qi{_e.some(yt=>!yt)?this._removeStickyStyle(qe,["bottom"]):this._addStickyStyle(qe,"bottom",0,!1)})}_removeStickyStyle(_t,_e){for(const yt of _e)_t.style[yt]="",_t.classList.remove(this._borderCellCss[yt]);z.some(yt=>-1===_e.indexOf(yt)&&_t.style[yt])?_t.style.zIndex=this._getCalculatedZIndex(_t):(_t.style.zIndex="",this._needsPositionStickyOnElement&&(_t.style.position=""),_t.classList.remove(this._stickCellCss))}_addStickyStyle(_t,_e,qe,yt){_t.classList.add(this._stickCellCss),yt&&_t.classList.add(this._borderCellCss[_e]),_t.style[_e]=`${qe}px`,_t.style.zIndex=this._getCalculatedZIndex(_t),this._needsPositionStickyOnElement&&(_t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(_t){const _e={top:100,bottom:10,left:1,right:1};let qe=0;for(const yt of z)_t.style[yt]&&(qe+=_e[yt]);return qe?`${qe}`:""}_getCellWidths(_t,_e=!0){if(!_e&&this._cachedCellWidths.length)return this._cachedCellWidths;const qe=[],yt=_t.children;for(let ue=0;ue0;ue--)_e[ue]&&(qe[ue]=yt,yt+=_t[ue]);return qe}}const oe=new e.OlP("CDK_SPL");let Ue=(()=>{class Ke{constructor(_e,qe){this.viewContainer=_e,this.elementRef=qe}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","rowOutlet",""]]}),Ke})(),lt=(()=>{class Ke{constructor(_e,qe){this.viewContainer=_e,this.elementRef=qe}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","headerRowOutlet",""]]}),Ke})(),nt=(()=>{class Ke{constructor(_e,qe){this.viewContainer=_e,this.elementRef=qe}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","footerRowOutlet",""]]}),Ke})(),ft=(()=>{class Ke{constructor(_e,qe){this.viewContainer=_e,this.elementRef=qe}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","noDataRowOutlet",""]]}),Ke})(),Mt=(()=>{class Ke{constructor(_e,qe,yt,ue,Je,St,kt,yi,Ni,Si,qi){this._differs=_e,this._changeDetectorRef=qe,this._elementRef=yt,this._dir=Je,this._platform=kt,this._viewRepeater=yi,this._coalescedStyleScheduler=Ni,this._viewportRuler=Si,this._stickyPositioningListener=qi,this._onDestroy=new o.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new l.X({start:0,end:Number.MAX_VALUE}),ue||this._elementRef.nativeElement.setAttribute("role","table"),this._document=St,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(_e){this._trackByFn=_e}get dataSource(){return this._dataSource}set dataSource(_e){this._dataSource!==_e&&this._switchDataSource(_e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(_e){this._multiTemplateDataRows=(0,t.Ig)(_e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(_e){this._fixedLayout=(0,t.Ig)(_e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((_e,qe)=>this.trackBy?this.trackBy(qe.dataIndex,qe.data):qe),this._viewportRuler.change().pipe((0,L.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const qe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||qe,this._forceRecalculateCellWidths=qe,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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,y.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const _e=this._dataDiffer.diff(this._renderRows);if(!_e)return this._updateNoDataRow(),void this.contentChanged.next();const qe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(_e,qe,(yt,ue,Je)=>this._getEmbeddedViewArgs(yt.item,Je),yt=>yt.item.data,yt=>{1===yt.operation&&yt.context&&this._renderCellTemplateForItem(yt.record.item.rowDef,yt.context)}),this._updateRowIndexContext(),_e.forEachIdentityChange(yt=>{qe.get(yt.currentIndex).context.$implicit=yt.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(_e){this._customColumnDefs.add(_e)}removeColumnDef(_e){this._customColumnDefs.delete(_e)}addRowDef(_e){this._customRowDefs.add(_e)}removeRowDef(_e){this._customRowDefs.delete(_e)}addHeaderRowDef(_e){this._customHeaderRowDefs.add(_e),this._headerRowDefChanged=!0}removeHeaderRowDef(_e){this._customHeaderRowDefs.delete(_e),this._headerRowDefChanged=!0}addFooterRowDef(_e){this._customFooterRowDefs.add(_e),this._footerRowDefChanged=!0}removeFooterRowDef(_e){this._customFooterRowDefs.delete(_e),this._footerRowDefChanged=!0}setNoDataRow(_e){this._customNoDataRow=_e}updateStickyHeaderRowStyles(){const _e=this._getRenderedRows(this._headerRowOutlet),yt=this._elementRef.nativeElement.querySelector("thead");yt&&(yt.style.display=_e.length?"":"none");const ue=this._headerRowDefs.map(Je=>Je.sticky);this._stickyStyler.clearStickyPositioning(_e,["top"]),this._stickyStyler.stickRows(_e,ue,"top"),this._headerRowDefs.forEach(Je=>Je.resetStickyChanged())}updateStickyFooterRowStyles(){const _e=this._getRenderedRows(this._footerRowOutlet),yt=this._elementRef.nativeElement.querySelector("tfoot");yt&&(yt.style.display=_e.length?"":"none");const ue=this._footerRowDefs.map(Je=>Je.sticky);this._stickyStyler.clearStickyPositioning(_e,["bottom"]),this._stickyStyler.stickRows(_e,ue,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,ue),this._footerRowDefs.forEach(Je=>Je.resetStickyChanged())}updateStickyColumnStyles(){const _e=this._getRenderedRows(this._headerRowOutlet),qe=this._getRenderedRows(this._rowOutlet),yt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([..._e,...qe,...yt],["left","right"]),this._stickyColumnStylesNeedReset=!1),_e.forEach((ue,Je)=>{this._addStickyColumnStyles([ue],this._headerRowDefs[Je])}),this._rowDefs.forEach(ue=>{const Je=[];for(let St=0;St{this._addStickyColumnStyles([ue],this._footerRowDefs[Je])}),Array.from(this._columnDefsByName.values()).forEach(ue=>ue.resetStickyChanged())}_getAllRenderRows(){const _e=[],qe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let yt=0;yt{const St=yt&&yt.has(Je)?yt.get(Je):[];if(St.length){const kt=St.shift();return kt.dataIndex=qe,kt}return{data:_e,rowDef:Je,dataIndex:qe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Zt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(qe=>{this._columnDefsByName.has(qe.name),this._columnDefsByName.set(qe.name,qe)})}_cacheRowDefs(){this._headerRowDefs=Zt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Zt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Zt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const _e=this._rowDefs.filter(qe=>!qe.when);this._defaultRowDef=_e[0]}_renderUpdatedColumns(){const _e=(Je,St)=>Je||!!St.getColumnsDiff(),qe=this._rowDefs.reduce(_e,!1);qe&&this._forceRenderDataRows();const yt=this._headerRowDefs.reduce(_e,!1);yt&&this._forceRenderHeaderRows();const ue=this._footerRowDefs.reduce(_e,!1);return ue&&this._forceRenderFooterRows(),qe||yt||ue}_switchDataSource(_e){this._data=[],(0,y.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),_e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=_e}_observeRenderChanges(){if(!this.dataSource)return;let _e;(0,y.Z9)(this.dataSource)?_e=this.dataSource.connect(this):(0,R.b)(this.dataSource)?_e=this.dataSource:Array.isArray(this.dataSource)&&(_e=(0,s.of)(this.dataSource)),this._renderChangeSubscription=_e.pipe((0,L.R)(this._onDestroy)).subscribe(qe=>{this._data=qe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((_e,qe)=>this._renderRow(this._headerRowOutlet,_e,qe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((_e,qe)=>this._renderRow(this._footerRowOutlet,_e,qe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(_e,qe){const yt=Array.from(qe.columns||[]).map(St=>this._columnDefsByName.get(St)),ue=yt.map(St=>St.sticky),Je=yt.map(St=>St.stickyEnd);this._stickyStyler.updateStickyColumns(_e,ue,Je,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(_e){const qe=[];for(let yt=0;yt<_e.viewContainer.length;yt++){const ue=_e.viewContainer.get(yt);qe.push(ue.rootNodes[0])}return qe}_getRowDefs(_e,qe){if(1==this._rowDefs.length)return[this._rowDefs[0]];let yt=[];if(this.multiTemplateDataRows)yt=this._rowDefs.filter(ue=>!ue.when||ue.when(qe,_e));else{let ue=this._rowDefs.find(Je=>Je.when&&Je.when(qe,_e))||this._defaultRowDef;ue&&yt.push(ue)}return yt}_getEmbeddedViewArgs(_e,qe){return{templateRef:_e.rowDef.template,context:{$implicit:_e.data},index:qe}}_renderRow(_e,qe,yt,ue={}){const Je=_e.viewContainer.createEmbeddedView(qe.template,ue,yt);return this._renderCellTemplateForItem(qe,ue),Je}_renderCellTemplateForItem(_e,qe){for(let yt of this._getCellTemplates(_e))ze.mostRecentCellOutlet&&ze.mostRecentCellOutlet._viewContainer.createEmbeddedView(yt,qe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const _e=this._rowOutlet.viewContainer;for(let qe=0,yt=_e.length;qe{const yt=this._columnDefsByName.get(qe);return _e.extractCellTemplate(yt)}):[]}_applyNativeTableSections(){const _e=this._document.createDocumentFragment(),qe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const yt of qe){const ue=this._document.createElement(yt.tag);ue.setAttribute("role","rowgroup");for(const Je of yt.outlets)ue.appendChild(Je.elementRef.nativeElement);_e.appendChild(ue)}this._elementRef.nativeElement.appendChild(_e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const _e=(qe,yt)=>qe||yt.hasStickyChanged();this._headerRowDefs.reduce(_e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(_e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(_e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ze(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,s.of)()).pipe((0,L.R)(this._onDestroy)).subscribe(qe=>{this._stickyStyler.direction=qe,this.updateStickyColumnStyles()})}_getOwnDefs(_e){return _e.filter(qe=>!qe._table||qe._table===this)}_updateNoDataRow(){const _e=this._customNoDataRow||this._noDataRow;if(!_e)return;const qe=0===this._rowOutlet.viewContainer.length;if(qe===this._isShowingNoDataRow)return;const yt=this._noDataRowOutlet.viewContainer;if(qe){const ue=yt.createEmbeddedView(_e.templateRef),Je=ue.rootNodes[0];1===ue.rootNodes.length&&(null==Je?void 0:Je.nodeType)===this._document.ELEMENT_NODE&&(Je.setAttribute("role","row"),Je.classList.add(_e._contentClassName))}else yt.clear();this._isShowingNoDataRow=qe}}return Ke.\u0275fac=function(_e){return new(_e||Ke)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(A.Is,8),e.Y36(C.K0),e.Y36(E.t4),e.Y36(y.k),e.Y36(D),e.Y36(P.rL),e.Y36(oe,12))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(_e,qe,yt){if(1&_e&&(e.Suo(yt,we,5),e.Suo(yt,v,5),e.Suo(yt,Re,5),e.Suo(yt,N,5),e.Suo(yt,be,5)),2&_e){let ue;e.iGM(ue=e.CRH())&&(qe._noDataRow=ue.first),e.iGM(ue=e.CRH())&&(qe._contentColumnDefs=ue),e.iGM(ue=e.CRH())&&(qe._contentRowDefs=ue),e.iGM(ue=e.CRH())&&(qe._contentHeaderRowDefs=ue),e.iGM(ue=e.CRH())&&(qe._contentFooterRowDefs=ue)}},viewQuery:function(_e,qe){if(1&_e&&(e.Gf(Ue,7),e.Gf(lt,7),e.Gf(nt,7),e.Gf(ft,7)),2&_e){let yt;e.iGM(yt=e.CRH())&&(qe._rowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._headerRowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._footerRowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._noDataRowOutlet=yt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(_e,qe){2&_e&&e.ekj("cdk-table-fixed-layout",qe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:ee,useExisting:Ke},{provide:y.k,useClass:y.yy},{provide:D,useClass:O},{provide:oe,useValue:null}])],ngContentSelectors:V,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,qe){1&_e&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[lt,Ue,ft,nt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ke})();function Zt(Ke,_t){return Ke.concat(Array.from(_t))}let Ii=(()=>{class Ke{}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[P.Cl]]}),Ke})();var jt=m(508),ei=m(6451),ki=m(9841),ai=m(4004);const hi=[[["caption"]],[["colgroup"],["col"]]],Ve=["caption","colgroup, col"];let De=(()=>{class Ke extends Mt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(_e,qe){2&_e&&e.ekj("mat-table-fixed-layout",qe.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:y.k,useClass:y.yy},{provide:Mt,useExisting:Ke},{provide:ee,useExisting:Ke},{provide:D,useClass:O},{provide:oe,useValue:null}]),e.qOj],ngContentSelectors:Ve,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,qe){1&_e&&(e.F$t(hi),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[lt,Ue,ft,nt],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),Ke})(),et=(()=>{class Ke extends le{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:le,useExisting:Ke}]),e.qOj]}),Ke})(),$t=(()=>{class Ke extends re{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:re,useExisting:Ke}]),e.qOj]}),Ke})(),Nt=(()=>{class Ke extends de{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:de,useExisting:Ke}]),e.qOj]}),Ke})(),Jt=(()=>{class Ke extends v{get name(){return this._name}set name(_e){this._setNameInput(_e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:v,useExisting:Ke},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})(),ct=(()=>{class Ke extends a{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),Ke})(),ke=(()=>{class Ke extends p{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]}),Ke})(),Be=(()=>{class Ke extends u{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),Ke})(),at=(()=>{class Ke extends N{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:N,useExisting:Ke}]),e.qOj]}),Ke})(),st=(()=>{class Ke extends be{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:be,useExisting:Ke}]),e.qOj]}),Ke})(),At=(()=>{class Ke extends Re{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Re,useExisting:Ke}]),e.qOj]}),Ke})(),li=(()=>{class Ke extends Oe{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Oe,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Bt=(()=>{class Ke extends K{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:K,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Rt=(()=>{class Ke extends Me{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Me,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,qe){1&_e&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),sn=(()=>{class Ke{}return Ke.\u0275fac=function(_e){return new(_e||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[Ii,jt.BQ],jt.BQ]}),Ke})();class Di extends y.o2{constructor(_t=[]){super(),this._renderData=new l.X([]),this._filter=new l.X(""),this._internalPageChanges=new o.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(_e,qe)=>{const yt=_e[qe];if((0,t.t6)(yt)){const ue=Number(yt);return ue<9007199254740991?ue:yt}return yt},this.sortData=(_e,qe)=>{const yt=qe.active,ue=qe.direction;return yt&&""!=ue?_e.sort((Je,St)=>{let kt=this.sortingDataAccessor(Je,yt),yi=this.sortingDataAccessor(St,yt);const Ni=typeof kt,Si=typeof yi;Ni!==Si&&("number"===Ni&&(kt+=""),"number"===Si&&(yi+=""));let qi=0;return null!=kt&&null!=yi?kt>yi?qi=1:kt{const yt=Object.keys(_e).reduce((Je,St)=>Je+_e[St]+"\u25ec","").toLowerCase(),ue=qe.trim().toLowerCase();return-1!=yt.indexOf(ue)},this._data=new l.X(_t),this._updateChangeSubscription()}get data(){return this._data.value}set data(_t){this._data.next(_t),this._renderChangesSubscription||this._filterData(_t)}get filter(){return this._filter.value}set filter(_t){this._filter.next(_t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(_t){this._sort=_t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(_t){this._paginator=_t,this._updateChangeSubscription()}_updateChangeSubscription(){var _t;const _e=this._sort?(0,ei.T)(this._sort.sortChange,this._sort.initialized):(0,s.of)(null),qe=this._paginator?(0,ei.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,s.of)(null),ue=(0,ki.a)([this._data,this._filter]).pipe((0,ai.U)(([kt])=>this._filterData(kt))),Je=(0,ki.a)([ue,_e]).pipe((0,ai.U)(([kt])=>this._orderData(kt))),St=(0,ki.a)([Je,qe]).pipe((0,ai.U)(([kt])=>this._pageData(kt)));null===(_t=this._renderChangesSubscription)||void 0===_t||_t.unsubscribe(),this._renderChangesSubscription=St.subscribe(kt=>this._renderData.next(kt))}_filterData(_t){return this.filteredData=null==this.filter||""===this.filter?_t:_t.filter(_e=>this.filterPredicate(_e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(_t){return this.sort?this.sortData(_t.slice(),this.sort):_t}_pageData(_t){if(!this.paginator)return _t;const _e=this.paginator.pageIndex*this.paginator.pageSize;return _t.slice(_e,_e+this.paginator.pageSize)}_updatePaginator(_t){Promise.resolve().then(()=>{const _e=this.paginator;if(_e&&(_e.length=_t,_e.pageIndex>0)){const qe=Math.ceil(_e.length/_e.pageSize)-1||0,yt=Math.min(_e.pageIndex,qe);yt!==_e.pageIndex&&(_e.pageIndex=yt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var _t;null===(_t=this._renderChangesSubscription)||void 0===_t||_t.unsubscribe(),this._renderChangesSubscription=null}}class Xi extends Di{}},3251:(Ge,Q,m)=>{"use strict";m.d(Q,{uX:()=>vt,SP:()=>Vt,uD:()=>we,Nj:()=>ai,BU:()=>jt,Nh:()=>hi});var e=m(5664),t=m(7144),y=m(7429),C=m(9808),o=m(5e3),M=m(508),l=m(6360),R=m(7579),s=m(727),L=m(4968),I=m(9646),A=m(6451),E=m(2805),P=m(1777),w=m(8675),V=m(1884),j=m(2722),W=m(226),te=m(3191),ee=m(1159),ge=m(925),le=m(5303);function re(Ve,Ee){1&Ve&&o.Hsn(0)}const de=["*"];function se(Ve,Ee){}const ye=function(Ve){return{animationDuration:Ve}},v=function(Ve,Ee){return{value:Ve,params:Ee}},i=["tabListContainer"],a=["tabList"],p=["tabListInner"],u=["nextPaginator"],_=["previousPaginator"],D=["tabBodyWrapper"],O=["tabHeader"];function x(Ve,Ee){}function r(Ve,Ee){if(1&Ve&&o.YNc(0,x,0,0,"ng-template",9),2&Ve){const Y=o.oxw().$implicit;o.Q6J("cdkPortalOutlet",Y.templateLabel)}}function b(Ve,Ee){if(1&Ve&&o._uU(0),2&Ve){const Y=o.oxw().$implicit;o.Oqu(Y.textLabel)}}function Z(Ve,Ee){if(1&Ve){const Y=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const De=o.CHM(Y),et=De.$implicit,$t=De.index,Nt=o.oxw(),Jt=o.MAs(1);return Nt._handleClick(et,Jt,$t)})("cdkFocusChange",function(De){const $t=o.CHM(Y).index;return o.oxw()._tabFocusChanged(De,$t)}),o.TgZ(1,"div",7),o.YNc(2,r,1,1,"ng-template",8),o.YNc(3,b,1,1,"ng-template",8),o.qZA(),o.qZA()}if(2&Ve){const Y=Ee.$implicit,pe=Ee.index,De=o.oxw();o.ekj("mat-tab-label-active",De.selectedIndex==pe),o.Q6J("id",De._getTabLabelId(pe))("disabled",Y.disabled)("matRippleDisabled",Y.disabled||De.disableRipple),o.uIk("tabIndex",De._getTabIndex(Y,pe))("aria-posinset",pe+1)("aria-setsize",De._tabs.length)("aria-controls",De._getTabContentId(pe))("aria-selected",De.selectedIndex==pe)("aria-label",Y.ariaLabel||null)("aria-labelledby",!Y.ariaLabel&&Y.ariaLabelledby?Y.ariaLabelledby:null),o.xp6(2),o.Q6J("ngIf",Y.templateLabel),o.xp6(1),o.Q6J("ngIf",!Y.templateLabel)}}function N(Ve,Ee){if(1&Ve){const Y=o.EpF();o.TgZ(0,"mat-tab-body",10),o.NdJ("_onCentered",function(){return o.CHM(Y),o.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(De){return o.CHM(Y),o.oxw()._setTabBodyWrapperHeight(De)}),o.qZA()}if(2&Ve){const Y=Ee.$implicit,pe=Ee.index,De=o.oxw();o.ekj("mat-tab-body-active",De.selectedIndex===pe),o.Q6J("id",De._getTabContentId(pe))("content",Y.content)("position",Y.position)("origin",Y.origin)("animationDuration",De.animationDuration),o.uIk("tabindex",null!=De.contentTabIndex&&De.selectedIndex===pe?De.contentTabIndex:null)("aria-labelledby",De._getTabLabelId(pe))}}const U=["mat-tab-nav-bar",""],ve=new o.OlP("MatInkBarPositioner",{providedIn:"root",factory:function be(){return Ee=>({left:Ee?(Ee.offsetLeft||0)+"px":"0",width:Ee?(Ee.offsetWidth||0)+"px":"0"})}});let Re=(()=>{class Ve{constructor(Y,pe,De,et){this._elementRef=Y,this._ngZone=pe,this._inkBarPositioner=De,this._animationMode=et}alignToElement(Y){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(Y))}):this._setStyles(Y)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(Y){const pe=this._inkBarPositioner(Y),De=this._elementRef.nativeElement;De.style.left=pe.left,De.style.width=pe.width}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(ve),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Y,pe){2&Y&&o.ekj("_mat-animation-noopable","NoopAnimations"===pe._animationMode)}}),Ve})();const ze=new o.OlP("MatTabContent"),K=new o.OlP("MatTabLabel"),Me=new o.OlP("MAT_TAB");let we=(()=>{class Ve extends y.ig{constructor(Y,pe,De){super(Y,pe),this._closestTab=De}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.Rgc),o.Y36(o.s_b),o.Y36(Me,8))},Ve.\u0275dir=o.lG2({type:Ve,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[o._Bn([{provide:K,useExisting:Ve}]),o.qOj]}),Ve})();const z=(0,M.Id)(class{}),Ze=new o.OlP("MAT_TAB_GROUP");let vt=(()=>{class Ve extends z{constructor(Y,pe){super(),this._viewContainerRef=Y,this._closestTabGroup=pe,this.textLabel="",this._contentPortal=null,this._stateChanges=new R.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Y){this._setTemplateLabelInput(Y)}get content(){return this._contentPortal}ngOnChanges(Y){(Y.hasOwnProperty("textLabel")||Y.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new y.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Y){Y&&Y._closestTab===this&&(this._templateLabel=Y)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.s_b),o.Y36(Ze,8))},Ve.\u0275cmp=o.Xpm({type:Ve,selectors:[["mat-tab"]],contentQueries:function(Y,pe,De){if(1&Y&&(o.Suo(De,K,5),o.Suo(De,ze,7,o.Rgc)),2&Y){let et;o.iGM(et=o.CRH())&&(pe.templateLabel=et.first),o.iGM(et=o.CRH())&&(pe._explicitContent=et.first)}},viewQuery:function(Y,pe){if(1&Y&&o.Gf(o.Rgc,7),2&Y){let De;o.iGM(De=o.CRH())&&(pe._implicitContent=De.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[o._Bn([{provide:Me,useExisting:Ve}]),o.qOj,o.TTD],ngContentSelectors:de,decls:1,vars:0,template:function(Y,pe){1&Y&&(o.F$t(),o.YNc(0,re,1,0,"ng-template"))},encapsulation:2}),Ve})();const Fe={translateTab:(0,P.X$)("translateTab",[(0,P.SB)("center, void, left-origin-center, right-origin-center",(0,P.oB)({transform:"none"})),(0,P.SB)("left",(0,P.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,P.SB)("right",(0,P.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,P.eR)("* => left, * => right, left => center, right => center",(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,P.eR)("void => left-origin-center",[(0,P.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,P.eR)("void => right-origin-center",[(0,P.oB)({transform:"translate3d(100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ne=(()=>{class Ve extends y.Pl{constructor(Y,pe,De,et){super(Y,pe,et),this._host=De,this._centeringSub=s.w0.EMPTY,this._leavingSub=s.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(Y=>{Y&&!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 Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o._Vd),o.Y36(o.s_b),o.Y36((0,o.Gpc)(()=>Le)),o.Y36(C.K0))},Ve.\u0275dir=o.lG2({type:Ve,selectors:[["","matTabBodyHost",""]],features:[o.qOj]}),Ve})(),ce=(()=>{class Ve{constructor(Y,pe,De){this._elementRef=Y,this._dir=pe,this._dirChangeSubscription=s.w0.EMPTY,this._translateTabComplete=new R.x,this._onCentering=new o.vpe,this._beforeCentering=new o.vpe,this._afterLeavingCenter=new o.vpe,this._onCentered=new o.vpe(!0),this.animationDuration="500ms",pe&&(this._dirChangeSubscription=pe.change.subscribe(et=>{this._computePositionAnimationState(et),De.markForCheck()})),this._translateTabComplete.pipe((0,V.x)((et,$t)=>et.fromState===$t.fromState&&et.toState===$t.toState)).subscribe(et=>{this._isCenterPosition(et.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(et.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Y){this._positionIndex=Y,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Y){const pe=this._isCenterPosition(Y.toState);this._beforeCentering.emit(pe),pe&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Y){return"center"==Y||"left-origin-center"==Y||"right-origin-center"==Y}_computePositionAnimationState(Y=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Y?"left":"right":this._positionIndex>0?"ltr"==Y?"right":"left":"center"}_computePositionFromOrigin(Y){const pe=this._getLayoutDirection();return"ltr"==pe&&Y<=0||"rtl"==pe&&Y>0?"left-origin-center":"right-origin-center"}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.sBO))},Ve.\u0275dir=o.lG2({type:Ve,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ve})(),Le=(()=>{class Ve extends ce{constructor(Y,pe,De){super(Y,pe,De)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.sBO))},Ve.\u0275cmp=o.Xpm({type:Ve,selectors:[["mat-tab-body"]],viewQuery:function(Y,pe){if(1&Y&&o.Gf(y.Pl,5),2&Y){let De;o.iGM(De=o.CRH())&&(pe._portalHost=De.first)}},hostAttrs:[1,"mat-tab-body"],features:[o.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Y,pe){1&Y&&(o.TgZ(0,"div",0,1),o.NdJ("@translateTab.start",function(et){return pe._onTranslateTabStarted(et)})("@translateTab.done",function(et){return pe._translateTabComplete.next(et)}),o.YNc(2,se,0,0,"ng-template",2),o.qZA()),2&Y&&o.Q6J("@translateTab",o.WLB(3,v,pe._position,o.VKq(1,ye,pe.animationDuration)))},directives:[Ne],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Fe.translateTab]}}),Ve})();const Pe=new o.OlP("MAT_TABS_CONFIG"),q=(0,M.Id)(class{});let $=(()=>{class Ve extends q{constructor(Y){super(),this.elementRef=Y}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq))},Ve.\u0275dir=o.lG2({type:Ve,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Y,pe){2&Y&&(o.uIk("aria-disabled",!!pe.disabled),o.ekj("mat-tab-disabled",pe.disabled))},inputs:{disabled:"disabled"},features:[o.qOj]}),Ve})();const oe=(0,ge.i$)({passive:!0});let nt=(()=>{class Ve{constructor(Y,pe,De,et,$t,Nt,Jt){this._elementRef=Y,this._changeDetectorRef=pe,this._viewportRuler=De,this._dir=et,this._ngZone=$t,this._platform=Nt,this._animationMode=Jt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new R.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new R.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new o.vpe,this.indexFocused=new o.vpe,$t.runOutsideAngular(()=>{(0,L.R)(Y.nativeElement,"mouseleave").pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Y){Y=(0,te.su)(Y),this._selectedIndex!=Y&&(this._selectedIndexChanged=!0,this._selectedIndex=Y,this._keyManager&&this._keyManager.updateActiveItem(Y))}ngAfterViewInit(){(0,L.R)(this._previousPaginator.nativeElement,"touchstart",oe).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,L.R)(this._nextPaginator.nativeElement,"touchstart",oe).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Y=this._dir?this._dir.change:(0,I.of)("ltr"),pe=this._viewportRuler.change(150),De=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(De):De(),(0,A.T)(Y,pe,this._items.changes).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(De)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,j.R)(this._destroyed)).subscribe(et=>{this.indexFocused.emit(et),this._setTabFocus(et)})}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(Y){if(!(0,ee.Vb)(Y))switch(Y.keyCode){case ee.K5:case ee.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Y));break;default:this._keyManager.onKeydown(Y)}}_onContentChanges(){const Y=this._elementRef.nativeElement.textContent;Y!==this._currentTextContent&&(this._currentTextContent=Y||"",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(Y){!this._isValidIndex(Y)||this.focusIndex===Y||!this._keyManager||this._keyManager.setActiveItem(Y)}_isValidIndex(Y){if(!this._items)return!0;const pe=this._items?this._items.toArray()[Y]:null;return!!pe&&!pe.disabled}_setTabFocus(Y){if(this._showPaginationControls&&this._scrollToLabel(Y),this._items&&this._items.length){this._items.toArray()[Y].focus();const pe=this._tabListContainer.nativeElement;pe.scrollLeft="ltr"==this._getLayoutDirection()?0:pe.scrollWidth-pe.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Y=this.scrollDistance,pe="ltr"===this._getLayoutDirection()?-Y:Y;this._tabList.nativeElement.style.transform=`translateX(${Math.round(pe)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Y){this._scrollTo(Y)}_scrollHeader(Y){return this._scrollTo(this._scrollDistance+("before"==Y?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Y){this._stopInterval(),this._scrollHeader(Y)}_scrollToLabel(Y){if(this.disablePagination)return;const pe=this._items?this._items.toArray()[Y]:null;if(!pe)return;const De=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:et,offsetWidth:$t}=pe.elementRef.nativeElement;let Nt,Jt;"ltr"==this._getLayoutDirection()?(Nt=et,Jt=Nt+$t):(Jt=this._tabListInner.nativeElement.offsetWidth-et,Nt=Jt-$t);const ct=this.scrollDistance,ke=this.scrollDistance+De;Ntke&&(this.scrollDistance+=Jt-ke+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Y=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Y||(this.scrollDistance=0),Y!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Y}}_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 Y=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,pe=Y?Y.elementRef.nativeElement:null;pe?this._inkBar.alignToElement(pe):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Y,pe){pe&&null!=pe.button&&0!==pe.button||(this._stopInterval(),(0,E.H)(650,100).pipe((0,j.R)((0,A.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:De,distance:et}=this._scrollHeader(Y);(0===et||et>=De)&&this._stopInterval()}))}_scrollTo(Y){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const pe=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(pe,Y)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:pe,distance:this._scrollDistance}}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(le.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(ge.t4),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,inputs:{disablePagination:"disablePagination"}}),Ve})(),ft=(()=>{class Ve extends nt{constructor(Y,pe,De,et,$t,Nt,Jt){super(Y,pe,De,et,$t,Nt,Jt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Y){this._disableRipple=(0,te.Ig)(Y)}_itemSelected(Y){Y.preventDefault()}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(le.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(ge.t4),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,inputs:{disableRipple:"disableRipple"},features:[o.qOj]}),Ve})(),it=(()=>{class Ve extends ft{constructor(Y,pe,De,et,$t,Nt,Jt){super(Y,pe,De,et,$t,Nt,Jt)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(le.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(ge.t4),o.Y36(l.Qb,8))},Ve.\u0275cmp=o.Xpm({type:Ve,selectors:[["mat-tab-header"]],contentQueries:function(Y,pe,De){if(1&Y&&o.Suo(De,$,4),2&Y){let et;o.iGM(et=o.CRH())&&(pe._items=et)}},viewQuery:function(Y,pe){if(1&Y&&(o.Gf(Re,7),o.Gf(i,7),o.Gf(a,7),o.Gf(p,7),o.Gf(u,5),o.Gf(_,5)),2&Y){let De;o.iGM(De=o.CRH())&&(pe._inkBar=De.first),o.iGM(De=o.CRH())&&(pe._tabListContainer=De.first),o.iGM(De=o.CRH())&&(pe._tabList=De.first),o.iGM(De=o.CRH())&&(pe._tabListInner=De.first),o.iGM(De=o.CRH())&&(pe._nextPaginator=De.first),o.iGM(De=o.CRH())&&(pe._previousPaginator=De.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Y,pe){2&Y&&o.ekj("mat-tab-header-pagination-controls-enabled",pe._showPaginationControls)("mat-tab-header-rtl","rtl"==pe._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[o.qOj],ngContentSelectors:de,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,pe){1&Y&&(o.F$t(),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return pe._handlePaginatorClick("before")})("mousedown",function(et){return pe._handlePaginatorPress("before",et)})("touchend",function(){return pe._stopInterval()}),o._UZ(2,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.NdJ("keydown",function(et){return pe._handleKeydown(et)}),o.TgZ(5,"div",5,6),o.NdJ("cdkObserveContent",function(){return pe._onContentChanges()}),o.TgZ(7,"div",7,8),o.Hsn(9),o.qZA(),o._UZ(10,"mat-ink-bar"),o.qZA(),o.qZA(),o.TgZ(11,"div",9,10),o.NdJ("mousedown",function(et){return pe._handlePaginatorPress("after",et)})("click",function(){return pe._handlePaginatorClick("after")})("touchend",function(){return pe._stopInterval()}),o._UZ(13,"div",2),o.qZA()),2&Y&&(o.ekj("mat-tab-header-pagination-disabled",pe._disableScrollBefore),o.Q6J("matRippleDisabled",pe._disableScrollBefore||pe.disableRipple),o.xp6(5),o.ekj("_mat-animation-noopable","NoopAnimations"===pe._animationMode),o.xp6(6),o.ekj("mat-tab-header-pagination-disabled",pe._disableScrollAfter),o.Q6J("matRippleDisabled",pe._disableScrollAfter||pe.disableRipple))},directives:[M.wG,t.wD,Re],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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}.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;content:"";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}),Ve})(),rt=0;class Mt{}const Zt=(0,M.pj)((0,M.Kr)(class{constructor(Ve){this._elementRef=Ve}}),"primary");let Ft=(()=>{class Ve extends Zt{constructor(Y,pe,De,et){var $t;super(Y),this._changeDetectorRef=pe,this._animationMode=et,this._tabs=new o.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=s.w0.EMPTY,this._tabLabelSubscription=s.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new o.vpe,this.focusChange=new o.vpe,this.animationDone=new o.vpe,this.selectedTabChange=new o.vpe(!0),this._groupId=rt++,this.animationDuration=De&&De.animationDuration?De.animationDuration:"500ms",this.disablePagination=!(!De||null==De.disablePagination)&&De.disablePagination,this.dynamicHeight=!(!De||null==De.dynamicHeight)&&De.dynamicHeight,this.contentTabIndex=null!==($t=null==De?void 0:De.contentTabIndex)&&void 0!==$t?$t:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Y){this._dynamicHeight=(0,te.Ig)(Y)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Y){this._indexToSelect=(0,te.su)(Y,null)}get animationDuration(){return this._animationDuration}set animationDuration(Y){this._animationDuration=/^\d+$/.test(Y)?Y+"ms":Y}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Y){this._contentTabIndex=(0,te.su)(Y,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Y){const pe=this._elementRef.nativeElement;pe.classList.remove(`mat-background-${this.backgroundColor}`),Y&&pe.classList.add(`mat-background-${Y}`),this._backgroundColor=Y}ngAfterContentChecked(){const Y=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Y){const pe=null==this._selectedIndex;if(!pe){this.selectedTabChange.emit(this._createChangeEvent(Y));const De=this._tabBodyWrapper.nativeElement;De.style.minHeight=De.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((De,et)=>De.isActive=et===Y),pe||(this.selectedIndexChange.emit(Y),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((pe,De)=>{pe.position=De-Y,null!=this._selectedIndex&&0==pe.position&&!pe.origin&&(pe.origin=Y-this._selectedIndex)}),this._selectedIndex!==Y&&(this._selectedIndex=Y,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const pe=this._tabs.toArray();for(let De=0;De{this._tabs.reset(Y.filter(pe=>pe._closestTabGroup===this||!pe._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(Y){const pe=this._tabHeader;pe&&(pe.focusIndex=Y)}_focusChanged(Y){this.focusChange.emit(this._createChangeEvent(Y))}_createChangeEvent(Y){const pe=new Mt;return pe.index=Y,this._tabs&&this._tabs.length&&(pe.tab=this._tabs.toArray()[Y]),pe}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,A.T)(...this._tabs.map(Y=>Y._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Y){return Math.min(this._tabs.length-1,Math.max(Y||0,0))}_getTabLabelId(Y){return`mat-tab-label-${this._groupId}-${Y}`}_getTabContentId(Y){return`mat-tab-content-${this._groupId}-${Y}`}_setTabBodyWrapperHeight(Y){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const pe=this._tabBodyWrapper.nativeElement;pe.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(pe.style.height=Y+"px")}_removeTabBodyWrapperHeight(){const Y=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Y.clientHeight,Y.style.height="",this.animationDone.emit()}_handleClick(Y,pe,De){Y.disabled||(this.selectedIndex=pe.focusIndex=De)}_getTabIndex(Y,pe){return Y.disabled?null:this.selectedIndex===pe?0:-1}_tabFocusChanged(Y,pe){Y&&"mouse"!==Y&&"touch"!==Y&&(this._tabHeader.focusIndex=pe)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(Pe,8),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,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:[o.qOj]}),Ve})(),Vt=(()=>{class Ve extends Ft{constructor(Y,pe,De,et){super(Y,pe,De,et)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(Pe,8),o.Y36(l.Qb,8))},Ve.\u0275cmp=o.Xpm({type:Ve,selectors:[["mat-tab-group"]],contentQueries:function(Y,pe,De){if(1&Y&&o.Suo(De,vt,5),2&Y){let et;o.iGM(et=o.CRH())&&(pe._allTabs=et)}},viewQuery:function(Y,pe){if(1&Y&&(o.Gf(D,5),o.Gf(O,5)),2&Y){let De;o.iGM(De=o.CRH())&&(pe._tabBodyWrapper=De.first),o.iGM(De=o.CRH())&&(pe._tabHeader=De.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Y,pe){2&Y&&o.ekj("mat-tab-group-dynamic-height",pe.dynamicHeight)("mat-tab-group-inverted-header","below"===pe.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[o._Bn([{provide:Ze,useExisting:Ve}]),o.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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Y,pe){1&Y&&(o.TgZ(0,"mat-tab-header",0,1),o.NdJ("indexFocused",function(et){return pe._focusChanged(et)})("selectFocusedIndex",function(et){return pe.selectedIndex=et}),o.YNc(2,Z,4,14,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.YNc(5,N,1,9,"mat-tab-body",5),o.qZA()),2&Y&&(o.Q6J("selectedIndex",pe.selectedIndex||0)("disableRipple",pe.disableRipple)("disablePagination",pe.disablePagination),o.xp6(2),o.Q6J("ngForOf",pe._tabs),o.xp6(1),o.ekj("_mat-animation-noopable","NoopAnimations"===pe._animationMode),o.xp6(2),o.Q6J("ngForOf",pe._tabs))},directives:[it,C.sg,$,M.wG,e.kH,C.O5,y.Pl,Le],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}),Ve})(),Ii=(()=>{class Ve extends nt{constructor(Y,pe,De,et,$t,Nt,Jt){super(Y,et,$t,pe,De,Nt,Jt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Y){const pe=this._elementRef.nativeElement.classList;pe.remove(`mat-background-${this.backgroundColor}`),Y&&pe.add(`mat-background-${Y}`),this._backgroundColor=Y}get disableRipple(){return this._disableRipple}set disableRipple(Y){this._disableRipple=(0,te.Ig)(Y)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,j.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Y=this._items.toArray();for(let pe=0;pe{class Ve extends Ii{constructor(Y,pe,De,et,$t,Nt,Jt){super(Y,pe,De,et,$t,Nt,Jt)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(le.rL),o.Y36(ge.t4),o.Y36(l.Qb,8))},Ve.\u0275cmp=o.Xpm({type:Ve,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Y,pe,De){if(1&Y&&o.Suo(De,ai,5),2&Y){let et;o.iGM(et=o.CRH())&&(pe._items=et)}},viewQuery:function(Y,pe){if(1&Y&&(o.Gf(Re,7),o.Gf(i,7),o.Gf(a,7),o.Gf(p,7),o.Gf(u,5),o.Gf(_,5)),2&Y){let De;o.iGM(De=o.CRH())&&(pe._inkBar=De.first),o.iGM(De=o.CRH())&&(pe._tabListContainer=De.first),o.iGM(De=o.CRH())&&(pe._tabList=De.first),o.iGM(De=o.CRH())&&(pe._tabListInner=De.first),o.iGM(De=o.CRH())&&(pe._nextPaginator=De.first),o.iGM(De=o.CRH())&&(pe._previousPaginator=De.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(Y,pe){2&Y&&o.ekj("mat-tab-header-pagination-controls-enabled",pe._showPaginationControls)("mat-tab-header-rtl","rtl"==pe._getLayoutDirection())("mat-primary","warn"!==pe.color&&"accent"!==pe.color)("mat-accent","accent"===pe.color)("mat-warn","warn"===pe.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[o.qOj],attrs:U,ngContentSelectors:de,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,pe){1&Y&&(o.F$t(),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return pe._handlePaginatorClick("before")})("mousedown",function(et){return pe._handlePaginatorPress("before",et)})("touchend",function(){return pe._stopInterval()}),o._UZ(2,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.NdJ("keydown",function(et){return pe._handleKeydown(et)}),o.TgZ(5,"div",5,6),o.NdJ("cdkObserveContent",function(){return pe._onContentChanges()}),o.TgZ(7,"div",7,8),o.Hsn(9),o.qZA(),o._UZ(10,"mat-ink-bar"),o.qZA(),o.qZA(),o.TgZ(11,"div",9,10),o.NdJ("mousedown",function(et){return pe._handlePaginatorPress("after",et)})("click",function(){return pe._handlePaginatorClick("after")})("touchend",function(){return pe._stopInterval()}),o._UZ(13,"div",2),o.qZA()),2&Y&&(o.ekj("mat-tab-header-pagination-disabled",pe._disableScrollBefore),o.Q6J("matRippleDisabled",pe._disableScrollBefore||pe.disableRipple),o.xp6(5),o.ekj("_mat-animation-noopable","NoopAnimations"===pe._animationMode),o.xp6(6),o.ekj("mat-tab-header-pagination-disabled",pe._disableScrollAfter),o.Q6J("matRippleDisabled",pe._disableScrollAfter||pe.disableRipple))},directives:[M.wG,t.wD,Re],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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}.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;content:"";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}),Ve})();const ei=(0,M.sb)((0,M.Kr)((0,M.Id)(class{})));let ki=(()=>{class Ve extends ei{constructor(Y,pe,De,et,$t,Nt){super(),this._tabNavBar=Y,this.elementRef=pe,this._focusMonitor=$t,this._isActive=!1,this.rippleConfig=De||{},this.tabIndex=parseInt(et)||0,"NoopAnimations"===Nt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Y){(0,te.Ig)(Y)!==this._isActive&&(this._isActive=Y,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)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(Ii),o.Y36(o.SBq),o.Y36(M.Y2,8),o.$8M("tabindex"),o.Y36(e.tE),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,inputs:{active:"active"},features:[o.qOj]}),Ve})(),ai=(()=>{class Ve extends ki{constructor(Y,pe,De,et,$t,Nt,Jt,ct){super(Y,pe,$t,Nt,Jt,ct),this._tabLinkRipple=new M.IR(this,De,pe,et),this._tabLinkRipple.setupTriggerEvents(pe.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(o.Y36(jt),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(ge.t4),o.Y36(M.Y2,8),o.$8M("tabindex"),o.Y36(e.tE),o.Y36(l.Qb,8))},Ve.\u0275dir=o.lG2({type:Ve,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(Y,pe){1&Y&&o.NdJ("focus",function(){return pe._handleFocus()}),2&Y&&(o.uIk("aria-current",pe.active?"page":null)("aria-disabled",pe.disabled)("tabIndex",pe.tabIndex),o.ekj("mat-tab-disabled",pe.disabled)("mat-tab-label-active",pe.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[o.qOj]}),Ve})(),hi=(()=>{class Ve{}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=o.oAB({type:Ve}),Ve.\u0275inj=o.cJS({imports:[[C.ez,M.BQ,y.eL,M.si,t.Q8,e.rt],M.BQ]}),Ve})()},4594:(Ge,Q,m)=>{"use strict";m.d(Q,{Ye:()=>s,g0:()=>I});var e=m(5e3),t=m(508),y=m(9808),C=m(925);const o=["*",[["mat-toolbar-row"]]],M=["*","mat-toolbar-row"],l=(0,t.pj)(class{constructor(A){this._elementRef=A}});let R=(()=>{class A{}return A.\u0275fac=function(P){return new(P||A)},A.\u0275dir=e.lG2({type:A,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),A})(),s=(()=>{class A extends l{constructor(P,w,V){super(P),this._platform=w,this._document=V}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return A.\u0275fac=function(P){return new(P||A)(e.Y36(e.SBq),e.Y36(C.t4),e.Y36(y.K0))},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-toolbar"]],contentQueries:function(P,w,V){if(1&P&&e.Suo(V,R,5),2&P){let j;e.iGM(j=e.CRH())&&(w._toolbarRows=j)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(P,w){2&P&&e.ekj("mat-toolbar-multiple-rows",w._toolbarRows.length>0)("mat-toolbar-single-row",0===w._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:M,decls:2,vars:0,template:function(P,w){1&P&&(e.F$t(o),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),A})(),I=(()=>{class A{}return A.\u0275fac=function(P){return new(P||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),A})()},7238:(Ge,Q,m)=>{"use strict";m.d(Q,{gM:()=>p,AV:()=>D});var e=m(9776),t=m(5664),y=m(9808),C=m(5e3),o=m(508),M=m(5303),l=m(3191),R=m(1159),s=m(5113),L=m(925),I=m(7429),A=m(7579),E=m(2722),P=m(5698),w=m(1777),V=m(226);const j={tooltipState:(0,w.X$)("state",[(0,w.SB)("initial, void, hidden",(0,w.oB)({opacity:0,transform:"scale(0)"})),(0,w.SB)("visible",(0,w.oB)({transform:"scale(1)"})),(0,w.eR)("* => visible",(0,w.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,w.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,w.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,w.eR)("* => hidden",(0,w.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({opacity:0})))])},ee="tooltip-panel",ge=(0,L.i$)({passive:!0}),de=new C.OlP("mat-tooltip-scroll-strategy"),ye={provide:de,deps:[e.aV],useFactory:function se(O){return()=>O.scrollStrategies.reposition({scrollThrottle:20})}},v=new C.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function i(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let a=(()=>{class O{constructor(r,b,Z,N,U,ve,be,Re,ze,Oe,K,Me){this._overlay=r,this._elementRef=b,this._scrollDispatcher=Z,this._viewContainerRef=N,this._ngZone=U,this._platform=ve,this._ariaDescriber=be,this._focusMonitor=Re,this._dir=Oe,this._defaultOptions=K,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 A.x,this._handleKeydown=we=>{this._isTooltipVisible()&&we.keyCode===R.hY&&!(0,R.Vb)(we)&&(we.preventDefault(),we.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=ze,this._document=Me,K&&(K.position&&(this.position=K.position),K.touchGestures&&(this.touchGestures=K.touchGestures)),Oe.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),U.runOutsideAngular(()=>{b.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(r){var b;r!==this._position&&(this._position=r,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(b=this._tooltipInstance)||void 0===b||b.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(r){this._disabled=(0,l.Ig)(r),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(r){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=r?String(r).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(r){this._tooltipClass=r,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,E.R)(this._destroyed)).subscribe(r=>{r?"keyboard"===r&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const r=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),r.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([b,Z])=>{r.removeEventListener(b,Z,ge)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(r,this.message,"tooltip"),this._focusMonitor.stopMonitoring(r)}show(r=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const b=this._createOverlay();this._detach(),this._portal=this._portal||new I.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=b.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(r)}hide(r=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(r)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),b=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return b.positionChanges.pipe((0,E.R)(this._destroyed)).subscribe(Z=>{this._updateCurrentPositionClass(Z.connectionPair),this._tooltipInstance&&Z.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:b,panelClass:`${this._cssClassPrefix}-${ee}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,E.R)(this._destroyed)).subscribe(()=>{var Z;return null===(Z=this._tooltipInstance)||void 0===Z?void 0:Z._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(r){const b=r.getConfig().positionStrategy,Z=this._getOrigin(),N=this._getOverlayPosition();b.withPositions([this._addOffset(Object.assign(Object.assign({},Z.main),N.main)),this._addOffset(Object.assign(Object.assign({},Z.fallback),N.fallback))])}_addOffset(r){return r}_getOrigin(){const r=!this._dir||"ltr"==this._dir.value,b=this.position;let Z;"above"==b||"below"==b?Z={originX:"center",originY:"above"==b?"top":"bottom"}:"before"==b||"left"==b&&r||"right"==b&&!r?Z={originX:"start",originY:"center"}:("after"==b||"right"==b&&r||"left"==b&&!r)&&(Z={originX:"end",originY:"center"});const{x:N,y:U}=this._invertPosition(Z.originX,Z.originY);return{main:Z,fallback:{originX:N,originY:U}}}_getOverlayPosition(){const r=!this._dir||"ltr"==this._dir.value,b=this.position;let Z;"above"==b?Z={overlayX:"center",overlayY:"bottom"}:"below"==b?Z={overlayX:"center",overlayY:"top"}:"before"==b||"left"==b&&r||"right"==b&&!r?Z={overlayX:"end",overlayY:"center"}:("after"==b||"right"==b&&r||"left"==b&&!r)&&(Z={overlayX:"start",overlayY:"center"});const{x:N,y:U}=this._invertPosition(Z.overlayX,Z.overlayY);return{main:Z,fallback:{overlayX:N,overlayY:U}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1),(0,E.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(r){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=r,this._tooltipInstance._markForCheck())}_invertPosition(r,b){return"above"===this.position||"below"===this.position?"top"===b?b="bottom":"bottom"===b&&(b="top"):"end"===r?r="start":"start"===r&&(r="end"),{x:r,y:b}}_updateCurrentPositionClass(r){const{overlayY:b,originX:Z,originY:N}=r;let U;if(U="center"===b?this._dir&&"rtl"===this._dir.value?"end"===Z?"left":"right":"start"===Z?"left":"right":"bottom"===b&&"top"===N?"above":"below",U!==this._currentPosition){const ve=this._overlayRef;if(ve){const be=`${this._cssClassPrefix}-${ee}-`;ve.removePanelClass(be+this._currentPosition),ve.addPanelClass(be+U)}this._currentPosition=U}}_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 r=[];if(this._platformSupportsMouseEvents())r.push(["mouseleave",()=>this.hide()],["wheel",b=>this._wheelListener(b)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const b=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};r.push(["touchend",b],["touchcancel",b])}this._addListeners(r),this._passiveListeners.push(...r)}_addListeners(r){r.forEach(([b,Z])=>{this._elementRef.nativeElement.addEventListener(b,Z,ge)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(r){if(this._isTooltipVisible()){const b=this._document.elementFromPoint(r.clientX,r.clientY),Z=this._elementRef.nativeElement;b!==Z&&!Z.contains(b)&&this.hide()}}_disableNativeGesturesIfNecessary(){const r=this.touchGestures;if("off"!==r){const b=this._elementRef.nativeElement,Z=b.style;("on"===r||"INPUT"!==b.nodeName&&"TEXTAREA"!==b.nodeName)&&(Z.userSelect=Z.msUserSelect=Z.webkitUserSelect=Z.MozUserSelect="none"),("on"===r||!b.draggable)&&(Z.webkitUserDrag="none"),Z.touchAction="none",Z.webkitTapHighlightColor="transparent"}}}return O.\u0275fac=function(r){C.$Z()},O.\u0275dir=C.lG2({type:O,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),O})(),p=(()=>{class O extends a{constructor(r,b,Z,N,U,ve,be,Re,ze,Oe,K,Me){super(r,b,Z,N,U,ve,be,Re,ze,Oe,K,Me),this._tooltipComponent=_}}return O.\u0275fac=function(r){return new(r||O)(C.Y36(e.aV),C.Y36(C.SBq),C.Y36(M.mF),C.Y36(C.s_b),C.Y36(C.R0b),C.Y36(L.t4),C.Y36(t.$s),C.Y36(t.tE),C.Y36(de),C.Y36(V.Is,8),C.Y36(v,8),C.Y36(y.K0))},O.\u0275dir=C.lG2({type:O,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[C.qOj]}),O})(),u=(()=>{class O{constructor(r){this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new A.x}show(r){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},r)}hide(r){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},r)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(r){const b=r.toState;"hidden"===b&&!this.isVisible()&&this._onHide.next(),("visible"===b||"hidden"===b)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return O.\u0275fac=function(r){return new(r||O)(C.Y36(C.sBO))},O.\u0275dir=C.lG2({type:O}),O})(),_=(()=>{class O extends u{constructor(r,b){super(r),this._breakpointObserver=b,this._isHandset=this._breakpointObserver.observe(s.u3.Handset)}}return O.\u0275fac=function(r){return new(r||O)(C.Y36(C.sBO),C.Y36(s.Yg))},O.\u0275cmp=C.Xpm({type:O,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,b){2&r&&C.Udp("zoom","visible"===b._visibility?1:null)},features:[C.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(r,b){if(1&r&&(C.TgZ(0,"div",0),C.NdJ("@state.start",function(){return b._animationStart()})("@state.done",function(N){return b._animationDone(N)}),C.ALo(1,"async"),C._uU(2),C.qZA()),2&r){let Z;C.ekj("mat-tooltip-handset",null==(Z=C.lcZ(1,5,b._isHandset))?null:Z.matches),C.Q6J("ngClass",b.tooltipClass)("@state",b._visibility),C.xp6(2),C.Oqu(b.message)}},directives:[y.mk],pipes:[y.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[j.tooltipState]},changeDetection:0}),O})(),D=(()=>{class O{}return O.\u0275fac=function(r){return new(r||O)},O.\u0275mod=C.oAB({type:O}),O.\u0275inj=C.cJS({providers:[ye],imports:[[t.rt,y.ez,e.U8,o.BQ],o.BQ,M.ZD]}),O})()},149:(Ge,Q,m)=>{"use strict";m.d(Q,{GZ:()=>A,gi:()=>w,dp:()=>W,WX:()=>ge,uo:()=>L,fQ:()=>I,Ar:()=>P,eu:()=>V});var e=m(8258),t=m(5e3),y=m(508),C=m(3191),o=m(449),M=m(1135),l=m(6451),R=m(4004);const s=(0,y.sb)((0,y.Id)(e.Hs));let L=(()=>{class le extends s{constructor(de,se,ye){super(de,se),this.tabIndex=Number(ye)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return le.\u0275fac=function(de){return new(de||le)(t.Y36(t.SBq),t.Y36(e._0),t.$8M("tabindex"))},le.\u0275dir=t.lG2({type:le,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:e.Hs,useExisting:le}]),t.qOj]}),le})(),I=(()=>{class le extends e.rO{}return le.\u0275fac=function(){let re;return function(se){return(re||(re=t.n5z(le)))(se||le)}}(),le.\u0275dir=t.lG2({type:le,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:e.rO,useExisting:le}]),t.qOj]}),le})(),A=(()=>{class le extends e.Xx{constructor(de,se,ye,v){super(de,se,ye),this._disabled=!1,this.tabIndex=Number(v)||0}get disabled(){return this._disabled}set disabled(de){this._disabled=(0,C.Ig)(de)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(de){this._tabIndex=null!=de?de:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return le.\u0275fac=function(de){return new(de||le)(t.Y36(t.SBq),t.Y36(e._0),t.Y36(t.ZZ4),t.$8M("tabindex"))},le.\u0275dir=t.lG2({type:le,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:e.Xx,useExisting:le},{provide:e.Hs,useExisting:le},{provide:e.HI,useExisting:le}]),t.qOj]}),le})(),P=(()=>{class le{constructor(de,se){this.viewContainer=de,this._node=se}}return le.\u0275fac=function(de){return new(de||le)(t.Y36(t.s_b),t.Y36(e.HI,8))},le.\u0275dir=t.lG2({type:le,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:e.cu,useExisting:le}])]}),le})(),w=(()=>{class le extends e._0{}return le.\u0275fac=function(){let re;return function(se){return(re||(re=t.n5z(le)))(se||le)}}(),le.\u0275cmp=t.Xpm({type:le,selectors:[["mat-tree"]],viewQuery:function(de,se){if(1&de&&t.Gf(P,7),2&de){let ye;t.iGM(ye=t.CRH())&&(se._nodeOutlet=ye.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:e._0,useExisting:le}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(de,se){1&de&&t.GkF(0,0)},directives:[P],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}),le})(),V=(()=>{class le extends e.Ud{}return le.\u0275fac=function(){let re;return function(se){return(re||(re=t.n5z(le)))(se||le)}}(),le.\u0275dir=t.lG2({type:le,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:e.Ud,useExisting:le}]),t.qOj]}),le})(),W=(()=>{class le{}return le.\u0275fac=function(de){return new(de||le)},le.\u0275mod=t.oAB({type:le}),le.\u0275inj=t.cJS({imports:[[e.nZ,y.BQ],y.BQ]}),le})();class ge extends o.o2{constructor(){super(...arguments),this._data=new M.X([])}get data(){return this._data.value}set data(re){this._data.next(re)}connect(re){return(0,l.T)(re.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},6360:(Ge,Q,m)=>{"use strict";m.d(Q,{Qb:()=>Pi,PW:()=>Us});var e=m(5e3),t=m(2313),y=m(1777);function C(){return"undefined"!=typeof window&&void 0!==window.document}function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function M(xt){switch(xt.length){case 0:return new y.ZN;case 1:return xt[0];default:return new y.ZE(xt)}}function l(xt,ie,he,je,wt={},Pt={}){const Qt=[],Xt=[];let pi=-1,Ti=null;if(je.forEach(Zi=>{const tn=Zi.offset,Mn=tn==pi,On=Mn&&Ti||{};Object.keys(Zi).forEach(tt=>{let Et=tt,It=Zi[tt];if("offset"!==tt)switch(Et=ie.normalizePropertyName(Et,Qt),It){case y.k1:It=wt[tt];break;case y.l3:It=Pt[tt];break;default:It=ie.normalizeStyleValue(tt,Et,It,Qt)}On[Et]=It}),Mn||Xt.push(On),Ti=On,pi=tn}),Qt.length){const Zi="\n - ";throw new Error(`Unable to animate due to the following errors:${Zi}${Qt.join(Zi)}`)}return Xt}function R(xt,ie,he,je){switch(ie){case"start":xt.onStart(()=>je(he&&s(he,"start",xt)));break;case"done":xt.onDone(()=>je(he&&s(he,"done",xt)));break;case"destroy":xt.onDestroy(()=>je(he&&s(he,"destroy",xt)))}}function s(xt,ie,he){const je=he.totalTime,Pt=L(xt.element,xt.triggerName,xt.fromState,xt.toState,ie||xt.phaseName,null==je?xt.totalTime:je,!!he.disabled),Qt=xt._data;return null!=Qt&&(Pt._data=Qt),Pt}function L(xt,ie,he,je,wt="",Pt=0,Qt){return{element:xt,triggerName:ie,fromState:he,toState:je,phaseName:wt,totalTime:Pt,disabled:!!Qt}}function I(xt,ie,he){let je;return xt instanceof Map?(je=xt.get(ie),je||xt.set(ie,je=he)):(je=xt[ie],je||(je=xt[ie]=he)),je}function A(xt){const ie=xt.indexOf(":");return[xt.substring(1,ie),xt.substr(ie+1)]}let E=(xt,ie)=>!1,P=(xt,ie)=>!1,w=(xt,ie,he)=>[];const V=o();(V||"undefined"!=typeof Element)&&(E=C()?(xt,ie)=>{for(;ie&&ie!==document.documentElement;){if(ie===xt)return!0;ie=ie.parentNode||ie.host}return!1}:(xt,ie)=>xt.contains(ie),P=(()=>{if(V||Element.prototype.matches)return(xt,ie)=>xt.matches(ie);{const xt=Element.prototype,ie=xt.matchesSelector||xt.mozMatchesSelector||xt.msMatchesSelector||xt.oMatchesSelector||xt.webkitMatchesSelector;return ie?(he,je)=>ie.apply(he,[je]):P}})(),w=(xt,ie,he)=>{let je=[];if(he){const wt=xt.querySelectorAll(ie);for(let Pt=0;Pt{const je=he.replace(/([a-z])([A-Z])/g,"$1-$2");ie[je]=xt[he]}),ie}let ye=(()=>{class xt{validateStyleProperty(he){return ee(he)}matchesElement(he,je){return le(he,je)}containsElement(he,je){return re(he,je)}query(he,je,wt){return de(he,je,wt)}computeStyle(he,je,wt){return wt||""}animate(he,je,wt,Pt,Qt,Xt=[],pi){return new y.ZN(wt,Pt)}}return xt.\u0275fac=function(he){return new(he||xt)},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})(),v=(()=>{class xt{}return xt.NOOP=new ye,xt})();const u="ng-enter",_="ng-leave",x="ng-trigger",r=".ng-trigger",b="ng-animating",Z=".ng-animating";function N(xt){if("number"==typeof xt)return xt;const ie=xt.match(/^(-?[\.\d]+)(m?s)/);return!ie||ie.length<2?0:U(parseFloat(ie[1]),ie[2])}function U(xt,ie){return"s"===ie?1e3*xt:xt}function ve(xt,ie,he){return xt.hasOwnProperty("duration")?xt:function be(xt,ie,he){let wt,Pt=0,Qt="";if("string"==typeof xt){const Xt=xt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Xt)return ie.push(`The provided timing value "${xt}" is invalid.`),{duration:0,delay:0,easing:""};wt=U(parseFloat(Xt[1]),Xt[2]);const pi=Xt[3];null!=pi&&(Pt=U(parseFloat(pi),Xt[4]));const Ti=Xt[5];Ti&&(Qt=Ti)}else wt=xt;if(!he){let Xt=!1,pi=ie.length;wt<0&&(ie.push("Duration values below 0 are not allowed for this animation step."),Xt=!0),Pt<0&&(ie.push("Delay values below 0 are not allowed for this animation step."),Xt=!0),Xt&&ie.splice(pi,0,`The provided timing value "${xt}" is invalid.`)}return{duration:wt,delay:Pt,easing:Qt}}(xt,ie,he)}function Re(xt,ie={}){return Object.keys(xt).forEach(he=>{ie[he]=xt[he]}),ie}function Oe(xt,ie,he={}){if(ie)for(let je in xt)he[je]=xt[je];else Re(xt,he);return he}function K(xt,ie,he){return he?ie+":"+he+";":""}function Me(xt){let ie="";for(let he=0;he{const wt=q(je);he&&!he.hasOwnProperty(je)&&(he[je]=xt.style[wt]),xt.style[wt]=ie[je]}),o()&&Me(xt))}function z(xt,ie){xt.style&&(Object.keys(ie).forEach(he=>{const je=q(he);xt.style[je]=""}),o()&&Me(xt))}function Ze(xt){return Array.isArray(xt)?1==xt.length?xt[0]:(0,y.vP)(xt):xt}const Fe=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ne(xt){let ie=[];if("string"==typeof xt){let he;for(;he=Fe.exec(xt);)ie.push(he[1]);Fe.lastIndex=0}return ie}function ce(xt,ie,he){const je=xt.toString(),wt=je.replace(Fe,(Pt,Qt)=>{let Xt=ie[Qt];return ie.hasOwnProperty(Qt)||(he.push(`Please provide a value for the animation param ${Qt}`),Xt=""),Xt.toString()});return wt==je?xt:wt}function Le(xt){const ie=[];let he=xt.next();for(;!he.done;)ie.push(he.value),he=xt.next();return ie}const Pe=/-+([a-z0-9])/g;function q(xt){return xt.replace(Pe,(...ie)=>ie[1].toUpperCase())}function $(xt){return xt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function oe(xt,ie){return 0===xt||0===ie}function Ce(xt,ie,he){const je=Object.keys(he);if(je.length&&ie.length){let Pt=ie[0],Qt=[];if(je.forEach(Xt=>{Pt.hasOwnProperty(Xt)||Qt.push(Xt),Pt[Xt]=he[Xt]}),Qt.length)for(var wt=1;wtfunction it(xt,ie,he){if(":"==xt[0]){const pi=function rt(xt,ie){switch(xt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(he,je)=>parseFloat(je)>parseFloat(he);case":decrement":return(he,je)=>parseFloat(je) *"}}(xt,he);if("function"==typeof pi)return void ie.push(pi);xt=pi}const je=xt.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==je||je.length<4)return he.push(`The provided transition expression "${xt}" is not supported`),ie;const wt=je[1],Pt=je[2],Qt=je[3];ie.push(Ft(wt,Qt));"<"==Pt[0]&&!("*"==wt&&"*"==Qt)&&ie.push(Ft(Qt,wt))}(je,he,ie)):he.push(xt),he}const Mt=new Set(["true","1"]),Zt=new Set(["false","0"]);function Ft(xt,ie){const he=Mt.has(xt)||Zt.has(xt),je=Mt.has(ie)||Zt.has(ie);return(wt,Pt)=>{let Qt="*"==xt||xt==wt,Xt="*"==ie||ie==Pt;return!Qt&&he&&"boolean"==typeof wt&&(Qt=wt?Mt.has(xt):Zt.has(xt)),!Xt&&je&&"boolean"==typeof Pt&&(Xt=Pt?Mt.has(ie):Zt.has(ie)),Qt&&Xt}}const Ii=new RegExp("s*:selfs*,?","g");function jt(xt,ie,he){return new ki(xt).build(ie,he)}class ki{constructor(ie){this._driver=ie}build(ie,he){const je=new Ve(he);return this._resetContextStyleTimingState(je),Ue(this,Ze(ie),je)}_resetContextStyleTimingState(ie){ie.currentQuerySelector="",ie.collectedStyles={},ie.collectedStyles[""]={},ie.currentTime=0}visitTrigger(ie,he){let je=he.queryCount=0,wt=he.depCount=0;const Pt=[],Qt=[];return"@"==ie.name.charAt(0)&&he.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),ie.definitions.forEach(Xt=>{if(this._resetContextStyleTimingState(he),0==Xt.type){const pi=Xt,Ti=pi.name;Ti.toString().split(/\s*,\s*/).forEach(Zi=>{pi.name=Zi,Pt.push(this.visitState(pi,he))}),pi.name=Ti}else if(1==Xt.type){const pi=this.visitTransition(Xt,he);je+=pi.queryCount,wt+=pi.depCount,Qt.push(pi)}else he.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:ie.name,states:Pt,transitions:Qt,queryCount:je,depCount:wt,options:null}}visitState(ie,he){const je=this.visitStyle(ie.styles,he),wt=ie.options&&ie.options.params||null;if(je.containsDynamicStyles){const Pt=new Set,Qt=wt||{};if(je.styles.forEach(Xt=>{if(Y(Xt)){const pi=Xt;Object.keys(pi).forEach(Ti=>{Ne(pi[Ti]).forEach(Zi=>{Qt.hasOwnProperty(Zi)||Pt.add(Zi)})})}}),Pt.size){const Xt=Le(Pt.values());he.errors.push(`state("${ie.name}", ...) must define default values for all the following style substitutions: ${Xt.join(", ")}`)}}return{type:0,name:ie.name,style:je,options:wt?{params:wt}:null}}visitTransition(ie,he){he.queryCount=0,he.depCount=0;const je=Ue(this,Ze(ie.animation),he);return{type:1,matchers:ft(ie.expr,he.errors),animation:je,queryCount:he.queryCount,depCount:he.depCount,options:De(ie.options)}}visitSequence(ie,he){return{type:2,steps:ie.steps.map(je=>Ue(this,je,he)),options:De(ie.options)}}visitGroup(ie,he){const je=he.currentTime;let wt=0;const Pt=ie.steps.map(Qt=>{he.currentTime=je;const Xt=Ue(this,Qt,he);return wt=Math.max(wt,he.currentTime),Xt});return he.currentTime=wt,{type:3,steps:Pt,options:De(ie.options)}}visitAnimate(ie,he){const je=function pe(xt,ie){let he=null;if(xt.hasOwnProperty("duration"))he=xt;else if("number"==typeof xt)return et(ve(xt,ie).duration,0,"");const je=xt;if(je.split(/\s+/).some(Pt=>"{"==Pt.charAt(0)&&"{"==Pt.charAt(1))){const Pt=et(0,0,"");return Pt.dynamic=!0,Pt.strValue=je,Pt}return he=he||ve(je,ie),et(he.duration,he.delay,he.easing)}(ie.timings,he.errors);he.currentAnimateTimings=je;let wt,Pt=ie.styles?ie.styles:(0,y.oB)({});if(5==Pt.type)wt=this.visitKeyframes(Pt,he);else{let Qt=ie.styles,Xt=!1;if(!Qt){Xt=!0;const Ti={};je.easing&&(Ti.easing=je.easing),Qt=(0,y.oB)(Ti)}he.currentTime+=je.duration+je.delay;const pi=this.visitStyle(Qt,he);pi.isEmptyStep=Xt,wt=pi}return he.currentAnimateTimings=null,{type:4,timings:je,style:wt,options:null}}visitStyle(ie,he){const je=this._makeStyleAst(ie,he);return this._validateStyleAst(je,he),je}_makeStyleAst(ie,he){const je=[];Array.isArray(ie.styles)?ie.styles.forEach(Qt=>{"string"==typeof Qt?Qt==y.l3?je.push(Qt):he.errors.push(`The provided style string value ${Qt} is not allowed.`):je.push(Qt)}):je.push(ie.styles);let wt=!1,Pt=null;return je.forEach(Qt=>{if(Y(Qt)){const Xt=Qt,pi=Xt.easing;if(pi&&(Pt=pi,delete Xt.easing),!wt)for(let Ti in Xt)if(Xt[Ti].toString().indexOf("{{")>=0){wt=!0;break}}}),{type:6,styles:je,easing:Pt,offset:ie.offset,containsDynamicStyles:wt,options:null}}_validateStyleAst(ie,he){const je=he.currentAnimateTimings;let wt=he.currentTime,Pt=he.currentTime;je&&Pt>0&&(Pt-=je.duration+je.delay),ie.styles.forEach(Qt=>{"string"!=typeof Qt&&Object.keys(Qt).forEach(Xt=>{if(!this._driver.validateStyleProperty(Xt))return void he.errors.push(`The provided animation property "${Xt}" is not a supported CSS property for animations`);const pi=he.collectedStyles[he.currentQuerySelector],Ti=pi[Xt];let Zi=!0;Ti&&(Pt!=wt&&Pt>=Ti.startTime&&wt<=Ti.endTime&&(he.errors.push(`The CSS property "${Xt}" that exists between the times of "${Ti.startTime}ms" and "${Ti.endTime}ms" is also being animated in a parallel animation between the times of "${Pt}ms" and "${wt}ms"`),Zi=!1),Pt=Ti.startTime),Zi&&(pi[Xt]={startTime:Pt,endTime:wt}),he.options&&function vt(xt,ie,he){const je=ie.params||{},wt=Ne(xt);wt.length&&wt.forEach(Pt=>{je.hasOwnProperty(Pt)||he.push(`Unable to resolve the local animation param ${Pt} in the given list of values`)})}(Qt[Xt],he.options,he.errors)})})}visitKeyframes(ie,he){const je={type:5,styles:[],options:null};if(!he.currentAnimateTimings)return he.errors.push("keyframes() must be placed inside of a call to animate()"),je;let Pt=0;const Qt=[];let Xt=!1,pi=!1,Ti=0;const Zi=ie.steps.map(zt=>{const ri=this._makeStyleAst(zt,he);let vi=null!=ri.offset?ri.offset:function Ee(xt){if("string"==typeof xt)return null;let ie=null;if(Array.isArray(xt))xt.forEach(he=>{if(Y(he)&&he.hasOwnProperty("offset")){const je=he;ie=parseFloat(je.offset),delete je.offset}});else if(Y(xt)&&xt.hasOwnProperty("offset")){const he=xt;ie=parseFloat(he.offset),delete he.offset}return ie}(ri.styles),Mi=0;return null!=vi&&(Pt++,Mi=ri.offset=vi),pi=pi||Mi<0||Mi>1,Xt=Xt||Mi0&&Pt{const vi=Mn>0?ri==On?1:Mn*ri:Qt[ri],Mi=vi*It;he.currentTime=tt+Et.delay+Mi,Et.duration=Mi,this._validateStyleAst(zt,he),zt.offset=vi,je.styles.push(zt)}),je}visitReference(ie,he){return{type:8,animation:Ue(this,Ze(ie.animation),he),options:De(ie.options)}}visitAnimateChild(ie,he){return he.depCount++,{type:9,options:De(ie.options)}}visitAnimateRef(ie,he){return{type:10,animation:this.visitReference(ie.animation,he),options:De(ie.options)}}visitQuery(ie,he){const je=he.currentQuerySelector,wt=ie.options||{};he.queryCount++,he.currentQuery=ie;const[Pt,Qt]=function ai(xt){const ie=!!xt.split(/\s*,\s*/).find(he=>":self"==he);return ie&&(xt=xt.replace(Ii,"")),xt=xt.replace(/@\*/g,r).replace(/@\w+/g,he=>r+"-"+he.substr(1)).replace(/:animating/g,Z),[xt,ie]}(ie.selector);he.currentQuerySelector=je.length?je+" "+Pt:Pt,I(he.collectedStyles,he.currentQuerySelector,{});const Xt=Ue(this,Ze(ie.animation),he);return he.currentQuery=null,he.currentQuerySelector=je,{type:11,selector:Pt,limit:wt.limit||0,optional:!!wt.optional,includeSelf:Qt,animation:Xt,originalSelector:ie.selector,options:De(ie.options)}}visitStagger(ie,he){he.currentQuery||he.errors.push("stagger() can only be used inside of query()");const je="full"===ie.timings?{duration:0,delay:0,easing:"full"}:ve(ie.timings,he.errors,!0);return{type:12,animation:Ue(this,Ze(ie.animation),he),timings:je,options:null}}}class Ve{constructor(ie){this.errors=ie,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}}function Y(xt){return!Array.isArray(xt)&&"object"==typeof xt}function De(xt){return xt?(xt=Re(xt)).params&&(xt.params=function hi(xt){return xt?Re(xt):null}(xt.params)):xt={},xt}function et(xt,ie,he){return{duration:xt,delay:ie,easing:he}}function $t(xt,ie,he,je,wt,Pt,Qt=null,Xt=!1){return{type:1,element:xt,keyframes:ie,preStyleProps:he,postStyleProps:je,duration:wt,delay:Pt,totalTime:wt+Pt,easing:Qt,subTimeline:Xt}}class Nt{constructor(){this._map=new Map}consume(ie){let he=this._map.get(ie);return he?this._map.delete(ie):he=[],he}append(ie,he){let je=this._map.get(ie);je||this._map.set(ie,je=[]),je.push(...he)}has(ie){return this._map.has(ie)}clear(){this._map.clear()}}const ke=new RegExp(":enter","g"),at=new RegExp(":leave","g");function st(xt,ie,he,je,wt,Pt={},Qt={},Xt,pi,Ti=[]){return(new At).buildKeyframes(xt,ie,he,je,wt,Pt,Qt,Xt,pi,Ti)}class At{buildKeyframes(ie,he,je,wt,Pt,Qt,Xt,pi,Ti,Zi=[]){Ti=Ti||new Nt;const tn=new Bt(ie,he,Ti,wt,Pt,Zi,[]);tn.options=pi,tn.currentTimeline.setStyles([Qt],null,tn.errors,pi),Ue(this,je,tn);const Mn=tn.timelines.filter(On=>On.containsAnimation());if(Mn.length&&Object.keys(Xt).length){const On=Mn[Mn.length-1];On.allowOnlyTimelineStyles()||On.setStyles([Xt],null,tn.errors,pi)}return Mn.length?Mn.map(On=>On.buildKeyframes()):[$t(he,[],[],[],0,0,"",!1)]}visitTrigger(ie,he){}visitState(ie,he){}visitTransition(ie,he){}visitAnimateChild(ie,he){const je=he.subInstructions.consume(he.element);if(je){const wt=he.createSubContext(ie.options),Pt=he.currentTimeline.currentTime,Qt=this._visitSubInstructions(je,wt,wt.options);Pt!=Qt&&he.transformIntoNewTimeline(Qt)}he.previousNode=ie}visitAnimateRef(ie,he){const je=he.createSubContext(ie.options);je.transformIntoNewTimeline(),this.visitReference(ie.animation,je),he.transformIntoNewTimeline(je.currentTimeline.currentTime),he.previousNode=ie}_visitSubInstructions(ie,he,je){let Pt=he.currentTimeline.currentTime;const Qt=null!=je.duration?N(je.duration):null,Xt=null!=je.delay?N(je.delay):null;return 0!==Qt&&ie.forEach(pi=>{const Ti=he.appendInstructionToTimeline(pi,Qt,Xt);Pt=Math.max(Pt,Ti.duration+Ti.delay)}),Pt}visitReference(ie,he){he.updateOptions(ie.options,!0),Ue(this,ie.animation,he),he.previousNode=ie}visitSequence(ie,he){const je=he.subContextCount;let wt=he;const Pt=ie.options;if(Pt&&(Pt.params||Pt.delay)&&(wt=he.createSubContext(Pt),wt.transformIntoNewTimeline(),null!=Pt.delay)){6==wt.previousNode.type&&(wt.currentTimeline.snapshotCurrentStyles(),wt.previousNode=li);const Qt=N(Pt.delay);wt.delayNextStep(Qt)}ie.steps.length&&(ie.steps.forEach(Qt=>Ue(this,Qt,wt)),wt.currentTimeline.applyStylesToKeyframe(),wt.subContextCount>je&&wt.transformIntoNewTimeline()),he.previousNode=ie}visitGroup(ie,he){const je=[];let wt=he.currentTimeline.currentTime;const Pt=ie.options&&ie.options.delay?N(ie.options.delay):0;ie.steps.forEach(Qt=>{const Xt=he.createSubContext(ie.options);Pt&&Xt.delayNextStep(Pt),Ue(this,Qt,Xt),wt=Math.max(wt,Xt.currentTimeline.currentTime),je.push(Xt.currentTimeline)}),je.forEach(Qt=>he.currentTimeline.mergeTimelineCollectedStyles(Qt)),he.transformIntoNewTimeline(wt),he.previousNode=ie}_visitTiming(ie,he){if(ie.dynamic){const je=ie.strValue;return ve(he.params?ce(je,he.params,he.errors):je,he.errors)}return{duration:ie.duration,delay:ie.delay,easing:ie.easing}}visitAnimate(ie,he){const je=he.currentAnimateTimings=this._visitTiming(ie.timings,he),wt=he.currentTimeline;je.delay&&(he.incrementTime(je.delay),wt.snapshotCurrentStyles());const Pt=ie.style;5==Pt.type?this.visitKeyframes(Pt,he):(he.incrementTime(je.duration),this.visitStyle(Pt,he),wt.applyStylesToKeyframe()),he.currentAnimateTimings=null,he.previousNode=ie}visitStyle(ie,he){const je=he.currentTimeline,wt=he.currentAnimateTimings;!wt&&je.getCurrentStyleProperties().length&&je.forwardFrame();const Pt=wt&&wt.easing||ie.easing;ie.isEmptyStep?je.applyEmptyStep(Pt):je.setStyles(ie.styles,Pt,he.errors,he.options),he.previousNode=ie}visitKeyframes(ie,he){const je=he.currentAnimateTimings,wt=he.currentTimeline.duration,Pt=je.duration,Xt=he.createSubContext().currentTimeline;Xt.easing=je.easing,ie.styles.forEach(pi=>{Xt.forwardTime((pi.offset||0)*Pt),Xt.setStyles(pi.styles,pi.easing,he.errors,he.options),Xt.applyStylesToKeyframe()}),he.currentTimeline.mergeTimelineCollectedStyles(Xt),he.transformIntoNewTimeline(wt+Pt),he.previousNode=ie}visitQuery(ie,he){const je=he.currentTimeline.currentTime,wt=ie.options||{},Pt=wt.delay?N(wt.delay):0;Pt&&(6===he.previousNode.type||0==je&&he.currentTimeline.getCurrentStyleProperties().length)&&(he.currentTimeline.snapshotCurrentStyles(),he.previousNode=li);let Qt=je;const Xt=he.invokeQuery(ie.selector,ie.originalSelector,ie.limit,ie.includeSelf,!!wt.optional,he.errors);he.currentQueryTotal=Xt.length;let pi=null;Xt.forEach((Ti,Zi)=>{he.currentQueryIndex=Zi;const tn=he.createSubContext(ie.options,Ti);Pt&&tn.delayNextStep(Pt),Ti===he.element&&(pi=tn.currentTimeline),Ue(this,ie.animation,tn),tn.currentTimeline.applyStylesToKeyframe(),Qt=Math.max(Qt,tn.currentTimeline.currentTime)}),he.currentQueryIndex=0,he.currentQueryTotal=0,he.transformIntoNewTimeline(Qt),pi&&(he.currentTimeline.mergeTimelineCollectedStyles(pi),he.currentTimeline.snapshotCurrentStyles()),he.previousNode=ie}visitStagger(ie,he){const je=he.parentContext,wt=he.currentTimeline,Pt=ie.timings,Qt=Math.abs(Pt.duration),Xt=Qt*(he.currentQueryTotal-1);let pi=Qt*he.currentQueryIndex;switch(Pt.duration<0?"reverse":Pt.easing){case"reverse":pi=Xt-pi;break;case"full":pi=je.currentStaggerTime}const Zi=he.currentTimeline;pi&&Zi.delayNextStep(pi);const tn=Zi.currentTime;Ue(this,ie.animation,he),he.previousNode=ie,je.currentStaggerTime=wt.currentTime-tn+(wt.startTime-je.currentTimeline.startTime)}}const li={};class Bt{constructor(ie,he,je,wt,Pt,Qt,Xt,pi){this._driver=ie,this.element=he,this.subInstructions=je,this._enterClassName=wt,this._leaveClassName=Pt,this.errors=Qt,this.timelines=Xt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=pi||new Rt(this._driver,he,0),Xt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(ie,he){if(!ie)return;const je=ie;let wt=this.options;null!=je.duration&&(wt.duration=N(je.duration)),null!=je.delay&&(wt.delay=N(je.delay));const Pt=je.params;if(Pt){let Qt=wt.params;Qt||(Qt=this.options.params={}),Object.keys(Pt).forEach(Xt=>{(!he||!Qt.hasOwnProperty(Xt))&&(Qt[Xt]=ce(Pt[Xt],Qt,this.errors))})}}_copyOptions(){const ie={};if(this.options){const he=this.options.params;if(he){const je=ie.params={};Object.keys(he).forEach(wt=>{je[wt]=he[wt]})}}return ie}createSubContext(ie=null,he,je){const wt=he||this.element,Pt=new Bt(this._driver,wt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(wt,je||0));return Pt.previousNode=this.previousNode,Pt.currentAnimateTimings=this.currentAnimateTimings,Pt.options=this._copyOptions(),Pt.updateOptions(ie),Pt.currentQueryIndex=this.currentQueryIndex,Pt.currentQueryTotal=this.currentQueryTotal,Pt.parentContext=this,this.subContextCount++,Pt}transformIntoNewTimeline(ie){return this.previousNode=li,this.currentTimeline=this.currentTimeline.fork(this.element,ie),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(ie,he,je){const wt={duration:null!=he?he:ie.duration,delay:this.currentTimeline.currentTime+(null!=je?je:0)+ie.delay,easing:""},Pt=new Li(this._driver,ie.element,ie.keyframes,ie.preStyleProps,ie.postStyleProps,wt,ie.stretchStartingKeyframe);return this.timelines.push(Pt),wt}incrementTime(ie){this.currentTimeline.forwardTime(this.currentTimeline.duration+ie)}delayNextStep(ie){ie>0&&this.currentTimeline.delayNextStep(ie)}invokeQuery(ie,he,je,wt,Pt,Qt){let Xt=[];if(wt&&Xt.push(this.element),ie.length>0){ie=(ie=ie.replace(ke,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let Ti=this._driver.query(this.element,ie,1!=je);0!==je&&(Ti=je<0?Ti.slice(Ti.length+je,Ti.length):Ti.slice(0,je)),Xt.push(...Ti)}return!Pt&&0==Xt.length&&Qt.push(`\`query("${he}")\` returned zero elements. (Use \`query("${he}", { optional: true })\` if you wish to allow this.)`),Xt}}class Rt{constructor(ie,he,je,wt){this._driver=ie,this.element=he,this.startTime=je,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(ie){const he=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||he?(this.forwardTime(this.currentTime+ie),he&&this.snapshotCurrentStyles()):this.startTime+=ie}fork(ie,he){return this.applyStylesToKeyframe(),new Rt(this._driver,ie,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(ie){this.applyStylesToKeyframe(),this.duration=ie,this._loadKeyframe()}_updateStyle(ie,he){this._localTimelineStyles[ie]=he,this._globalTimelineStyles[ie]=he,this._styleSummary[ie]={time:this.currentTime,value:he}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(ie){ie&&(this._previousKeyframe.easing=ie),Object.keys(this._globalTimelineStyles).forEach(he=>{this._backFill[he]=this._globalTimelineStyles[he]||y.l3,this._currentKeyframe[he]=y.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(ie,he,je,wt){he&&(this._previousKeyframe.easing=he);const Pt=wt&&wt.params||{},Qt=function ci(xt,ie){const he={};let je;return xt.forEach(wt=>{"*"===wt?(je=je||Object.keys(ie),je.forEach(Pt=>{he[Pt]=y.l3})):Oe(wt,!1,he)}),he}(ie,this._globalTimelineStyles);Object.keys(Qt).forEach(Xt=>{const pi=ce(Qt[Xt],Pt,je);this._pendingStyles[Xt]=pi,this._localTimelineStyles.hasOwnProperty(Xt)||(this._backFill[Xt]=this._globalTimelineStyles.hasOwnProperty(Xt)?this._globalTimelineStyles[Xt]:y.l3),this._updateStyle(Xt,pi)})}applyStylesToKeyframe(){const ie=this._pendingStyles,he=Object.keys(ie);0!=he.length&&(this._pendingStyles={},he.forEach(je=>{this._currentKeyframe[je]=ie[je]}),Object.keys(this._localTimelineStyles).forEach(je=>{this._currentKeyframe.hasOwnProperty(je)||(this._currentKeyframe[je]=this._localTimelineStyles[je])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(ie=>{const he=this._localTimelineStyles[ie];this._pendingStyles[ie]=he,this._updateStyle(ie,he)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const ie=[];for(let he in this._currentKeyframe)ie.push(he);return ie}mergeTimelineCollectedStyles(ie){Object.keys(ie._styleSummary).forEach(he=>{const je=this._styleSummary[he],wt=ie._styleSummary[he];(!je||wt.time>je.time)&&this._updateStyle(he,wt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const ie=new Set,he=new Set,je=1===this._keyframes.size&&0===this.duration;let wt=[];this._keyframes.forEach((Xt,pi)=>{const Ti=Oe(Xt,!0);Object.keys(Ti).forEach(Zi=>{const tn=Ti[Zi];tn==y.k1?ie.add(Zi):tn==y.l3&&he.add(Zi)}),je||(Ti.offset=pi/this.duration),wt.push(Ti)});const Pt=ie.size?Le(ie.values()):[],Qt=he.size?Le(he.values()):[];if(je){const Xt=wt[0],pi=Re(Xt);Xt.offset=0,pi.offset=1,wt=[Xt,pi]}return $t(this.element,wt,Pt,Qt,this.duration,this.startTime,this.easing,!1)}}class Li extends Rt{constructor(ie,he,je,wt,Pt,Qt,Xt=!1){super(ie,he,Qt.delay),this.keyframes=je,this.preStyleProps=wt,this.postStyleProps=Pt,this._stretchStartingKeyframe=Xt,this.timings={duration:Qt.duration,delay:Qt.delay,easing:Qt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let ie=this.keyframes,{delay:he,duration:je,easing:wt}=this.timings;if(this._stretchStartingKeyframe&&he){const Pt=[],Qt=je+he,Xt=he/Qt,pi=Oe(ie[0],!1);pi.offset=0,Pt.push(pi);const Ti=Oe(ie[0],!1);Ti.offset=si(Xt),Pt.push(Ti);const Zi=ie.length-1;for(let tn=1;tn<=Zi;tn++){let Mn=Oe(ie[tn],!1);Mn.offset=si((he+Mn.offset*je)/Qt),Pt.push(Mn)}je=Qt,he=0,wt="",ie=Pt}return $t(this.element,ie,this.preStyleProps,this.postStyleProps,je,he,wt,!0)}}function si(xt,ie=3){const he=Math.pow(10,ie-1);return Math.round(xt*he)/he}class Ui{}class Xi extends Ui{normalizePropertyName(ie,he){return q(ie)}normalizeStyleValue(ie,he,je,wt){let Pt="";const Qt=je.toString().trim();if(Ke[he]&&0!==je&&"0"!==je)if("number"==typeof je)Pt="px";else{const Xt=je.match(/^[+-]?[\d\.]+([a-z]*)$/);Xt&&0==Xt[1].length&&wt.push(`Please provide a CSS unit value for ${ie}:${je}`)}return Qt+Pt}}const Ke=(()=>function _t(xt){const ie={};return xt.forEach(he=>ie[he]=!0),ie}("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 _e(xt,ie,he,je,wt,Pt,Qt,Xt,pi,Ti,Zi,tn,Mn){return{type:0,element:xt,triggerName:ie,isRemovalTransition:wt,fromState:he,fromStyles:Pt,toState:je,toStyles:Qt,timelines:Xt,queriedElements:pi,preStyleProps:Ti,postStyleProps:Zi,totalTime:tn,errors:Mn}}const qe={};class yt{constructor(ie,he,je){this._triggerName=ie,this.ast=he,this._stateStyles=je}match(ie,he,je,wt){return function ue(xt,ie,he,je,wt){return xt.some(Pt=>Pt(ie,he,je,wt))}(this.ast.matchers,ie,he,je,wt)}buildStyles(ie,he,je){const wt=this._stateStyles["*"],Pt=this._stateStyles[ie],Qt=wt?wt.buildStyles(he,je):{};return Pt?Pt.buildStyles(he,je):Qt}build(ie,he,je,wt,Pt,Qt,Xt,pi,Ti,Zi){const tn=[],Mn=this.ast.options&&this.ast.options.params||qe,tt=this.buildStyles(je,Xt&&Xt.params||qe,tn),Et=pi&&pi.params||qe,It=this.buildStyles(wt,Et,tn),zt=new Set,ri=new Map,vi=new Map,Mi="void"===wt,Ai={params:Object.assign(Object.assign({},Mn),Et)},Ki=Zi?[]:st(ie,he,this.ast.animation,Pt,Qt,tt,It,Ai,Ti,tn);let un=0;if(Ki.forEach(En=>{un=Math.max(En.duration+En.delay,un)}),tn.length)return _e(he,this._triggerName,je,wt,Mi,tt,It,[],[],ri,vi,un,tn);Ki.forEach(En=>{const zn=En.element,Rr=I(ri,zn,{});En.preStyleProps.forEach(wr=>Rr[wr]=!0);const Fr=I(vi,zn,{});En.postStyleProps.forEach(wr=>Fr[wr]=!0),zn!==he&&zt.add(zn)});const gn=Le(zt.values());return _e(he,this._triggerName,je,wt,Mi,tt,It,Ki,gn,ri,vi,un)}}class Je{constructor(ie,he,je){this.styles=ie,this.defaultParams=he,this.normalizer=je}buildStyles(ie,he){const je={},wt=Re(this.defaultParams);return Object.keys(ie).forEach(Pt=>{const Qt=ie[Pt];null!=Qt&&(wt[Pt]=Qt)}),this.styles.styles.forEach(Pt=>{if("string"!=typeof Pt){const Qt=Pt;Object.keys(Qt).forEach(Xt=>{let pi=Qt[Xt];pi.length>1&&(pi=ce(pi,wt,he));const Ti=this.normalizer.normalizePropertyName(Xt,he);pi=this.normalizer.normalizeStyleValue(Xt,Ti,pi,he),je[Ti]=pi})}}),je}}class kt{constructor(ie,he,je){this.name=ie,this.ast=he,this._normalizer=je,this.transitionFactories=[],this.states={},he.states.forEach(wt=>{this.states[wt.name]=new Je(wt.style,wt.options&&wt.options.params||{},je)}),Ni(this.states,"true","1"),Ni(this.states,"false","0"),he.transitions.forEach(wt=>{this.transitionFactories.push(new yt(ie,wt,this.states))}),this.fallbackTransition=function yi(xt,ie,he){return new yt(xt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Qt,Xt)=>!0],options:null,queryCount:0,depCount:0},ie)}(ie,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(ie,he,je,wt){return this.transitionFactories.find(Qt=>Qt.match(ie,he,je,wt))||null}matchStyles(ie,he,je){return this.fallbackTransition.buildStyles(ie,he,je)}}function Ni(xt,ie,he){xt.hasOwnProperty(ie)?xt.hasOwnProperty(he)||(xt[he]=xt[ie]):xt.hasOwnProperty(he)&&(xt[ie]=xt[he])}const Si=new Nt;class qi{constructor(ie,he,je){this.bodyNode=ie,this._driver=he,this._normalizer=je,this._animations={},this._playersById={},this.players=[]}register(ie,he){const je=[],wt=jt(this._driver,he,je);if(je.length)throw new Error(`Unable to build the animation due to the following errors: ${je.join("\n")}`);this._animations[ie]=wt}_buildPlayer(ie,he,je){const wt=ie.element,Pt=l(0,this._normalizer,0,ie.keyframes,he,je);return this._driver.animate(wt,Pt,ie.duration,ie.delay,ie.easing,[],!0)}create(ie,he,je={}){const wt=[],Pt=this._animations[ie];let Qt;const Xt=new Map;if(Pt?(Qt=st(this._driver,he,Pt,u,_,{},{},je,Si,wt),Qt.forEach(Zi=>{const tn=I(Xt,Zi.element,{});Zi.postStyleProps.forEach(Mn=>tn[Mn]=null)})):(wt.push("The requested animation doesn't exist or has already been destroyed"),Qt=[]),wt.length)throw new Error(`Unable to create the animation due to the following errors: ${wt.join("\n")}`);Xt.forEach((Zi,tn)=>{Object.keys(Zi).forEach(Mn=>{Zi[Mn]=this._driver.computeStyle(tn,Mn,y.l3)})});const Ti=M(Qt.map(Zi=>{const tn=Xt.get(Zi.element);return this._buildPlayer(Zi,{},tn)}));return this._playersById[ie]=Ti,Ti.onDestroy(()=>this.destroy(ie)),this.players.push(Ti),Ti}destroy(ie){const he=this._getPlayer(ie);he.destroy(),delete this._playersById[ie];const je=this.players.indexOf(he);je>=0&&this.players.splice(je,1)}_getPlayer(ie){const he=this._playersById[ie];if(!he)throw new Error(`Unable to find the timeline player referenced by ${ie}`);return he}listen(ie,he,je,wt){const Pt=L(he,"","","");return R(this._getPlayer(ie),je,Pt,wt),()=>{}}command(ie,he,je,wt){if("register"==je)return void this.register(ie,wt[0]);if("create"==je)return void this.create(ie,he,wt[0]||{});const Pt=this._getPlayer(ie);switch(je){case"play":Pt.play();break;case"pause":Pt.pause();break;case"reset":Pt.reset();break;case"restart":Pt.restart();break;case"finish":Pt.finish();break;case"init":Pt.init();break;case"setPosition":Pt.setPosition(parseFloat(wt[0]));break;case"destroy":this.destroy(ie)}}}const ot="ng-animate-queued",gt="ng-animate-disabled",Lt=".ng-animate-disabled",Yi=[],$i={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ln="__ng_removed";class _n{constructor(ie,he=""){this.namespaceId=he;const je=ie&&ie.hasOwnProperty("value");if(this.value=function La(xt){return null!=xt?xt:null}(je?ie.value:ie),je){const Pt=Re(ie);delete Pt.value,this.options=Pt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(ie){const he=ie.params;if(he){const je=this.options.params;Object.keys(he).forEach(wt=>{null==je[wt]&&(je[wt]=he[wt])})}}}const kn="void",dr=new _n(kn);class wi{constructor(ie,he,je){this.id=ie,this.hostElement=he,this._engine=je,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+ie,ur(he,this._hostClassName)}listen(ie,he,je,wt){if(!this._triggers.hasOwnProperty(he))throw new Error(`Unable to listen on the animation trigger event "${je}" because the animation trigger "${he}" doesn't exist!`);if(null==je||0==je.length)throw new Error(`Unable to listen on the animation trigger "${he}" because the provided event is undefined!`);if(!function Or(xt){return"start"==xt||"done"==xt}(je))throw new Error(`The provided animation trigger event "${je}" for the animation trigger "${he}" is not supported!`);const Pt=I(this._elementListeners,ie,[]),Qt={name:he,phase:je,callback:wt};Pt.push(Qt);const Xt=I(this._engine.statesByElement,ie,{});return Xt.hasOwnProperty(he)||(ur(ie,x),ur(ie,x+"-"+he),Xt[he]=dr),()=>{this._engine.afterFlush(()=>{const pi=Pt.indexOf(Qt);pi>=0&&Pt.splice(pi,1),this._triggers[he]||delete Xt[he]})}}register(ie,he){return!this._triggers[ie]&&(this._triggers[ie]=he,!0)}_getTrigger(ie){const he=this._triggers[ie];if(!he)throw new Error(`The provided animation trigger "${ie}" has not been registered!`);return he}trigger(ie,he,je,wt=!0){const Pt=this._getTrigger(he),Qt=new dn(this.id,he,ie);let Xt=this._engine.statesByElement.get(ie);Xt||(ur(ie,x),ur(ie,x+"-"+he),this._engine.statesByElement.set(ie,Xt={}));let pi=Xt[he];const Ti=new _n(je,this.id);if(!(je&&je.hasOwnProperty("value"))&&pi&&Ti.absorbOptions(pi.options),Xt[he]=Ti,pi||(pi=dr),Ti.value!==kn&&pi.value===Ti.value){if(!function Ya(xt,ie){const he=Object.keys(xt),je=Object.keys(ie);if(he.length!=je.length)return!1;for(let wt=0;wt{z(ie,It),we(ie,zt)})}return}const Mn=I(this._engine.playersByElement,ie,[]);Mn.forEach(Et=>{Et.namespaceId==this.id&&Et.triggerName==he&&Et.queued&&Et.destroy()});let On=Pt.matchTransition(pi.value,Ti.value,ie,Ti.params),tt=!1;if(!On){if(!wt)return;On=Pt.fallbackTransition,tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:ie,triggerName:he,transition:On,fromState:pi,toState:Ti,player:Qt,isFallbackTransition:tt}),tt||(ur(ie,ot),Qt.onStart(()=>{pa(ie,ot)})),Qt.onDone(()=>{let Et=this.players.indexOf(Qt);Et>=0&&this.players.splice(Et,1);const It=this._engine.playersByElement.get(ie);if(It){let zt=It.indexOf(Qt);zt>=0&&It.splice(zt,1)}}),this.players.push(Qt),Mn.push(Qt),Qt}deregister(ie){delete this._triggers[ie],this._engine.statesByElement.forEach((he,je)=>{delete he[ie]}),this._elementListeners.forEach((he,je)=>{this._elementListeners.set(je,he.filter(wt=>wt.name!=ie))})}clearElementCache(ie){this._engine.statesByElement.delete(ie),this._elementListeners.delete(ie);const he=this._engine.playersByElement.get(ie);he&&(he.forEach(je=>je.destroy()),this._engine.playersByElement.delete(ie))}_signalRemovalForInnerTriggers(ie,he){const je=this._engine.driver.query(ie,r,!0);je.forEach(wt=>{if(wt[Ln])return;const Pt=this._engine.fetchNamespacesByElement(wt);Pt.size?Pt.forEach(Qt=>Qt.triggerLeaveAnimation(wt,he,!1,!0)):this.clearElementCache(wt)}),this._engine.afterFlushAnimationsDone(()=>je.forEach(wt=>this.clearElementCache(wt)))}triggerLeaveAnimation(ie,he,je,wt){const Pt=this._engine.statesByElement.get(ie);if(Pt){const Qt=[];if(Object.keys(Pt).forEach(Xt=>{if(this._triggers[Xt]){const pi=this.trigger(ie,Xt,kn,wt);pi&&Qt.push(pi)}}),Qt.length)return this._engine.markElementAsRemoved(this.id,ie,!0,he),je&&M(Qt).onDone(()=>this._engine.processLeaveNode(ie)),!0}return!1}prepareLeaveAnimationListeners(ie){const he=this._elementListeners.get(ie),je=this._engine.statesByElement.get(ie);if(he&&je){const wt=new Set;he.forEach(Pt=>{const Qt=Pt.name;if(wt.has(Qt))return;wt.add(Qt);const pi=this._triggers[Qt].fallbackTransition,Ti=je[Qt]||dr,Zi=new _n(kn),tn=new dn(this.id,Qt,ie);this._engine.totalQueuedPlayers++,this._queue.push({element:ie,triggerName:Qt,transition:pi,fromState:Ti,toState:Zi,player:tn,isFallbackTransition:!0})})}}removeNode(ie,he){const je=this._engine;if(ie.childElementCount&&this._signalRemovalForInnerTriggers(ie,he),this.triggerLeaveAnimation(ie,he,!0))return;let wt=!1;if(je.totalAnimations){const Pt=je.players.length?je.playersByQueriedElement.get(ie):[];if(Pt&&Pt.length)wt=!0;else{let Qt=ie;for(;Qt=Qt.parentNode;)if(je.statesByElement.get(Qt)){wt=!0;break}}}if(this.prepareLeaveAnimationListeners(ie),wt)je.markElementAsRemoved(this.id,ie,!1,he);else{const Pt=ie[Ln];(!Pt||Pt===$i)&&(je.afterFlush(()=>this.clearElementCache(ie)),je.destroyInnerAnimations(ie),je._onRemovalComplete(ie,he))}}insertNode(ie,he){ur(ie,this._hostClassName)}drainQueuedTransitions(ie){const he=[];return this._queue.forEach(je=>{const wt=je.player;if(wt.destroyed)return;const Pt=je.element,Qt=this._elementListeners.get(Pt);Qt&&Qt.forEach(Xt=>{if(Xt.name==je.triggerName){const pi=L(Pt,je.triggerName,je.fromState.value,je.toState.value);pi._data=ie,R(je.player,Xt.phase,pi,Xt.callback)}}),wt.markedForDestroy?this._engine.afterFlush(()=>{wt.destroy()}):he.push(je)}),this._queue=[],he.sort((je,wt)=>{const Pt=je.transition.ast.depCount,Qt=wt.transition.ast.depCount;return 0==Pt||0==Qt?Pt-Qt:this._engine.driver.containsElement(je.element,wt.element)?1:-1})}destroy(ie){this.players.forEach(he=>he.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,ie)}elementContainsData(ie){let he=!1;return this._elementListeners.has(ie)&&(he=!0),he=!!this._queue.find(je=>je.element===ie)||he,he}}class Fi{constructor(ie,he,je){this.bodyNode=ie,this.driver=he,this._normalizer=je,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,Pt)=>{}}_onRemovalComplete(ie,he){this.onRemovalComplete(ie,he)}get queuedPlayers(){const ie=[];return this._namespaceList.forEach(he=>{he.players.forEach(je=>{je.queued&&ie.push(je)})}),ie}createNamespace(ie,he){const je=new wi(ie,he,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,he)?this._balanceNamespaceList(je,he):(this.newHostElements.set(he,je),this.collectEnterElement(he)),this._namespaceLookup[ie]=je}_balanceNamespaceList(ie,he){const je=this._namespaceList.length-1;if(je>=0){let wt=!1;for(let Pt=je;Pt>=0;Pt--)if(this.driver.containsElement(this._namespaceList[Pt].hostElement,he)){this._namespaceList.splice(Pt+1,0,ie),wt=!0;break}wt||this._namespaceList.splice(0,0,ie)}else this._namespaceList.push(ie);return this.namespacesByHostElement.set(he,ie),ie}register(ie,he){let je=this._namespaceLookup[ie];return je||(je=this.createNamespace(ie,he)),je}registerTrigger(ie,he,je){let wt=this._namespaceLookup[ie];wt&&wt.register(he,je)&&this.totalAnimations++}destroy(ie,he){if(!ie)return;const je=this._fetchNamespace(ie);this.afterFlush(()=>{this.namespacesByHostElement.delete(je.hostElement),delete this._namespaceLookup[ie];const wt=this._namespaceList.indexOf(je);wt>=0&&this._namespaceList.splice(wt,1)}),this.afterFlushAnimationsDone(()=>je.destroy(he))}_fetchNamespace(ie){return this._namespaceLookup[ie]}fetchNamespacesByElement(ie){const he=new Set,je=this.statesByElement.get(ie);if(je){const wt=Object.keys(je);for(let Pt=0;Pt=0&&this.collectedLeaveElements.splice(Qt,1)}if(ie){const Qt=this._fetchNamespace(ie);Qt&&Qt.insertNode(he,je)}wt&&this.collectEnterElement(he)}collectEnterElement(ie){this.collectedEnterElements.push(ie)}markElementAsDisabled(ie,he){he?this.disabledNodes.has(ie)||(this.disabledNodes.add(ie),ur(ie,gt)):this.disabledNodes.has(ie)&&(this.disabledNodes.delete(ie),pa(ie,gt))}removeNode(ie,he,je,wt){if(Gn(he)){const Pt=ie?this._fetchNamespace(ie):null;if(Pt?Pt.removeNode(he,wt):this.markElementAsRemoved(ie,he,!1,wt),je){const Qt=this.namespacesByHostElement.get(he);Qt&&Qt.id!==ie&&Qt.removeNode(he,wt)}}else this._onRemovalComplete(he,wt)}markElementAsRemoved(ie,he,je,wt){this.collectedLeaveElements.push(he),he[Ln]={namespaceId:ie,setForRemoval:wt,hasAnimation:je,removedBeforeQueried:!1}}listen(ie,he,je,wt,Pt){return Gn(he)?this._fetchNamespace(ie).listen(he,je,wt,Pt):()=>{}}_buildInstruction(ie,he,je,wt,Pt){return ie.transition.build(this.driver,ie.element,ie.fromState.value,ie.toState.value,je,wt,ie.fromState.options,ie.toState.options,he,Pt)}destroyInnerAnimations(ie){let he=this.driver.query(ie,r,!0);he.forEach(je=>this.destroyActiveAnimationsForElement(je)),0!=this.playersByQueriedElement.size&&(he=this.driver.query(ie,Z,!0),he.forEach(je=>this.finishActiveQueriedAnimationOnElement(je)))}destroyActiveAnimationsForElement(ie){const he=this.playersByElement.get(ie);he&&he.forEach(je=>{je.queued?je.markedForDestroy=!0:je.destroy()})}finishActiveQueriedAnimationOnElement(ie){const he=this.playersByQueriedElement.get(ie);he&&he.forEach(je=>je.finish())}whenRenderingDone(){return new Promise(ie=>{if(this.players.length)return M(this.players).onDone(()=>ie());ie()})}processLeaveNode(ie){const he=ie[Ln];if(he&&he.setForRemoval){if(ie[Ln]=$i,he.namespaceId){this.destroyInnerAnimations(ie);const je=this._fetchNamespace(he.namespaceId);je&&je.clearElementCache(ie)}this._onRemovalComplete(ie,he.setForRemoval)}this.driver.matchesElement(ie,Lt)&&this.markElementAsDisabled(ie,!1),this.driver.query(ie,Lt,!0).forEach(je=>{this.markElementAsDisabled(je,!1)})}flush(ie=-1){let he=[];if(this.newHostElements.size&&(this.newHostElements.forEach((je,wt)=>this._balanceNamespaceList(je,wt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let je=0;jeje()),this._flushFns=[],this._whenQuietFns.length){const je=this._whenQuietFns;this._whenQuietFns=[],he.length?M(he).onDone(()=>{je.forEach(wt=>wt())}):je.forEach(wt=>wt())}}reportError(ie){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${ie.join("\n")}`)}_flushAnimations(ie,he){const je=new Nt,wt=[],Pt=new Map,Qt=[],Xt=new Map,pi=new Map,Ti=new Map,Zi=new Set;this.disabledNodes.forEach(Hi=>{Zi.add(Hi);const on=this.driver.query(Hi,".ng-animate-queued",!0);for(let nn=0;nn{const nn=u+Et++;tt.set(on,nn),Hi.forEach(Pn=>ur(Pn,nn))});const It=[],zt=new Set,ri=new Set;for(let Hi=0;Hizt.add(Pn)):ri.add(on))}const vi=new Map,Mi=Fa(Mn,Array.from(zt));Mi.forEach((Hi,on)=>{const nn=_+Et++;vi.set(on,nn),Hi.forEach(Pn=>ur(Pn,nn))}),ie.push(()=>{On.forEach((Hi,on)=>{const nn=tt.get(on);Hi.forEach(Pn=>pa(Pn,nn))}),Mi.forEach((Hi,on)=>{const nn=vi.get(on);Hi.forEach(Pn=>pa(Pn,nn))}),It.forEach(Hi=>{this.processLeaveNode(Hi)})});const Ai=[],Ki=[];for(let Hi=this._namespaceList.length-1;Hi>=0;Hi--)this._namespaceList[Hi].drainQueuedTransitions(he).forEach(nn=>{const Pn=nn.player,jn=nn.element;if(Ai.push(Pn),this.collectedEnterElements.length){const Ia=jn[Ln];if(Ia&&Ia.setForMove)return void Pn.destroy()}const da=!tn||!this.driver.containsElement(tn,jn),Xr=vi.get(jn),$r=tt.get(jn),Yn=this._buildInstruction(nn,je,$r,Xr,da);if(Yn.errors&&Yn.errors.length)Ki.push(Yn);else{if(da)return Pn.onStart(()=>z(jn,Yn.fromStyles)),Pn.onDestroy(()=>we(jn,Yn.toStyles)),void wt.push(Pn);if(nn.isFallbackTransition)return Pn.onStart(()=>z(jn,Yn.fromStyles)),Pn.onDestroy(()=>we(jn,Yn.toStyles)),void wt.push(Pn);Yn.timelines.forEach(Ia=>Ia.stretchStartingKeyframe=!0),je.append(jn,Yn.timelines),Qt.push({instruction:Yn,player:Pn,element:jn}),Yn.queriedElements.forEach(Ia=>I(Xt,Ia,[]).push(Pn)),Yn.preStyleProps.forEach((Ia,Ps)=>{const Zs=Object.keys(Ia);if(Zs.length){let va=pi.get(Ps);va||pi.set(Ps,va=new Set),Zs.forEach(us=>va.add(us))}}),Yn.postStyleProps.forEach((Ia,Ps)=>{const Zs=Object.keys(Ia);let va=Ti.get(Ps);va||Ti.set(Ps,va=new Set),Zs.forEach(us=>va.add(us))})}});if(Ki.length){const Hi=[];Ki.forEach(on=>{Hi.push(`@${on.triggerName} has failed due to:\n`),on.errors.forEach(nn=>Hi.push(`- ${nn}\n`))}),Ai.forEach(on=>on.destroy()),this.reportError(Hi)}const un=new Map,gn=new Map;Qt.forEach(Hi=>{const on=Hi.element;je.has(on)&&(gn.set(on,on),this._beforeAnimationBuild(Hi.player.namespaceId,Hi.instruction,un))}),wt.forEach(Hi=>{const on=Hi.element;this._getPreviousPlayers(on,!1,Hi.namespaceId,Hi.triggerName,null).forEach(Pn=>{I(un,on,[]).push(Pn),Pn.destroy()})});const En=It.filter(Hi=>Zr(Hi,pi,Ti)),zn=new Map;Ma(zn,this.driver,ri,Ti,y.l3).forEach(Hi=>{Zr(Hi,pi,Ti)&&En.push(Hi)});const Fr=new Map;On.forEach((Hi,on)=>{Ma(Fr,this.driver,new Set(Hi),pi,y.k1)}),En.forEach(Hi=>{const on=zn.get(Hi),nn=Fr.get(Hi);zn.set(Hi,Object.assign(Object.assign({},on),nn))});const wr=[],Vn=[],mr={};Qt.forEach(Hi=>{const{element:on,player:nn,instruction:Pn}=Hi;if(je.has(on)){if(Zi.has(on))return nn.onDestroy(()=>we(on,Pn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(Pn.totalTime),void wt.push(nn);let jn=mr;if(gn.size>1){let Xr=on;const $r=[];for(;Xr=Xr.parentNode;){const Yn=gn.get(Xr);if(Yn){jn=Yn;break}$r.push(Xr)}$r.forEach(Yn=>gn.set(Yn,jn))}const da=this._buildAnimation(nn.namespaceId,Pn,un,Pt,Fr,zn);if(nn.setRealPlayer(da),jn===mr)wr.push(nn);else{const Xr=this.playersByElement.get(jn);Xr&&Xr.length&&(nn.parentPlayer=M(Xr)),wt.push(nn)}}else z(on,Pn.fromStyles),nn.onDestroy(()=>we(on,Pn.toStyles)),Vn.push(nn),Zi.has(on)&&wt.push(nn)}),Vn.forEach(Hi=>{const on=Pt.get(Hi.element);if(on&&on.length){const nn=M(on);Hi.setRealPlayer(nn)}}),wt.forEach(Hi=>{Hi.parentPlayer?Hi.syncPlayerEvents(Hi.parentPlayer):Hi.destroy()});for(let Hi=0;Hi!da.destroyed);jn.length?ma(this,on,jn):this.processLeaveNode(on)}return It.length=0,wr.forEach(Hi=>{this.players.push(Hi),Hi.onDone(()=>{Hi.destroy();const on=this.players.indexOf(Hi);this.players.splice(on,1)}),Hi.play()}),wr}elementContainsData(ie,he){let je=!1;const wt=he[Ln];return wt&&wt.setForRemoval&&(je=!0),this.playersByElement.has(he)&&(je=!0),this.playersByQueriedElement.has(he)&&(je=!0),this.statesByElement.has(he)&&(je=!0),this._fetchNamespace(ie).elementContainsData(he)||je}afterFlush(ie){this._flushFns.push(ie)}afterFlushAnimationsDone(ie){this._whenQuietFns.push(ie)}_getPreviousPlayers(ie,he,je,wt,Pt){let Qt=[];if(he){const Xt=this.playersByQueriedElement.get(ie);Xt&&(Qt=Xt)}else{const Xt=this.playersByElement.get(ie);if(Xt){const pi=!Pt||Pt==kn;Xt.forEach(Ti=>{Ti.queued||!pi&&Ti.triggerName!=wt||Qt.push(Ti)})}}return(je||wt)&&(Qt=Qt.filter(Xt=>!(je&&je!=Xt.namespaceId||wt&&wt!=Xt.triggerName))),Qt}_beforeAnimationBuild(ie,he,je){const Pt=he.element,Qt=he.isRemovalTransition?void 0:ie,Xt=he.isRemovalTransition?void 0:he.triggerName;for(const pi of he.timelines){const Ti=pi.element,Zi=Ti!==Pt,tn=I(je,Ti,[]);this._getPreviousPlayers(Ti,Zi,Qt,Xt,he.toState).forEach(On=>{const tt=On.getRealPlayer();tt.beforeDestroy&&tt.beforeDestroy(),On.destroy(),tn.push(On)})}z(Pt,he.fromStyles)}_buildAnimation(ie,he,je,wt,Pt,Qt){const Xt=he.triggerName,pi=he.element,Ti=[],Zi=new Set,tn=new Set,Mn=he.timelines.map(tt=>{const Et=tt.element;Zi.add(Et);const It=Et[Ln];if(It&&It.removedBeforeQueried)return new y.ZN(tt.duration,tt.delay);const zt=Et!==pi,ri=function Ir(xt){const ie=[];return Ga(xt,ie),ie}((je.get(Et)||Yi).map(un=>un.getRealPlayer())).filter(un=>!!un.element&&un.element===Et),vi=Pt.get(Et),Mi=Qt.get(Et),Ai=l(0,this._normalizer,0,tt.keyframes,vi,Mi),Ki=this._buildPlayer(tt,Ai,ri);if(tt.subTimeline&&wt&&tn.add(Et),zt){const un=new dn(ie,Xt,Et);un.setRealPlayer(Ki),Ti.push(un)}return Ki});Ti.forEach(tt=>{I(this.playersByQueriedElement,tt.element,[]).push(tt),tt.onDone(()=>function Lr(xt,ie,he){let je;if(xt instanceof Map){if(je=xt.get(ie),je){if(je.length){const wt=je.indexOf(he);je.splice(wt,1)}0==je.length&&xt.delete(ie)}}else if(je=xt[ie],je){if(je.length){const wt=je.indexOf(he);je.splice(wt,1)}0==je.length&&delete xt[ie]}return je}(this.playersByQueriedElement,tt.element,tt))}),Zi.forEach(tt=>ur(tt,b));const On=M(Mn);return On.onDestroy(()=>{Zi.forEach(tt=>pa(tt,b)),we(pi,he.toStyles)}),tn.forEach(tt=>{I(wt,tt,[]).push(On)}),On}_buildPlayer(ie,he,je){return he.length>0?this.driver.animate(ie.element,he,ie.duration,ie.delay,ie.easing,je):new y.ZN(ie.duration,ie.delay)}}class dn{constructor(ie,he,je){this.namespaceId=ie,this.triggerName=he,this.element=je,this._player=new y.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(ie){this._containsRealPlayer||(this._player=ie,Object.keys(this._queuedCallbacks).forEach(he=>{this._queuedCallbacks[he].forEach(je=>R(ie,he,void 0,je))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(ie.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(ie){this.totalTime=ie}syncPlayerEvents(ie){const he=this._player;he.triggerCallback&&ie.onStart(()=>he.triggerCallback("start")),ie.onDone(()=>this.finish()),ie.onDestroy(()=>this.destroy())}_queueEvent(ie,he){I(this._queuedCallbacks,ie,[]).push(he)}onDone(ie){this.queued&&this._queueEvent("done",ie),this._player.onDone(ie)}onStart(ie){this.queued&&this._queueEvent("start",ie),this._player.onStart(ie)}onDestroy(ie){this.queued&&this._queueEvent("destroy",ie),this._player.onDestroy(ie)}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(ie){this.queued||this._player.setPosition(ie)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(ie){const he=this._player;he.triggerCallback&&he.triggerCallback(ie)}}function Gn(xt){return xt&&1===xt.nodeType}function Ra(xt,ie){const he=xt.style.display;return xt.style.display=null!=ie?ie:"none",he}function Ma(xt,ie,he,je,wt){const Pt=[];he.forEach(pi=>Pt.push(Ra(pi)));const Qt=[];je.forEach((pi,Ti)=>{const Zi={};pi.forEach(tn=>{const Mn=Zi[tn]=ie.computeStyle(Ti,tn,wt);(!Mn||0==Mn.length)&&(Ti[Ln]=Cn,Qt.push(Ti))}),xt.set(Ti,Zi)});let Xt=0;return he.forEach(pi=>Ra(pi,Pt[Xt++])),Qt}function Fa(xt,ie){const he=new Map;if(xt.forEach(Xt=>he.set(Xt,[])),0==ie.length)return he;const wt=new Set(ie),Pt=new Map;function Qt(Xt){if(!Xt)return 1;let pi=Pt.get(Xt);if(pi)return pi;const Ti=Xt.parentNode;return pi=he.has(Ti)?Ti:wt.has(Ti)?1:Qt(Ti),Pt.set(Xt,pi),pi}return ie.forEach(Xt=>{const pi=Qt(Xt);1!==pi&&he.get(pi).push(Xt)}),he}const xr="$$classes";function ur(xt,ie){if(xt.classList)xt.classList.add(ie);else{let he=xt[xr];he||(he=xt[xr]={}),he[ie]=!0}}function pa(xt,ie){if(xt.classList)xt.classList.remove(ie);else{let he=xt[xr];he&&delete he[ie]}}function ma(xt,ie,he){M(he).onDone(()=>xt.processLeaveNode(ie))}function Ga(xt,ie){for(let he=0;hewt.add(Pt)):ie.set(xt,je),he.delete(xt),!0}class Pr{constructor(ie,he,je){this.bodyNode=ie,this._driver=he,this._normalizer=je,this._triggerCache={},this.onRemovalComplete=(wt,Pt)=>{},this._transitionEngine=new Fi(ie,he,je),this._timelineEngine=new qi(ie,he,je),this._transitionEngine.onRemovalComplete=(wt,Pt)=>this.onRemovalComplete(wt,Pt)}registerTrigger(ie,he,je,wt,Pt){const Qt=ie+"-"+wt;let Xt=this._triggerCache[Qt];if(!Xt){const pi=[],Ti=jt(this._driver,Pt,pi);if(pi.length)throw new Error(`The animation trigger "${wt}" has failed to build due to the following errors:\n - ${pi.join("\n - ")}`);Xt=function St(xt,ie,he){return new kt(xt,ie,he)}(wt,Ti,this._normalizer),this._triggerCache[Qt]=Xt}this._transitionEngine.registerTrigger(he,wt,Xt)}register(ie,he){this._transitionEngine.register(ie,he)}destroy(ie,he){this._transitionEngine.destroy(ie,he)}onInsert(ie,he,je,wt){this._transitionEngine.insertNode(ie,he,je,wt)}onRemove(ie,he,je,wt){this._transitionEngine.removeNode(ie,he,wt||!1,je)}disableAnimations(ie,he){this._transitionEngine.markElementAsDisabled(ie,he)}process(ie,he,je,wt){if("@"==je.charAt(0)){const[Pt,Qt]=A(je);this._timelineEngine.command(Pt,he,Qt,wt)}else this._transitionEngine.trigger(ie,he,je,wt)}listen(ie,he,je,wt,Pt){if("@"==je.charAt(0)){const[Qt,Xt]=A(je);return this._timelineEngine.listen(Qt,he,Xt,Pt)}return this._transitionEngine.listen(ie,he,je,wt,Pt)}flush(ie=-1){this._transitionEngine.flush(ie)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Kn(xt,ie){let he=null,je=null;return Array.isArray(ie)&&ie.length?(he=Qn(ie[0]),ie.length>1&&(je=Qn(ie[ie.length-1]))):ie&&(he=Qn(ie)),he||je?new vn(xt,he,je):null}let vn=(()=>{class xt{constructor(he,je,wt){this._element=he,this._startStyles=je,this._endStyles=wt,this._state=0;let Pt=xt.initialStylesByElement.get(he);Pt||xt.initialStylesByElement.set(he,Pt={}),this._initialStyles=Pt}start(){this._state<1&&(this._startStyles&&we(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(we(this._element,this._initialStyles),this._endStyles&&(we(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(xt.initialStylesByElement.delete(this._element),this._startStyles&&(z(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),we(this._element,this._initialStyles),this._state=3)}}return xt.initialStylesByElement=new WeakMap,xt})();function Qn(xt){let ie=null;const he=Object.keys(xt);for(let je=0;jethis._handleCallback(pi)}apply(){(function $n(xt,ie){const he=ha(xt,"").trim();let je=0;he.length&&(je=function pr(xt,ie){let he=0;for(let je=0;je=this._delay&&je>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Aa(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function wa(xt,ie){const je=ha(xt,"").split(","),wt=ca(je,ie);wt>=0&&(je.splice(wt,1),Vr(xt,"",je.join(",")))}(this._element,this._name))}}function ga(xt,ie,he){Vr(xt,"PlayState",he,Nr(xt,ie))}function Nr(xt,ie){const he=ha(xt,"");return he.indexOf(",")>0?ca(he.split(","),ie):ca([he],ie)}function ca(xt,ie){for(let he=0;he=0)return he;return-1}function Aa(xt,ie,he){he?xt.removeEventListener(kr,ie):xt.addEventListener(kr,ie)}function Vr(xt,ie,he,je){const wt=Wa+ie;if(null!=je){const Pt=xt.style[wt];if(Pt.length){const Qt=Pt.split(",");Qt[je]=he,he=Qt.join(",")}}xt.style[wt]=he}function ha(xt,ie){return xt.style[Wa+ie]||""}class Oa{constructor(ie,he,je,wt,Pt,Qt,Xt,pi){this.element=ie,this.keyframes=he,this.animationName=je,this._duration=wt,this._delay=Pt,this._finalStyles=Xt,this._specialStyles=pi,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Qt||"linear",this.totalTime=wt+Pt,this._buildStyler()}onStart(ie){this._onStartFns.push(ie)}onDone(ie){this._onDoneFns.push(ie)}onDestroy(ie){this._onDestroyFns.push(ie)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(ie=>ie()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(ie=>ie()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(ie=>ie()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(ie){this._styler.setPosition(ie)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(ie){const he="start"==ie?this._onStartFns:this._onDoneFns;he.forEach(je=>je()),he.length=0}beforeDestroy(){this.init();const ie={};if(this.hasStarted()){const he=this._state>=3;Object.keys(this._finalStyles).forEach(je=>{"offset"!=je&&(ie[je]=he?this._finalStyles[je]:lt(this.element,je))})}this.currentSnapshot=ie}}class ra extends y.ZN{constructor(ie,he){super(),this.element=ie,this._startingStyles={},this.__initialized=!1,this._styles=se(he)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(ie=>{this._startingStyles[ie]=this.element.style[ie]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(ie=>this.element.style.setProperty(ie,this._styles[ie])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(ie=>{const he=this._startingStyles[ie];he?this.element.style.setProperty(ie,he):this.element.style.removeProperty(ie)}),this._startingStyles=null,super.destroy())}}class Zn{constructor(){this._count=0}validateStyleProperty(ie){return ee(ie)}matchesElement(ie,he){return le(ie,he)}containsElement(ie,he){return re(ie,he)}query(ie,he,je){return de(ie,he,je)}computeStyle(ie,he,je){return window.getComputedStyle(ie)[he]}buildKeyframeElement(ie,he,je){je=je.map(Xt=>se(Xt));let wt=`@keyframes ${he} {\n`,Pt="";je.forEach(Xt=>{Pt=" ";const pi=parseFloat(Xt.offset);wt+=`${Pt}${100*pi}% {\n`,Pt+=" ",Object.keys(Xt).forEach(Ti=>{const Zi=Xt[Ti];switch(Ti){case"offset":return;case"easing":return void(Zi&&(wt+=`${Pt}animation-timing-function: ${Zi};\n`));default:return void(wt+=`${Pt}${Ti}: ${Zi};\n`)}}),wt+=`${Pt}}\n`}),wt+="}\n";const Qt=document.createElement("style");return Qt.textContent=wt,Qt}animate(ie,he,je,wt,Pt,Qt=[],Xt){const pi=Qt.filter(It=>It instanceof Oa),Ti={};oe(je,wt)&&pi.forEach(It=>{let zt=It.currentSnapshot;Object.keys(zt).forEach(ri=>Ti[ri]=zt[ri])});const Zi=function ja(xt){let ie={};return xt&&(Array.isArray(xt)?xt:[xt]).forEach(je=>{Object.keys(je).forEach(wt=>{"offset"==wt||"easing"==wt||(ie[wt]=je[wt])})}),ie}(he=Ce(ie,he,Ti));if(0==je)return new ra(ie,Zi);const tn="gen_css_kf_"+this._count++,Mn=this.buildKeyframeElement(ie,tn,he);(function ns(xt){var ie;const he=null===(ie=xt.getRootNode)||void 0===ie?void 0:ie.call(xt);return"undefined"!=typeof ShadowRoot&&he instanceof ShadowRoot?he:document.head})(ie).appendChild(Mn);const tt=Kn(ie,he),Et=new Oa(ie,he,tn,je,wt,Pt,Zi,tt);return Et.onDestroy(()=>function Xe(xt){xt.parentNode.removeChild(xt)}(Mn)),Et}}class ne{constructor(ie,he,je,wt){this.element=ie,this.keyframes=he,this.options=je,this._specialStyles=wt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=je.duration,this._delay=je.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ie=>ie()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const ie=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,ie,this.options),this._finalKeyframe=ie.length?ie[ie.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(ie,he,je){return ie.animate(he,je)}onStart(ie){this._onStartFns.push(ie)}onDone(ie){this._onDoneFns.push(ie)}onDestroy(ie){this._onDestroyFns.push(ie)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(ie=>ie()),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(ie=>ie()),this._onDestroyFns=[])}setPosition(ie){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=ie*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const ie={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(he=>{"offset"!=he&&(ie[he]=this._finished?this._finalKeyframe[he]:lt(this.element,he))}),this.currentSnapshot=ie}triggerCallback(ie){const he="start"==ie?this._onStartFns:this._onDoneFns;he.forEach(je=>je()),he.length=0}}class Qe{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(mi().toString()),this._cssKeyframesDriver=new Zn}validateStyleProperty(ie){return ee(ie)}matchesElement(ie,he){return le(ie,he)}containsElement(ie,he){return re(ie,he)}query(ie,he,je){return de(ie,he,je)}computeStyle(ie,he,je){return window.getComputedStyle(ie)[he]}overrideWebAnimationsSupport(ie){this._isNativeImpl=ie}animate(ie,he,je,wt,Pt,Qt=[],Xt){if(!Xt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(ie,he,je,wt,Pt,Qt);const Zi={duration:je,delay:wt,fill:0==wt?"both":"forwards"};Pt&&(Zi.easing=Pt);const tn={},Mn=Qt.filter(tt=>tt instanceof ne);oe(je,wt)&&Mn.forEach(tt=>{let Et=tt.currentSnapshot;Object.keys(Et).forEach(It=>tn[It]=Et[It])});const On=Kn(ie,he=Ce(ie,he=he.map(tt=>Oe(tt,!1)),tn));return new ne(ie,he,Zi,On)}}function mi(){return C()&&Element.prototype.animate||{}}var Ct=m(9808);let ti=(()=>{class xt extends y._j{constructor(he,je){super(),this._nextAnimationId=0,this._renderer=he.createRenderer(je.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(he){const je=this._nextAnimationId.toString();this._nextAnimationId++;const wt=Array.isArray(he)?(0,y.vP)(he):he;return xi(this._renderer,null,je,"register",[wt]),new bt(je,this._renderer)}}return xt.\u0275fac=function(he){return new(he||xt)(e.LFG(e.FYo),e.LFG(Ct.K0))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class bt extends y.LC{constructor(ie,he){super(),this._id=ie,this._renderer=he}create(ie,he){return new Yt(this._id,ie,he||{},this._renderer)}}class Yt{constructor(ie,he,je,wt){this.id=ie,this.element=he,this._renderer=wt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",je)}_listen(ie,he){return this._renderer.listen(this.element,`@@${this.id}:${ie}`,he)}_command(ie,...he){return xi(this._renderer,this.element,this.id,ie,he)}onDone(ie){this._listen("done",ie)}onStart(ie){this._listen("start",ie)}onDestroy(ie){this._listen("destroy",ie)}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(ie){this._command("setPosition",ie)}getPosition(){var ie,he;return null!==(he=null===(ie=this._renderer.engine.players[+this.id])||void 0===ie?void 0:ie.getPosition())&&void 0!==he?he:0}}function xi(xt,ie,he,je,wt){return xt.setProperty(ie,`@@${he}:${je}`,wt)}const yn="@.disabled";let An=(()=>{class xt{constructor(he,je,wt){this.delegate=he,this.engine=je,this._zone=wt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),je.onRemovalComplete=(Pt,Qt)=>{const Xt=null==Qt?void 0:Qt.parentNode(Pt);Xt&&Qt.removeChild(Xt,Pt)}}createRenderer(he,je){const Pt=this.delegate.createRenderer(he,je);if(!(he&&je&&je.data&&je.data.animation)){let Zi=this._rendererCache.get(Pt);return Zi||(Zi=new Wi("",Pt,this.engine),this._rendererCache.set(Pt,Zi)),Zi}const Qt=je.id,Xt=je.id+"-"+this._currentId;this._currentId++,this.engine.register(Xt,he);const pi=Zi=>{Array.isArray(Zi)?Zi.forEach(pi):this.engine.registerTrigger(Qt,Xt,he,Zi.name,Zi)};return je.data.animation.forEach(pi),new Cr(this,Xt,Pt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(he,je,wt){he>=0&&heje(wt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Pt=>{const[Qt,Xt]=Pt;Qt(Xt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([je,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 xt.\u0275fac=function(he){return new(he||xt)(e.LFG(e.FYo),e.LFG(Pr),e.LFG(e.R0b))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class Wi{constructor(ie,he,je){this.namespaceId=ie,this.delegate=he,this.engine=je,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(ie,he){return this.delegate.createElement(ie,he)}createComment(ie){return this.delegate.createComment(ie)}createText(ie){return this.delegate.createText(ie)}appendChild(ie,he){this.delegate.appendChild(ie,he),this.engine.onInsert(this.namespaceId,he,ie,!1)}insertBefore(ie,he,je,wt=!0){this.delegate.insertBefore(ie,he,je),this.engine.onInsert(this.namespaceId,he,ie,wt)}removeChild(ie,he,je){this.engine.onRemove(this.namespaceId,he,this.delegate,je)}selectRootElement(ie,he){return this.delegate.selectRootElement(ie,he)}parentNode(ie){return this.delegate.parentNode(ie)}nextSibling(ie){return this.delegate.nextSibling(ie)}setAttribute(ie,he,je,wt){this.delegate.setAttribute(ie,he,je,wt)}removeAttribute(ie,he,je){this.delegate.removeAttribute(ie,he,je)}addClass(ie,he){this.delegate.addClass(ie,he)}removeClass(ie,he){this.delegate.removeClass(ie,he)}setStyle(ie,he,je,wt){this.delegate.setStyle(ie,he,je,wt)}removeStyle(ie,he,je){this.delegate.removeStyle(ie,he,je)}setProperty(ie,he,je){"@"==he.charAt(0)&&he==yn?this.disableAnimations(ie,!!je):this.delegate.setProperty(ie,he,je)}setValue(ie,he){this.delegate.setValue(ie,he)}listen(ie,he,je){return this.delegate.listen(ie,he,je)}disableAnimations(ie,he){this.engine.disableAnimations(ie,he)}}class Cr extends Wi{constructor(ie,he,je,wt){super(he,je,wt),this.factory=ie,this.namespaceId=he}setProperty(ie,he,je){"@"==he.charAt(0)?"."==he.charAt(1)&&he==yn?this.disableAnimations(ie,je=void 0===je||!!je):this.engine.process(this.namespaceId,ie,he.substr(1),je):this.delegate.setProperty(ie,he,je)}listen(ie,he,je){if("@"==he.charAt(0)){const wt=function Un(xt){switch(xt){case"body":return document.body;case"document":return document;case"window":return window;default:return xt}}(ie);let Pt=he.substr(1),Qt="";return"@"!=Pt.charAt(0)&&([Pt,Qt]=function Rn(xt){const ie=xt.indexOf(".");return[xt.substring(0,ie),xt.substr(ie+1)]}(Pt)),this.engine.listen(this.namespaceId,wt,Pt,Qt,Xt=>{this.factory.scheduleListenerCallback(Xt._data||-1,je,Xt)})}return this.delegate.listen(ie,he,je)}}let _a=(()=>{class xt extends Pr{constructor(he,je,wt){super(he.body,je,wt)}ngOnDestroy(){this.flush()}}return xt.\u0275fac=function(he){return new(he||xt)(e.LFG(Ct.K0),e.LFG(v),e.LFG(Ui))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();const Pi=new e.OlP("AnimationModuleType"),Nn=[{provide:y._j,useClass:ti},{provide:Ui,useFactory:function ds(){return new Xi}},{provide:Pr,useClass:_a},{provide:e.FYo,useFactory:function vs(xt,ie,he){return new An(xt,ie,he)},deps:[t.se,Pr,e.R0b]}],zs=[{provide:v,useFactory:function Mr(){return function Wt(){return"function"==typeof mi()}()?new Qe:new Zn}},{provide:Pi,useValue:"BrowserAnimations"},...Nn],fr=[{provide:v,useClass:ye},{provide:Pi,useValue:"NoopAnimations"},...Nn];let Us=(()=>{class xt{static withConfig(he){return{ngModule:xt,providers:he.disableAnimations?fr:zs}}}return xt.\u0275fac=function(he){return new(he||xt)},xt.\u0275mod=e.oAB({type:xt}),xt.\u0275inj=e.cJS({providers:zs,imports:[t.b2]}),xt})()},2313:(Ge,Q,m)=>{"use strict";m.d(Q,{b2:()=>vt,H7:()=>$t,t6:()=>et,q6:()=>z,se:()=>u});var e=m(9808),t=m(5e3);class y extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class C extends y{static makeCurrent(){(0,e.HT)(new C)}onAndCancel(Be,at,st){return Be.addEventListener(at,st,!1),()=>{Be.removeEventListener(at,st,!1)}}dispatchEvent(Be,at){Be.dispatchEvent(at)}remove(Be){Be.parentNode&&Be.parentNode.removeChild(Be)}createElement(Be,at){return(at=at||this.getDefaultDocument()).createElement(Be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Be){return Be.nodeType===Node.ELEMENT_NODE}isShadowRoot(Be){return Be instanceof DocumentFragment}getGlobalEventTarget(Be,at){return"window"===at?window:"document"===at?Be:"body"===at?Be.body:null}getBaseHref(Be){const at=function M(){return o=o||document.querySelector("base"),o?o.getAttribute("href"):null}();return null==at?null:function R(ke){l=l||document.createElement("a"),l.setAttribute("href",ke);const Be=l.pathname;return"/"===Be.charAt(0)?Be:`/${Be}`}(at)}resetBaseElement(){o=null}getUserAgent(){return window.navigator.userAgent}getCookie(Be){return(0,e.Mx)(document.cookie,Be)}}let l,o=null;const s=new t.OlP("TRANSITION_ID"),I=[{provide:t.ip1,useFactory:function L(ke,Be,at){return()=>{at.get(t.CZH).donePromise.then(()=>{const st=(0,e.q)(),At=Be.querySelectorAll(`style[ng-transition="${ke}"]`);for(let li=0;li{const li=Be.findTestabilityInTree(st,At);if(null==li)throw new Error("Could not find testability for element.");return li},t.dqk.getAllAngularTestabilities=()=>Be.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>Be.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(st=>{const At=t.dqk.getAllAngularTestabilities();let li=At.length,Bt=!1;const Rt=function(Li){Bt=Bt||Li,li--,0==li&&st(Bt)};At.forEach(function(Li){Li.whenStable(Rt)})})}findTestabilityInTree(Be,at,st){if(null==at)return null;const At=Be.getTestability(at);return null!=At?At:st?(0,e.q)().isShadowRoot(at)?this.findTestabilityInTree(Be,at.host,!0):this.findTestabilityInTree(Be,at.parentElement,!0):null}}let E=(()=>{class ke{build(){return new XMLHttpRequest}}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const P=new t.OlP("EventManagerPlugins");let w=(()=>{class ke{constructor(at,st){this._zone=st,this._eventNameToPlugin=new Map,at.forEach(At=>At.manager=this),this._plugins=at.slice().reverse()}addEventListener(at,st,At){return this._findPluginFor(st).addEventListener(at,st,At)}addGlobalEventListener(at,st,At){return this._findPluginFor(st).addGlobalEventListener(at,st,At)}getZone(){return this._zone}_findPluginFor(at){const st=this._eventNameToPlugin.get(at);if(st)return st;const At=this._plugins;for(let li=0;li{class ke{constructor(){this._stylesSet=new Set}addStyles(at){const st=new Set;at.forEach(At=>{this._stylesSet.has(At)||(this._stylesSet.add(At),st.add(At))}),this.onStylesAdded(st)}onStylesAdded(at){}getAllStyles(){return Array.from(this._stylesSet)}}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),W=(()=>{class ke extends j{constructor(at){super(),this._doc=at,this._hostNodes=new Map,this._hostNodes.set(at.head,[])}_addStylesToHost(at,st,At){at.forEach(li=>{const Bt=this._doc.createElement("style");Bt.textContent=li,At.push(st.appendChild(Bt))})}addHost(at){const st=[];this._addStylesToHost(this._stylesSet,at,st),this._hostNodes.set(at,st)}removeHost(at){const st=this._hostNodes.get(at);st&&st.forEach(te),this._hostNodes.delete(at)}onStylesAdded(at){this._hostNodes.forEach((st,At)=>{this._addStylesToHost(at,At,st)})}ngOnDestroy(){this._hostNodes.forEach(at=>at.forEach(te))}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();function te(ke){(0,e.q)().remove(ke)}const ee={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/"},ge=/%COMP%/g;function i(ke,Be,at){for(let st=0;st{if("__ngUnwrap__"===Be)return ke;!1===ke(Be)&&(Be.preventDefault(),Be.returnValue=!1)}}let u=(()=>{class ke{constructor(at,st,At){this.eventManager=at,this.sharedStylesHost=st,this.appId=At,this.rendererByCompId=new Map,this.defaultRenderer=new _(at)}createRenderer(at,st){if(!at||!st)return this.defaultRenderer;switch(st.encapsulation){case t.ifc.Emulated:{let At=this.rendererByCompId.get(st.id);return At||(At=new x(this.eventManager,this.sharedStylesHost,st,this.appId),this.rendererByCompId.set(st.id,At)),At.applyToHost(at),At}case 1:case t.ifc.ShadowDom:return new r(this.eventManager,this.sharedStylesHost,at,st);default:if(!this.rendererByCompId.has(st.id)){const At=i(st.id,st.styles,[]);this.sharedStylesHost.addStyles(At),this.rendererByCompId.set(st.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(w),t.LFG(W),t.LFG(t.AFp))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();class _{constructor(Be){this.eventManager=Be,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Be,at){return at?document.createElementNS(ee[at]||at,Be):document.createElement(Be)}createComment(Be){return document.createComment(Be)}createText(Be){return document.createTextNode(Be)}appendChild(Be,at){Be.appendChild(at)}insertBefore(Be,at,st){Be&&Be.insertBefore(at,st)}removeChild(Be,at){Be&&Be.removeChild(at)}selectRootElement(Be,at){let st="string"==typeof Be?document.querySelector(Be):Be;if(!st)throw new Error(`The selector "${Be}" did not match any elements`);return at||(st.textContent=""),st}parentNode(Be){return Be.parentNode}nextSibling(Be){return Be.nextSibling}setAttribute(Be,at,st,At){if(At){at=At+":"+at;const li=ee[At];li?Be.setAttributeNS(li,at,st):Be.setAttribute(at,st)}else Be.setAttribute(at,st)}removeAttribute(Be,at,st){if(st){const At=ee[st];At?Be.removeAttributeNS(At,at):Be.removeAttribute(`${st}:${at}`)}else Be.removeAttribute(at)}addClass(Be,at){Be.classList.add(at)}removeClass(Be,at){Be.classList.remove(at)}setStyle(Be,at,st,At){At&(t.JOm.DashCase|t.JOm.Important)?Be.style.setProperty(at,st,At&t.JOm.Important?"important":""):Be.style[at]=st}removeStyle(Be,at,st){st&t.JOm.DashCase?Be.style.removeProperty(at):Be.style[at]=""}setProperty(Be,at,st){Be[at]=st}setValue(Be,at){Be.nodeValue=at}listen(Be,at,st){return"string"==typeof Be?this.eventManager.addGlobalEventListener(Be,at,a(st)):this.eventManager.addEventListener(Be,at,a(st))}}class x extends _{constructor(Be,at,st,At){super(Be),this.component=st;const li=i(At+"-"+st.id,st.styles,[]);at.addStyles(li),this.contentAttr=function ye(ke){return"_ngcontent-%COMP%".replace(ge,ke)}(At+"-"+st.id),this.hostAttr=function v(ke){return"_nghost-%COMP%".replace(ge,ke)}(At+"-"+st.id)}applyToHost(Be){super.setAttribute(Be,this.hostAttr,"")}createElement(Be,at){const st=super.createElement(Be,at);return super.setAttribute(st,this.contentAttr,""),st}}class r extends _{constructor(Be,at,st,At){super(Be),this.sharedStylesHost=at,this.hostEl=st,this.shadowRoot=st.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const li=i(At.id,At.styles,[]);for(let Bt=0;Bt{class ke extends V{constructor(at){super(at)}supports(at){return!0}addEventListener(at,st,At){return at.addEventListener(st,At,!1),()=>this.removeEventListener(at,st,At)}removeEventListener(at,st,At){return at.removeEventListener(st,At)}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const Z=["alt","control","meta","shift"],U={"\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"},ve={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"},be={alt:ke=>ke.altKey,control:ke=>ke.ctrlKey,meta:ke=>ke.metaKey,shift:ke=>ke.shiftKey};let Re=(()=>{class ke extends V{constructor(at){super(at)}supports(at){return null!=ke.parseEventName(at)}addEventListener(at,st,At){const li=ke.parseEventName(st),Bt=ke.eventCallback(li.fullKey,At,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(at,li.domEventName,Bt))}static parseEventName(at){const st=at.toLowerCase().split("."),At=st.shift();if(0===st.length||"keydown"!==At&&"keyup"!==At)return null;const li=ke._normalizeKey(st.pop());let Bt="";if(Z.forEach(Li=>{const si=st.indexOf(Li);si>-1&&(st.splice(si,1),Bt+=Li+".")}),Bt+=li,0!=st.length||0===li.length)return null;const Rt={};return Rt.domEventName=At,Rt.fullKey=Bt,Rt}static getEventFullKey(at){let st="",At=function ze(ke){let Be=ke.key;if(null==Be){if(Be=ke.keyIdentifier,null==Be)return"Unidentified";Be.startsWith("U+")&&(Be=String.fromCharCode(parseInt(Be.substring(2),16)),3===ke.location&&ve.hasOwnProperty(Be)&&(Be=ve[Be]))}return U[Be]||Be}(at);return At=At.toLowerCase()," "===At?At="space":"."===At&&(At="dot"),Z.forEach(li=>{li!=At&&be[li](at)&&(st+=li+".")}),st+=At,st}static eventCallback(at,st,At){return li=>{ke.getEventFullKey(li)===at&&At.runGuarded(()=>st(li))}}static _normalizeKey(at){return"esc"===at?"escape":at}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const z=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:e.bD},{provide:t.g9A,useValue:function Oe(){C.makeCurrent(),A.init()},multi:!0},{provide:e.K0,useFactory:function Me(){return(0,t.RDi)(document),document},deps:[]}]),Ze=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function K(){return new t.qLn},deps:[]},{provide:P,useClass:b,multi:!0,deps:[e.K0,t.R0b,t.Lbi]},{provide:P,useClass:Re,multi:!0,deps:[e.K0]},{provide:u,useClass:u,deps:[w,W,t.AFp]},{provide:t.FYo,useExisting:u},{provide:j,useExisting:W},{provide:W,useClass:W,deps:[e.K0]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b]},{provide:w,useClass:w,deps:[P,t.R0b]},{provide:e.JF,useClass:E,deps:[]}];let vt=(()=>{class ke{constructor(at){if(at)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(at){return{ngModule:ke,providers:[{provide:t.AFp,useValue:at.appId},{provide:s,useExisting:t.AFp},I]}}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(ke,12))},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:Ze,imports:[e.ez,t.hGG]}),ke})();"undefined"!=typeof window&&window;const Ve={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},Ee=new t.OlP("HammerGestureConfig"),Y=new t.OlP("HammerLoader");let pe=(()=>{class ke{constructor(){this.events=[],this.overrides={}}buildHammer(at){const st=new Hammer(at,this.options);st.get("pinch").set({enable:!0}),st.get("rotate").set({enable:!0});for(const At in this.overrides)st.get(At).set(this.overrides[At]);return st}}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),De=(()=>{class ke extends V{constructor(at,st,At,li){super(at),this._config=st,this.console=At,this.loader=li,this._loaderPromise=null}supports(at){return!(!Ve.hasOwnProperty(at.toLowerCase())&&!this.isCustomEvent(at)||!window.Hammer&&!this.loader)}addEventListener(at,st,At){const li=this.manager.getZone();if(st=st.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Bt=!1,Rt=()=>{Bt=!0};return this._loaderPromise.then(()=>{window.Hammer?Bt||(Rt=this.addEventListener(at,st,At)):Rt=()=>{}}).catch(()=>{Rt=()=>{}}),()=>{Rt()}}return li.runOutsideAngular(()=>{const Bt=this._config.buildHammer(at),Rt=function(Li){li.runGuarded(function(){At(Li)})};return Bt.on(st,Rt),()=>{Bt.off(st,Rt),"function"==typeof Bt.destroy&&Bt.destroy()}})}isCustomEvent(at){return this._config.events.indexOf(at)>-1}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0),t.LFG(Ee),t.LFG(t.c2e),t.LFG(Y,8))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),et=(()=>{class ke{}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:[{provide:P,useClass:De,multi:!0,deps:[e.K0,Ee,t.c2e,[new t.FiY,Y]]},{provide:Ee,useClass:pe,deps:[]}]}),ke})(),$t=(()=>{class ke{}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:function(at){let st=null;return st=at?new(at||ke):t.LFG(Jt),st},providedIn:"root"}),ke})(),Jt=(()=>{class ke extends $t{constructor(at){super(),this._doc=at}sanitize(at,st){if(null==st)return null;switch(at){case t.q3G.NONE:return st;case t.q3G.HTML:return(0,t.qzn)(st,"HTML")?(0,t.z3N)(st):(0,t.EiD)(this._doc,String(st)).toString();case t.q3G.STYLE:return(0,t.qzn)(st,"Style")?(0,t.z3N)(st):st;case t.q3G.SCRIPT:if((0,t.qzn)(st,"Script"))return(0,t.z3N)(st);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.yhl)(st),(0,t.qzn)(st,"URL")?(0,t.z3N)(st):(0,t.mCW)(String(st));case t.q3G.RESOURCE_URL:if((0,t.qzn)(st,"ResourceURL"))return(0,t.z3N)(st);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${at} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(at){return(0,t.JVY)(at)}bypassSecurityTrustStyle(at){return(0,t.L6k)(at)}bypassSecurityTrustScript(at){return(0,t.eBb)(at)}bypassSecurityTrustUrl(at){return(0,t.LAX)(at)}bypassSecurityTrustResourceUrl(at){return(0,t.pB0)(at)}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:function(at){let st=null;return st=at?new at:function Nt(ke){return new Jt(ke.get(e.K0))}(t.LFG(t.zs3)),st},providedIn:"root"}),ke})()},1402:(Ge,Q,m)=>{"use strict";m.d(Q,{gz:()=>Si,gk:()=>N,m2:()=>Z,Q3:()=>U,OD:()=>b,Av:()=>Oe,F0:()=>nn,rH:()=>da,Od:()=>Yn,yS:()=>Xr,Bz:()=>hc,lC:()=>wa});var e=m(5e3),t=m(8306),y=m(727),C=m(4482),o=m(5403);function M(){return(0,C.e)((Ye,Te)=>{let xe=null;Ye._refCount++;const $e=new o.Q(Te,void 0,void 0,void 0,()=>{if(!Ye||Ye._refCount<=0||0<--Ye._refCount)return void(xe=null);const dt=Ye._connection,Ot=xe;xe=null,dt&&(!Ot||dt===Ot)&&dt.unsubscribe(),Te.unsubscribe()});Ye.subscribe($e),$e.closed||(xe=Ye.connect())})}class l extends t.y{constructor(Te,xe){super(),this.source=Te,this.subjectFactory=xe,this._subject=null,this._refCount=0,this._connection=null,(0,C.A)(Te)&&(this.lift=Te.lift)}_subscribe(Te){return this.getSubject().subscribe(Te)}getSubject(){const Te=this._subject;return(!Te||Te.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Te}=this;this._subject=this._connection=null,null==Te||Te.unsubscribe()}connect(){let Te=this._connection;if(!Te){Te=this._connection=new y.w0;const xe=this.getSubject();Te.add(this.source.subscribe(new o.Q(xe,void 0,()=>{this._teardown(),xe.complete()},$e=>{this._teardown(),xe.error($e)},()=>this._teardown()))),Te.closed&&(this._connection=null,Te=y.w0.EMPTY)}return Te}refCount(){return M()(this)}}var R=m(457),s=m(9646),L=m(1135),I=m(9841),A=m(6805),E=m(7272),P=m(9770),w=m(515),V=m(7579),j=m(9300);function W(Ye){return Ye<=0?()=>w.E:(0,C.e)((Te,xe)=>{let $e=[];Te.subscribe(new o.Q(xe,dt=>{$e.push(dt),Ye<$e.length&&$e.shift()},()=>{for(const dt of $e)xe.next(dt);xe.complete()},void 0,()=>{$e=null}))})}var te=m(8068),ee=m(6590),ge=m(4671),re=m(4004),de=m(3900),se=m(5698),ye=m(8675),v=m(5026),i=m(262),a=m(4351),p=m(590),u=m(5577),_=m(8505),D=m(8746),O=m(8189),x=m(9808);class r{constructor(Te,xe){this.id=Te,this.url=xe}}class b extends r{constructor(Te,xe,$e="imperative",dt=null){super(Te,xe),this.navigationTrigger=$e,this.restoredState=dt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Z extends r{constructor(Te,xe,$e){super(Te,xe),this.urlAfterRedirects=$e}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class N extends r{constructor(Te,xe,$e){super(Te,xe),this.reason=$e}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class U extends r{constructor(Te,xe,$e){super(Te,xe),this.error=$e}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ve extends r{constructor(Te,xe,$e,dt){super(Te,xe),this.urlAfterRedirects=$e,this.state=dt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class be extends r{constructor(Te,xe,$e,dt){super(Te,xe),this.urlAfterRedirects=$e,this.state=dt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Re extends r{constructor(Te,xe,$e,dt,Ot){super(Te,xe),this.urlAfterRedirects=$e,this.state=dt,this.shouldActivate=Ot}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ze extends r{constructor(Te,xe,$e,dt){super(Te,xe),this.urlAfterRedirects=$e,this.state=dt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Oe extends r{constructor(Te,xe,$e,dt){super(Te,xe),this.urlAfterRedirects=$e,this.state=dt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Me{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class we{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ze{constructor(Te){this.snapshot=Te}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(Te){this.snapshot=Te}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fe{constructor(Te,xe,$e){this.routerEvent=Te,this.position=xe,this.anchor=$e}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ne="primary";class ce{constructor(Te){this.params=Te||{}}has(Te){return Object.prototype.hasOwnProperty.call(this.params,Te)}get(Te){if(this.has(Te)){const xe=this.params[Te];return Array.isArray(xe)?xe[0]:xe}return null}getAll(Te){if(this.has(Te)){const xe=this.params[Te];return Array.isArray(xe)?xe:[xe]}return[]}get keys(){return Object.keys(this.params)}}function Le(Ye){return new ce(Ye)}const Pe="ngNavigationCancelingError";function q(Ye){const Te=Error("NavigationCancelingError: "+Ye);return Te[Pe]=!0,Te}function oe(Ye,Te,xe){const $e=xe.path.split("/");if($e.length>Ye.length||"full"===xe.pathMatch&&(Te.hasChildren()||$e.length$e[Ot]===dt)}return Ye===Te}function nt(Ye){return Array.prototype.concat.apply([],Ye)}function ft(Ye){return Ye.length>0?Ye[Ye.length-1]:null}function rt(Ye,Te){for(const xe in Ye)Ye.hasOwnProperty(xe)&&Te(Ye[xe],xe)}function Mt(Ye){return(0,e.CqO)(Ye)?Ye:(0,e.QGY)(Ye)?(0,R.D)(Promise.resolve(Ye)):(0,s.of)(Ye)}const Ft={exact:function ei(Ye,Te,xe){if(!et(Ye.segments,Te.segments)||!Ve(Ye.segments,Te.segments,xe)||Ye.numberOfChildren!==Te.numberOfChildren)return!1;for(const $e in Te.children)if(!Ye.children[$e]||!ei(Ye.children[$e],Te.children[$e],xe))return!1;return!0},subset:ai},Vt={exact:function jt(Ye,Te){return Ue(Ye,Te)},subset:function ki(Ye,Te){return Object.keys(Te).length<=Object.keys(Ye).length&&Object.keys(Te).every(xe=>lt(Ye[xe],Te[xe]))},ignored:()=>!0};function Ii(Ye,Te,xe){return Ft[xe.paths](Ye.root,Te.root,xe.matrixParams)&&Vt[xe.queryParams](Ye.queryParams,Te.queryParams)&&!("exact"===xe.fragment&&Ye.fragment!==Te.fragment)}function ai(Ye,Te,xe){return hi(Ye,Te,Te.segments,xe)}function hi(Ye,Te,xe,$e){if(Ye.segments.length>xe.length){const dt=Ye.segments.slice(0,xe.length);return!(!et(dt,xe)||Te.hasChildren()||!Ve(dt,xe,$e))}if(Ye.segments.length===xe.length){if(!et(Ye.segments,xe)||!Ve(Ye.segments,xe,$e))return!1;for(const dt in Te.children)if(!Ye.children[dt]||!ai(Ye.children[dt],Te.children[dt],$e))return!1;return!0}{const dt=xe.slice(0,Ye.segments.length),Ot=xe.slice(Ye.segments.length);return!!(et(Ye.segments,dt)&&Ve(Ye.segments,dt,$e)&&Ye.children[Ne])&&hi(Ye.children[Ne],Te,Ot,$e)}}function Ve(Ye,Te,xe){return Te.every(($e,dt)=>Vt[xe](Ye[dt].parameters,$e.parameters))}class Ee{constructor(Te,xe,$e){this.root=Te,this.queryParams=xe,this.fragment=$e}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Le(this.queryParams)),this._queryParamMap}toString(){return ct.serialize(this)}}class Y{constructor(Te,xe){this.segments=Te,this.children=xe,this.parent=null,rt(xe,($e,dt)=>$e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ke(this)}}class pe{constructor(Te,xe){this.path=Te,this.parameters=xe}get parameterMap(){return this._parameterMap||(this._parameterMap=Le(this.parameters)),this._parameterMap}toString(){return Li(this)}}function et(Ye,Te){return Ye.length===Te.length&&Ye.every((xe,$e)=>xe.path===Te[$e].path)}class Nt{}class Jt{parse(Te){const xe=new _e(Te);return new Ee(xe.parseRootSegment(),xe.parseQueryParams(),xe.parseFragment())}serialize(Te){const xe=`/${Be(Te.root,!0)}`,$e=function ci(Ye){const Te=Object.keys(Ye).map(xe=>{const $e=Ye[xe];return Array.isArray($e)?$e.map(dt=>`${st(xe)}=${st(dt)}`).join("&"):`${st(xe)}=${st($e)}`}).filter(xe=>!!xe);return Te.length?`?${Te.join("&")}`:""}(Te.queryParams);return`${xe}${$e}${"string"==typeof Te.fragment?`#${function At(Ye){return encodeURI(Ye)}(Te.fragment)}`:""}`}}const ct=new Jt;function ke(Ye){return Ye.segments.map(Te=>Li(Te)).join("/")}function Be(Ye,Te){if(!Ye.hasChildren())return ke(Ye);if(Te){const xe=Ye.children[Ne]?Be(Ye.children[Ne],!1):"",$e=[];return rt(Ye.children,(dt,Ot)=>{Ot!==Ne&&$e.push(`${Ot}:${Be(dt,!1)}`)}),$e.length>0?`${xe}(${$e.join("//")})`:xe}{const xe=function $t(Ye,Te){let xe=[];return rt(Ye.children,($e,dt)=>{dt===Ne&&(xe=xe.concat(Te($e,dt)))}),rt(Ye.children,($e,dt)=>{dt!==Ne&&(xe=xe.concat(Te($e,dt)))}),xe}(Ye,($e,dt)=>dt===Ne?[Be(Ye.children[Ne],!1)]:[`${dt}:${Be($e,!1)}`]);return 1===Object.keys(Ye.children).length&&null!=Ye.children[Ne]?`${ke(Ye)}/${xe[0]}`:`${ke(Ye)}/(${xe.join("//")})`}}function at(Ye){return encodeURIComponent(Ye).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function st(Ye){return at(Ye).replace(/%3B/gi,";")}function li(Ye){return at(Ye).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(Ye){return decodeURIComponent(Ye)}function Rt(Ye){return Bt(Ye.replace(/\+/g,"%20"))}function Li(Ye){return`${li(Ye.path)}${function si(Ye){return Object.keys(Ye).map(Te=>`;${li(Te)}=${li(Ye[Te])}`).join("")}(Ye.parameters)}`}const sn=/^[^\/()?;=#]+/;function Ui(Ye){const Te=Ye.match(sn);return Te?Te[0]:""}const Di=/^[^=?&#]+/,Ke=/^[^&#]+/;class _e{constructor(Te){this.url=Te,this.remaining=Te}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y([],{}):new Y([],this.parseChildren())}parseQueryParams(){const Te={};if(this.consumeOptional("?"))do{this.parseQueryParam(Te)}while(this.consumeOptional("&"));return Te}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Te=[];for(this.peekStartsWith("(")||Te.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Te.push(this.parseSegment());let xe={};this.peekStartsWith("/(")&&(this.capture("/"),xe=this.parseParens(!0));let $e={};return this.peekStartsWith("(")&&($e=this.parseParens(!1)),(Te.length>0||Object.keys(xe).length>0)&&($e[Ne]=new Y(Te,xe)),$e}parseSegment(){const Te=Ui(this.remaining);if(""===Te&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Te),new pe(Bt(Te),this.parseMatrixParams())}parseMatrixParams(){const Te={};for(;this.consumeOptional(";");)this.parseParam(Te);return Te}parseParam(Te){const xe=Ui(this.remaining);if(!xe)return;this.capture(xe);let $e="";if(this.consumeOptional("=")){const dt=Ui(this.remaining);dt&&($e=dt,this.capture($e))}Te[Bt(xe)]=Bt($e)}parseQueryParam(Te){const xe=function Xi(Ye){const Te=Ye.match(Di);return Te?Te[0]:""}(this.remaining);if(!xe)return;this.capture(xe);let $e="";if(this.consumeOptional("=")){const qt=function _t(Ye){const Te=Ye.match(Ke);return Te?Te[0]:""}(this.remaining);qt&&($e=qt,this.capture($e))}const dt=Rt(xe),Ot=Rt($e);if(Te.hasOwnProperty(dt)){let qt=Te[dt];Array.isArray(qt)||(qt=[qt],Te[dt]=qt),qt.push(Ot)}else Te[dt]=Ot}parseParens(Te){const xe={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const $e=Ui(this.remaining),dt=this.remaining[$e.length];if("/"!==dt&&")"!==dt&&";"!==dt)throw new Error(`Cannot parse url '${this.url}'`);let Ot;$e.indexOf(":")>-1?(Ot=$e.substr(0,$e.indexOf(":")),this.capture(Ot),this.capture(":")):Te&&(Ot=Ne);const qt=this.parseChildren();xe[Ot]=1===Object.keys(qt).length?qt[Ne]:new Y([],qt),this.consumeOptional("//")}return xe}peekStartsWith(Te){return this.remaining.startsWith(Te)}consumeOptional(Te){return!!this.peekStartsWith(Te)&&(this.remaining=this.remaining.substring(Te.length),!0)}capture(Te){if(!this.consumeOptional(Te))throw new Error(`Expected "${Te}".`)}}class qe{constructor(Te){this._root=Te}get root(){return this._root.value}parent(Te){const xe=this.pathFromRoot(Te);return xe.length>1?xe[xe.length-2]:null}children(Te){const xe=yt(Te,this._root);return xe?xe.children.map($e=>$e.value):[]}firstChild(Te){const xe=yt(Te,this._root);return xe&&xe.children.length>0?xe.children[0].value:null}siblings(Te){const xe=ue(Te,this._root);return xe.length<2?[]:xe[xe.length-2].children.map(dt=>dt.value).filter(dt=>dt!==Te)}pathFromRoot(Te){return ue(Te,this._root).map(xe=>xe.value)}}function yt(Ye,Te){if(Ye===Te.value)return Te;for(const xe of Te.children){const $e=yt(Ye,xe);if($e)return $e}return null}function ue(Ye,Te){if(Ye===Te.value)return[Te];for(const xe of Te.children){const $e=ue(Ye,xe);if($e.length)return $e.unshift(Te),$e}return[]}class Je{constructor(Te,xe){this.value=Te,this.children=xe}toString(){return`TreeNode(${this.value})`}}function St(Ye){const Te={};return Ye&&Ye.children.forEach(xe=>Te[xe.value.outlet]=xe),Te}class kt extends qe{constructor(Te,xe){super(Te),this.snapshot=xe,Lt(this,Te)}toString(){return this.snapshot.toString()}}function yi(Ye,Te){const xe=function Ni(Ye,Te){const qt=new Kt([],{},{},"",{},Ne,Te,null,Ye.root,-1,{});return new gt("",new Je(qt,[]))}(Ye,Te),$e=new L.X([new pe("",{})]),dt=new L.X({}),Ot=new L.X({}),qt=new L.X({}),ii=new L.X(""),Ei=new Si($e,dt,qt,ii,Ot,Ne,Te,xe.root);return Ei.snapshot=xe.root,new kt(new Je(Ei,[]),xe)}class Si{constructor(Te,xe,$e,dt,Ot,qt,ii,Ei){this.url=Te,this.params=xe,this.queryParams=$e,this.fragment=dt,this.data=Ot,this.outlet=qt,this.component=ii,this._futureSnapshot=Ei}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,re.U)(Te=>Le(Te)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,re.U)(Te=>Le(Te)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qi(Ye,Te="emptyOnly"){const xe=Ye.pathFromRoot;let $e=0;if("always"!==Te)for($e=xe.length-1;$e>=1;){const dt=xe[$e],Ot=xe[$e-1];if(dt.routeConfig&&""===dt.routeConfig.path)$e--;else{if(Ot.component)break;$e--}}return function ot(Ye){return Ye.reduce((Te,xe)=>({params:Object.assign(Object.assign({},Te.params),xe.params),data:Object.assign(Object.assign({},Te.data),xe.data),resolve:Object.assign(Object.assign({},Te.resolve),xe._resolvedData)}),{params:{},data:{},resolve:{}})}(xe.slice($e))}class Kt{constructor(Te,xe,$e,dt,Ot,qt,ii,Ei,an,Wn,xn){this.url=Te,this.params=xe,this.queryParams=$e,this.fragment=dt,this.data=Ot,this.outlet=qt,this.component=ii,this.routeConfig=Ei,this._urlSegment=an,this._lastPathIndex=Wn,this._resolve=xn}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=Le(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Le(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map($e=>$e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gt extends qe{constructor(Te,xe){super(xe),this.url=Te,Lt(this,xe)}toString(){return ui(this._root)}}function Lt(Ye,Te){Te.value._routerState=Ye,Te.children.forEach(xe=>Lt(Ye,xe))}function ui(Ye){const Te=Ye.children.length>0?` { ${Ye.children.map(ui).join(", ")} } `:"";return`${Ye.value}${Te}`}function Ci(Ye){if(Ye.snapshot){const Te=Ye.snapshot,xe=Ye._futureSnapshot;Ye.snapshot=xe,Ue(Te.queryParams,xe.queryParams)||Ye.queryParams.next(xe.queryParams),Te.fragment!==xe.fragment&&Ye.fragment.next(xe.fragment),Ue(Te.params,xe.params)||Ye.params.next(xe.params),function Ce(Ye,Te){if(Ye.length!==Te.length)return!1;for(let xe=0;xeUe(xe.parameters,Te[$e].parameters))}(Ye.url,Te.url);return xe&&!(!Ye.parent!=!Te.parent)&&(!Ye.parent||Yi(Ye.parent,Te.parent))}function Cn(Ye,Te,xe){if(xe&&Ye.shouldReuseRoute(Te.value,xe.value.snapshot)){const $e=xe.value;$e._futureSnapshot=Te.value;const dt=function Ln(Ye,Te,xe){return Te.children.map($e=>{for(const dt of xe.children)if(Ye.shouldReuseRoute($e.value,dt.value.snapshot))return Cn(Ye,$e,dt);return Cn(Ye,$e)})}(Ye,Te,xe);return new Je($e,dt)}{if(Ye.shouldAttach(Te.value)){const Ot=Ye.retrieve(Te.value);if(null!==Ot){const qt=Ot.route;return qt.value._futureSnapshot=Te.value,qt.children=Te.children.map(ii=>Cn(Ye,ii)),qt}}const $e=function _n(Ye){return new Si(new L.X(Ye.url),new L.X(Ye.params),new L.X(Ye.queryParams),new L.X(Ye.fragment),new L.X(Ye.data),Ye.outlet,Ye.component,Ye)}(Te.value),dt=Te.children.map(Ot=>Cn(Ye,Ot));return new Je($e,dt)}}function dr(Ye){return"object"==typeof Ye&&null!=Ye&&!Ye.outlets&&!Ye.segmentPath}function wi(Ye){return"object"==typeof Ye&&null!=Ye&&Ye.outlets}function Fi(Ye,Te,xe,$e,dt){let Ot={};return $e&&rt($e,(qt,ii)=>{Ot[ii]=Array.isArray(qt)?qt.map(Ei=>`${Ei}`):`${qt}`}),new Ee(xe.root===Ye?Te:dn(xe.root,Ye,Te),Ot,dt)}function dn(Ye,Te,xe){const $e={};return rt(Ye.children,(dt,Ot)=>{$e[Ot]=dt===Te?xe:dn(dt,Te,xe)}),new Y(Ye.segments,$e)}class Lr{constructor(Te,xe,$e){if(this.isAbsolute=Te,this.numberOfDoubleDots=xe,this.commands=$e,Te&&$e.length>0&&dr($e[0]))throw new Error("Root segment cannot have matrix parameters");const dt=$e.find(wi);if(dt&&dt!==ft($e))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gn{constructor(Te,xe,$e){this.segmentGroup=Te,this.processChildren=xe,this.index=$e}}function Fa(Ye,Te,xe){if(Ye||(Ye=new Y([],{})),0===Ye.segments.length&&Ye.hasChildren())return xr(Ye,Te,xe);const $e=function hs(Ye,Te,xe){let $e=0,dt=Te;const Ot={match:!1,pathIndex:0,commandIndex:0};for(;dt=xe.length)return Ot;const qt=Ye.segments[dt],ii=xe[$e];if(wi(ii))break;const Ei=`${ii}`,an=$e0&&void 0===Ei)break;if(Ei&&an&&"object"==typeof an&&void 0===an.outlets){if(!Ir(Ei,an,qt))return Ot;$e+=2}else{if(!Ir(Ei,{},qt))return Ot;$e++}dt++}return{match:!0,pathIndex:dt,commandIndex:$e}}(Ye,Te,xe),dt=xe.slice($e.commandIndex);if($e.match&&$e.pathIndex{"string"==typeof Ot&&(Ot=[Ot]),null!==Ot&&(dt[qt]=Fa(Ye.children[qt],Te,Ot))}),rt(Ye.children,(Ot,qt)=>{void 0===$e[qt]&&(dt[qt]=Ot)}),new Y(Ye.segments,dt)}}function ur(Ye,Te,xe){const $e=Ye.segments.slice(0,Te);let dt=0;for(;dt{"string"==typeof xe&&(xe=[xe]),null!==xe&&(Te[$e]=ur(new Y([],{}),0,xe))}),Te}function ma(Ye){const Te={};return rt(Ye,(xe,$e)=>Te[$e]=`${xe}`),Te}function Ir(Ye,Te,xe){return Ye==xe.path&&Ue(Te,xe.parameters)}class Ya{constructor(Te,xe,$e,dt){this.routeReuseStrategy=Te,this.futureState=xe,this.currState=$e,this.forwardEvent=dt}activate(Te){const xe=this.futureState._root,$e=this.currState?this.currState._root:null;this.deactivateChildRoutes(xe,$e,Te),Ci(this.futureState.root),this.activateChildRoutes(xe,$e,Te)}deactivateChildRoutes(Te,xe,$e){const dt=St(xe);Te.children.forEach(Ot=>{const qt=Ot.value.outlet;this.deactivateRoutes(Ot,dt[qt],$e),delete dt[qt]}),rt(dt,(Ot,qt)=>{this.deactivateRouteAndItsChildren(Ot,$e)})}deactivateRoutes(Te,xe,$e){const dt=Te.value,Ot=xe?xe.value:null;if(dt===Ot)if(dt.component){const qt=$e.getContext(dt.outlet);qt&&this.deactivateChildRoutes(Te,xe,qt.children)}else this.deactivateChildRoutes(Te,xe,$e);else Ot&&this.deactivateRouteAndItsChildren(xe,$e)}deactivateRouteAndItsChildren(Te,xe){Te.value.component&&this.routeReuseStrategy.shouldDetach(Te.value.snapshot)?this.detachAndStoreRouteSubtree(Te,xe):this.deactivateRouteAndOutlet(Te,xe)}detachAndStoreRouteSubtree(Te,xe){const $e=xe.getContext(Te.value.outlet),dt=$e&&Te.value.component?$e.children:xe,Ot=St(Te);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],dt);if($e&&$e.outlet){const qt=$e.outlet.detach(),ii=$e.children.onOutletDeactivated();this.routeReuseStrategy.store(Te.value.snapshot,{componentRef:qt,route:Te,contexts:ii})}}deactivateRouteAndOutlet(Te,xe){const $e=xe.getContext(Te.value.outlet),dt=$e&&Te.value.component?$e.children:xe,Ot=St(Te);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],dt);$e&&$e.outlet&&($e.outlet.deactivate(),$e.children.onOutletDeactivated(),$e.attachRef=null,$e.resolver=null,$e.route=null)}activateChildRoutes(Te,xe,$e){const dt=St(xe);Te.children.forEach(Ot=>{this.activateRoutes(Ot,dt[Ot.value.outlet],$e),this.forwardEvent(new vt(Ot.value.snapshot))}),Te.children.length&&this.forwardEvent(new z(Te.value.snapshot))}activateRoutes(Te,xe,$e){const dt=Te.value,Ot=xe?xe.value:null;if(Ci(dt),dt===Ot)if(dt.component){const qt=$e.getOrCreateContext(dt.outlet);this.activateChildRoutes(Te,xe,qt.children)}else this.activateChildRoutes(Te,xe,$e);else if(dt.component){const qt=$e.getOrCreateContext(dt.outlet);if(this.routeReuseStrategy.shouldAttach(dt.snapshot)){const ii=this.routeReuseStrategy.retrieve(dt.snapshot);this.routeReuseStrategy.store(dt.snapshot,null),qt.children.onOutletReAttached(ii.contexts),qt.attachRef=ii.componentRef,qt.route=ii.route.value,qt.outlet&&qt.outlet.attach(ii.componentRef,ii.route.value),Ci(ii.route.value),this.activateChildRoutes(Te,null,qt.children)}else{const ii=function Zr(Ye){for(let Te=Ye.parent;Te;Te=Te.parent){const xe=Te.routeConfig;if(xe&&xe._loadedConfig)return xe._loadedConfig;if(xe&&xe.component)return null}return null}(dt.snapshot),Ei=ii?ii.module.componentFactoryResolver:null;qt.attachRef=null,qt.route=dt,qt.resolver=Ei,qt.outlet&&qt.outlet.activateWith(dt,Ei),this.activateChildRoutes(Te,null,qt.children)}}else this.activateChildRoutes(Te,null,$e)}}class Pr{constructor(Te,xe){this.routes=Te,this.module=xe}}function Kn(Ye){return"function"==typeof Ye}function Qn(Ye){return Ye instanceof Ee}const la=Symbol("INITIAL_VALUE");function Jr(){return(0,de.w)(Ye=>(0,I.a)(Ye.map(Te=>Te.pipe((0,se.q)(1),(0,ye.O)(la)))).pipe((0,v.R)((Te,xe)=>{let $e=!1;return xe.reduce((dt,Ot,qt)=>dt!==la?dt:(Ot===la&&($e=!0),$e||!1!==Ot&&qt!==xe.length-1&&!Qn(Ot)?dt:Ot),Te)},la),(0,j.h)(Te=>Te!==la),(0,re.U)(Te=>Qn(Te)?Te:!0===Te),(0,se.q)(1)))}class ga{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new $n,this.attachRef=null}}class $n{constructor(){this.contexts=new Map}onChildOutletCreated(Te,xe){const $e=this.getOrCreateContext(Te);$e.outlet=xe,this.contexts.set(Te,$e)}onChildOutletDestroyed(Te){const xe=this.getContext(Te);xe&&(xe.outlet=null,xe.attachRef=null)}onOutletDeactivated(){const Te=this.contexts;return this.contexts=new Map,Te}onOutletReAttached(Te){this.contexts=Te}getOrCreateContext(Te){let xe=this.getContext(Te);return xe||(xe=new ga,this.contexts.set(Te,xe)),xe}getContext(Te){return this.contexts.get(Te)||null}}let wa=(()=>{class Ye{constructor(xe,$e,dt,Ot,qt){this.parentContexts=xe,this.location=$e,this.resolver=dt,this.changeDetector=qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Ot||Ne,xe.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const xe=this.parentContexts.getContext(this.name);xe&&xe.route&&(xe.attachRef?this.attach(xe.attachRef,xe.route):this.activateWith(xe.route,xe.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 xe=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(xe.instance),xe}attach(xe,$e){this.activated=xe,this._activatedRoute=$e,this.location.insert(xe.hostView),this.attachEvents.emit(xe.instance)}deactivate(){if(this.activated){const xe=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(xe)}}activateWith(xe,$e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=xe;const qt=($e=$e||this.resolver).resolveComponentFactory(xe._futureSnapshot.routeConfig.component),ii=this.parentContexts.getOrCreateContext(this.name).children,Ei=new Nr(xe,ii,this.location.injector);this.activated=this.location.createComponent(qt,this.location.length,Ei),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.Y36($n),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ye})();class Nr{constructor(Te,xe,$e){this.route=Te,this.childContexts=xe,this.parent=$e}get(Te,xe){return Te===Si?this.route:Te===$n?this.childContexts:this.parent.get(Te,xe)}}let ca=(()=>{class Ye{}return Ye.\u0275fac=function(xe){return new(xe||Ye)},Ye.\u0275cmp=e.Xpm({type:Ye,selectors:[["ng-component"]],decls:1,vars:0,template:function(xe,$e){1&xe&&e._UZ(0,"router-outlet")},directives:[wa],encapsulation:2}),Ye})();function Aa(Ye,Te=""){for(let xe=0;xeSr($e)===Te);return xe.push(...Ye.filter($e=>Sr($e)!==Te)),xe}const Oa={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ra(Ye,Te,xe){var $e;if(""===Te.path)return"full"===Te.pathMatch&&(Ye.hasChildren()||xe.length>0)?Object.assign({},Oa):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ot=(Te.matcher||oe)(xe,Ye,Te);if(!Ot)return Object.assign({},Oa);const qt={};rt(Ot.posParams,(Ei,an)=>{qt[an]=Ei.path});const ii=Ot.consumed.length>0?Object.assign(Object.assign({},qt),Ot.consumed[Ot.consumed.length-1].parameters):qt;return{matched:!0,consumedSegments:Ot.consumed,lastChild:Ot.consumed.length,parameters:ii,positionalParamSegments:null!==($e=Ot.posParams)&&void 0!==$e?$e:{}}}function Gr(Ye,Te,xe,$e,dt="corrected"){if(xe.length>0&&function ns(Ye,Te,xe){return xe.some($e=>Xe(Ye,Te,$e)&&Sr($e)!==Ne)}(Ye,xe,$e)){const qt=new Y(Te,function Zn(Ye,Te,xe,$e){const dt={};dt[Ne]=$e,$e._sourceSegment=Ye,$e._segmentIndexShift=Te.length;for(const Ot of xe)if(""===Ot.path&&Sr(Ot)!==Ne){const qt=new Y([],{});qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,dt[Sr(Ot)]=qt}return dt}(Ye,Te,$e,new Y(xe,Ye.children)));return qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,{segmentGroup:qt,slicedSegments:[]}}if(0===xe.length&&function ja(Ye,Te,xe){return xe.some($e=>Xe(Ye,Te,$e))}(Ye,xe,$e)){const qt=new Y(Ye.segments,function Ha(Ye,Te,xe,$e,dt,Ot){const qt={};for(const ii of $e)if(Xe(Ye,xe,ii)&&!dt[Sr(ii)]){const Ei=new Y([],{});Ei._sourceSegment=Ye,Ei._segmentIndexShift="legacy"===Ot?Ye.segments.length:Te.length,qt[Sr(ii)]=Ei}return Object.assign(Object.assign({},dt),qt)}(Ye,Te,xe,$e,Ye.children,dt));return qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,{segmentGroup:qt,slicedSegments:xe}}const Ot=new Y(Ye.segments,Ye.children);return Ot._sourceSegment=Ye,Ot._segmentIndexShift=Te.length,{segmentGroup:Ot,slicedSegments:xe}}function Xe(Ye,Te,xe){return(!(Ye.hasChildren()||Te.length>0)||"full"!==xe.pathMatch)&&""===xe.path}function me(Ye,Te,xe,$e){return!!(Sr(Ye)===$e||$e!==Ne&&Xe(Te,xe,Ye))&&("**"===Ye.path||ra(Te,Ye,xe).matched)}function J(Ye,Te,xe){return 0===Te.length&&!Ye.children[xe]}class ne{constructor(Te){this.segmentGroup=Te||null}}class Qe{constructor(Te){this.urlTree=Te}}function Wt(Ye){return new t.y(Te=>Te.error(new ne(Ye)))}function mi(Ye){return new t.y(Te=>Te.error(new Qe(Ye)))}function Ct(Ye){return new t.y(Te=>Te.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Ye}'`)))}class Yt{constructor(Te,xe,$e,dt,Ot){this.configLoader=xe,this.urlSerializer=$e,this.urlTree=dt,this.config=Ot,this.allowRedirects=!0,this.ngModule=Te.get(e.h0i)}apply(){const Te=Gr(this.urlTree.root,[],[],this.config).segmentGroup,xe=new Y(Te.segments,Te.children);return this.expandSegmentGroup(this.ngModule,this.config,xe,Ne).pipe((0,re.U)(Ot=>this.createUrlTree(Bi(Ot),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,i.K)(Ot=>{if(Ot instanceof Qe)return this.allowRedirects=!1,this.match(Ot.urlTree);throw Ot instanceof ne?this.noMatchError(Ot):Ot}))}match(Te){return this.expandSegmentGroup(this.ngModule,this.config,Te.root,Ne).pipe((0,re.U)(dt=>this.createUrlTree(Bi(dt),Te.queryParams,Te.fragment))).pipe((0,i.K)(dt=>{throw dt instanceof ne?this.noMatchError(dt):dt}))}noMatchError(Te){return new Error(`Cannot match any routes. URL Segment: '${Te.segmentGroup}'`)}createUrlTree(Te,xe,$e){const dt=Te.segments.length>0?new Y([],{[Ne]:Te}):Te;return new Ee(dt,xe,$e)}expandSegmentGroup(Te,xe,$e,dt){return 0===$e.segments.length&&$e.hasChildren()?this.expandChildren(Te,xe,$e).pipe((0,re.U)(Ot=>new Y([],Ot))):this.expandSegment(Te,$e,xe,$e.segments,dt,!0)}expandChildren(Te,xe,$e){const dt=[];for(const Ot of Object.keys($e.children))"primary"===Ot?dt.unshift(Ot):dt.push(Ot);return(0,R.D)(dt).pipe((0,a.b)(Ot=>{const qt=$e.children[Ot],ii=is(xe,Ot);return this.expandSegmentGroup(Te,ii,qt,Ot).pipe((0,re.U)(Ei=>({segment:Ei,outlet:Ot})))}),(0,v.R)((Ot,qt)=>(Ot[qt.outlet]=qt.segment,Ot),{}),function le(Ye,Te){const xe=arguments.length>=2;return $e=>$e.pipe(Ye?(0,j.h)((dt,Ot)=>Ye(dt,Ot,$e)):ge.y,W(1),xe?(0,ee.d)(Te):(0,te.T)(()=>new A.K))}())}expandSegment(Te,xe,$e,dt,Ot,qt){return(0,R.D)($e).pipe((0,a.b)(ii=>this.expandSegmentAgainstRoute(Te,xe,$e,ii,dt,Ot,qt).pipe((0,i.K)(an=>{if(an instanceof ne)return(0,s.of)(null);throw an}))),(0,p.P)(ii=>!!ii),(0,i.K)((ii,Ei)=>{if(ii instanceof A.K||"EmptyError"===ii.name){if(J(xe,dt,Ot))return(0,s.of)(new Y([],{}));throw new ne(xe)}throw ii}))}expandSegmentAgainstRoute(Te,xe,$e,dt,Ot,qt,ii){return me(dt,xe,Ot,qt)?void 0===dt.redirectTo?this.matchSegmentAgainstRoute(Te,xe,dt,Ot,qt):ii&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Te,xe,$e,dt,Ot,qt):Wt(xe):Wt(xe)}expandSegmentAgainstRouteUsingRedirect(Te,xe,$e,dt,Ot,qt){return"**"===dt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Te,$e,dt,qt):this.expandRegularSegmentAgainstRouteUsingRedirect(Te,xe,$e,dt,Ot,qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Te,xe,$e,dt){const Ot=this.applyRedirectCommands([],$e.redirectTo,{});return $e.redirectTo.startsWith("/")?mi(Ot):this.lineralizeSegments($e,Ot).pipe((0,u.z)(qt=>{const ii=new Y(qt,{});return this.expandSegment(Te,ii,xe,qt,dt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Te,xe,$e,dt,Ot,qt){const{matched:ii,consumedSegments:Ei,lastChild:an,positionalParamSegments:Wn}=ra(xe,dt,Ot);if(!ii)return Wt(xe);const xn=this.applyRedirectCommands(Ei,dt.redirectTo,Wn);return dt.redirectTo.startsWith("/")?mi(xn):this.lineralizeSegments(dt,xn).pipe((0,u.z)(er=>this.expandSegment(Te,xe,$e,er.concat(Ot.slice(an)),qt,!1)))}matchSegmentAgainstRoute(Te,xe,$e,dt,Ot){if("**"===$e.path)return $e.loadChildren?($e._loadedConfig?(0,s.of)($e._loadedConfig):this.configLoader.load(Te.injector,$e)).pipe((0,re.U)(er=>($e._loadedConfig=er,new Y(dt,{})))):(0,s.of)(new Y(dt,{}));const{matched:qt,consumedSegments:ii,lastChild:Ei}=ra(xe,$e,dt);if(!qt)return Wt(xe);const an=dt.slice(Ei);return this.getChildConfig(Te,$e,dt).pipe((0,u.z)(xn=>{const er=xn.module,ar=xn.routes,{segmentGroup:ao,slicedSegments:ea}=Gr(xe,ii,an,ar),ys=new Y(ao.segments,ao.children);if(0===ea.length&&ys.hasChildren())return this.expandChildren(er,ar,ys).pipe((0,re.U)(Ea=>new Y(ii,Ea)));if(0===ar.length&&0===ea.length)return(0,s.of)(new Y(ii,{}));const fs=Sr($e)===Ot;return this.expandSegment(er,ys,ar,ea,fs?Ne:Ot,!0).pipe((0,re.U)(bs=>new Y(ii.concat(bs.segments),bs.children)))}))}getChildConfig(Te,xe,$e){return xe.children?(0,s.of)(new Pr(xe.children,Te)):xe.loadChildren?void 0!==xe._loadedConfig?(0,s.of)(xe._loadedConfig):this.runCanLoadGuards(Te.injector,xe,$e).pipe((0,u.z)(dt=>dt?this.configLoader.load(Te.injector,xe).pipe((0,re.U)(Ot=>(xe._loadedConfig=Ot,Ot))):function ti(Ye){return new t.y(Te=>Te.error(q(`Cannot load children because the guard of the route "path: '${Ye.path}'" returned false`)))}(xe))):(0,s.of)(new Pr([],Te))}runCanLoadGuards(Te,xe,$e){const dt=xe.canLoad;if(!dt||0===dt.length)return(0,s.of)(!0);const Ot=dt.map(qt=>{const ii=Te.get(qt);let Ei;if(function Tr(Ye){return Ye&&Kn(Ye.canLoad)}(ii))Ei=ii.canLoad(xe,$e);else{if(!Kn(ii))throw new Error("Invalid CanLoad guard");Ei=ii(xe,$e)}return Mt(Ei)});return(0,s.of)(Ot).pipe(Jr(),(0,_.b)(qt=>{if(!Qn(qt))return;const ii=q(`Redirecting to "${this.urlSerializer.serialize(qt)}"`);throw ii.url=qt,ii}),(0,re.U)(qt=>!0===qt))}lineralizeSegments(Te,xe){let $e=[],dt=xe.root;for(;;){if($e=$e.concat(dt.segments),0===dt.numberOfChildren)return(0,s.of)($e);if(dt.numberOfChildren>1||!dt.children[Ne])return Ct(Te.redirectTo);dt=dt.children[Ne]}}applyRedirectCommands(Te,xe,$e){return this.applyRedirectCreatreUrlTree(xe,this.urlSerializer.parse(xe),Te,$e)}applyRedirectCreatreUrlTree(Te,xe,$e,dt){const Ot=this.createSegmentGroup(Te,xe.root,$e,dt);return new Ee(Ot,this.createQueryParams(xe.queryParams,this.urlTree.queryParams),xe.fragment)}createQueryParams(Te,xe){const $e={};return rt(Te,(dt,Ot)=>{if("string"==typeof dt&&dt.startsWith(":")){const ii=dt.substring(1);$e[Ot]=xe[ii]}else $e[Ot]=dt}),$e}createSegmentGroup(Te,xe,$e,dt){const Ot=this.createSegments(Te,xe.segments,$e,dt);let qt={};return rt(xe.children,(ii,Ei)=>{qt[Ei]=this.createSegmentGroup(Te,ii,$e,dt)}),new Y(Ot,qt)}createSegments(Te,xe,$e,dt){return xe.map(Ot=>Ot.path.startsWith(":")?this.findPosParam(Te,Ot,dt):this.findOrReturn(Ot,$e))}findPosParam(Te,xe,$e){const dt=$e[xe.path.substring(1)];if(!dt)throw new Error(`Cannot redirect to '${Te}'. Cannot find '${xe.path}'.`);return dt}findOrReturn(Te,xe){let $e=0;for(const dt of xe){if(dt.path===Te.path)return xe.splice($e),dt;$e++}return Te}}function Bi(Ye){const Te={};for(const $e of Object.keys(Ye.children)){const Ot=Bi(Ye.children[$e]);(Ot.segments.length>0||Ot.hasChildren())&&(Te[$e]=Ot)}return function xi(Ye){if(1===Ye.numberOfChildren&&Ye.children[Ne]){const Te=Ye.children[Ne];return new Y(Ye.segments.concat(Te.segments),Te.children)}return Ye}(new Y(Ye.segments,Te))}class An{constructor(Te){this.path=Te,this.route=this.path[this.path.length-1]}}class Wi{constructor(Te,xe){this.component=Te,this.route=xe}}function Cr(Ye,Te,xe){const $e=Ye._root;return Mr($e,Te?Te._root:null,xe,[$e.value])}function Rn(Ye,Te,xe){const $e=function _a(Ye){if(!Ye)return null;for(let Te=Ye.parent;Te;Te=Te.parent){const xe=Te.routeConfig;if(xe&&xe._loadedConfig)return xe._loadedConfig}return null}(Te);return($e?$e.module.injector:xe).get(Ye)}function Mr(Ye,Te,xe,$e,dt={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=St(Te);return Ye.children.forEach(qt=>{(function ds(Ye,Te,xe,$e,dt={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=Ye.value,qt=Te?Te.value:null,ii=xe?xe.getContext(Ye.value.outlet):null;if(qt&&Ot.routeConfig===qt.routeConfig){const Ei=function vs(Ye,Te,xe){if("function"==typeof xe)return xe(Ye,Te);switch(xe){case"pathParamsChange":return!et(Ye.url,Te.url);case"pathParamsOrQueryParamsChange":return!et(Ye.url,Te.url)||!Ue(Ye.queryParams,Te.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yi(Ye,Te)||!Ue(Ye.queryParams,Te.queryParams);default:return!Yi(Ye,Te)}}(qt,Ot,Ot.routeConfig.runGuardsAndResolvers);Ei?dt.canActivateChecks.push(new An($e)):(Ot.data=qt.data,Ot._resolvedData=qt._resolvedData),Mr(Ye,Te,Ot.component?ii?ii.children:null:xe,$e,dt),Ei&&ii&&ii.outlet&&ii.outlet.isActivated&&dt.canDeactivateChecks.push(new Wi(ii.outlet.component,qt))}else qt&&Pi(Te,ii,dt),dt.canActivateChecks.push(new An($e)),Mr(Ye,null,Ot.component?ii?ii.children:null:xe,$e,dt)})(qt,Ot[qt.value.outlet],xe,$e.concat([qt.value]),dt),delete Ot[qt.value.outlet]}),rt(Ot,(qt,ii)=>Pi(qt,xe.getContext(ii),dt)),dt}function Pi(Ye,Te,xe){const $e=St(Ye),dt=Ye.value;rt($e,(Ot,qt)=>{Pi(Ot,dt.component?Te?Te.children.getContext(qt):null:Te,xe)}),xe.canDeactivateChecks.push(new Wi(dt.component&&Te&&Te.outlet&&Te.outlet.isActivated?Te.outlet.component:null,dt))}class je{}function wt(Ye){return new t.y(Te=>Te.error(Ye))}class Qt{constructor(Te,xe,$e,dt,Ot,qt){this.rootComponentType=Te,this.config=xe,this.urlTree=$e,this.url=dt,this.paramsInheritanceStrategy=Ot,this.relativeLinkResolution=qt}recognize(){const Te=Gr(this.urlTree.root,[],[],this.config.filter(qt=>void 0===qt.redirectTo),this.relativeLinkResolution).segmentGroup,xe=this.processSegmentGroup(this.config,Te,Ne);if(null===xe)return null;const $e=new Kt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),dt=new Je($e,xe),Ot=new gt(this.url,dt);return this.inheritParamsAndData(Ot._root),Ot}inheritParamsAndData(Te){const xe=Te.value,$e=qi(xe,this.paramsInheritanceStrategy);xe.params=Object.freeze($e.params),xe.data=Object.freeze($e.data),Te.children.forEach(dt=>this.inheritParamsAndData(dt))}processSegmentGroup(Te,xe,$e){return 0===xe.segments.length&&xe.hasChildren()?this.processChildren(Te,xe):this.processSegment(Te,xe,xe.segments,$e)}processChildren(Te,xe){const $e=[];for(const Ot of Object.keys(xe.children)){const qt=xe.children[Ot],ii=is(Te,Ot),Ei=this.processSegmentGroup(ii,qt,Ot);if(null===Ei)return null;$e.push(...Ei)}const dt=Zi($e);return function Xt(Ye){Ye.sort((Te,xe)=>Te.value.outlet===Ne?-1:xe.value.outlet===Ne?1:Te.value.outlet.localeCompare(xe.value.outlet))}(dt),dt}processSegment(Te,xe,$e,dt){for(const Ot of Te){const qt=this.processSegmentAgainstRoute(Ot,xe,$e,dt);if(null!==qt)return qt}return J(xe,$e,dt)?[]:null}processSegmentAgainstRoute(Te,xe,$e,dt){if(Te.redirectTo||!me(Te,xe,$e,dt))return null;let Ot,qt=[],ii=[];if("**"===Te.path){const ar=$e.length>0?ft($e).parameters:{};Ot=new Kt($e,ar,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tt(Te),Sr(Te),Te.component,Te,Mn(xe),On(xe)+$e.length,Et(Te))}else{const ar=ra(xe,Te,$e);if(!ar.matched)return null;qt=ar.consumedSegments,ii=$e.slice(ar.lastChild),Ot=new Kt(qt,ar.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tt(Te),Sr(Te),Te.component,Te,Mn(xe),On(xe)+qt.length,Et(Te))}const Ei=function pi(Ye){return Ye.children?Ye.children:Ye.loadChildren?Ye._loadedConfig.routes:[]}(Te),{segmentGroup:an,slicedSegments:Wn}=Gr(xe,qt,ii,Ei.filter(ar=>void 0===ar.redirectTo),this.relativeLinkResolution);if(0===Wn.length&&an.hasChildren()){const ar=this.processChildren(Ei,an);return null===ar?null:[new Je(Ot,ar)]}if(0===Ei.length&&0===Wn.length)return[new Je(Ot,[])];const xn=Sr(Te)===dt,er=this.processSegment(Ei,an,Wn,xn?Ne:dt);return null===er?null:[new Je(Ot,er)]}}function Ti(Ye){const Te=Ye.value.routeConfig;return Te&&""===Te.path&&void 0===Te.redirectTo}function Zi(Ye){const Te=[],xe=new Set;for(const $e of Ye){if(!Ti($e)){Te.push($e);continue}const dt=Te.find(Ot=>$e.value.routeConfig===Ot.value.routeConfig);void 0!==dt?(dt.children.push(...$e.children),xe.add(dt)):Te.push($e)}for(const $e of xe){const dt=Zi($e.children);Te.push(new Je($e.value,dt))}return Te.filter($e=>!xe.has($e))}function Mn(Ye){let Te=Ye;for(;Te._sourceSegment;)Te=Te._sourceSegment;return Te}function On(Ye){let Te=Ye,xe=Te._segmentIndexShift?Te._segmentIndexShift:0;for(;Te._sourceSegment;)Te=Te._sourceSegment,xe+=Te._segmentIndexShift?Te._segmentIndexShift:0;return xe-1}function tt(Ye){return Ye.data||{}}function Et(Ye){return Ye.resolve||{}}function Ai(Ye){return(0,de.w)(Te=>{const xe=Ye(Te);return xe?(0,R.D)(xe).pipe((0,re.U)(()=>Te)):(0,s.of)(Te)})}class gn extends class un{shouldDetach(Te){return!1}store(Te,xe){}shouldAttach(Te){return!1}retrieve(Te){return null}shouldReuseRoute(Te,xe){return Te.routeConfig===xe.routeConfig}}{}const En=new e.OlP("ROUTES");class zn{constructor(Te,xe,$e,dt){this.injector=Te,this.compiler=xe,this.onLoadStartListener=$e,this.onLoadEndListener=dt}load(Te,xe){if(xe._loader$)return xe._loader$;this.onLoadStartListener&&this.onLoadStartListener(xe);const dt=this.loadModuleFactory(xe.loadChildren).pipe((0,re.U)(Ot=>{this.onLoadEndListener&&this.onLoadEndListener(xe);const qt=Ot.create(Te);return new Pr(nt(qt.injector.get(En,void 0,e.XFs.Self|e.XFs.Optional)).map(pr),qt)}),(0,i.K)(Ot=>{throw xe._loader$=void 0,Ot}));return xe._loader$=new l(dt,()=>new V.x).pipe(M()),xe._loader$}loadModuleFactory(Te){return Mt(Te()).pipe((0,u.z)(xe=>xe instanceof e.YKP?(0,s.of)(xe):(0,R.D)(this.compiler.compileModuleAsync(xe))))}}class Fr{shouldProcessUrl(Te){return!0}extract(Te){return Te}merge(Te,xe){return Te}}function wr(Ye){throw Ye}function Vn(Ye,Te,xe){return Te.parse("/")}function mr(Ye,Te){return(0,s.of)(null)}const Hi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},on={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let nn=(()=>{class Ye{constructor(xe,$e,dt,Ot,qt,ii,Ei){this.rootComponentType=xe,this.urlSerializer=$e,this.rootContexts=dt,this.location=Ot,this.config=Ei,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new V.x,this.errorHandler=wr,this.malformedUriErrorHandler=Vn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:mr,afterPreactivation:mr},this.urlHandlingStrategy=new Fr,this.routeReuseStrategy=new gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=qt.get(e.h0i),this.console=qt.get(e.c2e);const xn=qt.get(e.R0b);this.isNgZoneEnabled=xn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Ei),this.currentUrlTree=function Zt(){return new Ee(new Y([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new zn(qt,ii,er=>this.triggerEvent(new K(er)),er=>this.triggerEvent(new Me(er))),this.routerState=yi(this.currentUrlTree,this.rootComponentType),this.transitions=new L.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 xe;return null===(xe=this.location.getState())||void 0===xe?void 0:xe.\u0275routerPageId}setupNavigations(xe){const $e=this.events;return xe.pipe((0,j.h)(dt=>0!==dt.id),(0,re.U)(dt=>Object.assign(Object.assign({},dt),{extractedUrl:this.urlHandlingStrategy.extract(dt.rawUrl)})),(0,de.w)(dt=>{let Ot=!1,qt=!1;return(0,s.of)(dt).pipe((0,_.b)(ii=>{this.currentNavigation={id:ii.id,initialUrl:ii.currentRawUrl,extractedUrl:ii.extractedUrl,trigger:ii.source,extras:ii.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,de.w)(ii=>{const Ei=this.browserUrlTree.toString(),an=!this.navigated||ii.extractedUrl.toString()!==Ei||Ei!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||an)&&this.urlHandlingStrategy.shouldProcessUrl(ii.rawUrl))return jn(ii.source)&&(this.browserUrlTree=ii.extractedUrl),(0,s.of)(ii).pipe((0,de.w)(xn=>{const er=this.transitions.getValue();return $e.next(new b(xn.id,this.serializeUrl(xn.extractedUrl),xn.source,xn.restoredState)),er!==this.transitions.getValue()?w.E:Promise.resolve(xn)}),function yn(Ye,Te,xe,$e){return(0,de.w)(dt=>function bt(Ye,Te,xe,$e,dt){return new Yt(Ye,Te,xe,$e,dt).apply()}(Ye,Te,xe,dt.extractedUrl,$e).pipe((0,re.U)(Ot=>Object.assign(Object.assign({},dt),{urlAfterRedirects:Ot}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,_.b)(xn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xn.urlAfterRedirects})}),function It(Ye,Te,xe,$e,dt){return(0,u.z)(Ot=>function Pt(Ye,Te,xe,$e,dt="emptyOnly",Ot="legacy"){try{const qt=new Qt(Ye,Te,xe,$e,dt,Ot).recognize();return null===qt?wt(new je):(0,s.of)(qt)}catch(qt){return wt(qt)}}(Ye,Te,Ot.urlAfterRedirects,xe(Ot.urlAfterRedirects),$e,dt).pipe((0,re.U)(qt=>Object.assign(Object.assign({},Ot),{targetSnapshot:qt}))))}(this.rootComponentType,this.config,xn=>this.serializeUrl(xn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,_.b)(xn=>{if("eager"===this.urlUpdateStrategy){if(!xn.extras.skipLocationChange){const ar=this.urlHandlingStrategy.merge(xn.urlAfterRedirects,xn.rawUrl);this.setBrowserUrl(ar,xn)}this.browserUrlTree=xn.urlAfterRedirects}const er=new ve(xn.id,this.serializeUrl(xn.extractedUrl),this.serializeUrl(xn.urlAfterRedirects),xn.targetSnapshot);$e.next(er)}));if(an&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:er,extractedUrl:ar,source:ao,restoredState:ea,extras:ys}=ii,fs=new b(er,this.serializeUrl(ar),ao,ea);$e.next(fs);const ks=yi(ar,this.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},ii),{targetSnapshot:ks,urlAfterRedirects:ar,extras:Object.assign(Object.assign({},ys),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ii.rawUrl,ii.resolve(null),w.E}),Ai(ii=>{const{targetSnapshot:Ei,id:an,extractedUrl:Wn,rawUrl:xn,extras:{skipLocationChange:er,replaceUrl:ar}}=ii;return this.hooks.beforePreactivation(Ei,{navigationId:an,appliedUrlTree:Wn,rawUrlTree:xn,skipLocationChange:!!er,replaceUrl:!!ar})}),(0,_.b)(ii=>{const Ei=new be(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot);this.triggerEvent(Ei)}),(0,re.U)(ii=>Object.assign(Object.assign({},ii),{guards:Cr(ii.targetSnapshot,ii.currentSnapshot,this.rootContexts)})),function Nn(Ye,Te){return(0,u.z)(xe=>{const{targetSnapshot:$e,currentSnapshot:dt,guards:{canActivateChecks:Ot,canDeactivateChecks:qt}}=xe;return 0===qt.length&&0===Ot.length?(0,s.of)(Object.assign(Object.assign({},xe),{guardsResult:!0})):function zs(Ye,Te,xe,$e){return(0,R.D)(Ye).pipe((0,u.z)(dt=>function he(Ye,Te,xe,$e,dt){const Ot=Te&&Te.routeConfig?Te.routeConfig.canDeactivate:null;if(!Ot||0===Ot.length)return(0,s.of)(!0);const qt=Ot.map(ii=>{const Ei=Rn(ii,Te,dt);let an;if(function kr(Ye){return Ye&&Kn(Ye.canDeactivate)}(Ei))an=Mt(Ei.canDeactivate(Ye,Te,xe,$e));else{if(!Kn(Ei))throw new Error("Invalid CanDeactivate guard");an=Mt(Ei(Ye,Te,xe,$e))}return an.pipe((0,p.P)())});return(0,s.of)(qt).pipe(Jr())}(dt.component,dt.route,xe,Te,$e)),(0,p.P)(dt=>!0!==dt,!0))}(qt,$e,dt,Ye).pipe((0,u.z)(ii=>ii&&function vn(Ye){return"boolean"==typeof Ye}(ii)?function fr(Ye,Te,xe,$e){return(0,R.D)(Te).pipe((0,a.b)(dt=>(0,E.z)(function rs(Ye,Te){return null!==Ye&&Te&&Te(new we(Ye)),(0,s.of)(!0)}(dt.route.parent,$e),function Us(Ye,Te){return null!==Ye&&Te&&Te(new Ze(Ye)),(0,s.of)(!0)}(dt.route,$e),function ie(Ye,Te,xe){const $e=Te[Te.length-1],Ot=Te.slice(0,Te.length-1).reverse().map(qt=>function Un(Ye){const Te=Ye.routeConfig?Ye.routeConfig.canActivateChild:null;return Te&&0!==Te.length?{node:Ye,guards:Te}:null}(qt)).filter(qt=>null!==qt).map(qt=>(0,P.P)(()=>{const ii=qt.guards.map(Ei=>{const an=Rn(Ei,qt.node,xe);let Wn;if(function Wa(Ye){return Ye&&Kn(Ye.canActivateChild)}(an))Wn=Mt(an.canActivateChild($e,Ye));else{if(!Kn(an))throw new Error("Invalid CanActivateChild guard");Wn=Mt(an($e,Ye))}return Wn.pipe((0,p.P)())});return(0,s.of)(ii).pipe(Jr())}));return(0,s.of)(Ot).pipe(Jr())}(Ye,dt.path,xe),function xt(Ye,Te,xe){const $e=Te.routeConfig?Te.routeConfig.canActivate:null;if(!$e||0===$e.length)return(0,s.of)(!0);const dt=$e.map(Ot=>(0,P.P)(()=>{const qt=Rn(Ot,Te,xe);let ii;if(function Ba(Ye){return Ye&&Kn(Ye.canActivate)}(qt))ii=Mt(qt.canActivate(Te,Ye));else{if(!Kn(qt))throw new Error("Invalid CanActivate guard");ii=Mt(qt(Te,Ye))}return ii.pipe((0,p.P)())}));return(0,s.of)(dt).pipe(Jr())}(Ye,dt.route,xe))),(0,p.P)(dt=>!0!==dt,!0))}($e,Ot,Ye,Te):(0,s.of)(ii)),(0,re.U)(ii=>Object.assign(Object.assign({},xe),{guardsResult:ii})))})}(this.ngModule.injector,ii=>this.triggerEvent(ii)),(0,_.b)(ii=>{if(Qn(ii.guardsResult)){const an=q(`Redirecting to "${this.serializeUrl(ii.guardsResult)}"`);throw an.url=ii.guardsResult,an}const Ei=new Re(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot,!!ii.guardsResult);this.triggerEvent(Ei)}),(0,j.h)(ii=>!!ii.guardsResult||(this.restoreHistory(ii),this.cancelNavigationTransition(ii,""),!1)),Ai(ii=>{if(ii.guards.canActivateChecks.length)return(0,s.of)(ii).pipe((0,_.b)(Ei=>{const an=new ze(Ei.id,this.serializeUrl(Ei.extractedUrl),this.serializeUrl(Ei.urlAfterRedirects),Ei.targetSnapshot);this.triggerEvent(an)}),(0,de.w)(Ei=>{let an=!1;return(0,s.of)(Ei).pipe(function zt(Ye,Te){return(0,u.z)(xe=>{const{targetSnapshot:$e,guards:{canActivateChecks:dt}}=xe;if(!dt.length)return(0,s.of)(xe);let Ot=0;return(0,R.D)(dt).pipe((0,a.b)(qt=>function ri(Ye,Te,xe,$e){return function vi(Ye,Te,xe,$e){const dt=Object.keys(Ye);if(0===dt.length)return(0,s.of)({});const Ot={};return(0,R.D)(dt).pipe((0,u.z)(qt=>function Mi(Ye,Te,xe,$e){const dt=Rn(Ye,Te,$e);return Mt(dt.resolve?dt.resolve(Te,xe):dt(Te,xe))}(Ye[qt],Te,xe,$e).pipe((0,_.b)(ii=>{Ot[qt]=ii}))),W(1),(0,u.z)(()=>Object.keys(Ot).length===dt.length?(0,s.of)(Ot):w.E))}(Ye._resolve,Ye,Te,$e).pipe((0,re.U)(Ot=>(Ye._resolvedData=Ot,Ye.data=Object.assign(Object.assign({},Ye.data),qi(Ye,xe).resolve),null)))}(qt.route,$e,Ye,Te)),(0,_.b)(()=>Ot++),W(1),(0,u.z)(qt=>Ot===dt.length?(0,s.of)(xe):w.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,_.b)({next:()=>an=!0,complete:()=>{an||(this.restoreHistory(Ei),this.cancelNavigationTransition(Ei,"At least one route resolver didn't emit any value."))}}))}),(0,_.b)(Ei=>{const an=new Oe(Ei.id,this.serializeUrl(Ei.extractedUrl),this.serializeUrl(Ei.urlAfterRedirects),Ei.targetSnapshot);this.triggerEvent(an)}))}),Ai(ii=>{const{targetSnapshot:Ei,id:an,extractedUrl:Wn,rawUrl:xn,extras:{skipLocationChange:er,replaceUrl:ar}}=ii;return this.hooks.afterPreactivation(Ei,{navigationId:an,appliedUrlTree:Wn,rawUrlTree:xn,skipLocationChange:!!er,replaceUrl:!!ar})}),(0,re.U)(ii=>{const Ei=function $i(Ye,Te,xe){const $e=Cn(Ye,Te._root,xe?xe._root:void 0);return new kt($e,Te)}(this.routeReuseStrategy,ii.targetSnapshot,ii.currentRouterState);return Object.assign(Object.assign({},ii),{targetRouterState:Ei})}),(0,_.b)(ii=>{this.currentUrlTree=ii.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ii.urlAfterRedirects,ii.rawUrl),this.routerState=ii.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ii.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ii),this.browserUrlTree=ii.urlAfterRedirects)}),((Ye,Te,xe)=>(0,re.U)($e=>(new Ya(Te,$e.targetRouterState,$e.currentRouterState,xe).activate(Ye),$e)))(this.rootContexts,this.routeReuseStrategy,ii=>this.triggerEvent(ii)),(0,_.b)({next(){Ot=!0},complete(){Ot=!0}}),(0,D.x)(()=>{var ii;Ot||qt||this.cancelNavigationTransition(dt,`Navigation ID ${dt.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id)===dt.id&&(this.currentNavigation=null)}),(0,i.K)(ii=>{if(qt=!0,function $(Ye){return Ye&&Ye[Pe]}(ii)){const Ei=Qn(ii.url);Ei||(this.navigated=!0,this.restoreHistory(dt,!0));const an=new N(dt.id,this.serializeUrl(dt.extractedUrl),ii.message);$e.next(an),Ei?setTimeout(()=>{const Wn=this.urlHandlingStrategy.merge(ii.url,this.rawUrlTree),xn={skipLocationChange:dt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jn(dt.source)};this.scheduleNavigation(Wn,"imperative",null,xn,{resolve:dt.resolve,reject:dt.reject,promise:dt.promise})},0):dt.resolve(!1)}else{this.restoreHistory(dt,!0);const Ei=new U(dt.id,this.serializeUrl(dt.extractedUrl),ii);$e.next(Ei);try{dt.resolve(this.errorHandler(ii))}catch(an){dt.reject(an)}}return w.E}))}))}resetRootComponentType(xe){this.rootComponentType=xe,this.routerState.root.component=this.rootComponentType}setTransition(xe){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),xe))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(xe=>{const $e="popstate"===xe.type?"popstate":"hashchange";"popstate"===$e&&setTimeout(()=>{var dt;const Ot={replaceUrl:!0},qt=(null===(dt=xe.state)||void 0===dt?void 0:dt.navigationId)?xe.state:null;if(qt){const Ei=Object.assign({},qt);delete Ei.navigationId,delete Ei.\u0275routerPageId,0!==Object.keys(Ei).length&&(Ot.state=Ei)}const ii=this.parseUrl(xe.url);this.scheduleNavigation(ii,$e,qt,Ot)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(xe){this.events.next(xe)}resetConfig(xe){Aa(xe),this.config=xe.map(pr),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(xe,$e={}){const{relativeTo:dt,queryParams:Ot,fragment:qt,queryParamsHandling:ii,preserveFragment:Ei}=$e,an=dt||this.routerState.root,Wn=Ei?this.currentUrlTree.fragment:qt;let xn=null;switch(ii){case"merge":xn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Ot);break;case"preserve":xn=this.currentUrlTree.queryParams;break;default:xn=Ot||null}return null!==xn&&(xn=this.removeEmptyProps(xn)),function kn(Ye,Te,xe,$e,dt){if(0===xe.length)return Fi(Te.root,Te.root,Te,$e,dt);const Ot=function La(Ye){if("string"==typeof Ye[0]&&1===Ye.length&&"/"===Ye[0])return new Lr(!0,0,Ye);let Te=0,xe=!1;const $e=Ye.reduce((dt,Ot,qt)=>{if("object"==typeof Ot&&null!=Ot){if(Ot.outlets){const ii={};return rt(Ot.outlets,(Ei,an)=>{ii[an]="string"==typeof Ei?Ei.split("/"):Ei}),[...dt,{outlets:ii}]}if(Ot.segmentPath)return[...dt,Ot.segmentPath]}return"string"!=typeof Ot?[...dt,Ot]:0===qt?(Ot.split("/").forEach((ii,Ei)=>{0==Ei&&"."===ii||(0==Ei&&""===ii?xe=!0:".."===ii?Te++:""!=ii&&dt.push(ii))}),dt):[...dt,Ot]},[]);return new Lr(xe,Te,$e)}(xe);if(Ot.toRoot())return Fi(Te.root,new Y([],{}),Te,$e,dt);const qt=function Or(Ye,Te,xe){if(Ye.isAbsolute)return new Gn(Te.root,!0,0);if(-1===xe.snapshot._lastPathIndex){const Ot=xe.snapshot._urlSegment;return new Gn(Ot,Ot===Te.root,0)}const $e=dr(Ye.commands[0])?0:1;return function Ra(Ye,Te,xe){let $e=Ye,dt=Te,Ot=xe;for(;Ot>dt;){if(Ot-=dt,$e=$e.parent,!$e)throw new Error("Invalid number of '../'");dt=$e.segments.length}return new Gn($e,!1,dt-Ot)}(xe.snapshot._urlSegment,xe.snapshot._lastPathIndex+$e,Ye.numberOfDoubleDots)}(Ot,Te,Ye),ii=qt.processChildren?xr(qt.segmentGroup,qt.index,Ot.commands):Fa(qt.segmentGroup,qt.index,Ot.commands);return Fi(qt.segmentGroup,ii,Te,$e,dt)}(an,this.currentUrlTree,xe,xn,null!=Wn?Wn:null)}navigateByUrl(xe,$e={skipLocationChange:!1}){const dt=Qn(xe)?xe:this.parseUrl(xe),Ot=this.urlHandlingStrategy.merge(dt,this.rawUrlTree);return this.scheduleNavigation(Ot,"imperative",null,$e)}navigate(xe,$e={skipLocationChange:!1}){return function Pn(Ye){for(let Te=0;Te{const Ot=xe[dt];return null!=Ot&&($e[dt]=Ot),$e},{})}processNavigations(){this.navigations.subscribe(xe=>{this.navigated=!0,this.lastSuccessfulId=xe.id,this.currentPageId=xe.targetPageId,this.events.next(new Z(xe.id,this.serializeUrl(xe.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,xe.resolve(!0)},xe=>{this.console.warn(`Unhandled Navigation Error: ${xe}`)})}scheduleNavigation(xe,$e,dt,Ot,qt){var ii,Ei,an;if(this.disposed)return Promise.resolve(!1);const Wn=this.transitions.value,xn=jn($e)&&Wn&&!jn(Wn.source),er=Wn.rawUrl.toString()===xe.toString(),ar=Wn.id===(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id);if(xn&&er&&ar)return Promise.resolve(!0);let ea,ys,fs;qt?(ea=qt.resolve,ys=qt.reject,fs=qt.promise):fs=new Promise((Ea,Ol)=>{ea=Ea,ys=Ol});const ks=++this.navigationId;let bs;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(dt=this.location.getState()),bs=dt&&dt.\u0275routerPageId?dt.\u0275routerPageId:Ot.replaceUrl||Ot.skipLocationChange?null!==(Ei=this.browserPageId)&&void 0!==Ei?Ei:0:(null!==(an=this.browserPageId)&&void 0!==an?an:0)+1):bs=0,this.setTransition({id:ks,targetPageId:bs,source:$e,restoredState:dt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:xe,extras:Ot,resolve:ea,reject:ys,promise:fs,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fs.catch(Ea=>Promise.reject(Ea))}setBrowserUrl(xe,$e){const dt=this.urlSerializer.serialize(xe),Ot=Object.assign(Object.assign({},$e.extras.state),this.generateNgRouterState($e.id,$e.targetPageId));this.location.isCurrentPathEqualTo(dt)||$e.extras.replaceUrl?this.location.replaceState(dt,"",Ot):this.location.go(dt,"",Ot)}restoreHistory(xe,$e=!1){var dt,Ot;if("computed"===this.canceledNavigationResolution){const qt=this.currentPageId-xe.targetPageId;"popstate"!==xe.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(dt=this.currentNavigation)||void 0===dt?void 0:dt.finalUrl)||0===qt?this.currentUrlTree===(null===(Ot=this.currentNavigation)||void 0===Ot?void 0:Ot.finalUrl)&&0===qt&&(this.resetState(xe),this.browserUrlTree=xe.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(qt)}else"replace"===this.canceledNavigationResolution&&($e&&this.resetState(xe),this.resetUrlToCurrentUrlTree())}resetState(xe){this.routerState=xe.currentRouterState,this.currentUrlTree=xe.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,xe.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(xe,$e){const dt=new N(xe.id,this.serializeUrl(xe.extractedUrl),$e);this.triggerEvent(dt),xe.resolve(!1)}generateNgRouterState(xe,$e){return"computed"===this.canceledNavigationResolution?{navigationId:xe,\u0275routerPageId:$e}:{navigationId:xe}}}return Ye.\u0275fac=function(xe){e.$Z()},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function jn(Ye){return"imperative"!==Ye}let da=(()=>{class Ye{constructor(xe,$e,dt,Ot,qt){this.router=xe,this.route=$e,this.tabIndexAttribute=dt,this.renderer=Ot,this.el=qt,this.commands=null,this.onChanges=new V.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(xe){if(null!=this.tabIndexAttribute)return;const $e=this.renderer,dt=this.el.nativeElement;null!==xe?$e.setAttribute(dt,"tabindex",xe):$e.removeAttribute(dt,"tabindex")}ngOnChanges(xe){this.onChanges.next(this)}set routerLink(xe){null!=xe?(this.commands=Array.isArray(xe)?xe:[xe],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const xe={skipLocationChange:$r(this.skipLocationChange),replaceUrl:$r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,xe),!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:$r(this.preserveFragment)})}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.Y36(nn),e.Y36(Si),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(xe,$e){1&xe&&e.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:[e.TTD]}),Ye})(),Xr=(()=>{class Ye{constructor(xe,$e,dt){this.router=xe,this.route=$e,this.locationStrategy=dt,this.commands=null,this.href=null,this.onChanges=new V.x,this.subscription=xe.events.subscribe(Ot=>{Ot instanceof Z&&this.updateTargetUrlAndHref()})}set routerLink(xe){this.commands=null!=xe?Array.isArray(xe)?xe:[xe]:null}ngOnChanges(xe){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(xe,$e,dt,Ot,qt){if(0!==xe||$e||dt||Ot||qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ii={skipLocationChange:$r(this.skipLocationChange),replaceUrl:$r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ii),!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:$r(this.preserveFragment)})}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.Y36(nn),e.Y36(Si),e.Y36(x.S$))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(xe,$e){1&xe&&e.NdJ("click",function(Ot){return $e.onClick(Ot.button,Ot.ctrlKey,Ot.shiftKey,Ot.altKey,Ot.metaKey)}),2&xe&&e.uIk("target",$e.target)("href",$e.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ye})();function $r(Ye){return""===Ye||!!Ye}let Yn=(()=>{class Ye{constructor(xe,$e,dt,Ot,qt,ii){this.router=xe,this.element=$e,this.renderer=dt,this.cdr=Ot,this.link=qt,this.linkWithHref=ii,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=xe.events.subscribe(Ei=>{Ei instanceof Z&&this.update()})}ngAfterContentInit(){(0,s.of)(this.links.changes,this.linksWithHrefs.changes,(0,s.of)(null)).pipe((0,O.J)()).subscribe(xe=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var xe;null===(xe=this.linkInputChangesSubscription)||void 0===xe||xe.unsubscribe();const $e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(dt=>!!dt).map(dt=>dt.onChanges);this.linkInputChangesSubscription=(0,R.D)($e).pipe((0,O.J)()).subscribe(dt=>{this.isActive!==this.isLinkActive(this.router)(dt)&&this.update()})}set routerLinkActive(xe){const $e=Array.isArray(xe)?xe:xe.split(" ");this.classes=$e.filter(dt=>!!dt)}ngOnChanges(xe){this.update()}ngOnDestroy(){var xe;this.routerEventsSubscription.unsubscribe(),null===(xe=this.linkInputChangesSubscription)||void 0===xe||xe.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const xe=this.hasActiveLinks();this.isActive!==xe&&(this.isActive=xe,this.cdr.markForCheck(),this.classes.forEach($e=>{xe?this.renderer.addClass(this.element.nativeElement,$e):this.renderer.removeClass(this.element.nativeElement,$e)}),this.isActiveChange.emit(xe))})}isLinkActive(xe){const $e=function io(Ye){return!!Ye.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return dt=>!!dt.urlTree&&xe.isActive(dt.urlTree,$e)}hasActiveLinks(){const xe=this.isLinkActive(this.router);return this.link&&xe(this.link)||this.linkWithHref&&xe(this.linkWithHref)||this.links.some(xe)||this.linksWithHrefs.some(xe)}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.Y36(nn),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(da,8),e.Y36(Xr,8))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","routerLinkActive",""]],contentQueries:function(xe,$e,dt){if(1&xe&&(e.Suo(dt,da,5),e.Suo(dt,Xr,5)),2&xe){let Ot;e.iGM(Ot=e.CRH())&&($e.links=Ot),e.iGM(Ot=e.CRH())&&($e.linksWithHrefs=Ot)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[e.TTD]}),Ye})();class Ia{}class Zs{preload(Te,xe){return(0,s.of)(null)}}let va=(()=>{class Ye{constructor(xe,$e,dt,Ot){this.router=xe,this.injector=dt,this.preloadingStrategy=Ot,this.loader=new zn(dt,$e,Ei=>xe.triggerEvent(new K(Ei)),Ei=>xe.triggerEvent(new Me(Ei)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,j.h)(xe=>xe instanceof Z),(0,a.b)(()=>this.preload())).subscribe(()=>{})}preload(){const xe=this.injector.get(e.h0i);return this.processRoutes(xe,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(xe,$e){const dt=[];for(const Ot of $e)if(Ot.loadChildren&&!Ot.canLoad&&Ot._loadedConfig){const qt=Ot._loadedConfig;dt.push(this.processRoutes(qt.module,qt.routes))}else Ot.loadChildren&&!Ot.canLoad?dt.push(this.preloadConfig(xe,Ot)):Ot.children&&dt.push(this.processRoutes(xe,Ot.children));return(0,R.D)(dt).pipe((0,O.J)(),(0,re.U)(Ot=>{}))}preloadConfig(xe,$e){return this.preloadingStrategy.preload($e,()=>($e._loadedConfig?(0,s.of)($e._loadedConfig):this.loader.load(xe.injector,$e)).pipe((0,u.z)(Ot=>($e._loadedConfig=Ot,this.processRoutes(Ot.module,Ot.routes)))))}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.LFG(nn),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(Ia))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),us=(()=>{class Ye{constructor(xe,$e,dt={}){this.router=xe,this.viewportScroller=$e,this.options=dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},dt.scrollPositionRestoration=dt.scrollPositionRestoration||"disabled",dt.anchorScrolling=dt.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(xe=>{xe instanceof b?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=xe.navigationTrigger,this.restoredId=xe.restoredState?xe.restoredState.navigationId:0):xe instanceof Z&&(this.lastId=xe.id,this.scheduleScrollEvent(xe,this.router.parseUrl(xe.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(xe=>{xe instanceof Fe&&(xe.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(xe.position):xe.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(xe.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(xe,$e){this.router.triggerEvent(new Fe(xe,"popstate"===this.lastSource?this.store[this.restoredId]:null,$e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ye.\u0275fac=function(xe){e.$Z()},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();const Vs=new e.OlP("ROUTER_CONFIGURATION"),no=new e.OlP("ROUTER_FORROOT_GUARD"),tl=[x.Ye,{provide:Nt,useClass:Jt},{provide:nn,useFactory:function nl(Ye,Te,xe,$e,dt,Ot,qt={},ii,Ei){const an=new nn(null,Ye,Te,xe,$e,dt,nt(Ot));return ii&&(an.urlHandlingStrategy=ii),Ei&&(an.routeReuseStrategy=Ei),function Oo(Ye,Te){Ye.errorHandler&&(Te.errorHandler=Ye.errorHandler),Ye.malformedUriErrorHandler&&(Te.malformedUriErrorHandler=Ye.malformedUriErrorHandler),Ye.onSameUrlNavigation&&(Te.onSameUrlNavigation=Ye.onSameUrlNavigation),Ye.paramsInheritanceStrategy&&(Te.paramsInheritanceStrategy=Ye.paramsInheritanceStrategy),Ye.relativeLinkResolution&&(Te.relativeLinkResolution=Ye.relativeLinkResolution),Ye.urlUpdateStrategy&&(Te.urlUpdateStrategy=Ye.urlUpdateStrategy),Ye.canceledNavigationResolution&&(Te.canceledNavigationResolution=Ye.canceledNavigationResolution)}(qt,an),qt.enableTracing&&an.events.subscribe(Wn=>{var xn,er;null===(xn=console.group)||void 0===xn||xn.call(console,`Router Event: ${Wn.constructor.name}`),console.log(Wn.toString()),console.log(Wn),null===(er=console.groupEnd)||void 0===er||er.call(console)}),an},deps:[Nt,$n,x.Ye,e.zs3,e.Sil,En,Vs,[class Rr{},new e.FiY],[class Ki{},new e.FiY]]},$n,{provide:Si,useFactory:function Ll(Ye){return Ye.routerState.root},deps:[nn]},va,Zs,class Ps{preload(Te,xe){return xe().pipe((0,i.K)(()=>(0,s.of)(null)))}},{provide:Vs,useValue:{enableTracing:!1}}];function cc(){return new e.PXZ("Router",nn)}let hc=(()=>{class Ye{constructor(xe,$e){}static forRoot(xe,$e){return{ngModule:Ye,providers:[tl,il(xe),{provide:no,useFactory:Lo,deps:[[nn,new e.FiY,new e.tp0]]},{provide:Vs,useValue:$e||{}},{provide:x.S$,useFactory:$c,deps:[x.lw,[new e.tBr(x.mr),new e.FiY],Vs]},{provide:us,useFactory:Xc,deps:[nn,x.EM,Vs]},{provide:Ia,useExisting:$e&&$e.preloadingStrategy?$e.preloadingStrategy:Zs},{provide:e.PXZ,multi:!0,useFactory:cc},[Io,{provide:e.ip1,multi:!0,useFactory:ro,deps:[Io]},{provide:Gs,useFactory:dc,deps:[Io]},{provide:e.tb,multi:!0,useExisting:Gs}]]}}static forChild(xe){return{ngModule:Ye,providers:[il(xe)]}}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.LFG(no,8),e.LFG(nn,8))},Ye.\u0275mod=e.oAB({type:Ye}),Ye.\u0275inj=e.cJS({}),Ye})();function Xc(Ye,Te,xe){return xe.scrollOffset&&Te.setOffset(xe.scrollOffset),new us(Ye,Te,xe)}function $c(Ye,Te,xe={}){return xe.useHash?new x.Do(Ye,Te):new x.b0(Ye,Te)}function Lo(Ye){return"guarded"}function il(Ye){return[{provide:e.deG,multi:!0,useValue:Ye},{provide:En,multi:!0,useValue:Ye}]}let Io=(()=>{class Ye{constructor(xe){this.injector=xe,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new V.x}appInitializer(){return this.injector.get(x.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let $e=null;const dt=new Promise(ii=>$e=ii),Ot=this.injector.get(nn),qt=this.injector.get(Vs);return"disabled"===qt.initialNavigation?(Ot.setUpLocationChangeListener(),$e(!0)):"enabled"===qt.initialNavigation||"enabledBlocking"===qt.initialNavigation?(Ot.hooks.afterPreactivation=()=>this.initNavigation?(0,s.of)(null):(this.initNavigation=!0,$e(!0),this.resultOfPreactivationDone),Ot.initialNavigation()):$e(!0),dt})}bootstrapListener(xe){const $e=this.injector.get(Vs),dt=this.injector.get(va),Ot=this.injector.get(us),qt=this.injector.get(nn),ii=this.injector.get(e.z2F);xe===ii.components[0]&&(("enabledNonBlocking"===$e.initialNavigation||void 0===$e.initialNavigation)&&qt.initialNavigation(),dt.setUpPreloading(),Ot.init(),qt.resetRootComponentType(ii.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ye.\u0275fac=function(xe){return new(xe||Ye)(e.LFG(e.zs3))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function ro(Ye){return Ye.appInitializer.bind(Ye)}function dc(Ye){return Ye.bootstrapListener.bind(Ye)}const Gs=new e.OlP("Router Initializer")},9444:(Ge,Q,m)=>{"use strict";m.d(Q,{BN:()=>Xt,uH:()=>On});var e=m(5e3);function t(tt){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Et){return typeof Et}:function(Et){return Et&&"function"==typeof Symbol&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et})(tt)}function C(tt,Et){for(var It=0;It0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function Ui(tt){return"".concat(tt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Xi(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,": ").concat(tt[It],";")},"")}function Ke(tt){return tt.size!==At.size||tt.x!==At.x||tt.y!==At.y||tt.rotate!==At.rotate||tt.flipX||tt.flipY}function _t(tt){var Et=tt.transform,zt=tt.iconWidth,ri={transform:"translate(".concat(tt.containerWidth/2," 256)")},vi="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),Mi="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),Ai="rotate(".concat(Et.rotate," 0 0)");return{outer:ri,inner:{transform:"".concat(vi," ").concat(Mi," ").concat(Ai)},path:{transform:"translate(".concat(zt/2*-1," -256)")}}}var qe={x:0,y:0,width:"100%",height:"100%"};function yt(tt){var Et=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tt.attributes&&(tt.attributes.fill||Et)&&(tt.attributes.fill="black"),tt}function ue(tt){return"g"===tt.tag?tt.children:[tt]}function Ni(tt){var Et=tt.icons,It=Et.main,zt=Et.mask,ri=tt.prefix,vi=tt.iconName,Mi=tt.transform,Ai=tt.symbol,Ki=tt.title,un=tt.maskId,gn=tt.titleId,En=tt.extra,zn=tt.watchable,Rr=void 0!==zn&&zn,Fr=zt.found?zt:It,wr=Fr.width,Vn=Fr.height,mr="fak"===ri,Hi=mr?"":"fa-w-".concat(Math.ceil(wr/Vn*16)),on=[Ce.replacementClass,vi?"".concat(Ce.familyPrefix,"-").concat(vi):"",Hi].filter(function(Yn){return-1===En.classes.indexOf(Yn)}).filter(function(Yn){return""!==Yn||!!Yn}).concat(En.classes).join(" "),nn={children:[],attributes:l({},En.attributes,{"data-prefix":ri,"data-icon":vi,class:on,role:En.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(wr," ").concat(Vn)})},Pn=mr&&!~En.classes.indexOf("fa-fw")?{width:"".concat(wr/Vn*16*.0625,"em")}:{};Rr&&(nn.attributes["data-fa-i2svg"]=""),Ki&&nn.children.push({tag:"title",attributes:{id:nn.attributes["aria-labelledby"]||"title-".concat(gn||Li())},children:[Ki]});var jn=l({},nn,{prefix:ri,iconName:vi,main:It,mask:zt,maskId:un,transform:Mi,symbol:Ai,styles:l({},Pn,En.styles)}),da=zt.found&&It.found?function Je(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.mask,vi=tt.maskId,Ki=zt.icon,gn=ri.icon,En=_t({transform:tt.transform,containerWidth:ri.width,iconWidth:zt.width}),zn={tag:"rect",attributes:l({},qe,{fill:"white"})},Rr=Ki.children?{children:Ki.children.map(yt)}:{},Fr={tag:"g",attributes:l({},En.inner),children:[yt(l({tag:Ki.tag,attributes:l({},Ki.attributes,En.path)},Rr))]},wr={tag:"g",attributes:l({},En.outer),children:[Fr]},Vn="mask-".concat(vi||Li()),mr="clip-".concat(vi||Li()),Hi={tag:"mask",attributes:l({},qe,{id:Vn,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[zn,wr]},on={tag:"defs",children:[{tag:"clipPath",attributes:{id:mr},children:ue(gn)},Hi]};return Et.push(on,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(mr,")"),mask:"url(#".concat(Vn,")")},qe)}),{children:Et,attributes:It}}(jn):function St(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.transform,Mi=Xi(tt.styles);if(Mi.length>0&&(It.style=Mi),Ke(ri)){var Ai=_t({transform:ri,containerWidth:zt.width,iconWidth:zt.width});Et.push({tag:"g",attributes:l({},Ai.outer),children:[{tag:"g",attributes:l({},Ai.inner),children:[{tag:zt.icon.tag,children:zt.icon.children,attributes:l({},zt.icon.attributes,Ai.path)}]}]})}else Et.push(zt.icon);return{children:Et,attributes:It}}(jn),$r=da.attributes;return jn.children=da.children,jn.attributes=$r,Ai?function yi(tt){var It=tt.iconName,zt=tt.children,vi=tt.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l({},tt.attributes,{id:!0===vi?"".concat(tt.prefix,"-").concat(Ce.familyPrefix,"-").concat(It):vi}),children:zt}]}]}(jn):function kt(tt){var Et=tt.children,It=tt.main,zt=tt.mask,ri=tt.attributes,vi=tt.styles,Mi=tt.transform;if(Ke(Mi)&&It.found&&!zt.found){var un={x:It.width/It.height/2,y:.5};ri.style=Xi(l({},vi,{"transform-origin":"".concat(un.x+Mi.x/16,"em ").concat(un.y+Mi.y/16,"em")}))}return[{tag:"svg",attributes:ri,children:Et}]}(jn)}var $i=function(Et,It,zt,ri){var Ki,un,gn,vi=Object.keys(Et),Mi=vi.length,Ai=void 0!==ri?function(Et,It){return function(zt,ri,vi,Mi){return Et.call(It,zt,ri,vi,Mi)}}(It,ri):It;for(void 0===zt?(Ki=1,gn=Et[vi[0]]):(Ki=0,gn=zt);Ki2&&void 0!==arguments[2]?arguments[2]:{},zt=It.skipHooks,ri=void 0!==zt&&zt,vi=Object.keys(Et).reduce(function(Mi,Ai){var Ki=Et[Ai];return Ki.icon?Mi[Ki.iconName]=Ki.icon:Mi[Ai]=Ki,Mi},{});"function"!=typeof lt.hooks.addPack||ri?lt.styles[tt]=l({},lt.styles[tt]||{},vi):lt.hooks.addPack(tt,vi),"fas"===tt&&Ln("fa",Et)}var _n=lt.styles,kn=lt.shims,dn=function(){var Et=function(ri){return $i(_n,function(vi,Mi,Ai){return vi[Ai]=$i(Mi,ri,{}),vi},{})};Et(function(zt,ri,vi){return ri[3]&&(zt[ri[3]]=vi),zt}),Et(function(zt,ri,vi){var Mi=ri[2];return zt[vi]=vi,Mi.forEach(function(Ai){zt[Ai]=vi}),zt});var It="far"in _n;$i(kn,function(zt,ri){var Mi=ri[1];return"far"===Mi&&!It&&(Mi="fas"),zt[ri[0]]={prefix:Mi,iconName:ri[2]},zt},{})};function Fa(tt,Et,It){if(tt&&tt[Et]&&tt[Et][It])return{prefix:Et,iconName:It,icon:tt[Et][It]}}function xr(tt){var Et=tt.tag,It=tt.attributes,zt=void 0===It?{}:It,ri=tt.children,vi=void 0===ri?[]:ri;return"string"==typeof tt?Ui(tt):"<".concat(Et," ").concat(function Di(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,'="').concat(Ui(tt[It]),'" ')},"").trim()}(zt),">").concat(vi.map(xr).join(""),"")}dn();function Nr(tt){this.name="MissingIcon",this.message=tt||"Icon unavailable",this.stack=(new Error).stack}(Nr.prototype=Object.create(Error.prototype)).constructor=Nr;var ca={fill:"currentColor"},Aa={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ha=(l({},ca,{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"}),l({},Aa,{attributeName:"opacity"}));function Gr(tt){var Et=tt[0],It=tt[1],vi=R(tt.slice(4),1)[0];return{found:!0,width:Et,height:It,icon:Array.isArray(vi)?{tag:"g",attributes:{class:"".concat(Ce.familyPrefix,"-").concat(Fe.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ce.familyPrefix,"-").concat(Fe.SECONDARY),fill:"currentColor",d:vi[0]}},{tag:"path",attributes:{class:"".concat(Ce.familyPrefix,"-").concat(Fe.PRIMARY),fill:"currentColor",d:vi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:vi}}}}function Yt(){Ce.autoAddCss&&!Cr&&(function Bt(tt){if(tt&&a){var Et=se.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=tt;for(var It=se.head.childNodes,zt=null,ri=It.length-1;ri>-1;ri--){var vi=It[ri],Mi=(vi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Mi)>-1&&(zt=vi)}return se.head.insertBefore(Et,zt),tt}}(function ti(){var Et=O,It=Ce.familyPrefix,zt=Ce.replacementClass,ri='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n 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 {\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-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: 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: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\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-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\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\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 -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\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}\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: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\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 color: #fff;\n}';if("fa"!==It||zt!==Et){var vi=new RegExp("\\.".concat("fa","\\-"),"g"),Mi=new RegExp("\\--".concat("fa","\\-"),"g"),Ai=new RegExp("\\.".concat(Et),"g");ri=ri.replace(vi,".".concat(It,"-")).replace(Mi,"--".concat(It,"-")).replace(Ai,".".concat(zt))}return ri}()),Cr=!0)}function xi(tt,Et){return Object.defineProperty(tt,"abstract",{get:Et}),Object.defineProperty(tt,"html",{get:function(){return tt.abstract.map(function(zt){return xr(zt)})}}),Object.defineProperty(tt,"node",{get:function(){if(a){var zt=se.createElement("div");return zt.innerHTML=tt.html,zt.children}}}),tt}function Bi(tt){var Et=tt.prefix,It=void 0===Et?"fa":Et,zt=tt.iconName;if(zt)return Fa(An.definitions,It,zt)||Fa(lt.styles,It,zt)}l({},ca,{cx:"256",cy:"364",r:"28"}),l({},Aa,{attributeName:"r",values:"28;14;28;28;14;28;"}),l({},ha,{values:"1;0;1;1;0;1;"}),l({},ca,{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"}),l({},ha,{values:"1;0;0;0;0;1;"}),l({},ca,{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"}),l({},ha,{values:"0;0;1;1;0;0;"});var An=new(function(){function tt(){(function y(tt,Et){if(!(tt instanceof Et))throw new TypeError("Cannot call a class as a function")})(this,tt),this.definitions={}}return function o(tt,Et,It){Et&&C(tt.prototype,Et),It&&C(tt,It)}(tt,[{key:"add",value:function(){for(var It=this,zt=arguments.length,ri=new Array(zt),vi=0;vi1&&void 0!==arguments[1]?arguments[1]:{},zt=(Et||{}).icon?Et:Bi(Et||{}),ri=It.mask;return ri&&(ri=(ri||{}).icon?ri:Bi(ri||{})),tt(zt,l({},It,{mask:ri}))}}(function(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},It=Et.transform,zt=void 0===It?At:It,ri=Et.symbol,vi=void 0!==ri&&ri,Mi=Et.mask,Ai=void 0===Mi?null:Mi,Ki=Et.maskId,un=void 0===Ki?null:Ki,gn=Et.title,En=void 0===gn?null:gn,zn=Et.titleId,Rr=void 0===zn?null:zn,Fr=Et.classes,wr=void 0===Fr?[]:Fr,Vn=Et.attributes,mr=void 0===Vn?{}:Vn,Hi=Et.styles,on=void 0===Hi?{}:Hi;if(tt){var nn=tt.prefix,Pn=tt.iconName,jn=tt.icon;return xi(l({type:"icon"},tt),function(){return Yt(),Ce.autoA11y&&(En?mr["aria-labelledby"]="".concat(Ce.replacementClass,"-title-").concat(Rr||Li()):(mr["aria-hidden"]="true",mr.focusable="false")),Ni({icons:{main:Gr(jn),mask:Ai?Gr(Ai.icon):{found:!1,width:null,height:null,icon:{}}},prefix:nn,iconName:Pn,transform:l({},At,zt),symbol:vi,title:En,maskId:un,titleId:Rr,extra:{attributes:mr,styles:on,classes:wr}})})}}),zs=m(2313);const fr=["*"],xt=tt=>{const Et={"fa-spin":tt.spin,"fa-pulse":tt.pulse,"fa-fw":tt.fixedWidth,"fa-border":tt.border,"fa-inverse":tt.inverse,"fa-layers-counter":tt.counter,"fa-flip-horizontal":"horizontal"===tt.flip||"both"===tt.flip,"fa-flip-vertical":"vertical"===tt.flip||"both"===tt.flip,[`fa-${tt.size}`]:null!==tt.size,[`fa-rotate-${tt.rotate}`]:null!==tt.rotate,[`fa-pull-${tt.pull}`]:null!==tt.pull,[`fa-stack-${tt.stackItemSize}`]:null!=tt.stackItemSize};return Object.keys(Et).map(It=>Et[It]?It:null).filter(It=>It)};let je=(()=>{class tt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),wt=(()=>{class tt{constructor(){this.definitions={}}addIcons(...It){for(const zt of It){zt.prefix in this.definitions||(this.definitions[zt.prefix]={}),this.definitions[zt.prefix][zt.iconName]=zt;for(const ri of zt.icon[2])"string"==typeof ri&&(this.definitions[zt.prefix][ri]=zt)}}addIconPacks(...It){for(const zt of It){const ri=Object.keys(zt).map(vi=>zt[vi]);this.addIcons(...ri)}}getIconDefinition(It,zt){return It in this.definitions&&zt in this.definitions[It]?this.definitions[It][zt]:null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),Pt=(()=>{class tt{constructor(){this.stackItemSize="1x"}ngOnChanges(It){if("size"in It)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275dir=e.lG2({type:tt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.TTD]}),tt})(),Qt=(()=>{class tt{constructor(It,zt){this.renderer=It,this.elementRef=zt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(It){"size"in It&&(null!=It.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${It.size.currentValue}`),null!=It.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${It.size.previousValue}`))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(e.Qsj),e.Y36(e.SBq))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[e.TTD],ngContentSelectors:fr,decls:1,vars:0,template:function(It,zt){1&It&&(e.F$t(),e.Hsn(0))},encapsulation:2}),tt})(),Xt=(()=>{class tt{constructor(It,zt,ri,vi,Mi){this.sanitizer=It,this.config=zt,this.iconLibrary=ri,this.stackItem=vi,this.classes=[],null!=Mi&&null==vi&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(It){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let zt=null;if(zt=null==this.icon?this.config.fallbackIcon:this.icon,It){const ri=this.findIconDefinition(zt);if(null!=ri){const vi=this.buildParams();this.renderIcon(ri,vi)}}}render(){this.ngOnChanges({})}findIconDefinition(It){const zt=((tt,Et)=>(tt=>void 0!==tt.prefix&&void 0!==tt.iconName)(tt)?tt:Array.isArray(tt)&&2===tt.length?{prefix:tt[0],iconName:tt[1]}:"string"==typeof tt?{prefix:Et,iconName:tt}:void 0)(It,this.config.defaultPrefix);if("icon"in zt)return zt;const ri=this.iconLibrary.getIconDefinition(zt.prefix,zt.iconName);return null!=ri?ri:((tt=>{throw new Error(`Could not find icon with iconName=${tt.iconName} and prefix=${tt.prefix} in the icon library.`)})(zt),null)}buildParams(){const It={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},zt="string"==typeof this.transform?Rn_transform(this.transform):this.transform;return{title:this.title,transform:zt,classes:[...xt(It),...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(It,zt){const ri=_a(It,zt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(ri.html.join("\n"))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(zs.H7),e.Y36(je),e.Y36(wt),e.Y36(Pt,8),e.Y36(Qt,8))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(It,zt){2&It&&(e.Ikx("innerHTML",zt.renderedIconHTML,e.oJD),e.uIk("title",zt.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[e.TTD],decls:0,vars:0,template:function(It,zt){},encapsulation:2}),tt})(),On=(()=>{class tt{}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275mod=e.oAB({type:tt}),tt.\u0275inj=e.cJS({}),tt})()},6642:(Ge,Q,m)=>{"use strict";m.d(Q,{eX:()=>Re,sQ:()=>Ii,GW:()=>a,l4:()=>ze});var e=m(5620),t=m(6451),y=m(8306),C=m(7579),o=m(515),M=m(9646),l=m(2843),R=m(576);class L{constructor(Ee,Y,pe){this.kind=Ee,this.value=Y,this.error=pe,this.hasValue="N"===Ee}observe(Ee){return I(this,Ee)}do(Ee,Y,pe){const{kind:De,value:et,error:$t}=this;return"N"===De?null==Ee?void 0:Ee(et):"E"===De?null==Y?void 0:Y($t):null==pe?void 0:pe()}accept(Ee,Y,pe){var De;return(0,R.m)(null===(De=Ee)||void 0===De?void 0:De.next)?this.observe(Ee):this.do(Ee,Y,pe)}toObservable(){const{kind:Ee,value:Y,error:pe}=this,De="N"===Ee?(0,M.of)(Y):"E"===Ee?(0,l._)(()=>pe):"C"===Ee?o.E:0;if(!De)throw new TypeError(`Unexpected notification kind ${Ee}`);return De}static createNext(Ee){return new L("N",Ee)}static createError(Ee){return new L("E",void 0,Ee)}static createComplete(){return L.completeNotification}}function I(Ve,Ee){var Y,pe,De;const{kind:et,value:$t,error:Nt}=Ve;if("string"!=typeof et)throw new TypeError('Invalid notification, missing "kind"');"N"===et?null===(Y=Ee.next)||void 0===Y||Y.call(Ee,$t):"E"===et?null===(pe=Ee.error)||void 0===pe||pe.call(Ee,Nt):null===(De=Ee.complete)||void 0===De||De.call(Ee)}L.completeNotification=new L("C");var A=m(4482),E=m(5403),w=m(8421);function V(Ve,Ee,Y,pe){return(0,A.e)((De,et)=>{let $t;Ee&&"function"!=typeof Ee?({duration:Y,element:$t,connector:pe}=Ee):$t=Ee;const Nt=new Map,Jt=at=>{Nt.forEach(at),at(et)},ct=at=>Jt(st=>st.error(at)),ke=new j(et,at=>{try{const st=Ve(at);let At=Nt.get(st);if(!At){Nt.set(st,At=pe?pe():new C.x);const li=function Be(at,st){const At=new y.y(li=>{ke.activeGroups++;const Bt=st.subscribe(li);return()=>{Bt.unsubscribe(),0==--ke.activeGroups&&ke.teardownAttempted&&ke.unsubscribe()}});return At.key=at,At}(st,At);if(et.next(li),Y){const Bt=new E.Q(At,()=>{At.complete(),null==Bt||Bt.unsubscribe()},void 0,void 0,()=>Nt.delete(st));ke.add((0,w.Xf)(Y(li)).subscribe(Bt))}}At.next($t?$t(at):at)}catch(st){ct(st)}},()=>Jt(at=>at.complete()),ct,()=>Nt.clear());De.subscribe(ke)})}class j extends E.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var W=m(4004);function te(Ve,Ee){return Ee?Y=>Y.pipe(te((pe,De)=>(0,w.Xf)(Ve(pe,De)).pipe((0,W.U)((et,$t)=>Ee(pe,et,De,$t))))):(0,A.e)((Y,pe)=>{let De=0,et=null,$t=!1;Y.subscribe(new E.Q(pe,Nt=>{et||(et=new E.Q(pe,void 0,()=>{et=null,$t&&pe.complete()}),(0,w.Xf)(Ve(Nt,De++)).subscribe(et))},()=>{$t=!0,!et&&pe.complete()}))})}var ge=m(8502),le=m(262),re=m(9300),de=m(5577),se=m(5698),ye=m(5e3);const v={dispatch:!0,useEffectsErrorHandler:!0},i="__@ngrx/effects_create__";function a(Ve,Ee){const Y=Ve(),pe=Object.assign(Object.assign({},v),Ee);return Object.defineProperty(Y,i,{value:pe}),Y}function p(Ve){return Object.getOwnPropertyNames(Ve).filter(pe=>!(!Ve[pe]||!Ve[pe].hasOwnProperty(i))&&Ve[pe][i].hasOwnProperty("dispatch")).map(pe=>Object.assign({propertyName:pe},Ve[pe][i]))}function u(Ve){return Object.getPrototypeOf(Ve)}const _="__@ngrx/effects__";function O(Ve){return(0,e.qC)(b,u)(Ve)}function b(Ve){return function x(Ve){return Ve.constructor.hasOwnProperty(_)}(Ve)?Ve.constructor[_]:[]}function U(Ve,Ee,Y){const pe=u(Ve).constructor.name,De=function N(Ve){return[O,p].reduce((Y,pe)=>Y.concat(pe(Ve)),[])}(Ve).map(({propertyName:et,dispatch:$t,useEffectsErrorHandler:Nt})=>{const Jt="function"==typeof Ve[et]?Ve[et]():Ve[et],ct=Nt?Y(Jt,Ee):Jt;return!1===$t?ct.pipe((0,ge.l)()):ct.pipe(function P(){return(0,A.e)((Ve,Ee)=>{Ve.subscribe(new E.Q(Ee,Y=>{Ee.next(L.createNext(Y))},()=>{Ee.next(L.createComplete()),Ee.complete()},Y=>{Ee.next(L.createError(Y)),Ee.complete()}))})}()).pipe((0,W.U)(Be=>({effect:Ve[et],notification:Be,propertyName:et,sourceName:pe,sourceInstance:Ve})))});return(0,t.T)(...De)}function be(Ve,Ee,Y=10){return Ve.pipe((0,le.K)(pe=>(Ee&&Ee.handleError(pe),Y<=1?Ve:be(Ve,Ee,Y-1))))}let Re=(()=>{class Ve extends y.y{constructor(Y){super(),Y&&(this.source=Y)}lift(Y){const pe=new Ve;return pe.source=this,pe.operator=Y,pe}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(ye.LFG(e.Y$))},Ve.\u0275prov=ye.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function ze(...Ve){return(0,re.h)(Ee=>Ve.some(Y=>"string"==typeof Y?Y===Ee.type:Y.type===Ee.type))}function ce(Ve){return Le(Ve,"ngrxOnInitEffects")}function Le(Ve,Ee){return Ve&&Ee in Ve&&"function"==typeof Ve[Ee]}const Pe=new ye.OlP("@ngrx/effects Internal Root Guard"),q=new ye.OlP("@ngrx/effects User Provided Effects"),$=new ye.OlP("@ngrx/effects Internal Root Effects"),oe=new ye.OlP("@ngrx/effects Root Effects"),Ce=new ye.OlP("@ngrx/effects Internal Feature Effects"),Ue=new ye.OlP("@ngrx/effects Feature Effects"),lt=new ye.OlP("@ngrx/effects Effects Error Handler");let nt=(()=>{class Ve extends C.x{constructor(Y,pe){super(),this.errorHandler=Y,this.effectsErrorHandler=pe}addEffects(Y){this.next(Y)}toActions(){return this.pipe(V(u),(0,de.z)(Y=>Y.pipe(V(ft))),(0,de.z)(Y=>{const pe=Y.pipe(te(et=>function it(Ve,Ee){return Y=>{const pe=U(Y,Ve,Ee);return function Fe(Ve){return Le(Ve,"ngrxOnRunEffects")}(Y)?Y.ngrxOnRunEffects(pe):pe}}(this.errorHandler,this.effectsErrorHandler)(et)),(0,W.U)(et=>(function Oe(Ve,Ee){if("N"===Ve.notification.kind){const Y=Ve.notification.value;!function K(Ve){return"function"!=typeof Ve&&Ve&&Ve.type&&"string"==typeof Ve.type}(Y)&&Ee.handleError(new Error(`Effect ${function Me({propertyName:Ve,sourceInstance:Ee,sourceName:Y}){const pe="function"==typeof Ee[Ve];return`"${Y}.${String(Ve)}${pe?"()":""}"`}(Ve)} dispatched an invalid action: ${function we(Ve){try{return JSON.stringify(Ve)}catch(Ee){return Ve}}(Y)}`))}}(et,this.errorHandler),et.notification)),(0,re.h)(et=>"N"===et.kind&&null!=et.value),function ee(){return(0,A.e)((Ve,Ee)=>{Ve.subscribe(new E.Q(Ee,Y=>I(Y,Ee)))})}()),De=Y.pipe((0,se.q)(1),(0,re.h)(ce),(0,W.U)(et=>et.ngrxOnInitEffects()));return(0,t.T)(pe,De)}))}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(ye.LFG(ye.qLn),ye.LFG(lt))},Ve.\u0275prov=ye.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function ft(Ve){return function Ze(Ve){return Le(Ve,"ngrxOnIdentifyEffects")}(Ve)?Ve.ngrxOnIdentifyEffects():""}let rt=(()=>{class Ve{constructor(Y,pe){this.effectSources=Y,this.store=pe,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(ye.LFG(nt),ye.LFG(e.yh))},Ve.\u0275prov=ye.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Mt="@ngrx/effects/init";(0,e.PH)(Mt);let Ft=(()=>{class Ve{constructor(Y,pe,De,et,$t,Nt,Jt){this.sources=Y,pe.start(),et.forEach(ct=>Y.addEffects(ct)),De.dispatch({type:Mt})}addEffects(Y){this.sources.addEffects(Y)}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(ye.LFG(nt),ye.LFG(rt),ye.LFG(e.yh),ye.LFG(oe),ye.LFG(e.cr,8),ye.LFG(e.CK,8),ye.LFG(Pe,8))},Ve.\u0275mod=ye.oAB({type:Ve}),Ve.\u0275inj=ye.cJS({}),Ve})(),Vt=(()=>{class Ve{constructor(Y,pe,De,et){pe.forEach($t=>$t.forEach(Nt=>Y.addEffects(Nt)))}}return Ve.\u0275fac=function(Y){return new(Y||Ve)(ye.LFG(Ft),ye.LFG(Ue),ye.LFG(e.cr,8),ye.LFG(e.CK,8))},Ve.\u0275mod=ye.oAB({type:Ve}),Ve.\u0275inj=ye.cJS({}),Ve})(),Ii=(()=>{class Ve{static forFeature(Y=[]){return{ngModule:Vt,providers:[Y,{provide:Ce,multi:!0,useValue:Y},{provide:q,multi:!0,useValue:[]},{provide:Ue,multi:!0,useFactory:jt,deps:[ye.zs3,Ce,q]}]}}static forRoot(Y=[]){return{ngModule:Ft,providers:[{provide:lt,useValue:be},rt,nt,Re,Y,{provide:$,useValue:[Y]},{provide:Pe,useFactory:ki,deps:[[rt,new ye.FiY,new ye.tp0],[$,new ye.PiD]]},{provide:q,multi:!0,useValue:[]},{provide:oe,useFactory:jt,deps:[ye.zs3,$,q]}]}}}return Ve.\u0275fac=function(Y){return new(Y||Ve)},Ve.\u0275mod=ye.oAB({type:Ve}),Ve.\u0275inj=ye.cJS({}),Ve})();function jt(Ve,Ee,Y){const pe=[];for(const De of Ee)pe.push(...De);for(const De of Y)pe.push(...De);return function ei(Ve,Ee){return Ee.map(Y=>Ve.get(Y))}(Ve,pe)}function ki(Ve,Ee){if((1!==Ee.length||0!==Ee[0].length)&&Ve)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(Ge){const Q={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}},m="function"==typeof Ge?Ge():Ge,y=Object.assign({},Q,{features:m.features||!!m.logOnly&&{pause:!0,export:!0,test:!0}||Q.features},m);if(y.maxAge&&y.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${y.maxAge}`);return y}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(Q,m){if(this.action=Q,this.timestamp=m,this.type=PERFORM_ACTION,void 0===Q.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(Q){this.timestamp=Q,this.type=RESET}}class Rollback{constructor(Q){this.timestamp=Q,this.type=ROLLBACK}}class Commit{constructor(Q){this.timestamp=Q,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(Q){this.id=Q,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(Q,m,e=!0){this.start=Q,this.end=m,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(Q){this.index=Q,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(Q){this.actionId=Q,this.type=JUMP_TO_ACTION}}class ImportState{constructor(Q){this.nextLiftedState=Q,this.type=IMPORT_STATE}}class LockChanges{constructor(Q){this.status=Q,this.type=LOCK_CHANGES}}class PauseRecording{constructor(Q){this.status=Q,this.type=PAUSE_RECORDING}}function difference(Ge,Q){return Ge.filter(m=>Q.indexOf(m)<0)}function unliftState(Ge){const{computedStates:Q,currentStateIndex:m}=Ge;if(m>=Q.length){const{state:t}=Q[Q.length-1];return t}const{state:e}=Q[m];return e}function unliftAction(Ge){return Ge.actionsById[Ge.nextActionId-1]}function liftAction(Ge){return new PerformAction(Ge,+Date.now())}function sanitizeActions(Ge,Q){return Object.keys(Q).reduce((m,e)=>{const t=Number(e);return m[t]=sanitizeAction(Ge,Q[t],t),m},{})}function sanitizeAction(Ge,Q,m){return Object.assign(Object.assign({},Q),{action:Ge(Q.action,m)})}function sanitizeStates(Ge,Q){return Q.map((m,e)=>({state:sanitizeState(Ge,m.state,e),error:m.error}))}function sanitizeState(Ge,Q,m){return Ge(Q,m)}function shouldFilterActions(Ge){return Ge.predicate||Ge.actionsSafelist||Ge.actionsBlocklist}function filterLiftedState(Ge,Q,m,e){const t=[],y={},C=[];return Ge.stagedActionIds.forEach((o,M)=>{const l=Ge.actionsById[o];!l||M&&isActionFiltered(Ge.computedStates[M],l,Q,m,e)||(y[o]=l,t.push(o),C.push(Ge.computedStates[M]))}),Object.assign(Object.assign({},Ge),{stagedActionIds:t,actionsById:y,computedStates:C})}function isActionFiltered(Ge,Q,m,e,t){const y=m&&!m(Ge,Q.action),C=e&&!Q.action.type.match(e.map(M=>escapeRegExp(M)).join("|")),o=t&&Q.action.type.match(t.map(M=>escapeRegExp(M)).join("|"));return y||C||o}function escapeRegExp(Ge){return Ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Ge,Q,m,e,t){if(e)return{state:m,error:"Interrupted by an error up the chain"};let C,y=m;try{y=Ge(m,Q)}catch(o){C=o.toString(),t.handleError(o)}return{state:y,error:C}}function recomputeStates(Ge,Q,m,e,t,y,C,o,M){if(Q>=Ge.length&&Ge.length===y.length)return Ge;const l=Ge.slice(0,Q),R=y.length-(M?1:0);for(let s=Q;s-1?A:computeNextEntry(m,I,E,P,o);l.push(V)}return M&&l.push(Ge[Ge.length-1]),l}function liftInitialState(Ge,Q){return{monitorState:Q(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Ge,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Ge,Q,m,e,t={}){return y=>(C,o)=>{let{monitorState:M,actionsById:l,nextActionId:R,stagedActionIds:s,skippedActionIds:L,committedState:I,currentStateIndex:A,computedStates:E,isLocked:P,isPaused:w}=C||Q;function V(te){let ee=te,ge=s.slice(1,ee+1);for(let le=0;le-1===ge.indexOf(le)),s=[0,...s.slice(ee+1)],I=E[ee].state,E=E.slice(ee),A=A>ee?A-ee:0}function j(){l={0:liftAction(INIT_ACTION)},R=1,s=[0],L=[],I=E[A].state,A=0,E=[]}C||(l=Object.create(l));let W=0;switch(o.type){case LOCK_CHANGES:P=o.status,W=1/0;break;case PAUSE_RECORDING:w=o.status,w?(s=[...s,R],l[R]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),R++,W=s.length-1,E=E.concat(E[E.length-1]),A===s.length-2&&A++,W=1/0):j();break;case RESET:l={0:liftAction(INIT_ACTION)},R=1,s=[0],L=[],I=Ge,A=0,E=[];break;case COMMIT:j();break;case ROLLBACK:l={0:liftAction(INIT_ACTION)},R=1,s=[0],L=[],A=0,E=[];break;case TOGGLE_ACTION:{const{id:te}=o;L=-1===L.indexOf(te)?[te,...L]:L.filter(ge=>ge!==te),W=s.indexOf(te);break}case SET_ACTIONS_ACTIVE:{const{start:te,end:ee,active:ge}=o,le=[];for(let re=te;ret.maxAge&&(E=recomputeStates(E,W,y,I,l,s,L,m,w),V(s.length-t.maxAge),W=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(E.filter(ee=>ee.error).length>0)W=0,t.maxAge&&s.length>t.maxAge&&(E=recomputeStates(E,W,y,I,l,s,L,m,w),V(s.length-t.maxAge),W=1/0);else{if(!w&&!P){A===s.length-1&&A++;const ee=R++;l[ee]=new PerformAction(o,+Date.now()),s=[...s,ee],W=s.length-1,E=recomputeStates(E,W,y,I,l,s,L,m,w)}E=E.map(ee=>Object.assign(Object.assign({},ee),{state:y(ee.state,RECOMPUTE_ACTION)})),A=s.length-1,t.maxAge&&s.length>t.maxAge&&V(s.length-t.maxAge),W=1/0}break;default:W=1/0}return E=recomputeStates(E,W,y,I,l,s,L,m,w),M=e(M,o),{monitorState:M,actionsById:l,nextActionId:R,stagedActionIds:s,skippedActionIds:L,committedState:I,currentStateIndex:A,computedStates:E,isLocked:P,isPaused:w}}}let DevtoolsDispatcher=(()=>{class Ge extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Ge.\u0275fac=function(){let Q;return function(e){return(Q||(Q=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Ge)))(e||Ge)}}(),Ge.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();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(Ge,Q,m){this.config=Q,this.dispatcher=m,this.devtoolsExtension=Ge,this.createActionStreams()}notify(Ge,Q){if(this.devtoolsExtension)if(Ge.type===PERFORM_ACTION){if(Q.isLocked||Q.isPaused)return;const m=unliftState(Q);if(shouldFilterActions(this.config)&&isActionFiltered(m,Ge,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,m,Q.currentStateIndex):m,t=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Ge,Q.nextActionId):Ge;this.sendToReduxDevtools(()=>this.extensionConnection.send(t,e))}else{const m=Object.assign(Object.assign({},Q),{stagedActionIds:Q.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,Q.actionsById):Q.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,Q.computedStates):Q.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,m,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Ge=>{const Q=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=Q,Q.init(),Q.subscribe(m=>Ge.next(m)),Q.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Ge=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),Q=Ge.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.START)),m=Ge.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.STOP)),e=Ge.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o=>this.unwrapAction(o.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(o=>o.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.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)(()=>o),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(o)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(o))),y=Ge.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o=>this.unwrapAction(o.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),C=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m));this.start$=Q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>y)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>C))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Ge){var Q;const m={name:Ge.name,features:Ge.features,serialize:Ge.serialize,autoPause:null!==(Q=Ge.autoPause)&&void 0!==Q&&Q};return!1!==Ge.maxAge&&(m.maxAge=Ge.maxAge),m}sendToReduxDevtools(Ge){try{Ge()}catch(Q){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",Q)}}}return DevtoolsExtension.\u0275fac=function Ge(Q){return new(Q||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 Ge{constructor(m,e,t,y,C,o,M,l){const R=liftInitialState(M,l.monitor),s=liftReducerWith(M,R,o,l.monitor,l),L=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),y.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),m,y.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),I=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s)),A=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),E=L.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(I),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:j},[W,te])=>{let ee=te(j,W);return W.type!==PERFORM_ACTION&&shouldFilterActions(l)&&(ee=filterLiftedState(ee,l.predicate,l.actionsSafelist,l.actionsBlocklist)),y.notify(W,ee),{state:ee,action:W}},{state:R,action:null})).subscribe(({state:j,action:W})=>{A.next(j),W.type===PERFORM_ACTION&&C.next(W.action)}),P=y.start$.subscribe(()=>{this.refresh()}),w=A.asObservable(),V=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=P,this.stateSubscription=E,this.dispatcher=m,this.liftedState=w,this.state=V}dispatch(m){this.dispatcher.next(m)}next(m){this.dispatcher.next(m)}error(m){}complete(){}performAction(m){this.dispatch(new PerformAction(m,+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(m){this.dispatch(new ToggleAction(m))}jumpToAction(m){this.dispatch(new JumpToAction(m))}jumpToState(m){this.dispatch(new JumpToState(m))}importState(m){this.dispatch(new ImportState(m))}lockChanges(m){this.dispatch(new LockChanges(m))}pauseRecording(m){this.dispatch(new PauseRecording(m))}}return Ge.\u0275fac=function(m){return new(m||Ge)(_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))},Ge.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();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(Ge,Q){return Boolean(Ge)||Q.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Ge="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Ge]?window[Ge]:null}function createStateObservable(Ge){return Ge.state}let StoreDevtoolsModule=(()=>{class Ge{static instrument(m={}){return{ngModule:Ge,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:m},{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 Ge.\u0275fac=function(m){return new(m||Ge)},Ge.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Ge}),Ge.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Ge})()},5620:(Ge,Q,m)=>{"use strict";m.d(Q,{UO:()=>te,qg:()=>W,Y6:()=>re,mK:()=>we,n$:()=>Me,Y$:()=>Fe,FR:()=>ce,yh:()=>$,CK:()=>qe,Aw:()=>yt,cr:()=>_e,wb:()=>z,qC:()=>ze,PH:()=>P,ZF:()=>Jt,Lq:()=>qi,P1:()=>et,on:()=>Si,Ky:()=>w});var e=m(5e3),t=m(1135),y=m(8306),C=m(7579),o=m(233),M=m(4004),R=m(5363),s=m(1365),L=m(5026),I=m(1884);const A={};function P(ot,Kt){if(A[ot]=(A[ot]||0)+1,"function"==typeof Kt)return j(ot,(...Lt)=>Object.assign(Object.assign({},Kt(...Lt)),{type:ot}));switch(Kt?Kt._as:"empty"){case"empty":return j(ot,()=>({type:ot}));case"props":return j(ot,Lt=>Object.assign(Object.assign({},Lt),{type:ot}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function j(ot,Kt){return Object.defineProperty(Kt,"type",{value:ot,writable:!1})}const W="@ngrx/store/init";let te=(()=>{class ot extends t.X{constructor(){super({type:W})}next(gt){if("function"==typeof gt)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===gt)throw new TypeError("Actions must be objects");if(void 0===gt.type)throw new TypeError("Actions must have a type property");super.next(gt)}complete(){}ngOnDestroy(){super.complete()}}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const ee=[te],ge=new e.OlP("@ngrx/store Internal Root Guard"),le=new e.OlP("@ngrx/store Internal Initial State"),re=new e.OlP("@ngrx/store Initial State"),de=new e.OlP("@ngrx/store Reducer Factory"),se=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),ye=new e.OlP("@ngrx/store Initial Reducers"),v=new e.OlP("@ngrx/store Internal Initial Reducers"),i=new e.OlP("@ngrx/store Store Features"),a=new e.OlP("@ngrx/store Internal Store Reducers"),p=new e.OlP("@ngrx/store Internal Feature Reducers"),u=new e.OlP("@ngrx/store Internal Feature Configs"),_=new e.OlP("@ngrx/store Internal Store Features"),D=new e.OlP("@ngrx/store Internal Feature Reducers Token"),O=new e.OlP("@ngrx/store Feature Reducers"),x=new e.OlP("@ngrx/store User Provided Meta Reducers"),r=new e.OlP("@ngrx/store Meta Reducers"),b=new e.OlP("@ngrx/store Internal Resolved Meta Reducers"),Z=new e.OlP("@ngrx/store User Runtime Checks Config"),N=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),U=new e.OlP("@ngrx/store Internal Runtime Checks"),ve=new e.OlP("@ngrx/store Check if Action types are unique");function be(ot,Kt={}){const gt=Object.keys(ot),Lt={};for(let Ci=0;CiCi(ui),gt(Kt))}}function Oe(ot,Kt){return Array.isArray(Kt)&&Kt.length>0&&(ot=ze.apply(null,[...Kt,ot])),(gt,Lt)=>{const ui=ot(gt);return(Ci,Yi)=>ui(Ci=void 0===Ci?Lt:Ci,Yi)}}class Me extends y.y{}class we extends te{}const z="@ngrx/store/update-reducers";let Ze=(()=>{class ot extends t.X{constructor(gt,Lt,ui,Ci){super(Ci(ui,Lt)),this.dispatcher=gt,this.initialState=Lt,this.reducers=ui,this.reducerFactory=Ci}get currentReducers(){return this.reducers}addFeature(gt){this.addFeatures([gt])}addFeatures(gt){const Lt=gt.reduce((ui,{reducers:Ci,reducerFactory:Yi,metaReducers:$i,initialState:Cn,key:Ln})=>{const _n="function"==typeof Ci?function K(ot){const Kt=Array.isArray(ot)&&ot.length>0?ze(...ot):gt=>gt;return(gt,Lt)=>(gt=Kt(gt),(ui,Ci)=>gt(ui=void 0===ui?Lt:ui,Ci))}($i)(Ci,Cn):Oe(Yi,$i)(Ci,Cn);return ui[Ln]=_n,ui},{});this.addReducers(Lt)}removeFeature(gt){this.removeFeatures([gt])}removeFeatures(gt){this.removeReducers(gt.map(Lt=>Lt.key))}addReducer(gt,Lt){this.addReducers({[gt]:Lt})}addReducers(gt){this.reducers=Object.assign(Object.assign({},this.reducers),gt),this.updateReducers(Object.keys(gt))}removeReducer(gt){this.removeReducers([gt])}removeReducers(gt){gt.forEach(Lt=>{this.reducers=function Re(ot,Kt){return Object.keys(ot).filter(gt=>gt!==Kt).reduce((gt,Lt)=>Object.assign(gt,{[Lt]:ot[Lt]}),{})}(this.reducers,Lt)}),this.updateReducers(gt)}updateReducers(gt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:z,features:gt})}ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(we),e.LFG(re),e.LFG(ye),e.LFG(de))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const vt=[Ze,{provide:Me,useExisting:Ze},{provide:we,useExisting:te}];let Fe=(()=>{class ot extends C.x{ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(){let Kt;return function(Lt){return(Kt||(Kt=e.n5z(ot)))(Lt||ot)}}(),ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const Ne=[Fe];class ce extends y.y{}let Le=(()=>{class ot extends t.X{constructor(gt,Lt,ui,Ci){super(Ci);const Ln=gt.pipe((0,R.Q)(o.N)).pipe((0,s.M)(Lt)).pipe((0,L.R)(Pe,{state:Ci}));this.stateSubscription=Ln.subscribe(({state:_n,action:kn})=>{this.next(_n),ui.next(kn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return ot.INIT=W,ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(te),e.LFG(Me),e.LFG(Fe),e.LFG(re))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();function Pe(ot={state:void 0},[Kt,gt]){const{state:Lt}=ot;return{state:gt(Lt,Kt),action:Kt}}const q=[Le,{provide:ce,useExisting:Le}];let $=(()=>{class ot extends y.y{constructor(gt,Lt,ui){super(),this.actionsObserver=Lt,this.reducerManager=ui,this.source=gt}select(gt,...Lt){return Ce.call(null,gt,...Lt)(this)}lift(gt){const Lt=new ot(this,this.actionsObserver,this.reducerManager);return Lt.operator=gt,Lt}dispatch(gt){this.actionsObserver.next(gt)}next(gt){this.actionsObserver.next(gt)}error(gt){this.actionsObserver.error(gt)}complete(){this.actionsObserver.complete()}addReducer(gt,Lt){this.reducerManager.addReducer(gt,Lt)}removeReducer(gt){this.reducerManager.removeReducer(gt)}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(ce),e.LFG(te),e.LFG(Ze))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const oe=[$];function Ce(ot,Kt,...gt){return function(ui){let Ci;if("string"==typeof ot){const Yi=[Kt,...gt].filter(Boolean);Ci=ui.pipe(function l(...ot){const Kt=ot.length;if(0===Kt)throw new Error("list of properties cannot be empty.");return(0,M.U)(gt=>{let Lt=gt;for(let ui=0;uiot(Yi,Kt)))}return Ci.pipe((0,I.x)())}}const lt="https://ngrx.io/guide/store/configuration/runtime-checks";function nt(ot){return void 0===ot}function ft(ot){return null===ot}function it(ot){return Array.isArray(ot)}function Ft(ot){return"object"==typeof ot&&null!==ot}function jt(ot){return"function"==typeof ot}function Ee(ot,Kt){return ot===Kt}function Y(ot,Kt,gt){for(let Lt=0;Lt_n.release&&"function"==typeof _n.release),$i=ot(function(..._n){return Ci.apply(null,_n)}),Cn=De(function(_n,kn){return Kt.stateFn.apply(null,[_n,ui,kn,$i])});return Object.assign(Cn.memoized,{release:function Ln(){Cn.reset(),$i.reset(),Yi.forEach(_n=>_n.release())},projector:$i.memoized,setResult:Cn.setResult,clearResult:Cn.clearResult})}}(De)(...ot)}function $t(ot,Kt,gt,Lt){if(void 0===gt){const Ci=Kt.map(Yi=>Yi(ot));return Lt.memoized.apply(null,Ci)}const ui=Kt.map(Ci=>Ci(ot,gt));return Lt.memoized.apply(null,[...ui,gt])}function Jt(ot){return et(Kt=>{const gt=Kt[ot];return(0,e.X6Q)()&&!(ot in Kt)&&console.warn(`@ngrx/store: The feature name "${ot}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${ot}', ...) or StoreModule.forFeature('${ot}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),gt},Kt=>Kt)}function st(ot){Object.freeze(ot);const Kt=jt(ot);return Object.getOwnPropertyNames(ot).forEach(gt=>{if(!gt.startsWith("\u0275")&&function ki(ot,Kt){return Object.prototype.hasOwnProperty.call(ot,Kt)}(ot,gt)&&(!Kt||"caller"!==gt&&"callee"!==gt&&"arguments"!==gt)){const Lt=ot[gt];(Ft(Lt)||jt(Lt))&&!Object.isFrozen(Lt)&&st(Lt)}}),ot}function li(ot,Kt=[]){return(nt(ot)||ft(ot))&&0===Kt.length?{path:["root"],value:ot}:Object.keys(ot).reduce((Lt,ui)=>{if(Lt)return Lt;const Ci=ot[ui];return function ei(ot){return jt(ot)&&ot.hasOwnProperty("\u0275cmp")}(Ci)?Lt:!(nt(Ci)||ft(Ci)||function Zt(ot){return"number"==typeof ot}(Ci)||function Mt(ot){return"boolean"==typeof ot}(Ci)||function rt(ot){return"string"==typeof ot}(Ci)||it(Ci))&&(function Ii(ot){if(!function Vt(ot){return Ft(ot)&&!it(ot)}(ot))return!1;const Kt=Object.getPrototypeOf(ot);return Kt===Object.prototype||null===Kt}(Ci)?li(Ci,[...Kt,ui]):{path:[...Kt,ui],value:Ci})},!1)}function Bt(ot,Kt){if(!1===ot)return;const gt=ot.path.join("."),Lt=new Error(`Detected unserializable ${Kt} at "${gt}". ${lt}#strict${Kt}serializability`);throw Lt.value=ot.value,Lt.unserializablePath=gt,Lt}function Li(ot){return(0,e.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},ot):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function si({strictActionSerializability:ot,strictStateSerializability:Kt}){return gt=>ot||Kt?function At(ot,Kt){return function(gt,Lt){Kt.action(Lt)&&Bt(li(Lt),"action");const ui=ot(gt,Lt);return Kt.state()&&Bt(li(ui),"state"),ui}}(gt,{action:Lt=>ot&&!sn(Lt),state:()=>Kt}):gt}function ci({strictActionImmutability:ot,strictStateImmutability:Kt}){return gt=>ot||Kt?function at(ot,Kt){return function(gt,Lt){const ui=Kt.action(Lt)?st(Lt):Lt,Ci=ot(gt,ui);return Kt.state()?st(Ci):Ci}}(gt,{action:Lt=>ot&&!sn(Lt),state:()=>Kt}):gt}function sn(ot){return ot.type.startsWith("@ngrx")}function Ui({strictActionWithinNgZone:ot}){return Kt=>ot?function Rt(ot,Kt){return function(gt,Lt){if(Kt.action(Lt)&&!e.R0b.isInAngularZone())throw new Error(`Action '${Lt.type}' running outside NgZone. ${lt}#strictactionwithinngzone`);return ot(gt,Lt)}}(Kt,{action:gt=>ot&&!sn(gt)}):Kt}function Di(ot){return[{provide:N,useValue:ot},{provide:Z,useFactory:Ke,deps:[N]},{provide:U,deps:[Z],useFactory:Li},{provide:r,multi:!0,deps:[U],useFactory:ci},{provide:r,multi:!0,deps:[U],useFactory:si},{provide:r,multi:!0,deps:[U],useFactory:Ui}]}function Xi(){return[{provide:ve,multi:!0,deps:[U],useFactory:_t}]}function Ke(ot){return ot}function _t(ot){if(!ot.strictActionTypeUniqueness)return;const Kt=Object.entries(A).filter(([,gt])=>gt>1).map(([gt])=>gt);if(Kt.length)throw new Error(`Action types are registered more than once, ${Kt.map(gt=>`"${gt}"`).join(", ")}. ${lt}#strictactiontypeuniqueness`)}let _e=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i){}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(te),e.LFG(Me),e.LFG(Fe),e.LFG($),e.LFG(ge,8),e.LFG(ve,8))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})(),qe=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi){this.features=gt,this.featureReducers=Lt,this.reducerManager=ui;const $i=gt.map((Cn,Ln)=>{const kn=Lt.shift()[Ln];return Object.assign(Object.assign({},Cn),{reducers:kn,initialState:kt(Cn.initialState)})});ui.addFeatures($i)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(_),e.LFG(O),e.LFG(Ze),e.LFG(_e),e.LFG(ve,8))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})(),yt=(()=>{class ot{static forRoot(gt,Lt={}){return{ngModule:_e,providers:[{provide:ge,useFactory:Ni,deps:[[$,new e.FiY,new e.tp0]]},{provide:le,useValue:Lt.initialState},{provide:re,useFactory:kt,deps:[le]},{provide:v,useValue:gt},{provide:a,useExisting:gt instanceof e.OlP?gt:v},{provide:ye,deps:[e.zs3,v,[new e.tBr(a)]],useFactory:ue},{provide:x,useValue:Lt.metaReducers?Lt.metaReducers:[]},{provide:b,deps:[r,x],useFactory:yi},{provide:se,useValue:Lt.reducerFactory?Lt.reducerFactory:be},{provide:de,deps:[se,b],useFactory:Oe},ee,vt,Ne,q,oe,Di(Lt.runtimeChecks),Xi()]}}static forFeature(gt,Lt,ui={}){return{ngModule:qe,providers:[{provide:u,multi:!0,useValue:gt instanceof Object?{}:ui},{provide:i,multi:!0,useValue:{key:gt instanceof Object?gt.name:gt,reducerFactory:ui instanceof e.OlP||!ui.reducerFactory?be:ui.reducerFactory,metaReducers:ui instanceof e.OlP||!ui.metaReducers?[]:ui.metaReducers,initialState:ui instanceof e.OlP||!ui.initialState?void 0:ui.initialState}},{provide:_,deps:[e.zs3,u,i],useFactory:Je},{provide:p,multi:!0,useValue:gt instanceof Object?gt.reducer:Lt},{provide:D,multi:!0,useExisting:Lt instanceof e.OlP?Lt:p},{provide:O,multi:!0,deps:[e.zs3,p,[new e.tBr(D)]],useFactory:St},Xi()]}}}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})();function ue(ot,Kt){return Kt instanceof e.OlP?ot.get(Kt):Kt}function Je(ot,Kt,gt){return gt.map((Lt,ui)=>{if(Kt[ui]instanceof e.OlP){const Ci=ot.get(Kt[ui]);return{key:Lt.key,reducerFactory:Ci.reducerFactory?Ci.reducerFactory:be,metaReducers:Ci.metaReducers?Ci.metaReducers:[],initialState:Ci.initialState}}return Lt})}function St(ot,Kt){return Kt.map(Lt=>Lt instanceof e.OlP?ot.get(Lt):Lt)}function kt(ot){return"function"==typeof ot?ot():ot}function yi(ot,Kt){return ot.concat(Kt)}function Ni(ot){if(ot)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Si(...ot){return{reducer:ot.pop(),types:ot.map(Lt=>Lt.type)}}function qi(ot,...Kt){const gt=new Map;for(const Lt of Kt)for(const ui of Lt.types){const Ci=gt.get(ui);gt.set(ui,Ci?($i,Cn)=>Lt.reducer(Ci($i,Cn),Cn):Lt.reducer)}return function(Lt=ot,ui){const Ci=gt.get(ui.type);return Ci?Ci(Lt,ui):Lt}}},159:(Ge,Q,m)=>{"use strict";m.d(Q,{uU:()=>s,OF:()=>L});var e=m(5e3),t=m(9808),y=m(655),C=m(3259);function o(I,A){if(1&I&&e._UZ(0,"canvas",1),2&I){const E=e.oxw();e.Q6J("qrCode",E.value)("qrCodeErrorCorrectionLevel",E.errorCorrectionLevel)("qrCodeCenterImageSrc",E.centerImageSrc)("qrCodeCenterImageWidth",E.centerImageSize)("qrCodeCenterImageHeight",E.centerImageSize)("qrCodeMargin",E.margin)("width",E.size)("height",E.size)("darkColor",E.darkColor)("lightColor",E.lightColor)}}const M=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let l=(()=>{class I{constructor(E){this.viewContainerRef=E,this.errorCorrectionLevel=I.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var E,P;return(0,y.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const w=this.viewContainerRef.element.nativeElement;if(!w)return;const V=w.getContext("2d");V&&V.clearRect(0,0,V.canvas.width,V.canvas.height);const j=null!==(E=this.errorCorrectionLevel)&&void 0!==E?E:I.DEFAULT_ERROR_CORRECTION_LEVEL,W=M.test(this.darkColor)?this.darkColor:void 0,te=M.test(this.lightColor)?this.lightColor:void 0;(0,e.X6Q)()&&(!W&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!te&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield C.toCanvas(w,this.value,{version:this.version,errorCorrectionLevel:j,width:this.width,margin:this.margin,color:{dark:W,light:te}});const ee=this.centerImageSrc,ge=R(this.centerImageWidth,I.DEFAULT_CENTER_IMAGE_SIZE),le=R(this.centerImageHeight,I.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&V){this.centerImage||(this.centerImage=new Image(ge,le)),ee!==(null===(P=this.centerImage)||void 0===P?void 0:P.src)&&(this.centerImage.src=ee),ge!==this.centerImage.width&&(this.centerImage.width=ge),le!==this.centerImage.height&&(this.centerImage.height=le);const re=this.centerImage;re.onload=()=>{V.drawImage(re,w.width/2-ge/2,w.height/2-le/2,ge,le)}}})}}return I.DEFAULT_ERROR_CORRECTION_LEVEL="M",I.DEFAULT_CENTER_IMAGE_SIZE=40,I.\u0275fac=function(E){return new(E||I)(e.Y36(e.s_b))},I.\u0275dir=e.lG2({type:I,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[e.TTD]}),I})();function R(I,A){return void 0===I||""===I?A:"string"==typeof I?parseInt(I,10):I}let s=(()=>{class I{}return I.\u0275fac=function(E){return new(E||I)},I.\u0275cmp=e.Xpm({type:I,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(E,P){1&E&&e.YNc(0,o,1,10,"canvas",0),2&E&&e.Q6J("ngIf",P.value)},directives:[t.O5,l],encapsulation:2}),I})(),L=(()=>{class I{}return I.\u0275fac=function(E){return new(E||I)},I.\u0275mod=e.oAB({type:I}),I.\u0275inj=e.cJS({imports:[[t.ez]]}),I})()},4946:Ge=>{"use strict";Ge.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:Ge=>{"use strict";Ge.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:Ge=>{"use strict";Ge.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:Ge=>{"use strict";Ge.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:Ge=>{"use strict";Ge.exports={i8:"6.5.4"}},2562:Ge=>{"use strict";Ge.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"}')}},Ge=>{Ge(Ge.s=8864)}]); \ No newline at end of file diff --git a/frontend/runtime.30839234f0889f69.js b/frontend/runtime.ab2ec7717d8728af.js similarity index 95% rename from frontend/runtime.30839234f0889f69.js rename to frontend/runtime.ab2ec7717d8728af.js index 2bcb4454..4485d729 100644 --- a/frontend/runtime.30839234f0889f69.js +++ b/frontend/runtime.ab2ec7717d8728af.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[u]))?t.splice(u--,1):(s=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{564:"b17937ec0876060b",636:"f1aaa7338619caeb",893:"355edadcb4ce94f4",924:"ff524ffae95c311b"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="RTLApp:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((l,c)=>i=e[f]=[l,c]);o.push(i[2]=a);var s=r.p+r.u(f),u=new Error;r.l(s,l=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;u.message="Loading chunk "+f+" failed.\n("+c+": "+p+")",u.name="ChunkLoadError",u.type=c,u.request=p,i[1](u)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var u,d,[i,a,s]=o,l=0;if(i.some(p=>0!==e[p])){for(u in a)r.o(a,u)&&(r.m[u]=a[u]);if(s)var c=s(r)}for(f&&f(o);l{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(s=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{564:"b17937ec0876060b",636:"16dbf9186b428247",893:"355edadcb4ce94f4",924:"ff524ffae95c311b"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="RTLApp:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((l,c)=>i=e[f]=[l,c]);o.push(i[2]=a);var s=r.p+r.u(f),u=new Error;r.l(s,l=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;u.message="Loading chunk "+f+" failed.\n("+c+": "+p+")",u.name="ChunkLoadError",u.type=c,u.request=p,i[1](u)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var u,d,[i,a,s]=o,l=0;if(i.some(p=>0!==e[p])){for(u in a)r.o(a,u)&&(r.m[u]=a[u]);if(s)var c=s(r)}for(f&&f(o);l { }); } else { logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Channels', msg: 'Empty Channels List Received' }); - res.status(200).json({ activeChannels: [], pendingChannels: [], inactiveChannels: [], lightningBalances: { localBalance: 0, remoteBalance: 0 }, channelStatus: { active: { channels: 0, capacity: 0 }, inactive: { channels: 0, capacity: 0 }, pending: { channels: 0, capacity: 0 } } }); + res.status(200).json([]); } }). catch((errRes) => { diff --git a/src/app/eclair/store/ecl.effects.ts b/src/app/eclair/store/ecl.effects.ts index 6a78fef2..3bba3c99 100644 --- a/src/app/eclair/store/ecl.effects.ts +++ b/src/app/eclair/store/ecl.effects.ts @@ -653,24 +653,26 @@ export class ECLEffects implements OnDestroy { const inactiveChannels = []; const channelStatus = { active: { channels: 0, capacity: 0 }, inactive: { channels: 0, capacity: 0 }, pending: { channels: 0, capacity: 0 } }; this.rawChannelsList.forEach((channel, i) => { - if (channel.state === 'NORMAL') { - channelTotal = channel.toLocal + channel.toRemote; - totalLocalBalance = totalLocalBalance + channel.toLocal; - totalRemoteBalance = totalRemoteBalance + channel.toRemote; - channel.balancedness = (channelTotal === 0) ? 1 : +(1 - Math.abs((channel.toLocal - channel.toRemote) / channelTotal)).toFixed(3); - activeChannels.push(channel); - channelStatus.active.channels = channelStatus.active.channels + 1; - channelStatus.active.capacity = channelStatus.active.capacity + channel.toLocal; - } else if (channel.state.includes('WAIT') || channel.state.includes('CLOSING') || channel.state.includes('SYNCING')) { - channel.state = channel.state.replace(/_/g, ' '); - pendingChannels.push(channel); - channelStatus.pending.channels = channelStatus.pending.channels + 1; - channelStatus.pending.capacity = channelStatus.pending.capacity + channel.toLocal; - } else { - channel.state = channel.state.replace(/_/g, ' '); - inactiveChannels.push(channel); - channelStatus.inactive.channels = channelStatus.inactive.channels + 1; - channelStatus.inactive.capacity = channelStatus.inactive.capacity + channel.toLocal; + if (channel) { + if (channel.state === 'NORMAL') { + channelTotal = channel.toLocal + channel.toRemote; + totalLocalBalance = totalLocalBalance + channel.toLocal; + totalRemoteBalance = totalRemoteBalance + channel.toRemote; + channel.balancedness = (channelTotal === 0) ? 1 : +(1 - Math.abs((channel.toLocal - channel.toRemote) / channelTotal)).toFixed(3); + activeChannels.push(channel); + channelStatus.active.channels = channelStatus.active.channels + 1; + channelStatus.active.capacity = channelStatus.active.capacity + channel.toLocal; + } else if (channel.state.includes('WAIT') || channel.state.includes('CLOSING') || channel.state.includes('SYNCING')) { + channel.state = channel.state.replace(/_/g, ' '); + pendingChannels.push(channel); + channelStatus.pending.channels = channelStatus.pending.channels + 1; + channelStatus.pending.capacity = channelStatus.pending.capacity + channel.toLocal; + } else { + channel.state = channel.state.replace(/_/g, ' '); + inactiveChannels.push(channel); + channelStatus.inactive.channels = channelStatus.inactive.channels + 1; + channelStatus.inactive.capacity = channelStatus.inactive.capacity + channel.toLocal; + } } }); lightningBalances = { localBalance: totalLocalBalance, remoteBalance: totalRemoteBalance }; diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html b/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html index 7d8db15c..ff7e5ad8 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.html @@ -73,7 +73,7 @@ - +

No peers connected. Add a peer in order to open a channel.

No channel available.

@@ -81,7 +81,7 @@

{{errorMessage}}

- +